Skip to content

Instantly share code, notes, and snippets.

View sahuk's full-sized avatar

Johan Lorentzon sahuk

View GitHub Profile
"""
Converts a large CSV into SQL, can process some of the smaller chunks
Based on https://plot.ly/python/big-data-analytics-with-pandas-and-sqlite/
Original code probably from https://github.com/chriddyp
"""
import pandas
from sqlalchemy import create_engine
import tqdm
@sahuk
sahuk / fsk_dog_collar.py
Last active February 8, 2016 09:56
FSK dog collar packet dissection
#!/usr/bin/env python
from bitarray import bitarray
start = "101001110001000100010010"
ends = ["1000000000100100",
"0100000011100100",
"1100000001100100",
"0010000010000100",