Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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 "rubygems" | |
require "google_calendar" | |
require "date" | |
require "prime" | |
# Create an instance of the calendar. | |
cal = Google::Calendar.new(:client_id => "foo" | |
:client_secret => "bar", | |
:calendar => "blee", |
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
;; This is at: https://gist.github.com/8655399 | |
;; So we want a rhyming dictionary in Clojure. Jack Rusher put up | |
;; this code here: | |
;; | |
;; https://gist.github.com/jackrusher/8640437 | |
;; | |
;; I'm going to study this code and learn as I go. | |
;; | |
;; First I put it in a namespace. |
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
# MAC manipulators | |
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
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
var stateToAP = function(state) { | |
var STATES = [ | |
["Alabama", "AL", "Ala.", 1], | |
['Alaska', "AK", "Alaska", 2], | |
["Arizona", "AZ", "Ariz.", 4], | |
["Arkansas", 'AR', "Ark.", 5], | |
["California", "CA", "Calif.", 6], | |
["Colorado", "CO", "Colo.", 8], | |
["Connecticut", "CT", "Conn.", 9], | |
["Delaware", "DE", "Del.", "10"], |