Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| pandoc -f markdown -t mediawiki test.md -o test.wiki | |
| # Thanks to @tillmanj for the updated formatting | 
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } | 
NOTE: a more up-to-date version of this can be found on my blog
A few days ago, version 1.9 of the Nix package manager was released. From the release notes:
nix-shell can now be used as a #!-interpreter. This allows you to write scripts that dynamically fetch their own dependencies.
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) | 
| # Encrypt STDIN and provide a password(prompt) | |
| echo "message" | openssl enc -aes-256-cbc -a | |
| # Decrypt STDIN and provide a password(prompt) | |
| echo "encrypted" | openssl enc -aes-256-cbc -a -d | 
| // from http://stackoverflow.com/a/7869457 | |
| // converted to js code | |
| // x and y are the angles in radians | |
| function getDifference(x, y) { | |
| var a = x-y; | |
| a = (function(i, j) {return i-Math.floor(i/j)*j})(a+Math.PI, Math.PI*2); // (a+180) % 360; this ensures the correct sign | |
| a -= Math.PI; | |
| return a; | |
| } | 
| [alias] | |
| fetch-pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f" | |
| delete-prs = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" | 
| // ==UserScript== | |
| // @name Bursch Blog Cleaner | |
| // @version 1.0 | |
| // @description This makes Mr.Bursch's blog legible! | |
| // @author Aaron Janse | |
| // @match http://mrbursch.blogspot.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | 
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru