Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am erincall on github.
  • I am erincalling (https://keybase.io/erincalling) on keybase.
  • I have a public key whose fingerprint is 91DA B420 64EF 9CAC B870 B137 4071 FF6C 15B8 DAD1

To claim this, I am signing this object:

@ErinCall
ErinCall / prune_stale.sh
Last active June 7, 2018 18:14
Script for removing stale branches
#!/usr/bin/env bash
set -e
candidates=''
stale=''
dry_run=''
review_issues=''
case $1 in
0😧 ~/c/g/s/shopping (master ◯ )
§ tree
.
├── db
│   └── db.go
├── main
│   └── main.go
└── models
└── item.go
QMK Firmware v0.5.132
Making handwired/dactyl with keymap default
avr-gcc (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
text data bss dec hex filename
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:507
Content-Type:application/x-www-form-urlencoded
@ErinCall
ErinCall / flows.json
Created September 18, 2013 04:45
Source of the new codescouts index.html while attempting to integrate janrain capture
{
"screens" : {
"signIn": {
"source": "client",
"modal": true,
"screenConditionals": {
"if": {
"withOperator": "===",
"compare": "cookie:janrainLastAuthMethod",
"to": "socialSignin"
@ErinCall
ErinCall / gist:6516572
Created September 10, 2013 22:19
rake routes from devise
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
PATCH /users/password(.:format) devise/passwords#update
PUT /users/password(.:format) devise/passwords#update
cancel_user_registration GET /users/cancel(.:format) registrations#cancel
user_registration POST /users(.:format) registrations#create
var auth, querystring, sha1, sign, strftime, test_auth;
strftime = require('strftime');
querystring = require('querystring');
sha1 = require('sha1');
module.exports = function(robot) {
return robot.respond(/test/, function(msg) {
@ErinCall
ErinCall / gist:5490199
Created April 30, 2013 17:11
catsnap tests fail to tear down on postgresql 9.2
§ nosetests
..........................................................................................................................E
======================================================================
ERROR: test suite for <module 'tests' from '/Users/andrew/code/catsnap/tests/__init__.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 227, in run
self.tearDown()
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 350, in tearDown
self.teardownContext(ancestor)
@ErinCall
ErinCall / gist:4568976
Created January 18, 2013 21:53
ha ha ha what the heck
>> a, a, b = [1, 2, 3]
=> [1, 2, 3]
>> a
=> 2
>> _, _, b = [1, 2, 3]
=> [1, 2, 3]
>> _
=> [1, 2, 3]
>> a
=> 2