Skip to content

Instantly share code, notes, and snippets.

" Vim color file
" Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@robbles
robbles / gist:1964023
Created March 3, 2012 03:02 — forked from anonymous/gist:1963995
StringADT.java
public class StringADT implements ADT{
private Node head;
public StringADT(){
head = null;
}
//allowed using charAt(i)
@robbles
robbles / virtualenv-auto-activate.sh
Last active November 7, 2023 14:01 — forked from codysoyland/virtualenv-auto-activate.sh
virtualenv-auto-activate with support for zsh and virtualenvwrapper
#!/bin/bash
# virtualenv-auto-activate.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/virtualenv-auto-activate.sh
#
# Go to your project folder, run "virtualenv .venv", so your project folder
# has a .venv folder at the top level, next to your version control directory.
def runserver(app, port=5000, profile_log=None):
"""Runs a development server."""
from werkzeug.serving import run_with_reloader
from werkzeug.debug import DebuggedApplication
from werkzeug.contrib.profiler import ProfilerMiddleware
app.debug = True
port = int(port)