]> git.r.bdr.sh - rbdr/r.bdr.sh/commitdiff
Adds old experiments from abuguet
authorBen Beltran <redacted>
Sun, 7 Oct 2012 07:12:14 +0000 (02:12 -0500)
committerBen Beltran <redacted>
Sun, 7 Oct 2012 07:12:14 +0000 (02:12 -0500)
16 files changed:
jekyll/clima/TWClogo_31px.png [new file with mode: 0644]
jekyll/clima/index.php [new file with mode: 0644]
jekyll/clima/rain.gif [new file with mode: 0644]
jekyll/clima2/index.php [new file with mode: 0644]
jekyll/etc.html
jekyll/juegos2009.html [new file with mode: 0644]
jekyll/lolmustache.htm [new file with mode: 0644]
jekyll/mesias.gif [new file with mode: 0644]
jekyll/mesias.htm [new file with mode: 0644]
jekyll/projects.html
jekyll/rosa/bluebg.png [new file with mode: 0644]
jekyll/rosa/index.php [new file with mode: 0644]
jekyll/rosa/proximoepisodio.png [new file with mode: 0644]
jekyll/rosa/whitebg.png [new file with mode: 0644]
jekyll/whatislove.swf [new file with mode: 0644]
jekyll/zlad.swf [new file with mode: 0644]

diff --git a/jekyll/clima/TWClogo_31px.png b/jekyll/clima/TWClogo_31px.png
new file mode 100644 (file)
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 (file)
index 0000000..c8b8dc6
--- /dev/null
@@ -0,0 +1,216 @@
+<?php
+/********************
+* Fuzzy Thermometer *
+* Ver 0.3           *
+* By Ben Beltran    *
+*********************/
+
+/******************************
+* CHANGELOG                                      *
+*******************************
+* 0.1 -> 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&aacute;rez est&aacute;:';
+$title = '&iquest;C&oacute;mo est&aacute; el clima en Ju&aacute;rez?';
+
+$coldstring = 'frio.';                         //string for each temperature.
+$coolstring = 'fresco.';
+$temperatestring = 'templado.';
+$warmstring = 'c&aacute;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&aacute;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 = '<a href="'.$xml->lnks->link[0]->l.'">'.$xml->lnks->link[0]->t.'</a> &middot; ';
+                               $sponsors .= '<a href="'.$xml->lnks->link[1]->l.'">'.$xml->lnks->link[1]->t.'</a> &middot; ';
+                               $sponsors .= '<a href="'.$xml->lnks->link[2]->l.'">'.$xml->lnks->link[2]->t.'</a> &middot; ';   
+                               $sponsors .= '<a href="'.$xml->lnks->link[3]->l.'">'.$xml->lnks->link[3]->t.'</a>';             
+                               
+                               
+                               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 '<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
+?>
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+               <title><?php echo $title; ?></title>
+               <style type="text/css">
+                       *{
+                               padding: 0;
+                               margin: 0;
+                       }
+                       
+                       body{
+                       <?php
+                               if($now > $sunrise && $now < $sunset){
+                                       echo 'background-color:'.$daybackground.';';
+                               }else{
+                                       echo 'background-color:'.$nightbackground.';';
+                               }
+                       ?>
+                               font-family:Helvetica,Arial,sans-serif;
+                               <?php
+                               if($now > $sunrise && $now < $sunset){
+                                       echo 'color:'.$daymaincolor.';';
+                               }else{
+                                       echo 'color:'.$nightmaincolor.';';
+                               }
+                       ?>
+                       }
+                       
+                       #container{
+                               margin: auto;
+                               width: 400px;
+                               text-align:center;
+                               margin-top:200px;
+                       }
+                       
+                       #container p{
+                               font-size:4em;
+                               padding-left: 24px;
+                       }
+                       
+                       #container .rec{
+                               font-style: italic;
+                               font-size: .6em;
+                               letter-spacing: .1em;
+                               color: <?php echo $taglinecolor; ?>;
+                       }
+                       
+                       #container .cold{
+                               color: <?php echo $coldcolor?>;
+                       }
+                       #container .cool{
+                               color: <?php echo $coolcolor?>;
+                       }
+                       #container .temperate{
+                               color: <?php echo $temperatecolor?>;
+                       }
+                       #container .warm{
+                               color: <?php echo $warmcolor?>;
+                       }
+                       #container .hot{
+                               color: <?php echo $hotcolor?>;
+                       }
+                       
+                       #footer{
+                               color: #999;
+                               font-size: .6em;
+                               bottom: 0;
+                               left: 0;
+                               position: absolute;
+                               padding: 10px;
+                       }
+                       
+                       img{ border: 0; }
+                       a{ color: #1b95fb; }
+               </style>
+       </head>
+       <body>
+               <div id="container">
+               <span><?php echo $maintext; ?></span><br/>
+<?php
+                               
+/******************************
+* DANGER! DANGER!                        *
+*******************************
+* I guess the following part  *
+* is not that dangerous, but  *
+* make sure you know what     *
+* you're doing.               *
+*******************************/
+                               
+if($feelslike < $coldlimit){ echo '<p class="cold">'.$coldstring.'</p><span class="rec">'.$coldtagline.'</span>'; }
+else if($feelslike < $coollimit){ echo '<p class="cool">'.$coolstring.'</p><span class="rec">'.$cooltagline.'</span>'; }
+else if($feelslike < $temperatelimit){ echo '<p class="temperate">'.$temperatestring.'</p><span class="rec">'.$temperatetagline.'</span>'; }
+else if($feelslike < $warmlimit){ echo '<p class="warm">'.$warmstring.'</p><span class="rec">'.$warmtagline.'</span>'; }
+else{ echo '<p class="hot">'.$hotstring.'</p><span class="rec">'.$hottagline.'</span>'; }
+?>
+               </div>
+<!-- <div id="footer">
+Powered by: <a href="http://weather.com"><img src="TWClogo_31px.png" alt="The Weather Channel" /></a> Sponsored by: <?php echo $sponsors; ?>
+</div> -->
+       </body>
+</html>
\ No newline at end of file
diff --git a/jekyll/clima/rain.gif b/jekyll/clima/rain.gif
new file mode 100644 (file)
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 (file)
index 0000000..a566de9
--- /dev/null
@@ -0,0 +1,329 @@
+<?php
+/********************
+* Fuzzy Thermometer *
+* Ver 0.3           *
+* By Ben Beltran    *
+*********************/
+
+/******************************
+* CHANGELOG                                      *
+*******************************
+* 0.1 -> 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 = '<a href="'.$xml->lnks->link[0]->l.'">'.$xml->lnks->link[0]->t.'</a> &middot; ';
+                               $sponsors .= '<a href="'.$xml->lnks->link[1]->l.'">'.$xml->lnks->link[1]->t.'</a> &middot; ';
+                               $sponsors .= '<a href="'.$xml->lnks->link[2]->l.'">'.$xml->lnks->link[2]->t.'</a> &middot; ';   
+                               $sponsors .= '<a href="'.$xml->lnks->link[3]->l.'">'.$xml->lnks->link[3]->t.'</a>';             
+                               
+                               
+                               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 '<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+               <title>¿Cómo está el clima en Juárez?</title>
+               <style type="text/css">
+               *{
+                       padding: 0;
+                       margin: 0;
+               }
+               
+               body{
+                       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+                       text-align: center;
+                       <?php
+                               if($now > $sunrise && $now < $sunset){
+                                       echo 'background-color:'.$daybackground.';';
+                               }else{
+                                       echo 'background-color:'.$nightbackground.';';
+                               }
+                       ?>
+               }
+               
+               #container{
+                       width: 960px;
+                       margin: auto;
+                       text-align: left;
+               }
+               
+               h1{
+                       color: #c00;
+                       margin-top: 50px;
+                       margin-left: 200px;
+                       font-size: 3em;
+                       width: 410px;
+               }
+               </style>
+               <script type="text/javascript">
+                function draw(){
+                  var canvas = document.getElementById('theCanvas');
+                  var context = canvas.getContext('2d');                  
+                  var gradient;
+                       
+                       //DRAW THE SKYLINE
+                       gradient = context.createLinearGradient(0, 600, 0, 300);
+                               gradient.addColorStop(0, "rgb(255,255,255)");
+                               gradient.addColorStop(1, "rgb(240,240,240)");
+                               
+                       context.fillStyle = gradient;
+                       context.beginPath();
+                       context.moveTo(10,600);
+                       context.lineTo(10,535);
+                       context.lineTo(110,535);
+                       context.lineTo(110,550);
+                       context.lineTo(250,550);
+                       context.lineTo(250,500);
+                       context.lineTo(270,510);
+                       context.lineTo(270,500);
+                       context.lineTo(290,510);
+                       context.lineTo(290,500);
+                       context.lineTo(310,510);
+                       context.lineTo(310,500);
+                       context.lineTo(330,510);
+                       context.lineTo(330,450);
+                       context.lineTo(340,450);
+                       context.lineTo(340,510);
+                       context.lineTo(350,510);
+                       context.lineTo(350,470);
+                       context.lineTo(360,470);
+                       context.lineTo(360,510);
+                       context.lineTo(400,510);
+                       context.lineTo(400,340);
+                       context.lineTo(420,320);
+                       context.lineTo(440,320);
+                       context.lineTo(480,300);
+                       context.lineTo(520,320);
+                       context.lineTo(540,320);
+                       context.lineTo(560,340);
+                       context.lineTo(560,550);
+                       context.lineTo(600,550);
+                       context.lineTo(600,575);
+                       context.lineTo(625,560);
+                       context.lineTo(650,575);
+                       context.lineTo(675,560);
+                       context.lineTo(700,575);
+                       context.lineTo(725,560);
+                       context.lineTo(750,575);
+                       context.lineTo(775,560);
+                       context.lineTo(800,575);
+                       context.lineTo(800,500);
+                       context.lineTo(950,500);
+                       context.lineTo(950,600);
+                       context.fill();
+                       
+                       //DRAW THE BASELINE.
+                       context.strokeStyle = "rgb(96,96,96)";
+                       context.beginPath();
+                       context.moveTo(0,600);
+                       context.lineTo(960,600);
+                       context.stroke();
+                       
+                       
+                       <?php
+                       if($feelslike < $coldlimit){
+                                echo 'var tempText = "'.$coldstring.'";'."\n";
+                                echo 'var tempColor = "'.$coldcolor.'";'."\n";
+                       }else if($feelslike < $coollimit){ 
+                                echo 'var tempText = "'.$coolstring.'";'."\n";
+                                echo 'var tempColor = "'.$coolcolor.'";'."\n"; 
+                       }else if($feelslike < $temperatelimit){ 
+                                echo 'var tempText = "'.$regularstring.'";'."\n";
+                                echo 'var tempColor = "'.$regularcolor.'";'."\n";
+                       }else if($feelslike < $warmlimit){ 
+                                echo 'var tempText = "'.$warmstring.'";'."\n";
+                                echo 'var tempColor = "'.$warmcolor.'";'."\n"; 
+                       }else{ 
+                                echo 'var tempText = "'.$hotstring.'";'."\n";
+                                echo 'var tempColor = "'.$hotcolor.'";'."\n";
+                       }
+
+                       ?>
+
+                       drawTemperature(context,tempText,tempColor);
+                       
+                       
+                       <?php
+                       switch($sky){
+                       case 1:
+                               echo "drawSun(context);\n drawCloud(context);\n";
+                       break;
+                       case 2:
+                               echo "drawSun(context);\n drawCloud(context);\n drawRain(context);\n";
+                       break;
+                       default:
+                               echo "drawSun(context);\n";
+                               
+                       }
+                       ?>
+                  
+                 } 
+               
+               
+               //draws the "fuzzy" temperature.
+               function drawTemperature(context,tempString,tempColor){
+                       context.font = "10pt Helvetica";
+                       context.fillStyle = "rgb(101,101,101)";
+                       context.fillText("Juárez está:", 15, 595);
+                       context.fillStyle = tempColor;
+                       context.fillText(tempString, 92, 595);
+               }
+               
+               //function to draw the sun.
+               function drawSun(context){
+                       context.fillStyle = "rgb(96,96,96)";
+                       context.beginPath();
+                       context.arc(860,100,50,0,Math.PI*2,true);
+                       context.fill();
+               }
+               
+               //function to draw the rain
+               function drawRain(context){
+                       for(var i = 0;i<4;i++){
+                               for(var j = 0;j<2;j++){
+                                       context.strokeStyle = "rgb(96,96,96)";
+                                       context.beginPath();
+                                       context.moveTo(760+(i*40)-(j*40),180+(j*40));
+                                       context.lineTo(730+(i*40)-(j*40),210+(j*40));
+                                       context.stroke();
+                               }
+                       }
+               }
+               
+               //function to draw a cloud over the sun
+               function drawCloud(context){
+                       context.fillStyle = "rgb(255,255,255)";
+                       context.beginPath();
+                       context.arc(880,140,35,0,Math.PI*2,true);
+                       context.fill();
+                       context.beginPath();
+                       context.arc(840,130,45,0,Math.PI*2,true);
+                       context.fill();
+                       context.beginPath();
+                       context.arc(790,145,30,0,Math.PI*2,true);
+                       context.fill();
+                       context.beginPath();
+                       context.arc(800,110,35,0,Math.PI*2,true);
+                       context.fill();
+                       context.beginPath();
+                       context.arc(775,125,25,0,Math.PI*2,true);
+                       context.fill();
+               }
+               </script>
+       </head>
+       <body onload="draw();">
+       <div id="container">
+       <canvas id="theCanvas" width="960px" height="600px"></canvas>
+       </div>
+       </body>
+</html>
\ No newline at end of file
index 45821c95e639d3d19ca082fb543171b8dae384d2..63cbc08b005c27629b3ec13e6cb926580ca38e37 100644 (file)
@@ -11,7 +11,22 @@ layout: default
       Includes saccharine-based and boredom-based </em></p>
     <hr/>
     <ul>
       Includes saccharine-based and boredom-based </em></p>
     <hr/>
     <ul>
-      <li>Wait a sec.</li>
+      <li><strong><a href="/cerdoaleatorio">Cerdo Aleatorio</a>:
+        </strong> Imágen aleatoria de cerdo • <em> Displays a random pig
+      </em></li>
+      <li><strong><a href="/wooyay.php">Woo Yay!</a>:
+        </strong> Página para celebrar. • <em> Celebration page </em></li>
+      <li><strong><a href="/esposario">Esposario</a>:
+      </strong> Un esposo para cada semana. • <em> A husband a day </em></li>
+      <li><strong><a href="/gaby">Gaby #1</a>:
+      </strong> Medio de comuniación, incluye formato para dormir. •
+      <em> Communication, includes sleep format </em>
+      <li><strong><a href="/gaby/nyawnyawnyaw.php">Gaby #2</a>:
+      </strong> Llena un grid con varias cosas. •
+      <em> Fills a grid with miscelaneous stuff </em>
+      <li><strong><a href="/gabyodiaaben">Gaby #3</a>:
+      </strong> ¿Gaby odia a Ben?. •
+      <em> Does Gaby hate Ben? </em>
     </ul>
   </div>
 </div>
     </ul>
   </div>
 </div>
diff --git a/jekyll/juegos2009.html b/jekyll/juegos2009.html
new file mode 100644 (file)
index 0000000..45d68f9
--- /dev/null
@@ -0,0 +1,112 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+       <head>
+               <title>Juegos Pasados</title>
+               <style type="text/css">
+               *{
+                       padding: 0;
+                       margin: 0;
+               }
+               
+               body{
+                       font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+               }
+               
+               #container{
+                       width:2050px;
+                       text-align: left;
+               }
+               
+               h1{
+                       color: #c00;
+                       margin-top: 50px;
+                       margin-left: 200px;
+                       font-size: 3em;
+                       width: 410px;
+               }
+               </style>
+               <script type="text/javascript">
+                function draw(){
+                  var canvas = document.getElementById('theCanvas');
+                  var context = canvas.getContext('2d'); 
+                  
+                  var users = [
+                               ["Javier...",15],
+                               ["Chicholo",41],
+                               ["pavokun",15],
+                               ["Bortron",14],
+                               ["Guitarhard",12],
+                               ["Paco",51],
+                               ["Ogu",31],
+                               ["Socially Inept",25],
+                               ["Anonymous-San",9],
+                               ["xX AEVM Xx",11],
+                               ["Rocco93",10],
+                               ["Shingo Yabuki",24],
+                               ["Crizz_ToonZurfex",11],
+                               ["o0 IDA IK1NG 0o",4],
+                               ["Dgtlman",9],
+                               ["Angelical Taco",1],
+                               ["oscar011291",17],
+                               ["Jurgen2.0",4],
+                               ["Elcompaniero",3],
+                               ["Wastelandgamer",8],
+                               ["LgpMcFly",2],
+                               ["Oskar",4],
+                               ["lucasteh5th",18],
+                               ["Shava",1],
+                               ["Sens0",3],
+                               ["Leon-o",1],
+                               ["sau",2],
+                               ["Wakko",2],
+                               ["sarnoso",5],
+                               ["Anyki",1],
+                               ["Loose",26],
+                               ["Serial",11],
+                               ["Joe",25],
+                               ["Makusan",3],
+                               ["Roberto",4],
+                               ["Ghosth",1],
+                               ["Lufero",1],
+                               ["Anji",4],
+                               ["Ky3r0z",8],
+                               ["Kobo",1],
+                               ["Nightmare",30]
+                       ]
+                  var gradient;
+                  for(var i=0;i<=60;i+=10){
+                  
+                               context.strokeStyle = "rgb(225,225,225)";
+                               context.beginPath();
+                               context.moveTo(0,400-15-(i*5));
+                               context.lineTo(4100,400-15-(i*5));
+                               context.stroke();
+                  
+                  }
+                  
+                  for(var i = 0;i < users.length; i++){
+                  
+                               gradient = context.createLinearGradient(100*i, 400, 100*i, 400-(users[i][1]*5));
+                               gradient.addColorStop(0, "rgb(34,34,34)");
+                               gradient.addColorStop(1, "rgb(43,43,43)");
+                               
+                               context.fillStyle = gradient;
+                               context.fillRect (100*i,400-15-(users[i][1]*5),100,(users[i][1]*5)+15);
+                          
+                               context.font = "8pt Helvetica";
+                               context.fillStyle = "rgb(255,255,255)";
+                               context.fillText(users[i][0], (100*i)+5, 400-(users[i][1]*5));
+                               context.fillStyle = "rgb(204,0,0)";
+                               context.fillText("("+users[i][1]+")", (100*i)+5, 400-20-(users[i][1]*5));  
+                  }
+                  
+                 } 
+               </script>
+       </head>
+       <body onload="draw();">
+       <div id="container">
+       <h1>Juegos Pasados Per Capita. (2009)</h1>
+       <canvas id="theCanvas" width="4100px" height="400px"></canvas>
+       </div>
+       </body>
+</html>
\ No newline at end of file
diff --git a/jekyll/lolmustache.htm b/jekyll/lolmustache.htm
new file mode 100644 (file)
index 0000000..493f081
--- /dev/null
@@ -0,0 +1,14 @@
+<html>\r
+       <head>\r
+               <title>MUSTACHE!</title>\r
+       </head>\r
+       <body style="background-image:url(http://repper.studioludens.com/patterns/pattern_4E61AB3D-9F61-37BA-46C7-4CF1206DFB5F.jpg);text-align:center;">\r
+       <object type="application/x-shockwave-flash" width="1" height="1"\r
+               data="/zlad.swf">\r
+<param name="movie" \r
+value="/zlad.swf" />\r
+</object>\r
+\r
+       <h1 style="font-family:arial,sans-serif;font-weight:bold;display:block;width:600px;font-size:6em;margin:100px auto;color:white;text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -18px 18px #f20; ">MUSTACHE!</h1>\r
+       </body>\r
+</html>
\ No newline at end of file
diff --git a/jekyll/mesias.gif b/jekyll/mesias.gif
new file mode 100644 (file)
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 (file)
index 0000000..5b02f46
--- /dev/null
@@ -0,0 +1,34 @@
+<html>
+       <head>
+               <title>EL VIENE A SALVARNOS.</title>
+               
+               <script language="JavaScript">
+                       
+                       var speed=500;
+                       var count = 0;
+                       
+                       function dotimer()
+                       
+                       {
+                       
+                       count += 1;
+                       
+                       
+                       document.getElementById("counter").innerHTML=count;
+                       
+                       window.setTimeout("dotimer()",speed)
+                       
+                       }
+
+               </script>
+       </head>
+       <body onload="dotimer()" style="background-image:url(./mesias.gif);text-align:center;">
+       <object type="application/x-shockwave-flash" width="1" height="1"
+               data="/whatislove.swf">
+<param name="movie" 
+value="/whatislove.swf" />
+</object>
+
+       <h1 id ="counter" style="font-family:arial,sans-serif;font-weight:bold;display:block;width:600px;font-size:6em;margin:100px auto;color:white;text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -18px 18px #f20; ">0</h1>
+       </body>
+</html>
\ No newline at end of file
index 370cbb59121450c24ac3249257c2ad3c07b41dd8..def89bc68368e260894418b2099ad155fe435e8e 100644 (file)
@@ -48,6 +48,15 @@ layout: default
        gamers.</em>
        </li>
        <li><strong>Abuguet: </strong> It's complicated.</li>
        gamers.</em>
        </li>
        <li><strong>Abuguet: </strong> It's complicated.</li>
+      <li>
+        <strong><a
+            href="/cursoc">Curso Express de C</a>:</strong>
+        Curso Express de C basado en K&amp;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.
+      • <em>Express C course based on K&amp;R that I gave in Monterrey
+        Institute of Technology, Campus Ciudad Juarez. Only Labs 01-07
+        for now, will upload the rest soon.</em> </li>
     </ul>
   </div>
 </div>
     </ul>
   </div>
 </div>
diff --git a/jekyll/rosa/bluebg.png b/jekyll/rosa/bluebg.png
new file mode 100644 (file)
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 (file)
index 0000000..9d7d106
--- /dev/null
@@ -0,0 +1,81 @@
+<?php
+$db = mysql_connect("localhost","abuguet","CambiamE!!");
+mysql_select_db("abuguet");
+mysql_set_charset('utf8',$db); 
+?>
+<!DOCTYPE html>
+<html>
+<head>
+       <title>Generador de Episodios de la Rosa de Guadalupe</title>
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+       <style type="text/css">
+               *{margin: 0; padding: 0;}
+               body{
+                       background-image: url(bluebg.png);
+                       font-size: .625em;
+                       font-family: "Trebuchet MS", sans-serif;
+               }
+               #wrapper{
+                       width:460px;
+                       margin: 0 auto;
+               }
+               #header{
+                       display: block;
+                       background-image: url(proximoepisodio.png);
+                       height: 147px;
+               }
+               
+               #header span{ display: none; }
+               
+               #episodio{
+                       border-radius: 5px;
+                       border: 1px solid #757d83;
+                       box-shadow: 0 2px 0 #bdd7e6;
+                       font-size: 1.8em;
+                       color: #000;
+                       background-image: url(whitebg.png);
+               }
+               
+               #episodio p{
+                       margin: 10px;
+               }
+               
+               #refresh{
+                       font-size: 1.4em;
+                       color: #6a8294;
+                       text-shadow: 0 1px 0 #c0d7e5;
+                       text-align: center;
+                       margin-top: 10px;
+               }
+       </style>
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-20018878-2']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+
+</script>
+</head>
+<body>
+       <div id="wrapper">
+               <a href="/" id="header"><span>En el proximo episodio de la rosa de guadalupe</span></a>
+               <div id="episodio"><p>
+               <?php
+                       $nombre = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'nombre' order by rand() limit 1"))or die(mysql_error());
+                       $causa = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'causa' order by rand() limit 1"));
+                       $tema = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'tema' order by rand() limit 1"));
+                       $efecto = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'efecto' order by rand() limit 1"));
+                       $familiar = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'familiar' order by rand() limit 1"));
+                       printf("<strong>%s</strong> Hizo <strong>%s</strong> porque su <strong>%s</strong> <strong>%s</strong>. La tratan de violar, se da cuenta que <strong>%s</strong> es <strong>%s</strong>, y la virgencita le ayuda a sobresalir.", $nombre[1], $tema[1], $familiar[1], $causa[1], $tema[1], $efecto[1]);
+               ?>                      
+               </p></div>
+               <div id="refresh">Refresca para más</a>
+       </div>
+</body>
+</html>
\ No newline at end of file
diff --git a/jekyll/rosa/proximoepisodio.png b/jekyll/rosa/proximoepisodio.png
new file mode 100644 (file)
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 (file)
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 (file)
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 (file)
index 0000000..0adad2e
Binary files /dev/null and b/jekyll/zlad.swf differ