Skip to content

Instantly share code, notes, and snippets.

~$ xbindkeys -v
displayName = :0
rc file = /home/glycan/.xbindkeysrc
rc guile file = /home/glycan/.xbindkeysrc.scm
getting rc guile file /home/glycan/.xbindkeysrc.scm.
WARNING : /home/glycan/.xbindkeysrc.scm not found or reading not allowed.
4 keys in /home/glycan/.xbindkeysrc
min_keycode=8 max_keycode=255 (ie: know keycodes)
"xsel -o|festival --language russian --tts"
#!/usr/bin/python
"""
Using a link_list, link text within a PDF to other pages in that PDF.
"""
# Convenience tools, etc
import argparse
import csv
import json
from StringIO import StringIO
import sys
#mount a Gutenberg CD
mount -t iso9660 PG2003-08.ISO iso -o loop
# flatten the hierarchy of a Gutenberg CD
cp $(find iso -name "*.txt") lt/corpus
# strip the corpus
for i in $(ls corpus); do < corpus/$i ./strip.py > words/$i; done
# count some words
for i in $(ls words); do < words/$i ./wordcount.py > wc/$i; done
10/22/15 01:16:44 PM to 10/22/15 05:51:20 PM = 4
10/23/15 11:43:39 AM to 10/23/15 04:11:30 PM = 4
10/24/15 02:03:59 PM to 10/24/15 09:03:14 PM = 6
10/25/15 02:38:38 PM to 10/25/15 11:39:09 PM = 9
10/26/15 11:05:01 AM to 10/26/15 02:58:46 PM = 3
10/27/15 12:24:37 PM to 10/27/15 06:11:36 PM = 5
10/28/15 03:45:36 PM to 10/28/15 08:09:08 PM = 4
10/29/15 04:35:49 PM to 10/29/15 06:15:02 PM = 1
10/30/15 12:05:51 PM to 10/30/15 05:52:09 PM = 5
10/31/15 03:30:18 AM to 10/31/15 11:42:08 AM = 8
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install heroku
from random import shuffle
class Cell:
def __init__(self, board, y, x):
self.board = board
self.y = y
self.x = x
self.mine = False
class Board:
def __init__(self, n=3):
self.board = [["*" for i in range(n)] for j in range(n)]
self.n = n
def move(self, player):
raw = raw_input("x,y move for player %s? " % player)
try:
x, y = map(int, raw.split(","))
cell = self.board[y][x]

AngleList profile: https://angel.co/matthew-liberman

My goal is to get a full-stack or backend position from which I can transition into ML or data science, preferably somewhere relating to language, biotech, healthcare, QS, or education. I don't want to remote for my first job. I'd prefer a full Boston salary but absolutely don't mind an 30k+ internship. All of these are much less stringent for queerer workplaces. It was suggested I want a small startup building something cool with minimal bureaucracy being ideal for ADHD.

Some ideal jobs:

"""
This is the version my interviewer seemed to want me to write.
It uses a list of shifts using the 1900-1-1 offsets returned by strptime
"""
import csv
from datetime import datetime as dt
DAY_NAMES = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
@technillogue
technillogue / example.sql
Created June 4, 2019 14:44
example of average cost per minute of flights involving various airports
sqlite> # departure_airport, arrival_airport, cost (EUR), travel_time (minutes)
sqlite> SELECT * FROM flights;AMS|KBP|329|170
AMS|OTP|308|165
BRU|KBP|70|165
BRU|OTP|110|165
CDG|KBP|201|185
CDG|OTP|160|170
CDG|AMS|588|80
CDG|BRU|287|55
KBP|AMS|423|185