Skip to content

Instantly share code, notes, and snippets.

View zpencerq's full-sized avatar

Spencer Ellinor zpencerq

View GitHub Profile
@zpencerq
zpencerq / run_results_to_xml.py
Created September 7, 2021 14:42
Convert dbt run_results.json to XML
import json
import sys
import xml.etree.ElementTree as ET
try:
fileobj = open(sys.argv[1], "r")
except IndexError:
fileobj = sys.stdin
with fileobj:

Keybase proof

I hereby claim:

  • I am zpencerq on github.
  • I am zpencerq (https://keybase.io/zpencerq) on keybase.
  • I have a public key whose fingerprint is 593A EFE8 A6BC 4C49 8631 9D40 0A0B E749 B530 FD48

To claim this, I am signing this object:

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@zpencerq
zpencerq / pipe.py
Created January 1, 2014 04:14
Was reading http://www.dzautner.com/meta-programming-javascript-using-proxies/ and decided to make the examples in Python using magic methods instead of a GetProxy object.
class Pipe(object):
def __init__(self, value):
self.pipe = []
self.value = value
def __getattr__(self, name):
if name == 'get':
return lambda:reduce(lambda x, y: y(x), self.pipe, self.value)
self.pipe.append(globals()[name])
return self