From: Ben Beltran Date: Sun, 7 Oct 2012 07:12:14 +0000 (-0500) Subject: Adds old experiments from abuguet X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/5cf1339e736bc00340b29fc058d6b8e000d4ee2d?ds=sidebyside;hp=b157bf193c54286ecfc7996ee861d774941d9347 Adds old experiments from abuguet --- diff --git a/jekyll/clima/TWClogo_31px.png b/jekyll/clima/TWClogo_31px.png new file mode 100644 index 0000000..767ed29 Binary files /dev/null and b/jekyll/clima/TWClogo_31px.png differ diff --git a/jekyll/clima/index.php b/jekyll/clima/index.php new file mode 100644 index 0000000..c8b8dc6 --- /dev/null +++ b/jekyll/clima/index.php @@ -0,0 +1,216 @@ + Initial Release * +* 0.2 -> Config options * +* 0.3 -> Day and Night * +*******************************/ + + +/*Weather.com configuration +********************************/ +$citycode = 'MXCA0026'; //Zip Code (US) or City code according to weather.com +$partnerid = '1140062701'; //Partner ID +$license = '5b323d77586070aa'; //License number + +/*Color Configuration +********************************/ +$nightbackground = '#222'; //main colors. +$daybackground = '#fff'; + +$daymaincolor = '#666'; +$nightmaincolor = '#e1e1e1;'; + +$taglinecolor = '#999'; + +$coldcolor = '#78d6fd'; //Colors for each temperature. +$coolcolor = '#1b95fb'; +$temperatecolor = '#999'; +$warmcolor = '#ff9226'; +$hotcolor = '#ff1818'; + +/*Text Configuration +*******************************/ +$maintext = 'Juárez está:'; +$title = '¿Cómo está el clima en Juárez?'; + +$coldstring = 'frio.'; //string for each temperature. +$coolstring = 'fresco.'; +$temperatestring = 'templado.'; +$warmstring = 'cálido.'; +$hotstring = 'caliente.'; + +$coldtagline = '(abrigate bien.)'; //tagline for each temperature. +$cooltagline = '(perfecto para un saco.)'; +$temperatetagline = '(ni fu ni fa.)'; +$warmtagline = '(como para estar afuera.)'; +$hottagline = '(hidrátate bien.)'; + +/*Temperature Configuration +******************************/ +$coldlimit = 15; //How many degrees? (celsius) +$coollimit = 20; +$temperatelimit = 25; +$warmlimit = 30; + + + +/****************************** +* DANGER! DANGER! * +******************************* +* Don't edit below this part * +* unless you know what you're * +* doing. * +******************************* +* It's not that hard really. * +* but it's better if we leave * +* it like it is. Unless you * +* like customizing the shit * +* out of stuff. * +*******************************/ + + + $ch = curl_init('http://xoap.weather.com/weather/local/'.$citycode.'?cc=*&link=xoap&prod=xoap&par='.$partnerid.'&key='.$license.''); //Initialize curl. + + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //More curl config + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4); + + $data = curl_exec($ch); //this is your xml stuff + curl_close($ch); + + $xml = new SimpleXmlElement($data, LIBXML_NOCDATA); //now let's make an XmlElement + $feelslike = $xml->cc->flik; //This is the "Feel's Like temp" + $sunset = date('G.i',strtotime($xml->loc->suns)); + $sunrise = date('G.i',strtotime($xml->loc->sunr)); + $now = date('G.i',time()-28800); + $feelslike = ($feelslike -32)*5/9; //Convert fahrenheit to celsius. + + //now let's get the sponsored links. Stupid EULA. + $sponsors = ''.$xml->lnks->link[0]->t.' · '; + $sponsors .= ''.$xml->lnks->link[1]->t.' · '; + $sponsors .= ''.$xml->lnks->link[2]->t.' · '; + $sponsors .= ''.$xml->lnks->link[3]->t.''; + + + if(isset($_GET['temp'])){ + $feelslike = $_GET['temp']; //This overrides the weather.com temperature for debugging. + } + if(isset($_GET['now'])){ + $now = $_GET['now']; //This overrides the weather.com temperature for debugging. + } + + +echo ' +'; +?> + + + + + <?php echo $title; ?> + + + +
+
+'.$coldstring.'

'.$coldtagline.''; } +else if($feelslike < $coollimit){ echo '

'.$coolstring.'

'.$cooltagline.''; } +else if($feelslike < $temperatelimit){ echo '

'.$temperatestring.'

'.$temperatetagline.''; } +else if($feelslike < $warmlimit){ echo '

'.$warmstring.'

'.$warmtagline.''; } +else{ echo '

'.$hotstring.'

'.$hottagline.''; } +?> +
+ + + \ No newline at end of file diff --git a/jekyll/clima/rain.gif b/jekyll/clima/rain.gif new file mode 100644 index 0000000..7121b70 Binary files /dev/null and b/jekyll/clima/rain.gif differ diff --git a/jekyll/clima2/index.php b/jekyll/clima2/index.php new file mode 100644 index 0000000..a566de9 --- /dev/null +++ b/jekyll/clima2/index.php @@ -0,0 +1,329 @@ + Initial Release * +* 0.2 -> Config options * +* 0.3 -> Day and Night * +* 0.4 -> Fancy Canvas Version * +*******************************/ + + +/*Weather.com configuration +********************************/ +$citycode = 'MXCA0026'; //Zip Code (US) or City code according to weather.com +$partnerid = '1140062701'; //Partner ID +$license = '5b323d77586070aa'; //License number + +/*Color Configuration +********************************/ +$nightbackground = '#21272A'; //main colors. +$daybackground = '#99cce1'; + +$coldcolor = 'rgb(120,214,253)'; //Colors for each temperature. +$coolcolor = 'rgb(27,149,251)'; +$temperatecolor = 'rgb(153,153,153)'; +$warmcolor = 'rgb(255,146,38)'; +$hotcolor = 'rgb(255,24,24)'; + +/*Text Configuration +*******************************/ +$coldstring = 'frío.'; //string for each temperature. +$coolstring = 'fresco.'; +$regularstring = 'regular.'; +$warmstring = 'cálido.'; +$hotstring = 'caliente.'; + +$coldtagline = '(abrigate bien.)'; //tagline for each temperature. +$cooltagline = '(perfecto para un saco.)'; +$regulartagline = '(ni fu ni fa.)'; +$warmtagline = '(como para estar afuera.)'; +$hottagline = '(hidrátate bien.)'; + +/*Temperature Configuration +******************************/ +$coldlimit = 15; //How many degrees? (celsius) +$coollimit = 20; +$temperatelimit = 25; +$warmlimit = 30; + + + +/****************************** +* DANGER! DANGER! * +******************************* +* Don't edit below this part * +* unless you know what you're * +* doing. * +******************************* +* It's not that hard really. * +* but it's better if we leave * +* it like it is. Unless you * +* like customizing the shit * +* out of stuff. * +*******************************/ + + + $ch = curl_init('http://xoap.weather.com/weather/local/'.$citycode.'?cc=*&link=xoap&prod=xoap&par='.$partnerid.'&key='.$license.''); //Initialize curl. + + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //More curl config + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4); + + $data = curl_exec($ch); //this is your xml stuff + curl_close($ch); + + $xml = new SimpleXmlElement($data, LIBXML_NOCDATA); //now let's make an XmlElement + $feelslike = $xml->cc->flik; //This is the "Feel's Like temp" + $sunset = date('G.i',strtotime($xml->loc->suns)); + $sunrise = date('G.i',strtotime($xml->loc->sunr)); + $now = date('G.i',time()-28800); + switch($xml->cc->icon){ + case 0: case 1: case 2: case 3: + case 4: case 5: case 6: case 7: + case 8: case 9: case 10: case 11: + case 12: case 13: case 14: case 15: + case 16: case 17: case 18: case 35: + case 37: case 38: case 39: case 40: + case 41: case 42: case 43: case 44: + case 45: case 46: case 47: + $sky = 2; + break; + case 19: case 20: case 21: case 22: + case 23: case 24: case 25: case 26: + case 27: case 28: case 29: case 30: + case 33: case 34: + $sky = 1; + break; + default: + $sky = 0; + } + $feelslike = ($feelslike -32)*5/9; //Convert fahrenheit to celsius. + + //now let's get the sponsored links. Stupid EULA. + $sponsors = ''.$xml->lnks->link[0]->t.' · '; + $sponsors .= ''.$xml->lnks->link[1]->t.' · '; + $sponsors .= ''.$xml->lnks->link[2]->t.' · '; + $sponsors .= ''.$xml->lnks->link[3]->t.''; + + + if(isset($_GET['temp'])){ + $feelslike = $_GET['temp']; //This overrides the weather.com temperature for debugging. + } + if(isset($_GET['now'])){ + $now = $_GET['now']; //This overrides the weather.com date for debugging. + } + if(isset($_GET['sky'])){ //This overrides the weather.com sky conditions for debugging. + $sky = $_GET['sky']; + } + + +echo ' +'; +?> + + + + + + ¿Cómo está el clima en Juárez? + + + + +
+ +
+ + \ No newline at end of file diff --git a/jekyll/etc.html b/jekyll/etc.html index 45821c9..63cbc08 100644 --- a/jekyll/etc.html +++ b/jekyll/etc.html @@ -11,7 +11,22 @@ layout: default Includes saccharine-based and boredom-based


diff --git a/jekyll/juegos2009.html b/jekyll/juegos2009.html new file mode 100644 index 0000000..45d68f9 --- /dev/null +++ b/jekyll/juegos2009.html @@ -0,0 +1,112 @@ + + + + Juegos Pasados + + + + +
+

Juegos Pasados Per Capita. (2009)

+ +
+ + \ No newline at end of file diff --git a/jekyll/lolmustache.htm b/jekyll/lolmustache.htm new file mode 100644 index 0000000..493f081 --- /dev/null +++ b/jekyll/lolmustache.htm @@ -0,0 +1,14 @@ + + + MUSTACHE! + + + + + + +

MUSTACHE!

+ + \ No newline at end of file diff --git a/jekyll/mesias.gif b/jekyll/mesias.gif new file mode 100644 index 0000000..6ca8729 Binary files /dev/null and b/jekyll/mesias.gif differ diff --git a/jekyll/mesias.htm b/jekyll/mesias.htm new file mode 100644 index 0000000..5b02f46 --- /dev/null +++ b/jekyll/mesias.htm @@ -0,0 +1,34 @@ + + + EL VIENE A SALVARNOS. + + + + + + + + +

0

+ + \ No newline at end of file diff --git a/jekyll/projects.html b/jekyll/projects.html index 370cbb5..def89bc 100644 --- a/jekyll/projects.html +++ b/jekyll/projects.html @@ -48,6 +48,15 @@ layout: default gamers.
  • Abuguet: It's complicated.
  • +
  • + Curso Express de C: + Curso Express de C basado en K&R que impartí en el Tecnológico de Monterrey + Campus Ciudad Juárez. Solo vienen prácticas 01-07 por ahora. + Pronto subiré los otros. + • Express C course based on K&R that I gave in Monterrey + Institute of Technology, Campus Ciudad Juarez. Only Labs 01-07 + for now, will upload the rest soon.
  • diff --git a/jekyll/rosa/bluebg.png b/jekyll/rosa/bluebg.png new file mode 100644 index 0000000..142ce6f Binary files /dev/null and b/jekyll/rosa/bluebg.png differ diff --git a/jekyll/rosa/index.php b/jekyll/rosa/index.php new file mode 100644 index 0000000..9d7d106 --- /dev/null +++ b/jekyll/rosa/index.php @@ -0,0 +1,81 @@ + + + + + Generador de Episodios de la Rosa de Guadalupe + + + + + +
    + En el proximo episodio de la rosa de guadalupe +

    + %s Hizo %s porque su %s %s. La tratan de violar, se da cuenta que %s es %s, y la virgencita le ayuda a sobresalir.", $nombre[1], $tema[1], $familiar[1], $causa[1], $tema[1], $efecto[1]); + ?> +

    +
    Refresca para más +
    + + \ No newline at end of file diff --git a/jekyll/rosa/proximoepisodio.png b/jekyll/rosa/proximoepisodio.png new file mode 100644 index 0000000..8067a44 Binary files /dev/null and b/jekyll/rosa/proximoepisodio.png differ diff --git a/jekyll/rosa/whitebg.png b/jekyll/rosa/whitebg.png new file mode 100644 index 0000000..94dc690 Binary files /dev/null and b/jekyll/rosa/whitebg.png differ diff --git a/jekyll/whatislove.swf b/jekyll/whatislove.swf new file mode 100644 index 0000000..fe06c2d Binary files /dev/null and b/jekyll/whatislove.swf differ diff --git a/jekyll/zlad.swf b/jekyll/zlad.swf new file mode 100644 index 0000000..0adad2e Binary files /dev/null and b/jekyll/zlad.swf differ