This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
http://flukeout.github.io/ | |
#01 plate | |
#02 bento | |
#03 #fancy | |
#04 plate > apple | |
#05 #fancy pickle | |
#06 .small | |
#07 orange.small | |
#08 bento > orange.small |
Picking the right architecture = Picking the right battles + Managing trade-offs
from hashlib import md5 | |
from bisect import bisect | |
class Ring(object): | |
def __init__(self, server_list, num_replicas=3): | |
nodes = self.generate_nodes(server_list, num_replicas) | |
hnodes = [self.hash(node) for node in nodes] | |
hnodes.sort() |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import datetime | |
from mock import patch | |
from django.test import TestCase | |
from django.utils import timezone | |
class DatesTestCase(TestCase): |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
CHECKING_OUT_BRANCH=$3 | |
OLD_BRANCH=$1 | |
NEW_BRANCH=$2 | |
if [ $CHECKING_OUT_BRANCH -eq 1 ] | |
then | |
FILES_CHANGED=`git diff $OLD_BRANCH $NEW_BRANCH --name-status` | |
MIGRATIONS_REMOVED=`echo "$FILES_CHANGED" | egrep 'D\tdb/migrate/([0-9]+)' | sort -r` | |
MIGRATIONS_ADDED=`echo "$FILES_CHANGED" | egrep 'A\tdb/migrate/([0-9]+)'` | |