Skip to content

Instantly share code, notes, and snippets.

View mutewinter's full-sized avatar

Jeremy Mack mutewinter

View GitHub Profile
@tomdale
tomdale / logger.js
Last active August 29, 2015 14:02
Excerpt of the formatted, hierarchical logger in Skylight
/*
Example usage:
import logger from "app/system/logger";
var LOG = logger.loggerFor("topic"');
LOG.log({
event: "data received",
secondary: {
resource: "photo",
@krisselden
krisselden / test_helpers.js
Created June 6, 2014 20:14
pretender helper for qunit-bdd
var pretender;
export function server(dsl) {
if (pretender) {
dsl.call(pretender);
return pretender;
}
pretender = new Pretender(dsl);
pretender.unhandledRequest = function (verb, path, request) {
fail("Pretender intercepted "+verb+" "+path+" but no handler was defined for this type of request");
throw new Error("Pretender intercepted "+verb+" "+path+" but no handler was defined for this type of request");
@klaascuvelier
klaascuvelier / userstyle.css
Created June 4, 2015 22:31
flowdock-userstyle
.bubble.thread {
opacity: 0.65;
}
.bubble.green {
border-color: #9554D2 !important;
color: #9554D2 !important;
fill: #9554D2 !important;
}
@ajc308
ajc308 / podcasts.md
Last active September 3, 2015 15:01
AJC's Podcasts
# Podcast Title Update Frequency Genre(s) About AJC Note
1 Above & Beyond Group Therapy Weekly Trance, Progressive Two hour mix, guest mix for last 30 minutes. Great for uplifting, energetic and feel-good trance. There's not much better than putting this podcast on and driving with the windows down on a beautiful day.
2 Adam Beyer presents Drumcode Weekly Techno Pounding, driving techno mixes that are usually a 1 hour cut from a live set he did that week/month. Adam Beyer is the techno king. If you haven't been exposed to much techno, this is a great crash course.
3 Avicii - Levels Podcast Monthly House, Progressive Monthly podcast from Avicii frequently disp
@sebastianseilund
sebastianseilund / merged_array.js
Last active December 20, 2015 07:58
An implementation of a merged array in Ember.js that combines items from multiple source arrays so you can easily list them together in your Handlebars templates. Read the blog post at the [Billy's Billing Developer Blog](http://dev.billysbilling.com/blog/How-to-merge-multiple-data-sources-into-one-array-in-Ember-js)
/**
* `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes
* all items from all source arrays in an efficient way.
*
* Usage:
*
* ```javascript
* var obj = Ember.Object.create({
* people: [
* {

Merging Pull Requests

If possible, interactively rebase your feature branch against master before merging, and condense your work-in-progress commits to clean, single-purpose commits.

Prereq: install git-up

git up
git checkout 
@aortbals
aortbals / checkStatus.js
Last active April 4, 2017 21:30
Check the status of a fetch response
/**
* Check the status of a fetch response.
*/
export default function checkStatus(response) {
if (response.ok) {
return response;
}
const error = new Error(response.statusText);
error.response = response;
@osteslag
osteslag / IR_Black.dvtcolortheme
Created February 20, 2011 10:54
IR_Black theme for Xcode 4, based on IR_Black for Xcode 3 by David Zhou, based on IR_Black for TextMate by Todd Werth. See links in comments below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0.811765 0.796078 0.564706 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Inconsolata - 16.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@mutewinter
mutewinter / FantasticReminders.md
Last active May 27, 2018 06:12
Fantastic Reminders - An Alfred Workflow to Add Reminders to Reminders.app via Fantastical

Workflow icon Fantastic Reminders

Alfred Workflow to add reminders to Reminders via Fantastical's amazing natural language processing.

Usage

r put laundry in dryer in 35 min
r wake up at 6:30am every day
r party on 1/1/2025 at 12am
@tomdale
tomdale / local-storage-array.js
Created April 28, 2014 02:12
Ember Array that writes every change to localStorage
export default Ember.ArrayProxy.extend({
localStorageKey: null,
init: function() {
var localStorageKey = this.get('localStorageKey');
if (!localStorageKey) {
throw new Error("You must specify which property name should be used to save " + this + " in localStorage by setting its localStorageKey property.");
}