Skip to content

Instantly share code, notes, and snippets.

View spadgos's full-sized avatar
🕶️
I will be slow to respond, if at all.

Nick Fisher spadgos

🕶️
I will be slow to respond, if at all.
View GitHub Profile
@spadgos
spadgos / gist:1427918
Created December 3, 2011 19:38
Broken lift
Disclaimer: We are not affiliated with GitHub in any way!
Random Hacks of Kindness Berlin, Dec 2011 #RHoKbln
Project: Broken Lifts
Next steps:
Backend team
create database with static data
@spadgos
spadgos / gist:1853227
Created February 17, 2012 12:45
Sublime settings
{
"caret_style": "phase",
"color_scheme": "Packages/User/Nonokai.tmTheme",
"default_new_file_syntax": "Packages/Javascript/Javascript.tmLanguage",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
@spadgos
spadgos / gist:2561726
Created April 30, 2012 19:19
Recreating a SoundManager bug
<html>
<head>
<title>Soundmanager test</title>
<!-- you'll have to correct the paths to SoundManager to get it working for yourself -->
<script src="vendor/soundmanager/soundmanager2-nodebug.js"></script>
</head>
<body>
<button>Start test</button>
@spadgos
spadgos / gist:2761737
Created May 21, 2012 10:29
A check to see if augment.js is required
var methods = {
'every': Array.prototype.every,
'filter': Array.prototype.filter,
'forEach': Array.prototype.forEach,
'indexOf': Array.prototype.indexOf,
'isArray': Array.isArray,
'lastIndexOf': Array.prototype.lastIndexOf,
'map': Array.prototype.map,
'reduce': Array.prototype.reduce,
'reduceRight': Array.prototype.reduceRight,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
<snippet>
<content><![CDATA[
${1:return }${2:ParentClass}.prototype.${3:method}.apply(this, arguments);
$0
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>super</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
@spadgos
spadgos / gist:3508685
Created August 29, 2012 08:45
pacmd, list-sinks output
$ pacmd
Welcome to PulseAudio! Use "help" for usage information.
>>> list-sinks
1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
@spadgos
spadgos / Default (Linux).sublime-keymap
Created October 17, 2012 08:19
Three window split in SublimeText
{
"keys": ["alt+shift+6"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 2], [1, 0, 2, 1],
@spadgos
spadgos / SublimeLinter.sublime-settings
Created November 29, 2012 17:09
sublimelint.json
{
"csslint_options": {
"adjoining-classes": false
},
"jshint_options": {
"asi": false,
"bitwise": true,
"boss": false,
"browser": true,
"curly": true,
@spadgos
spadgos / gist:4697069
Created February 2, 2013 12:24
Get your SoundCloud likes as a .pls file (Paste this in the console on soundcloud.com)
$.getJSON('e1/me/track_likes.json?limit=200').done(function (likes) {
var list = likes.map(function (like, i) {
i++;
var sound = like.track;
return [
'File' + i + '=' + sound.stream_url + "?client_id=" + require('config').get('client_id'),
'Title' + i + '=' + sound.title,
'Length' + i + '=' + Math.round(sound.duration / 1000)
].join('\n');