Skip to content

Instantly share code, notes, and snippets.

View bradurani's full-sized avatar

Brad Urani bradurani

View GitHub Profile
(Chapters marked with * are already written. This gets reorganized constantly
and 10 or so written chapters that I'm on the fence about aren't listed.)
Programmer Epistemology
* Dispersed Cost vs. Reduced Cost
* Verificationist Fallacy
* Mistake Metastasis
The Overton Window
Epicycles All The Way Down
The Hyperspace Gates Were Just There

A future version of Ember will come with a new templating engine known as HTMLBars.

The original motivation for HTMLBars was to allow helpers and properties to have better contextual information about what they were bound to.

So for example, consider a template like this:

<a href="{{url}}">{{link}}</a>
@terribleplan
terribleplan / prettyjsonandp.php
Last active December 25, 2015 17:59
This /should/ parse json(p) into a nice readable format
#!/usr/bin/env php
<?php
print("\n");
//read from stdin
$rawdata = fgets(STDIN);
//pull out the callback from a jsonp request
$temp = explode('(', $rawdata, 2);
//check if the response is jsonp or not
$callback = false;
@afeld
afeld / gist:5704079
Last active November 27, 2023 15:43
Using Rails+Bower on Heroku