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 | |
$lol = "lol"; | |
define("HAHA", $lol, 1); | |
class ja { | |
function jaja() { | |
return 'This will be the result'; | |
} | |
} | |
class nose { | |
function lol(){ |
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 | |
function simplificar($up, $down) { | |
echo "¿Trato de simplificar? [s|y]\n"; | |
if( ! in_array( strtolower( trim( $x = fgets(STDIN) ) ), array("yes", "y", "s", "si", "sí", "yh") ) | |
&& !($x == "\n") ) | |
exit("Entendido.\n"); | |
$result = array(0 => array("u" => (int) $up, "d" => (int) $down) ); | |
$i = 0; | |
echo "Intentando simplificar...\n"; | |
while(true) { |
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 | |
class uploadFile { | |
public $filename; | |
private $filepath = './'; | |
public $fullpath; |
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 | |
echo 'Programa para leer texto y procesar informacion de ella', "\n"; | |
echo '-------------------------------------------------------', "\n"; | |
$vocales = | |
$consonantes = | |
$numeros = | |
$caracteres = | |
$lista = | |
$resultados = []; | |
echo 'Introduzca el destino del texto:', "\n"; |
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 | |
for($i=0;$i<1e2;)echo((++$i%3?'':'Fizz').($i%5?'':'Buzz')?:$i),"\n"; |
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
{ | |
"version" : "2017-02-28", | |
"operation" : "UpdateItem", | |
"key" : { | |
"id" : { "S" : "${ctx.args.id}" } | |
}, | |
#set( $expNames = {} ) | |
#set( $expValues = {} ) | |
#set( $expSet = {} ) |
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
#!/bin/bash | |
apt-get update -y | |
apt install git npm nginx mysql-server -y | |
npm install -g forever | |
mysql -u root -e "CREATE USER 'unicaribe'@'localhost' IDENTIFIED BY 'lajevatuya'" | |
mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'unicaribe'@'localhost';" | |
mysql -u root -e 'FLUSH PRIVILEGES' |
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
const arr1 = [ | |
["name", "id", "age", "country"], | |
["Susan", "3", "20", "mali"], | |
["John", "1", "21", "chad"], | |
["Jose", "2", "23", "oman"], | |
["Alex", "4", "20", "fiji"], | |
]; | |
const arr2 = [ | |
["name", "id", "height"], |
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
import React, { useCallback, useEffect, useState } from 'react'; | |
import { Button } from 'semantic-ui-react'; | |
import { MapLatLng } from '../../../../../../../../../models'; | |
import { computeDistanceBetween } from '../../../../../../../../../utils'; | |
type Position = { date: Date; position: MapLatLng }; | |
const MAX_POSITIONS = 3; | |
const Speedometer: React.FC = () => { |
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 | |
/** | |
* Tests for the MemeFinder | |
* Includes HTTP and Browser tests | |
*/ | |
namespace Tests\Feature; | |
use Tests\TestCase; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; |
OlderNewer