A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
// api/models/Account.js | |
module.exports = { | |
attributes: { | |
acct_id: { | |
type: 'int', | |
primaryKey: true | |
}, | |
loginName: { | |
type: 'string', |
<?php | |
class ExampleTest extends TestCase { | |
public function setUp() | |
{ | |
parent::setUp(); | |
DB::beginTransaction(); | |
} |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
*.pyc | |
.DS_Store | |
# Packages | |
*.egg | |
*.egg-info | |
dist | |
build | |
eggs | |
parts |
# This example relies on you having installed PyJWT, `sudo easy_install PyJWT` - you can | |
# read more about this in the GitHub repository https://github.com/progrium/pyjwt | |
from flask import Flask, request, redirect | |
import time | |
import uuid | |
import jwt | |
# insert token here | |
app.config['SHARED_KEY'] = '' |
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
import mechanize | |
import urllib | |
BASE_URL = 'http://my-reddit' | |
THREAD = BASE_URL + '/r/reddit/particular-thread' | |
class Transaction(object): | |
def __init__(self): | |
self.user = 'redditor' | |
self.pass = 'password' |