Skip to content

Instantly share code, notes, and snippets.

View dustinfarris's full-sized avatar
💭
🇺🇸

Dustin Farris dustinfarris

💭
🇺🇸
View GitHub Profile
@RazorAnt
RazorAnt / gist:6992563
Created October 15, 2013 14:37
Airmail script for ProfitTrain
-- The following is an AppleScript function ProfitTrain will call when you choose "Email Client..."
-- under an invoice. Before using the built in AppleScript ProfitTrain will look for
-- this user AppleScript file at:
-- /Users/[you]/Library/Application Support/ProfitTrain/email_invoice_using_user_script.scpt
-- By edting this file you can further customize the email with different subject lines, etc.
-- and/or use an alternative email client that is not supported by Billable by default.
-- Script using Airmail
@dustinfarris
dustinfarris / .gvimrc
Last active December 23, 2015 14:19
VI settings
scriptencoding utf-8
" Powerline setup
set guifont=Droid\ Sans\ Mono\ for\ Powerline:h15
set laststatus=2
" MVim options
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
@dustinfarris
dustinfarris / session_enabled_test_case.py
Last active April 18, 2024 22:17
Setting session variables whilst testing with Django's TestCase
"""
Attempting to set session variables directly from TestCases can
be error prone. Use this super-class to enable session modifications
from within your tests.
Usage
-----
class MyTest(SessionEnabledTestCase):
@eykd
eykd / .gitignore
Created January 19, 2012 04:37
Full stack BDD testing with Behave+Mechanize+Django
*.pyc
bin/
include/
lib/
@berinhard
berinhard / ipdb_breakpoint.vim
Created August 13, 2010 19:30
A script to enable easy ipdb usage for Vim users.
" Author: Bernardo Fontes <falecomigo@bernardofontes.net>
" Website: http://www.bernardofontes.net
" This code is based on this one: http://www.cmdln.org/wp-content/uploads/2008/10/python_ipdb.vim
" I worked with refactoring and it simplifies a lot the remove breakpoint feature.
" To use this feature, you just need to copy and paste the content of this file at your .vimrc file! Enjoy!
python << EOF
import vim
import re
ipdb_breakpoint = 'import ipdb; ipdb.set_trace()'