Install the Rails gem if you haven't done so before
This file contains hidden or 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
| #! /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): |
This file contains hidden or 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
| 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() |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
This file contains hidden or 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
| 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 |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
A short guide for getting you started into the magical world of OSS.
Are you a musician? Look for musical tools. Are you an artist? Look for some graphics libraries. Find something that works with your other passions to get you going.
If your passion is programming, look for ways to improve the environment.
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
This file contains hidden or 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
| # https://flukeout.github.io/ # | |
| 01. plate | |
| 02. bento | |
| 03. #fancy | |
| 04. plate apple | |
| 05. #fancy pickle | |
| 06. .small | |
| 07. orange.small | |
| 08. bento orange.small |
