Skip to content

Instantly share code, notes, and snippets.

View schimfim's full-sized avatar

uncleWalter schimfim

  • Hamburg, Germany
View GitHub Profile
# giteasy.py
# Simplified git access for python
from agithub import Github
from base64 import b64decode
class Giteasy(object):
def __init__(self, user, pwd):
self.g = Github(user, pwd)
self.username = user
@schimfim
schimfim / run_srv.py
Created March 13, 2013 16:10
Switched to BaseHTTPServer
'''
Run current script as web application.
When run from the editor action menu,
this script will take the file currently
open in the editor and run it as a
request handler for an HTTPServer. The
file must define a class "Handler" as
a subclass of BaseHTTPRequestHandler to
handle the requests (see example below).
@schimfim
schimfim / gistcheck.py
Created March 8, 2013 19:47 — forked from Westacular/gistcheck.py
An all-purpose tool for pulling from, committing to, and downloading new gists in Pythonista.
# Source: https://gist.github.com/4145515
#
# All-purpose gist tool for Pythonista.
#
# When run directly, this script sets up four other scripts that call various
# functions within this file. Each of these sub-scripts are meant for use as
# action menu items. They are:
#
# Set Gist ID.py - Set the gist id that the current file should be
# associated with.