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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Directions Example</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js"></script> | |
<script type="text/javascript"> | |
//Ask for HTML5 geolocation, use Modernizr to detect if we can even do it. If allow, go to show_map, if deny go to handle_error. Please note the High Accuracy flag, which may cause the location fix to take longer, but it gives a more precise reading | |
function get_location() { | |
if (Modernizr.geolocation) { | |
navigator.geolocation.getCurrentPosition(show_map, handle_error, {maximumAge: 75000, enableHighAccuracy: true}); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>WifiSMS</title> | |
<link rel="apple-touch-icon-precomposed" href="touch-icon-iphone.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="touch-icon-ipad.png" /> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="touch-icon-iphone4.png" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=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
//Robbie's handy dandy, super annoying, Twitter Streaming API To IRC bot! | |
//Just change all the settings to your liking. You could also repurpose this to send to places other then IRC | |
//npm install jerk twitter-node | |
var TwitterNode = require('twitter-node').TwitterNode, | |
jerk = require('jerk') | |
, sys = require('sys') | |
var options = | |
{ server: 'irc.freenode.net' | |
, nick: 'RobbieBot' |
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
{ | |
"available_phone_numbers": [ | |
{ | |
"friendly_name": "(206) 673-5364", | |
"phone_number": "+12066735364", | |
"latitude": "47.610000", | |
"longitude": "-122.330000", | |
"region": "WA", | |
"postal_code": "98154", |
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
Array | |
( | |
[+12066735364] => 256 | |
[+13133347800] => 256 | |
[+17035968708] => 256 | |
[+17035968704] => 256 | |
[+17035968750] => 256 | |
[+17035968785] => 256 | |
[+17035968841] => 256 | |
[+17035968702] => 256 |
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
var http = require('http'); | |
var new_url; | |
var new_json; | |
var data; | |
var chunk; | |
function unshorten(url1) { | |
longurl = http.createClient(80, 'api.longurl.org'); | |
request = longurl.request('GET', "/v2/expand?format=json&url=" +escape(url1), | |
{'host': 'api.longurl.org','User-Agent': 'tweetfixer/1.0'}); | |
request.end(); |
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
<?xml version="1.0"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd http://www.google.com/kml/ext/2.2 http://code.google.com/apis/kml/schema/kml22gx.xsd"> | |
<Document id="BART04282011"> | |
<author> | |
<name>Bay Area Rapid Transit District</name> | |
</author> | |
<link href="http://api.bart.gov/kml/"/> | |
<name>BART System</name> | |
<Snippet>BART system KML including station locations, station entrances, and approximate track layout.</Snippet> | |
<Folder id="Routes"> |
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
robbie-trenchenys-imac ओम् ~/Repos/messagefly/node_modules/hook.io-irc:(4d2h32m|git@master!) | |
1291 ± node bin/irc ✭ | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: ECONNREFUSED, Connection refused | |
at Socket._onConnect (net.js:601:18) | |
at IOWatcher.onWritable [as callback] (net.js:186:12) | |
robbie-trenchenys-imac ओम् ~/Repos/messagefly/node_modules/hook.io-irc:(4d2h32m|git@master!) |
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
TRIM can be enabled by using the following Terminal commands. Copy these commands and run them in Terminal: | |
Backup the file that you’re about to patch: | |
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original | |
Patch the file to enable TRIM support: | |
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage |
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
When running: | |
t timeline @robbie --csv --number 3000 | |
I get: | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:1060:in `request': undefined method `closed?' for nil:NilClass (NoMethodError) | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:772:in `get' | |
from /Library/Ruby/Gems/1.8/gems/faraday-0.8.0/lib/faraday/adapter/net_http.rb:70:in `perform_request' | |
from /Library/Ruby/Gems/1.8/gems/faraday-0.8.0/lib/faraday/adapter/net_http.rb:35:in `call' |