Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
@adamgit
adamgit / .gitignore
Last active April 8, 2024 12:58
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@burke
burke / x.md
Created December 4, 2012 22:31
Dealing with Github notifications

Or, How I took back my inbox

I've been getting a lot of Github notifications lately. Between work at Shopify, development on Zeus, and all the little things in between, my inbox usually has about 50 github notifications in it.

This is a little annoying.

The problem is, I care about most of those notifications the moment they happen, but I don't interact with them as emails -- I go to github as soon as I get the email and deal with it there. Most of my other email, I don't care so much about it immediately, but it's fairly important that I actually read them eventually. What this tends to cause is a flood of unread notification emails drowning out the important stuff, which I end up ignoring if it falls off the first page.

The solution to this problem for me ended up being really trivial (I didn't even have to code anything!)

// require our new directive
var resolveSprockets = require(__dirname + '/resolve-sprockets.js');
// set files to the array that we got back
var files = resolveSprockets('spec.js.coffee');
// Here goes the rest as usual
@blitline-dev
blitline-dev / watermark_crop.json
Created April 22, 2013 15:30
Watermark+Crop Example
{
"application_id":"YOUR_APP_ID",
"src":"http://cdn.blitline.com/filters/boys.jpeg",
"functions":[
{
"name":"annotate",
"params":{
"text":"Example",
"x":5,
"y":5,

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@willurd
willurd / web-servers.md
Last active April 26, 2024 18:00
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@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: [
* {
@manufaktor
manufaktor / application.js
Last active December 23, 2015 08:19
Custom events with ember.js and hammer.js
App = Ember.Application.create({
customEvents: {
swipeLeft: 'swipeLeft',
swipeRight: 'swipeRight',
swipeLeftTwoFinger: 'swipeLeftTwoFinger',
swipeRightTwoFinger: 'swipeRightTwoFinger',
dragDown: 'dragDown',
dragUp: 'dragUp',
dragDownTwoFinger: 'dragDownTwoFinger',
dragUpTwoFinger: 'dragUpTwoFinger'
module PipeMixin
def >>(proc_or_method, *)
case proc_or_method
when Proc, Method, UnboundMethod
proc_or_method.call(self)
else
super
end
end
end