Skip to content

Instantly share code, notes, and snippets.

View joeyespo's full-sized avatar

Joe Esposito joeyespo

View GitHub Profile
@joeyespo
joeyespo / Procfile
Last active August 29, 2015 14:11
Foreman and Forego port precedence tests
web: python -u app.py
@joeyespo
joeyespo / Procfile
Last active August 29, 2015 14:11
Foreman and Honcho port precedence tests
web: python -u app.py
@brettcannon
brettcannon / gist:a9c9a5989dc383ed73b4
Last active September 19, 2017 10:27
Initial email about Python development process and proposed improvements

This was posted as an email to python-dev.

History lesson

Since I signed up for the python-dev mailing list way back in June 2002, there seems to be a cycle where we as a group come to a realization that our current software development process has not kept up with modern practices and could stand for an update. For me this was first shown when we moved from SourceForge to our own infrastructure, then again when we moved from Subversion to Mercurial (I led both of these initiatives, so it's somewhat a tradition/curse I find myself in this position yet again). And so we again find ourselves at the point of realizing that we are not keeping up with current practices and thus need to evaluate how we can improve our situation.

Where we are now

Now it should be realized that we have to sets of users of our development process: contributors and core developers (the latter whom can play both roles). If you take a rough outline of our cur

@NotSqrt
NotSqrt / settings_test_snippet.py
Last active May 1, 2022 01:34 — forked from nealtodd/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active April 21, 2023 17:14
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@klmr
klmr / settings.py
Created August 7, 2014 09:30
Grip settings file for OS X, which retrieves the GitHub password from “Keychain Access.app”
def find_password():
import subprocess
import re
cmd = ['security', 'find-internet-password', '-gs', 'github.com']
pwinfo = subprocess.Popen(cmd, stdout = subprocess.PIPE,
stderr = subprocess.PIPE)
pwline = pwinfo.stderr.read().strip()
return re.sub('password: "(.*)"', '\\1', pwline)
@staltz
staltz / introrx.md
Last active June 7, 2024 23:39
The introduction to Reactive Programming you've been missing
@jmont
jmont / maybe.m
Last active March 30, 2016 16:27
Swift Monads
// Swift Monads -- Maybe
// Juan C. Montemayor (@norsemelon)
// This operator can be used to chain Optional types like so:
// optionalVal >>= f1 >>= f2
// where f1 and f2 have type `Any -> Any?`
//
// If a value is ever nil, the chain short-circuits and will result in nil.
// This is a much neater way to do this than using the if syntax specified in
// the Swift iBook.
@cyril-sf
cyril-sf / gist:515085e856f9dac2f06a
Last active November 13, 2015 22:29
Polymorphic hasMany w/ FixtureAdapter
var User = DS.Model.extend({
messages: DS.hasMany('message', {polymorphic: true})
});
var Message = DS.Model.extend({
user: DS.belongsTo('user'),
body: DS.attr()
});
var Post = Message.extend({
@brenopolanski
brenopolanski / install-indicator-synapse.md
Last active June 14, 2019 04:02
How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17

Indicator Synapse is a Spotlight Alternative, developed by Tom Beckmann.

spotlight-alternative

How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17 run this commands in terminal:

$ [sudo] add-apt-repository ppa:noobslab/apps
$ [sudo] apt-get update
$ [sudo] apt-get install indicator-synapse