Skip to content

Instantly share code, notes, and snippets.

View sydlawrence's full-sized avatar

Syd Lawrence sydlawrence

View GitHub Profile
/*
* (c) 2011 Dominik Schmidt <domme@tomahawk-player.org>
*/
var DummyResolver = Tomahawk.extend(TomahawkResolver,
{
settings:
{
name: 'Dummy Resolver',
weight: 75,
@sydlawrence
sydlawrence / update-link.html
Created August 9, 2011 09:59 — forked from anonymous/update-link.html
Add this to your site to help us spread the word about Update 2011
(function () {
var v = 0,
q = [],
o = {},
s = {},
A = {
"<": "lt",
">": "gt",
"&": "amp",
'"': "quot",
(function () {
var v = 0,
q = [],
o = {},
s = {},
A = {
"<": "lt",
">": "gt",
"&": "amp",
'"': "quot",
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}