I hereby claim:
- I am wuub on github.
- I am wuub (https://keybase.io/wuub) on keybase.
- I have a public key whose fingerprint is 35CB 8060 6617 4BC9 BD6F 81B7 1B00 6E8F 911A 6A2B
To claim this, I am signing this object:
| from collections import namedtuple | |
| class Money(namedtuple('Money', ['amount', 'currency'])): | |
| def add(self, amount): | |
| return Money(self.amount + amount, self.currency) | |
| m = Money(20, 'USD') | |
| print(m) | |
| # Money(amount=20, currency='USD') |
| ACTION=="add",SUBSYSTEM=="input",ATTR{name}=="TPPS/2 IBM TrackPoint",ATTR{device/sensitivity}="255",ATTR{device/speed}="255",ATTR{device/inertia}="6" |
| #!/bin/bash | |
| if [[ -e ~/.dockmux/$1 ]]; then | |
| CONTAINERS=$(cat ~/.dockmux/$1) | |
| SESSION_NAME=$1 | |
| else | |
| CONTAINERS="$@" | |
| SESSION_NAME=dockmux | |
| fi |
| import pyqrcode | |
| import csv | |
| template = "otpauth://totp/{name}?secret={secret}" | |
| with open("keys.csv") as f: | |
| for k in csv.DictReader(f): | |
| qr = pyqrcode.create(template.format(secret=k['secret'], name=k['email'])) | |
| print(k['email']) | |
| print(qr.terminal(quiet_zone=1)) | |
| raw_input("next>>> ") |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/hashicorp/raft" | |
| "github.com/hashicorp/raft-boltdb" | |
| "regexp" | |
| ) | |
| func main() { |
I hereby claim:
To claim this, I am signing this object:
| import pyb | |
| ACCESS_CONFIG = 0xAC | |
| READ_TEMPERATURE = 0xAA | |
| START_CONVERT = 0xEE | |
| STOP_CONVERT = 0x22 | |
| LSB_RESOLUTION = 2 ** (-4) | |
| LSB_BITS = 4 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import multiprocessing | |
| from itertools import chain | |
| from gunicorn import util | |
| from gunicorn.config import Config | |
| from gunicorn.app.base import Application |
| import sublime, sublime_plugin | |
| BUILD_COLOR_SCHEME = "Packages/Color Scheme - Default/Twilight.tmTheme" | |
| def in_build_dir(view): | |
| if not view or not view.file_name(): | |
| return False | |
| return "/build/" in view.file_name() | |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import with_statement, division, absolute_import, print_function | |
| import lirc | |
| import tempfile | |
| from collections import namedtuple | |
| import time | |
| import atexit |