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 | |
# -*- coding: utf-8 -*- | |
import sys, os, cmd | |
from collections import namedtuple | |
PowerballTicket = namedtuple("PowerballTicket", | |
["ticket_number", "white_balls", "powerball"]) | |
class PowerballChecker(cmd.Cmd): | |
intro_lines = [] |
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
# GVIM Wrapper! | |
# Usage: gvim [option] [file...] open files, tabbed, in a shared window (default one per terminal) | |
# Options: (only one can be used) | |
# -d, --dir Open files in a window specific to the current working directory | |
# -n, --normal Execute command without server arguments | |
# -s, --server <name> Open files in the window named <name> | |
# --print Print command with full arguments | |
# --usage Print this message and exit | |
vim-gui-server() { | |
local PROGRAM="$1" |