Skip to content

Instantly share code, notes, and snippets.

View landonb's full-sized avatar

Landon Bouma landonb

  • Minneapolis, MN
View GitHub Profile
#!/usr/bin/python
import random
import re
import sys
options = {}
class RollSpec:
def __init__(self, spec):
@n8henrie
n8henrie / html_to_csv.py
Created January 22, 2015 00:37
Prompts for a URL, displays HTML tables from that page, then converts the selected table to a csv file.
#! /usr/bin/env python3
"""html_to_csv.py
Prompts for a URL, displays HTML tables from that page, then converts
the selected table to a csv file.
"""
import sys
import pandas
url = input("Enter the URL: ")
@candu
candu / lipsum
Created November 7, 2014 18:13
Command-line Lorem Ipsum generator using curl, lipsum.com, and jq
#!/bin/sh
AMOUNT=5
WHAT=paras
START=false
while getopts ":n:wpbls" opt; do
case $opt in
n)
AMOUNT=$OPTARG
@staltz
staltz / introrx.md
Last active November 14, 2026 19:58
The introduction to Reactive Programming you've been missing
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000