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>Population Projection</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> |
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 -wKU | |
require 'optparse' | |
dictionary = '/usr/share/dict/words' | |
OptionParser.new do |opts| | |
opts.banner = 'Usage: anagram [ options ] word...' | |
opts.on('-d', '--dict path', String, 'Path to dictionary') do |dict| |
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([ | |
"namespace", | |
// Libs | |
"jquery", | |
"use!backbone", | |
// Modules | |
"modules/example" | |
], |
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([ | |
"namespace", | |
// Libs | |
"jquery", | |
"use!backbone", | |
// Modules | |
"modules/example" | |
], |
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
/* | |
CSS3 Penner Easing equations taken from Ceaser (http://matthewlein.com/ceaser/) | |
Note: easeInBack, easeOutBack, and easeInOutBack are not supported in older versions | |
of Webkit. For a fix please visit the Ceaser page. | |
*/ | |
define(function() { | |
return { |
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
// Routes | |
var count = 100; | |
app.get('/', function(req, res) { | |
res.send('Welcome to the Pickle Store!'); | |
}); | |
app.get('/pickles', function(req, res) { | |
res.json({ |
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 app = require('express').createServer(); | |
var http = require('http'); | |
var token = 'xxxxxxxxxxxxxxxx'; | |
var projectID = 'xxxxxxxxx'; | |
app.get('/', function(req, res) { | |
res.send('index page!'); | |
}); | |
app.get('/project', function(req, res) { |
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 player = { | |
state: undefined, | |
states: { | |
base: { | |
initialize:function(target) { | |
this.target = target; | |
}, | |
enter: function() { | |
// Implement me in your state objects | |
}, |
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
function Car() { | |
} | |
Car.prototype.start = function() { | |
console.log('vroom vroom!'); | |
} | |
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 'mechanize' | |
# Create a new instance of Mechanize and grab our page | |
agent = Mechanize.new | |
page = agent.get('http://robdodson.me/blog/archives/') | |
# Find all the links on the page that are contained within | |
# h1 tags. | |
post_links = page.links.find_all { |l| l.attributes.parent.name == 'h1' } |
OlderNewer