This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" My thrown-together-in-five-minutes Vim bindings for Colemak. | |
" | |
" The most radical change here is that 's' enters insert mode. | |
" Importantly, the movement keys remain unaltered. | |
" | |
" Any other keys (o, y, p, u, etc) use their Colemak locations | |
" because they're better (and my fingers have forgotten QWERTY). | |
" Movement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for Tumblr themes. | |
# I am not even kidding. | |
THEME=nox | |
all: $(THEME).tumblr.html | |
$(THEME).css: $(THEME).sass | |
sass $(THEME).sass > $(THEME).css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I feel like this can't possibly be how you're *supposed* | |
// to find the directory a file resides in in Go. | |
package clever | |
import ( | |
"path" | |
"runtime" | |
) | |
func GetMyDir() string { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Warning: eats memory quickly. | |
// Resource limiting recommended. | |
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import sys | |
import time | |
import urllib | |
email = "[email protected]" | |
password = "Haha, like I'd show you!" | |
def get_fix(start=0, num=50): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesClass{dsawork}[2009/02/04 Class for DSA homework] | |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} | |
\ProcessOptions\relax | |
% Base on the standard article class | |
\LoadClass{article} | |
%\ProvidesPackage{dsawork} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[letterpaper]{article} | |
\usepackage{amsmath} | |
\usepackage{graphicx} | |
\usepackage{inconsolata} | |
%\pagestyle{empty} | |
%% About the assignment... | |
\newcommand{\name}{Adam Lloyd} | |
\newcommand{\class}{CSCI 4380} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$HTTP["host"] =~ "nagato.alloy-d.net" { | |
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "3080" ) ) ) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following lines were added by compinstall | |
zstyle ':datetime:*' calendar-file '/home/adam/.calendar' | |
zstyle ':completion:*' format 'Completing %d:' | |
zstyle ':completion:*' group-name '' | |
zstyle ':completion:*' ignore-parents parent pwd .. directory | |
zstyle ':completion:*' list-colors '' | |
zstyle ':completion:*' list-suffixes true | |
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' | |
zstyle ':completion:*' max-errors 2 not-numeric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var useSeveralSmallAndSinglePurposeHelperFunctionsToManipulateASetOfClearlyNamedVariablesWithTheUltimatePurposeOfCreatingSomethingThatLooksLikeASpiralGalaxy = function () { | |
var imCallingThisVariableIndexOfArmInTheSpiralGalaxyToMakeBrianHappy = 0; | |
var imCallingThisVariableDistanceInArbitraryUnitsAlongTheCurveToMakeBrianHappy = 0; | |
var imCallingThisVariableTemporaryCounterVariableToMakeBrianHappy = 0; | |
var imCallingThisTheArrayOfStarsThatHasOneSubarrayForEachArmInTheSpiralGalaxyToMakeBrianHappy = []; | |
var getARandomColorThatIsEitherBluishOrReddish = function () { | |
// returns a random color that is either bluish or reddish. | |
// used in addStar(). | |
} |
OlderNewer