This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>My FB Reactions Page</title> | |
| <style> | |
| html { | |
| box-sizing: border-box; | |
| width: 100%; |
This file contains hidden or 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 | |
| UP=$(/etc/init.d/mysql status | grep running | grep -v not | wc -l); | |
| ServerName=$(hostname -f) | |
| if [ "$UP" -ne 1 ]; | |
| then | |
| echo "MySQL: se murio el hijo de puta! :@"; | |
| service mysql restart | |
| mail -s "MySQL quiere revivir! ($UP) $ServerName" maitret@myhostmx.com <<< "Estatus de MySQL en $ServerName: $UP" | |
| else | |
| echo "Al parecer todo anda sobre ruedas :D"; |
This file contains hidden or 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 | |
| // Server file | |
| class PushNotifications { | |
| // (Android)API access key from Google API's Console. | |
| private static $API_ACCESS_KEY = 'AI........'; | |
| // (iOS) Private key's passphrase. | |
| private static $passphrase = 'EL_PASS_QUE_PUSISTE_EN_EL_PEM'; | |
| // (Windows Phone 8) The name of our push channel. | |
| private static $channelName = "bla_bla"; |
This file contains hidden or 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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <!-- | |
| This is an example that shows how to create an application that uses | |
| an embedded sqlite database | |
| in a mobile device (iphone,ipod,ipad,android using phonegap, jquery | |
| and sqlite. |
This file contains hidden or 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 | |
| /* Getting a JSON Facebook Feed | |
| ========================================================================== | |
| 1. Sign in as a developer at https://developers.facebook.com/ | |
| 2. Click "Create New App" at https://developers.facebook.com/apps | |
| 3. Under Apps Settings, find the App ID and App Secret |
This file contains hidden or 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
| // LOAD AJAX PAGES | |
| function loadURL(url, container) { | |
| $.ajax({ | |
| type: "GET", | |
| url: url, | |
| dataType: 'html', | |
| cache: true, | |
| beforeSend: function(){ | |
| container.html('<h1><i class="fa fa-cog fa-spin"></i> Loading...</h1>').fadeIn('fast'); | |
| }, |
This file contains hidden or 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
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
This file contains hidden or 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 geocode($lugar){ | |
| $lugarSanizado = str_replace (" ", "+", $lugar); | |
| $urlBase = "http://maps.googleapis.com/maps/api/geocode/json?address=" . $lugarSanizado . "&sensor=false"; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $urlBase); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| $result = json_decode(curl_exec($ch), true); |
This file contains hidden or 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
| /* | |
| Ratings Stars | |
| (with as little code as possible) | |
| */ | |
| .rating { | |
| unicode-bidi: bidi-override; | |
| direction: rtl; | |
| text-align: center; | |
| } | |
| .rating > span { |
NewerOlder