- The Honest Truth About Dishonesty (Radiolab?)
- An Economist Gets Lunch
- Exit Voice and Loyalty - A O Hischman
- The Rook - Kevin O'Malley. Dad recommends.
- 14 Minutes - Alberto Salazar (distance runner. NYorker article)
- Monkey Love - by Robert S. on Radiolab
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
#!/usr/local/bin/node | |
var not = {}; | |
function printCatch (name) { | |
try { | |
console.log(eval(name)); | |
} catch (e) { | |
console.log("whoops, that isn't defined yet"); | |
setTimeout(printCatch.bind(undefined, name), 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
function getTemplateAsync (templateName) { | |
var dfd = $q.defer(); | |
var template = $templateCache.get(templateName); | |
if (!template) { | |
$http.get(templateName).success(function (data) { | |
$templateCache.put(templateName); | |
dfd.resolve(data); | |
}); |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
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
// given the markup: <a href="#hashtag" feature-flag="phaseTwo" class="whatevs-yo">don't click</a> | |
// and the task to "retire" feature flag settings from the markup (ie B-03572) | |
// grunt feature --retire=phaseTwo | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
dom_munger: { | |
feature_flags: { | |
src: ['path/to/views'], | |
options: { | |
callback: function($, file) { |
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
'use strict'; | |
class NavbarCtrl { | |
constructor ($log) { | |
$log.log('simplistic example'); | |
} | |
} | |
NavbarCtrl.$inject = ['$log']; |
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
$ cat ~/.gitconfig | |
[gui] | |
recentrepo = C:/buildium/src/buildiumcode | |
[user] | |
email = ben.jacobs@buildium.com | |
name = Ben Jacobs | |
[core] | |
editor = vim | |
autocrlf = false | |
[push] |
Web and Mobile Developer
815 West Princeton Ave / Fresno, CA 93705
(559) 286 - 5662
benmillerj@gmail.com
- A web and mobile developer comfortable working in a variety of platforms such as PHP, HTML5, Javascript, jQuery, Objective-C, Delphi, SQL, MongoDB, Joomla Framework, and Symfony Framework
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
# http://www.goodreads.com/book/title.xml?author=Roberto+Bola%C3%B1o&key=Iz76TB8T47u8g4T90VKg&title=Savage+Detectives&format=json | |
body = urllib.urlencode({ 'author' : 'Karen Russel', 'title' : 'Swamplandia', 'format' : 'json' }) | |
response, content = client.request('%s/book/title.xml' % url, | |
'GET', body, headers) | |
body = urllib.urlencode({'name': 'read', 'book_id': 8584686}) | |
headers = {'content-type': 'application/x-www-form-urlencoded'} | |
response, content = client.request('%s/shelf/add_to_shelf.xml' % url, |
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
import oauth2 as oauth | |
import urlparse | |
url = 'http://www.goodreads.com' | |
request_token_url = '%s/oauth/request_token/' % url | |
authorize_url = '%s/oauth/authorize/' % url | |
access_token_url = '%s/oauth/access_token/' % url | |
consumer = oauth.Consumer(key='Your-GoodReads-Key', | |
secret='Your-GoodReads-Secret') |
OlderNewer