- Hookshot
- Adblock
// Extend Ember.Route to add support for sensible | |
// document.title integration. | |
Ember.Route.reopen({ | |
// `titleToken` can either be a static string or a function | |
// that accepts a model object and returns a string (or array | |
// of strings if there are multiple tokens). | |
titleToken: null, |
June 7-8, 2013
Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
Ping me @cheeaun on Twitter if you found some awesome stuff for #rdrc. This gist will be updated whenever there's new stuff.
Previously, on RedDotRubyConf 2012
var fs = require( "fs" ), | |
request = require( "request" ), | |
xml2js = require( "xml2js").parseString, | |
exec = require( "child_process" ).exec, | |
pages = [1, 2, 3, 4, 5, 6, 7], | |
team = "core"; | |
pages.forEach(function(page) { | |
request.get("http://jquery.org/updates/category/" + team + "/feed/atom/?paged=" + page, function(request, response, body) { | |
xml2js(body, {explicitArray: false}, function( err, result ) { |
<!-- Raven.js Config --> | |
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Ignore list based off: https://gist.github.com/1878283 | |
var ravenOptions = { | |
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion. | |
// See: https://github.com/getsentry/raven-js/issues/73 | |
ignoreErrors: [ | |
// Random plugins/extensions | |
'top.GLOBALS', |
This bookmarklet toggles between HackerNews pages and Cheeuan's HackerWeb interface. If you're not on either then it acts a a bookmark to HackerWeb.
If you edit this, use something like bookmarkleter to convert it into a bookmarklet.
if ( /https?:\/\/news\.ycombinator\.com\/item\?id=(\d+)/.test(location) ) {
location = 'http://cheeaun.github.io/hackerweb/#/item/' + RegExp.$1;
<figure class="quote"> | |
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote> | |
</figure> |
var dateUtil = function () { | |
var monthDict = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
return { | |
time: function (date) { | |
var hour = date.getHours(), | |
min = date.getMinutes() + "", | |
ampm = 'AM'; | |
if (hour == 0) { | |
hour = 12; |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: