I hereby claim:
- I am rouge8 on github.
- I am rouge8 (https://keybase.io/rouge8) on keybase.
- I have a public key whose fingerprint is 8615 0BD5 3032 4028 AAD0 86A1 D112 A173 40AD 85F8
To claim this, I am signing this object:
| node_modules |
| #!/bin/bash | |
| set -eu | |
| VENV_DIR=/tmp/fastavro-venv | |
| function cleanup() { | |
| rm -rf "$VENV_DIR" | |
| } | |
| function benchmark() { |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| from argparse import ArgumentParser | |
| import pkg_resources | |
| def main(): | |
| parser = ArgumentParser('Check that a requirements.txt file is satisifed ' | |
| 'by the current environment.') | |
| parser.add_argument('filename') |
| import pytest | |
| @pytest.mark.parametrize('val', [ | |
| b'\xac\x10\x02G', | |
| b'\xfe\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xde\xad\xbe\xef', | |
| b'\x7f\x00\x00\x01', | |
| ]) | |
| def test_fail(val): | |
| assert False |
Just some random circles.
Click to make them disappear! Or add more!
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js"></script> | |
| <style type="text/css"> | |
| .row-fluid > .sidebar { | |
| width: 280px; | |
| position: absolute !important; |
| from django import template | |
| register = template.Library() | |
| @register.filter | |
| def startswith(value, arg): | |
| """Usage, {% if value|starts_with:"arg" %}""" | |
| return value.startswith(arg) |
Install Python
brew install python --framework
Link /usr/local/lib/python2.7/config
ln -s /usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/Current/lib/python2.7/config /usr/local/lib/python2.7/config
| from ast import literal_eval | |
| class DictField(serializers.WritableField): | |
| type_name = 'DictField' | |
| def from_native(self, value): | |
| if isinstance(value, basestring): | |
| try: | |
| value = literal_eval(value) | |
| except SyntaxError: |