Skip to content

Instantly share code, notes, and snippets.

@kazad
kazad / e.tex
Created December 13, 2017 18:11
\newcommand{\growth}{\color{c1}}
\newcommand{\unitQuantity}{\color{c2}}
\newcommand{\unitInterest}{\color{c3}}
\newcommand{\unitTime}{\color{c4}}
\newcommand{\perfectly}{\color{c5}}
\newcommand{\compounded}{\color{c6}}
$$\growth e
\plain =
\perfectly \lim_{n\to\infty}
@kazad
kazad / build.sh
Created September 11, 2015 21:35
Softcover build script
shopt -s expand_aliases
alias softcover-docker='docker run -v $(pwd):/opt/book -w /opt/book --rm=true --entrypoint /usr/local/bin/softcover kazad/softcover'
# Move and convert in place
rm chapters/*.md
cp src/* chapters/
# sync images
pushd images
rsync -rv --include '*/' --include '*.png' --include '*.jpg' --include '*.jpeg' --exclude '*' --prune-empty-dirs /Users/kazad/Dropbox/servers/betterexplained.com/wp-content/uploads/calculus .
https://localhost/federationmetadata/2007-06/federationmetadata.xml
@kazad
kazad / fourier.html
Created June 25, 2014 19:00
BetterExplained Fourier Example
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script src="//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<!--
TODO:
@kazad
kazad / mt-github.user.js
Created September 5, 2012 02:00
Github / MindTouch integration
// ==UserScript==
// @name MindTouch/Github integration
// @version 1.0
// @namespace http://mindtouch.com/github
// @description Make github better for MindTouch employees
// @include https://github.com/*/Deki*
// loading code from from http://userscripts.org/scripts/review/123588
function main($) {
@kazad
kazad / gist:3628157
Created September 4, 2012 23:45
Leftronic API Access
#!/bin/bash
#Which
Grep="`/usr/bin/which grep`"
Awk="`/usr/bin/which awk`"
Cat="`/usr/bin/which cat`"
Sed="`/usr/bin/which sed`"
Curl="`/usr/bin/which curl`"
# Scrape Nagios
@kazad
kazad / fancybox.css
Created August 31, 2012 21:07
Fancybox
/*! fancyBox v2.1.0 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
Some test gist. I can save it and edit.