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
Vagrant::Config.run do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "debian_squeeze_32" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
config.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/debian_squeeze_32.box" | |
# Assign this VM to a host only network IP, allowing you to access it via the IP. | |
config.vm.network "33.33.33.10" |
#!/usr/bin/env ruby | |
# 1. export your RIL bookmarks | |
# 2. save this file to the same directory where your ril_export.html is | |
# 3. change username and password in the script bellow | |
# 4. run 'ruby ril_to_instapaper.rb' in terminal | |
require "cgi" | |
require "net/http" | |
require "net/https" |
class Widget | |
constructor: (@widget)-> | |
@input.data("example-widget", @) | |
return | |
(($)-> | |
$.fn.exampleWidget = (action, arg)-> | |
@.each(-> | |
$this = $(@) |
import enum | |
class Choices(type(enum.Enum)): | |
def __new__(metacls, cls, bases, classdict): | |
temp = type(classdict)() | |
names = set(classdict._enum_names) | |
for k in classdict._enum_names: |
#!/usr/bin/python | |
""" | |
Create a stage in your project, make it the last stage. | |
Make a task in the stage with this inline script: | |
#! /bin/bash | |
/some/path/bamboo-to-slack.py "${bamboo.planKey}" "${bamboo.buildPlanName}" "${bamboo.buildResultsUrl}" |