Skip to content

Instantly share code, notes, and snippets.

@VoX
VoX / filter_tsv_by_master.py
Last active April 21, 2026 16:04
filter_tsv_by_master.py — stream-filter a large headerless TSV by column value against a master list. zero-dep, 7M rows in ~20-30s, scales to GB. tab-complete, dry-run, atomic write, case-insensitive by default.
#!/usr/bin/env python3
"""
SUPERSEDED — use the merged canonical version at:
https://gist.github.com/sammcgrail/12af38f68d9c64c6fe1c56b751938b54
This gist was the initial scaffold; it was merged with seb's fork to add
polars fast-path, master-column flag, BOM handling, Windows readline
fallback, ANSI-colored console, and more. The merged version is the
one canonical copy to clone + run. Update your bookmark.
@VoX
VoX / lens.json
Last active November 11, 2020 00:13
{
"version": "3.6.8",
"homepage": "https://github.com/lensapp/lens",
"url": "https://github.com/lensapp/lens/releases/download/v3.6.8/Lens-Setup-3.6.8.exe#/dl.7z",
"hash": "ef2cc1932c6fa94087cf6b3cfeddea7e41aca1fcd73477096842cdb1cb549bca",
"bin": "Lens.exe",
"license": "MIT",
"shortcuts": [
[
"Lens.exe",
<!--
In Vue, we use v-model for all form bindings, while
Knockout maintains separate binding types, such as
textInput, checked, and options. In some cases,
such as for an input of type "range", Knockout
simply doesn't have an equivalent two-way binding
helper and the more verbose value and valueUpdate
must be used.
-->
<div id="app">
@VoX
VoX / 100days.md
Last active April 5, 2016 00:43
100days ideas
  • codewars, including porting kata to c#
  • put.io/kickass command line
  • command line organization of shows/media
  • command line quick lookup, stack overflow, google, ect
  • work on my cloud
    • create local docker host/builder
    • dockerize HQ proxy
    • add HA proxy to compose
    • scale down scaleway
  • dockerize btsync and putdash apps and add to compose
So at a high level you game looks like this
Main
gameEngine = GameEngine()
renderEngine = RenderEngine()
baseSurface = Display.get_surface;
while 1
pygame.FpsLockThingIforgetTheName(60)
gameEngine.Step()
from distutils.core import setup
import py2exe, os
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll","sdl_ttf.dll"):
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
setup(windows = ["supercombat.py"],
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/events');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function callback() {
console.log("connected to mongodb");
});
var eventSchema = mongoose.Schema({