Skip to content

Instantly share code, notes, and snippets.


Evan Niessen-Derry futuro

  • St. Paul, MN
View GitHub Profile
#!/usr/bin/env python3
import os
import sphinx_rtd_theme
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
extensions = []
templates_path = ['_templates']
source_suffix = ['.rst', '.md']
source_parsers = { '.md': CommonMarkParser, }
View gist:6437cd60eeac18cb1a05087f38cedc1a
set-option -g prefix 'C-\'
unbind-key C-b
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Make sure that window creation commands keep my PWD
bind-key 'c' new-window -c '#{pane_current_path}'
futuro / android-custom.el
Created Feb 14, 2016
Setting up emacs for java development
View android-custom.el
(require 'android) ; This is android.el from the sdk
(mapc (lambda (library)
(require library))
'(java-custom android-mode))
(add-hook 'gud-mode-hook
(lambda ()
(add-to-list 'gud-jdb-classpath
View TimePicker.js
This file has been truncated, but you can view the full file.
var TimePicker =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
futuro / post-merge
Created Aug 27, 2015
Post-merge hook which fixes perms inside the puppet directory. This was a work-around for the fact that I had to clone puppet repos as root, but they had to run as the puppet user.
View post-merge
# Get some helper functions
. git-sh-setup
# Go to the toplevel of the git directory
# If we're in the puppet modules, run the following, since they're specific to puppet
if [[ "$PWD" == "/etc/puppet/environments/production/modules"* ]]
futuro / dissoc-in.clj
Created Jul 22, 2015
A little snippet on how to remove nested maps with dissoc-in from core.incubator
View dissoc-in.clj
wikiparse.core> tstmap
{:front {:middletwo "m2", :middlethree "m3", :middleone :m1}, :back2 "b2", :back1 :b1}
wikiparse.core> (clojure.core.incubator/dissoc-in tstmap [:front :middletwo])
{:front {:middlethree "m3", :middleone :m1}, :back2 "b2", :back1 :b1}
View gist:84fd81d07369f78941cc
This file has been truncated, but you can view the full file.
org.wikibrain.Loader -l simple -s fetchlinks -s download -s dumploader -s redirects -s wikitext -s lucene -s phrases -s concepts -s universal -s wikidata -s spatial -s sr -c customized.conf
Mar 02, 2015 8:30:28 PM org.wikibrain.Loader <init>
INFO: pipeline keeping args: [-l, simple, -c, customized.conf]
Mar 02, 2015 8:30:28 PM org.wikibrain.core.lang.Language loadAllLanguages
INFO: loaded 285 languages
Mar 02, 2015 8:30:31 PM org.wikibrain.conf.Configurator registerProviders
futuro /
Last active Aug 29, 2015
An introduction to underscore.js that can be used with
  1. Copy and paste underscore.js into, and execute it.

  2. Clear that text, then copy/paste whatever you find relevant from intro-to-underscore.js, probably starting with the data structures. Some of the later functions rely on previous work, so keep that in mind if you like to skip around.

View chart.js
* Chart.js
* Version: 1.0.1
* Copyright 2015 Nick Downie
* Released under the MIT license
futuro / hello-world
Created Jan 11, 2015
hello-world program to show xlib:open-font problems with 9x15bold
View hello-world
(defun hello-world (width height &optional (host ""))
(let* ((display (xlib:open-display host))
(screen (first (xlib:display-roots display)))
(black (xlib:screen-black-pixel screen))
(white (xlib:screen-white-pixel screen))
(root-window (xlib:screen-root screen))
(grackon (xlib:create-gcontext
:drawable root-window
:font "9x15bold"
:foreground white
You can’t perform that action at this time.