Skip to content

Instantly share code, notes, and snippets.

@burnto
burnto / gist:1202437
Created September 8, 2011 02:09
Authorize.net reasons
"""
From http://www.authorize.net/support/merchant/Transaction_Response/Response_Reason_Codes_and_Response_Reason_Text.htm
"""
REASONS = [
# resp code, reason code, reason text, notes
[1, 1, "This transaction has been approved."],
[2, 2, "This transaction has been declined."],
[2, 3, "This transaction has been declined."],
[2, 4, "This transaction has been declined.", "The code returned from the processor indicating that the card used needs to be picked up."],
I am attesting that this GitHub handle burnto is linked to the Tezos account tz1X9vqnoa374JHKcCDWQK5Y4w2GHywQkJmF for tzprofiles
sig:edsigtw2HE71wM5Y9FknM52gFwrGjrGwCznd2F2ErUx7NZVgwYSWQesNrMrjsuxkKNZFZUNdu36HKpveutdRGVCUdqG1cNJ3tK6
### Keybase proof
I hereby claim:
* I am burnto on github.
* I am bpf (https://keybase.io/bpf) on keybase.
* I have a public key ASDGPWj4jwqqbbOGqlc96vFYgiWxizg0Gd47axUEoQj50wo
To claim this, I am signing this object:
git log --since=yesterday
git log --since="3 days ago"
git log --before=today
@burnto
burnto / python2.6.rb
Created October 19, 2011 17:14
Python 2.6 Brew Formula
require 'formula'
<<-COMMENTS
This is the Homebrew formula for Python.
Versions
--------
This formula is currently tracking version 2.6.x.
@burnto
burnto / seeking_engineers.rst
Last active August 2, 2016 02:17 — forked from lumberlabs/seeking_engineers.rst
card.io opportunities at PayPal

Wanted: Talented engineering colleagues

We are an engineering team working on mobile payments at PayPal in San Jose. Acquired by PayPal in July 2012, card.io's founders were early employees at AdMob, and are now building software to enable simple, low-friction transactions on a mobile device.

Why you might want to work with us:
  • Tackle interesting, hard technical problems with immediate real world application.
  • Maintain a work-life balance and have fun.
  • Generous comp, benefits, and vacation.
I am a new gist.
I have very long lines.
I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines. I have very long lines.
@burnto
burnto / wordmatch.py
Created November 21, 2012 22:09
Get all words matching a pattern
import re
def match(pattern):
"""
>>> match(' x ')
['axe', 'oxy']
>>> match('c m n l')
['communal', 'criminal', 'crumenal', 'culminal']
"""
r = re.compile('^' + re.sub(' ', '.', pattern) + '$', re.IGNORECASE)
@burnto
burnto / deep_dict_apply.py
Created April 6, 2012 17:55
A nasty deep dictionary apply utility
def deep_dict_apply(d, k_fn=None, v_fn=None):
"""
>>> def k_fn(key):
... return str(key) + "_k"
>>> def v_fn(value):
... return str(value) + "_v"
>>> dictionary = {1: {2: {3: 'hello'}}, 4: 'world'}
>>> deep_dict_apply(dictionary, k_fn, v_fn)
{'4_k': 'world_v', '1_k': {'2_k': {'3_k': 'hello_v'}}}
>>> deep_dict_apply(dictionary, k_fn)
@burnto
burnto / lumberlabs_cardio_engineering_jobs.md
Created April 6, 2012 01:51 — forked from lumberlabs/seeking_engineers.rst
Opportunities for talented engineers at Lumber Labs / card.io

Opportunities for talented engineers at Lumber Labs / card.io

Lumber Labs is a mobile payments start-up located in San Francisco. We create card.io – consumer apps and developer tools that enable simple, low-friction transactions on mobile devices. Company founders were early employees at AdMob. We are venture-funded, growing, and looking for exceptional colleagues.

Why Lumber Labs?

  • Tackle interesting, hard technical and design problems with immediate real world application.
  • Maintain a work-life balance. Enjoy every day, spend time with your friends and family, have fun at work.
  • Generous compensation, benefits, and vacation.