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
// See http://alexmarandon.com/articles/web_widget_jquery/ | |
(function() { | |
// Localize jQuery variable | |
var jQuery; | |
var remoteJquery = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'; | |
var localJquery = 'static/js/jquery-1.6.4.min.js'; | |
/** |
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 | |
$apiKey = 'foo123bar'; | |
$username = 'you@domain.com'; | |
$password = 'yourpassword'; | |
$check = 123; | |
// Init cURL | |
$curl = curl_init(); | |
// Set target URL | |
curl_setopt($curl, CURLOPT_URL, 'https://api.pingdom.com/api/2.0/checks/'.$check); |
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
Show hidden characters
[ | |
{ | |
"keys": ["ctrl+w"], | |
"command": "toggle_setting", | |
"args": | |
{ | |
"setting": "word_wrap" | |
} | |
}, | |
{ |
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
iPhone OS 6(?:(?:.|\n|\r)*)Safari | |
Mobile Safari | |
Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X) | |
AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A523 | |
Safari/8536.25 | |
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
alias ls="ls -lFa" | |
alias checkout="git checkout" | |
alias co="git commit -v" | |
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gs="git status -s" | |
alias pull="git pull" | |
alias push="git push" | |
alias up="vagrant up" | |
alias myip="curl ifconfig.me" |
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
~$ ping google.com | |
PING google.com (173.194.32.6): 56 data bytes | |
64 bytes from 173.194.32.6: icmp_seq=0 ttl=48 time=9.125 ms | |
64 bytes from 173.194.32.6: icmp_seq=1 ttl=48 time=8.574 ms | |
^C | |
--- google.com ping statistics --- | |
2 packets transmitted, 2 packets received, 0.0% packet loss | |
round-trip min/avg/max/stddev = 8.574/8.849/9.125/0.276 ms | |
~$ ping www.glesys.com | |
PING www.glesys.com (79.99.6.7): 56 data bytes |
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
> db.mydocs.find({_id: {$in: [ObjectId("51be3ca24cc1682a13000003"), ObjectId("51be3c3b2799560d13000003")]}}).sort({'published': 1}).explain(); | |
{ | |
"cursor" : "BtreeCursor _id_ multi", | |
"nscanned" : 2, | |
"nscannedObjects" : 2, | |
"n" : 2, | |
"scanAndOrder" : true, | |
"millis" : 0, | |
"nYields" : 0, | |
"nChunkSkips" : 0, |
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
/Library/Ruby/Gems/1.8/gems/ultrahook-0.1.1/lib/ultrahook/client.rb:37:in `start': undefined method `home' for Dir:Class (NoMethodError) | |
from /Library/Ruby/Gems/1.8/gems/ultrahook-0.1.1/bin/ultrahook:6 | |
from /usr/bin/ultrahook:23:in `load' | |
from /usr/bin/ultrahook:23 |
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
/** | |
* Check whether we have the legacy or universal lib available | |
* | |
* https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs | |
* | |
*/ | |
if(typeof _gaq !== 'undefined') { | |
console.log('ga.js'); // or via GTM? | |
} | |
else if(typeof ga !== 'undefined') { |
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
curl http://hawttrends.appspot.com/api/terms/ | jq '.["42"]' |