Skip to content

Instantly share code, notes, and snippets.

View kergoth's full-sized avatar

Christopher Larson kergoth

  • Siemens Digital Industries Software
  • X @kergoth
View GitHub Profile
@jnwhiteh
jnwhiteh / install.sh
Created June 13, 2011 16:14
lua+luarocks in sandboxed environment
#!/usr/bin/env bash
set -e
die() {
echo "$1";
exit 1;
}
# Fetch and install Lua/LuaRocks/Kepler into the local directory
@Green0Photon
Green0Photon / pact-scraper.rb
Last active May 23, 2017 22:09
Worm and Pact Scrapers - Creates a folder of html files that can be imported into Calibre
#!/usr/bin/ruby
# Scrapes crude HTML representation of Pact by Wildbow web serial chapters and saves it to a folder to be copy-pasted into Calibre
# Run, then you will a set of html files that can be imported into Calibre.
# Remember to create a table of contents!
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'net/https'
@dirty49374
dirty49374 / k_type_breath_animation
Created November 9, 2017 12:41
input club k type
Custom Animations
settings:
========================================
framedelay:2, framestretch, loop, replace:all, pfunc:interp,start
frames
========================================
P[c:0%](0,0,0), P[c:100%](0,0,0);
P[c:0%](0,0,0), P[c:100%](0,0,0);
@danlangford
danlangford / raw_layout.json
Created November 7, 2017 17:00
My K-Type Layout
{
"header": {
"Variant": "standard",
"Generator": "NONE",
"Base": "Base",
"Date": "2017-11-06",
"KLL": "0.5c",
"Author": "bagels mac 2017",
"Version": "0.5",
"Name": "KType",
@kergoth
kergoth / compile.py
Last active November 28, 2019 21:48
Testing python function compilation from strings with line number adjustment
#!/usr/bin/env python
"""Utility functions for compiling python functions from strings, and
for dealing with exceptions from them"""
import ast
import inspect
import sys
import traceback
from collections import namedtuple
try:
@SystemDisc
SystemDisc / ynab-improvements.user.js
Last active December 18, 2019 02:48
YNAB's new web software is a million times worse than their desktop software was
// ==UserScript==
// @name YNAB Improvements
// @namespace https://zornco.com/
// @version 0.0.7
// @description Improvements to the YNAB web app by Timothy Zorn (SystemDisc)
// @author SystemDisc
// @updateURL https://rawgit.com/SystemDisc/dc0f2745e8b3cf9e7dd7522c0609299d/raw/50c2268551b5f60d593e3a138e8b1bc4b4e048c8/ynab-improvements.user.js
// @downloadURL https://rawgit.com/SystemDisc/dc0f2745e8b3cf9e7dd7522c0609299d/raw/50c2268551b5f60d593e3a138e8b1bc4b4e048c8/ynab-improvements.user.js
// @match https://app.youneedabudget.com/*
// @run-at document-end
@tomcritchlow
tomcritchlow / book-urlnotes.json
Last active August 13, 2020 10:39
V0.1 for a library.json spec as outlined here: https://tomcritchlow.com/2020/04/15/library-json/
{
"title": "Tempo - timing, tactics and strategy in narrative-driven decision-making",
"id": null,
"author": "Venkatesh Rao",
"link": "https://www.amazon.com/Tempo-tactics-strategy-narrative-driven-decision-making-ebook/dp/B0069CHSLW",
"image": null,
"date_finished": "09/09/19",
"notes": [
"https://tomcritchlow.com/2020/04/13/tempo-notes-chapter-2/",
"https://tomcritchlow.com/2020/04/13/tempo-notes-chapter-1/"

guys, dudes, bros

I think you mean team...

I think you mean squad..

I think you mean gang...

I think you mean pals...

Vim will move the cursor to the beginning of an object after invoking operator upon it. From an interactive editing perspective this may be considered annoying however it is the consistent choice as operators can be destructive. As such restoring the cursor to its prior position after invoking an operator on an object may not make sense.

There are many ways possible to alter this behaviour to your preference with mappings and/or scripting. But with custom operator mappings this can be particularly ugly.

@jsomers
jsomers / websters-kindle.mdown
Created May 19, 2014 01:42
How to make the Webster's 1913 your default Kindle dictionary

How to make the Webster's 1913 your default Kindle dictionary

  1. Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.

  2. Get the "Send to Kindle" program on your computer. Here's the link for the Mac.

  3. Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.

  4. Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.