Skip to content

Instantly share code, notes, and snippets.

View tisaconundrum2's full-sized avatar
🐢
= lambda: [print("🐢", end='') for _ in iter(int, 1)]

Nicholas Finch tisaconundrum2

🐢
= lambda: [print("🐢", end='') for _ in iter(int, 1)]
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
@tisaconundrum2
tisaconundrum2 / css-inject.js
Last active March 9, 2018 03:02 — forked from ObserverOfTime/css-inject.js
GitHub Desktop Dark Theme
/**
* To apply the theme:
* 1) Open dev tools with CTRL + SHIFT + I
* 2) Go to the console
* 3) Paste the following code
* Note: You will have to do this again whenever Github Desktop updates
*/
var html_file = require("path").join(process.resourcesPath, "app/index.html");
var html = require("fs").readFileSync(html_file, "utf8");
var link_to_inject = '<link href="https://cdn.rawgit.com/ObserverOfTime/07e862ec7240d995e672818f43513bc7/raw/06c86e69c94935962b07b5302c195f7d6465eacd/desktop-dark.css" rel="stylesheet">';
@tisaconundrum2
tisaconundrum2 / scale-zpl.js
Last active December 5, 2019 17:55 — forked from alethea/scale-zpl.js
(Experimental) Scales a Raw ZPL file from 203 DPI (dots per inch) to 300 DPI
/*
* author: Tres Finocchiaro, updated by Alethea Rose
* date: 2017-07-10
* license: Public Domain; Use as you wish.
* source: http://qz.io
*/
const cmds = {
FO: 2,
PW: null,