Skip to content

Instantly share code, notes, and snippets.

View Minnesota


(a) Whoever does any of the following is guilty of murder in the first degree and shall be sentenced to imprisonment for life:

(1) causes the death of a human being with premeditation and with intent to effect the death of the person or of another;

(2) causes the death of a human being while committing or attempting to commit criminal sexual conduct in the first or second degree with force or violence, either upon or affecting the person or another;

(3) causes the death of a human being with intent to effect the death of the person or another, while committing or attempting to commit burglary, aggravated robbery, kidnapping, arson in the first or second degree, a drive-by shooting, tampering with a witness in the first degree, escape from custody, or any felony violation of chapter 152 involving the unlawful sale of a controlled substance;

from csv import DictReader
from random import choice, random, randint
firstnames = []
lastnames = []
for line in DictReader(open("names.csv")):
name = line["name"].split("(")[0].strip(" +")
first, last = name.rsplit(" ", 1)
llimllib / mssql_to_csv.bash
Last active Oct 14, 2020
This is a script to convert every table in a Microsoft SQL Server database backup (.bak file) to a .csv file
View mssql_to_csv.bash
#!/usr/bin/env bash
# import an MS SQL .bak backup file to an MS SQL database, then export all
# tables to csv. run this script as ` <filename>`. It expects to be
# run in the same directory as the backup file.
# this is only tested on my mac (OS X Catalina). I tried to stick to posix, but
# It will probably require some tweaking for you. I hope it gives a general
# sense of what you need to do at the very least.
View RTP_paper.csv
We can't make this file beautiful and searchable because it's too large.
4/19/16 21:50,4/19/16 22:04,100,1972,Male,United States of Ameri
#!/usr/bin/env bash
set -x
GODEBUG=gctrace=1 etl -data_dir=etl/data -skip_aws &
function finish {
kill -9 $ETL_PID
trap finish EXIT
View running graph.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
# many settings from
# many settings from
# previous install notes at:
fancy_echo() {
local fmt="$1"; shift
import base64
import os
import sys
from urllib.parse import urlencode
from webbrowser import open as open_url
import requests
def b(integral):
res = []
while integral > 0:
integral, mod = divmod(integral, 2)
res.insert(0, "1" if mod else "0")
return "".join(res)
View -
from numba import jit
def run(cmds):
location = 0
counter = 0
l = len(cmds)
while 1:
cmd = cmds[location]
if cmd >= 3:
You can’t perform that action at this time.