Skip to content

Instantly share code, notes, and snippets.

View isaacsanders's full-sized avatar

Isaac Sanders isaacsanders

View GitHub Profile
@isaacsanders
isaacsanders / commands.md
Last active February 20, 2019 23:00
Basic Vim commands

Vim primer

Modes

  • Normal: the mode that you are generally in at the beginning of a session. One does most of their moving around in this mode.
  • Insert: the mode where you are inserting text.
  • Visual: the mode for selecting text.
  • Command: the mode where you use commands for reading/writing files and managing your session.

I imagine I am missing some, but these are the ones I use the most.

@isaacsanders
isaacsanders / agenda.md
Created January 2, 2013 02:43
An agenda for a recent meeting.

#Council of Chiefs

9:00PM November 3, 2012

Camp Lazarus
4422 Columbus Pike
Delaware, OH 43015

Goal of the Meeting: To make decisions regarding the specifics of Conclave 2013

@isaacsanders
isaacsanders / AVLTree.java
Created December 7, 2012 00:47
This is my eternal shame.
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Stack;
public class AVLTree<T extends Comparable<T>> implements Iterable<T> {
public class BoolWrapper {
public boolean value;
Calculus 2 Final
Sequences and Series
Taylor Series
Methods of Integration
U-sub
partial fraction
Integration by parts
Simpson's and Trapezoidal Rule
Improper Integrals
Area
@isaacsanders
isaacsanders / error.txt
Created September 6, 2012 12:52
Python error that I don't understand.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "image.py", line 22, in pixels
pixels.append(pixel.Pixel(__pixel__[0], __pixel__[1], __pixel__[2]))
TypeError: __init__() takes exactly 3 arguments (4 given)
@isaacsanders
isaacsanders / apprenticeship.md
Created September 4, 2012 14:31
Serial Apprenticeship

#I am a Serial Apprentice.

Not that kind of serial...

@isaacsanders
isaacsanders / apprenticeship.md
Created September 4, 2012 14:29
A presentation on my apprenticeships

#Serial Apprenticeship

@isaacsanders
isaacsanders / jquery-fileFypeIcon.js
Created August 13, 2012 21:37
This is the js file. it isn't that bad.
(function($) {
this.FileLink = function(filename){
this.filename = filename;
};
FileLink.prototype = {
LAST_URL_SECTION_PATTERN: /\/?([^\/]+)$/i,
BEFORE_QUERY_STRING_PATTERN: /^([^?]+)/i,
FILE_EXTENSION_PATTERN: /\.([^\.]*)$/i,
extension: function(){
@isaacsanders
isaacsanders / metaprogramming.rb
Created August 10, 2012 17:16
Do you prefer metaprogramming, or lots of repetition?
require 'chemistry/temperature'
module Chemistry
class Element
class << self
def property(name, type, &transformer)
define_property_setter name, type, &transformer
define_property_getter name
end
@isaacsanders
isaacsanders / crawl.zsh
Created August 7, 2012 21:03
Crawls all absolute links on a page
# If this:
URLS=`curl $HOST/articles.html |\
grep -o 'href="\([^"]*\)' |\
grep -o '/[^/]*/\?.*html' |\
sed 's/\(.*\)/localhost:3000\1/'`; for url in $URLS
do
echo $url
done
# Produces this:
localhost:3000/articles.html