I hereby claim:
- I am jbg on github.
- I am jbg_ (https://keybase.io/jbg_) on keybase.
- I have a public key ASBT9NMnenxkpAD1iFKgJT5O9VT26NOQcqjDXOzYDxG_1go
To claim this, I am signing this object:
| const KEYCODE_A = 0; | |
| const KEYCODE_HOME = 115; | |
| const KEYCODE_DEL = 117; | |
| const KEYCODE_END = 119; | |
| const KEYCODE_LEFT = 123; | |
| const KEYCODE_RIGHT = 124; | |
| class TextEditingRawKeyboardListener extends StatelessWidget { | |
| final Widget child; | |
| final FocusNode focusNode; |
| #!/usr/bin/python3 | |
| from collections import OrderedDict | |
| from datetime import datetime | |
| from functools import partial | |
| import json | |
| import logging as log | |
| import os | |
| from queue import Queue, Empty | |
| import subprocess |
| 0x230A3aA574b90947cc711Dca3511B9BFa889b173 |
| #!/bin/sh -e | |
| # Executed by udev upon power supply status changes using this rule: | |
| # SUBSYSTEM=="power_supply", RUN+="/usr/local/bin/powerchange" | |
| # This script sets minimum performance on battery. Adjust to suit. | |
| BATTERY_BRIGHTNESS=250 | |
| # AC brightness is the maximum level. | |
| if [ $POWER_SUPPLY_ONLINE = 1 ]; then |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import cPickle | |
| __import__('__init__').init_triposo() | |
| from sklearn.decomposition import TruncatedSVD, NMF | |
| from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer | |
| from time import time |
| #!/usr/bin/env python3 | |
| import argparse | |
| from collections import Counter, defaultdict | |
| from random import random, randint | |
| from time import sleep | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("corpus", help="a filename for training") | |
| parser.add_argument("length", type=int, help="how many characters to generate") |
| #!/usr/bin/env python3 | |
| # Export your Google Maps starred places from https://www.google.com/bookmarks/ | |
| # Then pipe them through this script to get GeoJSON: | |
| # ./gmaps_stars_to_geojson.py < GoogleBookmarks.html > features.json | |
| # You could import the resulting GeoJSON file to a PostGIS database with: | |
| # ogr2ogr -f PostgreSQL PG:"dbname=DBNAME user=USER password=PASSWORD host=HOST" features.json -nln TABLENAME -append | |
| # Depends on 'geojson', 'lxml' and 'requests' from PyPI. |