Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Kelleher akellehe

View GitHub Profile
View gist:8cf438826967e5fdd8b6f2c96b0a7ebf
Tyler and robin oversee marketing -> project leads
phillip is director of operations - CRM and advancement, pointperson for salesforce
earth share has a number of legacy systems. never invested (8 years) in an IT/data department
it's been distributed across multiple teams
(thanks for assisting!)
robin (perk) and tyler launched the wordpress site in fall of 2018
@akellehe
akellehe / disassembly_of_frames.log
Last active Sep 18, 2017
Example of for(;;) entered multiple times, nested code blocks, and nested frames.
View disassembly_of_frames.log
Line # Opcode Oparg
-----------------------------------------------------------------
1 0 LOAD_CONST 0 (<code object foo>)
2 LOAD_CONST 1 ('foo')
4 MAKE_FUNCTION 0
6 STORE_NAME 0 (foo)
7 8 LOAD_CONST 2 (<code object a_minus_b>)
10 LOAD_CONST 3 ('a_minus_b')
12 MAKE_FUNCTION 0
@akellehe
akellehe / cycles.py
Created Apr 25, 2017
Problems to look for memory leaks in
View cycles.py
import gc
from guppy import hpy
class Node(object):
def __init__(self, name):
self.name = name
self.children = []
@akellehe
akellehe / queuereader.py
Last active Apr 25, 2017
A queuereader with a little problem.
View queuereader.py
import logging
import time
import random
import json
from nsq import Reader, run
from tornado.autoreload import start as autoreload
settings = {
'nsq_channel': 'andrew-kelleher',
View gist:001c62ea7ef62195e296e275aa0f8b39
* Why does a split dict get resized multiple times when there are only one reference (instance of a class) and once when there are many reference
* When does it go from a combined dict back to a split dict?
BUILD INTERFACE TO ASK ANONYMOUS QUESTIONS
View modulo.py
def mod(X, Y):
return X - Y * (X / Y)
@akellehe
akellehe / 0_reuse_code.js
Created Jul 29, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View keybase.md

Keybase proof

I hereby claim:

  • I am akellehe on github.
  • I am eggrollinabox (https://keybase.io/eggrollinabox) on keybase.
  • I have a public key whose fingerprint is C60E 4730 5FAF 8873 EB5D 7B8D 1ECC C4D0 7D83 2E78

To claim this, I am signing this object: