Skip to content

Instantly share code, notes, and snippets.

View ELLIOTTCABLE's full-sized avatar
🐫

ELLIOTTCABLE

🐫
View GitHub Profile
0eNrtXVtv67gR/isLPxb2QrxLQdu3Fn0p+tB9KxaBYuskwtqyK8s5e3aR/17JzkUiNSSH3JzEBV/2bHwZkzOc2zfD0e+Lu+2pOrR10y1ufl/U631zXNz85/fFsb5vyu3wWvftUC1uFnVX7RbLRVPuhr/ast4unpaLutlUvy5uyNPS+ZXq10NbHY+rri2b42Hfdqu7atuNiNCnn5eLqunqrq4uizj/8e22Oe3uqnZxk7/SOnbl+pdV3RyrtuvfWS4O+2P/tX0z/HpPakWyH8Vy8W34P/aj6H+j31jX7re3d9VD+Vjv2+GD67pdn+rutn9v8/rtL3V77G4de+k/VJXtbrUr78vf6qZaXH6hX9bAR1IU2fD37lC2ZTf81uLPwye2+/v62NXr6Q++fU//0l8XTxe6TbUePn0cPk6G/7TVZsyguv+LsKefn54GOWhcK15X/fL7q/VDdexWbfXfU/+vi3/8zL/nD99+qbf9Ny7ieRE+zJZh9adhazTL+uWZiyPZ65d31aY+7VbVtt9s2y/ysN9WMysrJgubI0lCNqxC9rveHw5Vuzpsy260V14Ae6X+51e96/GdrHtydPnHnNzl9IUcOMqE+XMwf1cO1u2++TT8oxr/QPbxEM3IQzRjxB+3XoiQZYmQZfUrOpO/K9uRbYLWJUPWJUPW1dOqtjq/wHUpfy0Q76oFY3ZO1IB+hBrkuhkpID1ABBLyXRk4lvvHM1DpDKQQAwus16aaVoQuiWbAkig2kOCBKyq0FRXgikZxwql9rDarc9A8w5uXhfRR9GLTh1Dry7tyjug4hujp3T90INnsmSydkqVzZJk32UF5vMlyf7ISQVb4k+UIstKfLEWQVf5kMSLLvcliJFZ4U0UIjGXeVBHyYsRfFxBUvTUMISzmrV+YlXprF4ap3rqFkb+3ZiGOKvPWK4xaMW+1wtgA5q1WGIPFvdUKY125t1phXAEfH4F9U62+lttZTSWvfjmbz+/5m9y/9OGnjifNWFX2QrI4e/qxi0UEdNYoKyg
module.exports = {
config: {
updateChannel: 'canary',
fontSize: 14,
windowSize: [960, 540], // aiming for 135 columns wide, 16:9 ratio
// font family with optional fallbacks
fontFamily: '"Input Nerd Font", Knack, Menlo, "DejaVu Sans Mono", '
@ELLIOTTCABLE
ELLIOTTCABLE / Properly_align_LaTeX_images_to_baseline.py
Created September 15, 2017 17:38 — forked from parttimenerd/Properly_align_LaTeX_images_to_baseline.py
Add-on for Anki which properly align LaTeX images
# -*- coding: utf-8 -*-
# Properly align LaTeX images to baseline
#
# Improved by Johannes Bechberger
#
# Copyright (c) 2016, Artem Leshchev <[email protected]>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
--- /var/folders/3b/mxfmd44s6zn50_1wmkrxs19w0000gn/T/anki_temp/tmp.tex 2017-09-02 14:50:11.000000000 -0500
+++ math_test.tex 2017-09-02 14:50:06.000000000 -0500
@@ -1,19 +1,17 @@
\documentclass[12pt]{article}
\special{papersize=3in,5in}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath}
\pagestyle{empty}
\setlength{\parindent}{0in}
\begin{document}
@ELLIOTTCABLE
ELLIOTTCABLE / 1.package.json
Last active June 3, 2017 09:48
broken package.json in npm@5
{ "author" : "ELLIOTTCABLE (http://ell.io/tt)"
, "name" : "minimist-shell"
, "version" : "0.0.0"
, "license" : "ISC"
, "repository" : "ELLIOTTCABLE/minimist-shell"
, "bugs" : "https://github.com/ELLIOTTCABLE/minimist-shell/issues"
, "description":
@ELLIOTTCABLE
ELLIOTTCABLE / nerd-patcher-input-mono.sh
Created May 23, 2017 16:24
How to make a Nerd Fonts-patched (‘Powerline’) version of the Input Mono font
# Creating this because I'm *sure* I'll forget how to do this.
# 1. Customize your Input fontface, and download it from their website:
open -a Safari \
"http://input.fontbureau.com/download/index.html?size=14&language=javascript&theme=base16-dark&family=InputMono&width=200&weight=300&line-height=1.2&a=0&g=ss&i=serif&l=serifs_round&zero=slash&asterisk=height&braces=straight&preset=dejavu&customize=please"
# 2. Download the ‘patcher script’:
# (I have no idea why the hell this script requires the `changelog.md` as well; and we [ab]use
# GitHub's SVN bridge to download *just* the `src/glyphs`, instead of the 100s of megabytes of
# pre-patched fonts)
@ELLIOTTCABLE
ELLIOTTCABLE / Test Library.js
Created May 10, 2017 22:59
JXA (JavaScript for Automation) ‘Script Library’ exports-test
// Export the mapping to the caller via the *documented* / known-working method
function results(){
return [ ""
, "1. Function declaration of the global environment"
, "2. Implicit propery of the objective global environment"
, "3. Identifier binding on the objective global environment"
, "4. Identifier binding on the declarative global environment"
, "5. Explicit property of the objective global environment (via `this` self-ref)"
, "6. Explicit property of the objective global environment (via anon func)"
]
@ELLIOTTCABLE
ELLIOTTCABLE / es2016-jxa.js
Created May 2, 2017 09:20
ECMAScript 2017 `async` in macOS Sierra JavaScriptCore
#!/usr/bin/env osascript -l JavaScript
// macOS Sierra uses a JavaScriptCore analagous to that in Safari 10.1. This supports all of
// ECMAScript 2015 (“ES6”), and even much of ECMAScript 2016! For instance, try `async` functions:
async function hello(){
return "Hello, world!"
}
function run(argv) {
var p = hello();
@ELLIOTTCABLE
ELLIOTTCABLE / .gitignore
Last active July 14, 2023 15:34 — forked from rosston/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log
> sudo lb clean
[2017-02-13 03:34:58] lb clean
P: Executing auto/clean script.
[2017-02-13 03:34:58] lb clean noauto
P: Cleaning chroot
> sudo lb build
[2017-02-13 03:35:00] lb build
P: Automatically populating config tree.
[2017-02-13 03:35:00] lb config
P: Executing auto/config script.