Skip to content

Instantly share code, notes, and snippets.

View sfuller's full-sized avatar
💻
Current Status: Probably coding. This is GitHub, after all..

Sam Fuller sfuller

💻
Current Status: Probably coding. This is GitHub, after all..
View GitHub Profile
@sfuller
sfuller / parkscraper.py
Created February 22, 2022 01:31
Golden gate picnic table reservation site availability checker
#!/usr/bin/env python3
# pip install requests beautifulsoup4
import argparse
import re
import datetime
import time
import pickle
from typing import Iterable, List, Dict, Tuple
import requests
"""
Reference:
http://formats.kaitai.io/apple_single_double/index.html
http://kaiser-edv.de/documents/AppleSingle_AppleDouble.pdf
above linke is dead, archive:
https://web.archive.org/web/20180311140826/http://kaiser-edv.de/documents/AppleSingle_AppleDouble.pdf
"""
import enum
from ctypes import BigEndianStructure, c_uint32, c_uint16, c_char
#!/usr/bin/env python
import threading
import sys
import time
class Getch:
"""Gets a single character from standard input. Does not echo to the
screen."""
def __init__(self):
@sfuller
sfuller / .vimrc
Created November 18, 2015 18:09
muh vimrc
" VUNDLE
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@sfuller
sfuller / .zshrc
Created October 29, 2015 05:23
muh zshrc
source ~/.antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle pip
antigen bundle command-not-found