- Download & install VirtualBox for your machine here.
- Download & install Vagrant for your machine here.
- Download the PyLadiesDjango virtual machine here. Do not open this file NOTE: Remember where you downloaded this PyLadiesDjango virtual machine.
- If you don't have a text editor (like Notepad++, TextEdit, TextWrangler), I highly recommend Sublime Text 2, which can be downloaded here.
- Continue to Setup below when you're all set with downloading & installing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="{{ HTML_LANG }}"> | |
<head> | |
<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"> |
Questions email Lynn Root
- My Blog with my experience, how I prepared, practice problems and resources.
- Previous WWC Practice questions with questions from previous WWC Interview workshop with Gayle McDowell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Graph: | |
def __init__(self): | |
self.nodes = set() | |
self.edges = defaultdict(list) | |
self.distances = {} | |
def add_node(self, value): | |
self.nodes.add(value) | |
def add_edge(self, from_node, to_node, distance): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hex2dec(dec_number): | |
mapping = { | |
10 : "A", | |
11 : "B", | |
12 : "C", | |
13 : "D", | |
14 : "E", | |
15 : "F" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-devel-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-doc-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-minimum-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-mls-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-targeted-3.10.0-160.fc17.noarch.rpm | |
gem install rspec -v '1.1.12' | |
for i in origin- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django settings for ZagrebWorkshop project. | |
import os | |
import dj_database_url | |
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( |