Skip to content

Instantly share code, notes, and snippets.

econchick / How to Build OpenShift Server on F17
Created Nov 27, 2012
How to Build OpenShift Server on F17
View How to Build OpenShift Server on F17
Start with Fedora 17
yum install -y git vim rubygem-thor rubygem-parseconfig tito make rubygem-aws-sdk tig mlocate bash-completion rubygem-yard rubygem-redcarpet ruby-devel redhat-lsb
yum install -y
gem install rspec -v '1.1.12'
for i in origin-
econchick / gist:4666365
Created Jan 29, 2013
Python questions asked at Women Who Code's Interview workshop
View gist:4666365
unsorted_list = [1, 4, 12, 3, 0, 4, 1, 16, 20, 20, 19, 7, 4, 0]
# Terrible solution that only works small integers, but it is O(n) in both
# space and time
max_int = max(unsorted_list)
entries = [0] * (max_int + 1)
for x in unsorted_list:
entries[x] += 1
econchick / gist:4666378
Created Jan 29, 2013
Implement a Binary Tree in Python
View gist:4666378
class Node:
def __init__(self, key):
self.key = key
self.parent = None
self.left = None
self.right = None
def insert(root, t):
new = Node(t)
econchick / gist:4666389
Last active Dec 11, 2015
Convert decimal/base 10 numbers to hexidecimal/base 16
View gist:4666389
def hex2dec(dec_number):
mapping = {
10 : "A",
11 : "B",
12 : "C",
13 : "D",
14 : "E",
15 : "F"
econchick / gist:4666413
Last active Apr 21, 2021
Python implementation of Dijkstra's Algorithm
View gist:4666413
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
def add_edge(self, from_node, to_node, distance):
econchick /
Last active Aug 7, 2019
Women Who Code: Interviewing Tips

Call for Proposals


What Kind of Sessions can I give?


Lightning Talks

econchick /
Last active Dec 28, 2015
Installation & Setup instructions for PyLadies Stockholm's Django workshop on Nov 19th, 2013 @ Spotify.

PyLadies Stockholm: Build your own Blog with Django


  1. Download & install VirtualBox for your machine here.
  2. Download & install Vagrant for your machine here.
  3. Download the PyLadiesDjango virtual machine here. Do not open this file NOTE: Remember where you downloaded this PyLadiesDjango virtual machine.
  4. If you don't have a text editor (like Notepad++, TextEdit, TextWrangler), I highly recommend Sublime Text 2, which can be downloaded here.
  5. Continue to Setup below when you're all set with downloading & installing.
econchick / base.html
Last active Dec 28, 2015
PyLadies BYOBlog - Templates and static files
View base.html
<!doctype html>
<html lang="{{ HTML_LANG }}">
<meta charset="utf-8"/>
<title>{% block title %}PyLadies BYOBlog{%endblock%}</title>
<meta name="author" content="A PyLady">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0">
View testing_ipython.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.