Skip to content

Instantly share code, notes, and snippets.

View Zerquix18's full-sized avatar
🎯
Focusing

I'm Luis! ^-^ Zerquix18

🎯
Focusing
View GitHub Profile
<?php
class uploadFile {
public $filename;
private $filepath = './';
public $fullpath;
@Zerquix18
Zerquix18 / dec.php
Created December 17, 2014 15:28
Con este código puedes sacar la generatriz de un decimal, es decir, la fracción que genera como resultado aquel decimal :)
<?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) {
@Zerquix18
Zerquix18 / syntax.php
Created June 11, 2014 19:54
Playing with PHP syntax — This is me when I'm bored...
<?php
$lol = "lol";
define("HAHA", $lol, 1);
class ja {
function jaja() {
return 'This will be the result';
}
}
class nose {
function lol(){