Skip to content

Instantly share code, notes, and snippets.

View futuro's full-sized avatar

Evan Niessen-Derry futuro

  • St. Paul, MN
  • 17:50 (UTC -05:00)
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, }
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
futuro / android-custom.el
Created February 14, 2016 01:45
Setting up emacs for java development
(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
"~/devel/mobil/android/android-sdk-linux/platforms/android-17/android.jar")))
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
/******/ if(installedModules[moduleId])
@futuro
futuro / post-merge
Created August 27, 2015 15:41
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.
#!/bin/bash
# Get some helper functions
. git-sh-setup
# Go to the toplevel of the git directory
cd_to_toplevel
# If we're in the puppet modules, run the following, since they're specific to puppet
if [[ "$PWD" == "/etc/puppet/environments/production/modules"* ]]
then
@futuro
futuro / dissoc-in.clj
Created July 22, 2015 03:08
A little snippet on how to remove nested maps with dissoc-in from core.incubator
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}
@futuro
futuro / gist:84fd81d07369f78941cc
Created March 3, 2015 04:14
wikibrain loader output
This file has been truncated, but you can view the full file.
running:
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
INFO: configurator installed 70 providers for 37 classes
@futuro
futuro / README.md
Last active August 29, 2015 14:14
An introduction to underscore.js that can be used with repl.it
  1. Copy and paste underscore.js into repl.it, 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.

/*!
* Chart.js
* http://chartjs.org/
* Version: 1.0.1
*
* Copyright 2015 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
@futuro
futuro / hello-world
Created January 11, 2015 04:07
hello-world program to show xlib:open-font problems with 9x15bold
(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