This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Primary module hooks for module. | |
* | |
* @DCG | |
* This file is no longer required in Drupal 8. | |
* @see https://www.drupal.org/node/2217931 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DrupalFinder\DrupalFinder; | |
use DrupalRector\Set\Drupal8SetList; | |
use DrupalRector\Set\Drupal9SetList; | |
use Rector\Config\RectorConfig; | |
// Drupal rector file to check code deprecation and updaate it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I didn't test this yet, please feel free to comment | |
var LazyLoad = function(imagesIds) { | |
this.imagesSrc = []; | |
this.init(imagesIds); | |
return this; | |
}; | |
LazyLoad.prototype = { | |
init: function(imagesId) { | |
if (imagesId && imagesId.length > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int m[10][10]; | |
int i=0, j=0; | |
for(i=0; i<10; i++) { | |
for(j=0; j<10; j++) { | |
m[i][j]=rand()%100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$matriz = array(); // [] significa iniciar um array vazio em php. | |
$i = 0; // Indice da matriz inicial | |
$j = 0; // php nao tem definição de tipos, ele vai assumir o valor que eu passar, no caso i e j serão Inteiros (int) | |
for ($i = 0; $i < 10; $i++) { | |
for ($j = 0; $j < 10; $j++) { | |
matriz[$i][$j] = rand(); // PHP tem a função rand que retorna um numero random. | |
} | |
} |