Skip to content

Instantly share code, notes, and snippets.

View AlexTalks's full-sized avatar

Alex Sarkesian AlexTalks

  • Temporal Technologies
  • New York, NY
View GitHub Profile
#!/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 = []
@AlexTalks
AlexTalks / vim-gui-server
Last active August 29, 2015 14:10
GVIM Wrapper! One TTY one GVIM window...
# 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"