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
require.paths.unshift(__dirname + '/modules', __dirname + '/lib/node', __dirname); | |
var express = require('express'); | |
var app = module.exports = new express.Server(); | |
app.configure(function() { | |
app.use(express.cookieDecoder()); | |
app.use(express.session()); | |
}); |
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
LOAD DATA INFILE '/path/to/file' IGNORE INTO TABLE data.timeseries FIELDS TERMINATED BY ',' ENCLOSED BY '"' IGNORE 1 LINES; |
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
.reject { |key, value| columns.map(&:name).include?(key) }.keys |
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
def ruby_in_btv | |
"Awesome" | |
end | |
test "ruby_in_btv" | |
assert_equal "Awesome", ruby_in_btv | |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Tomorrow Night.tmTheme", | |
"draw_white_space": "all", | |
"tab_size": 2, | |
"theme": "Soda Light.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"font_face": "monaco", | |
"font_size": 12 | |
} |
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
class RepoController < UIViewController | |
def viewDidLoad | |
@data = [] | |
BW::HTTP.get("https://api.github.com/users/gristmill/repos") do |response| | |
json = BW::JSON.parse(response.body.to_str) | |
json.each do |j| | |
@data << { name: j["full_name"], watchers: j["watchers_count"] } | |
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
$ -> |
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
Original Gravity: 1.055 | |
Final Gravity: 1.014 | |
Primary: ~67 Degrees F 12 days | |
Secondary: 2 Weeks w/ 1 ounce of Whole Leaf Cascade | |
IBU: 40 | |
Yeast: Wyeast 1332 | |
9.0 lbs Pale Malt | |
1.0 lbs Crystal 60L |
OlderNewer