- AppleScript
- bash
- Clojure
- ClojureScript
- CoffeeScript
- Datalog
- Elixir
- Elm
- Erlang
- Filemaker Pro
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'twitter' | |
require 'json' | |
require 'faraday' | |
# things you must configure | |
TWITTER_USER = "you" | |
# get these from dev.twitter.com |
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
#!/usr/bin/env ruby | |
# Modified from https://gist.github.com/robinsloan/3688616 | |
# This version will nuke your entire twitter history past a certain threshold. | |
# It requires you to download your archive from twitter and put "tweets.csv" | |
# in the same directory as this script. | |
require 'rubygems' | |
require 'twitter' | |
require 'json' | |
require 'faraday' | |
require 'csv' |
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
$.fn.googleMap = function(address, options) { | |
var defaults = { | |
zoom: 14, | |
mapTypeId: google.maps.MapTypeId.HYBRID | |
} | |
options = $.extend(defaults, options || {}); | |
var map = new google.maps.Map(this[0], $.extend(options, { | |
center: new google.maps.LatLng(44.081996, -123.0286928), | |
})); |
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
require 'time' | |
require 'date' | |
STAMP = "2009/06/29 23:19:35 +0000" | |
class Time | |
def self.parse_utc(string) | |
string =~ /(\d{4})\/(\d{2})\/(\d{2}) (\d{2}):(\d{2}):(\d{2})/ | |
utc($1, RFC2822_MONTH_NAME[$2.to_i - 1], $3, $4, $5, $6) | |
end |
In 10 steps:
- Update iTunes to 8.2 via Software Update
- Update your iPhone to the 3.0 release (out today - June 17th)
- Download this dmg and mount it: tethering file
- Enable hidden carrier testing option (in Terminal.app): defaults write com.apple.iTunes carrier-testing -bool TRUE
- Start up iTunes
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
def note_to_freq( note_num ) | |
base_note_num = note_num - 69 | |
440.0 * Math.exp( 0.057762265 * ( note_num - 69 ) ) | |
end | |
60.upto(72) {|n| puts note_to_freq(n) / note_to_freq(60) } | |
1.0 | |
1.05946309430986 # 61, C# | |
1.12246204820462 # 62, D | |
1.18920711483625 # 63, D# |