Host gist
Hostname gist.github.com
User git
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
@classmethod | |
def _repr_template(cls): | |
""" | |
Creates a class specific template for __repr__ | |
""" | |
beginning, middle, end = ('{}(', "{}={{{}}}", ')') | |
table = cls.__table__ | |
primary_fields = table.primary_key.columns_autoinc_first |
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
" Run /vagrant/bin/start.sh in virtual machine. | |
nnoremap <silent> <F5> :sil! !ssh -i ~/.vagrant.d/insecure_private_key -p 2222 vagrant@localhost /vagrant/bin/start.sh<CR> |
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
ps | grep spring | grep -v grep | cut -f1 -d ' ' | xargs kill |
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
Open 'System Preferences -> Keyboard' | |
Select tab 'Shortcuts' | |
Select 'Application Shortcuts' from the left listbox | |
Click '+' below right listbox | |
Select 'All Applications' for 'Application' input box | |
Type 'Paste and Match Style' into the 'Menu Title' input box | |
In the 'Keyboard Shortcut' input box press ⌘v | |
Click 'Add' |
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
#This is a work in progress. | |
from django.conf.urls import patterns, url | |
from view_file_name import my_view | |
def kwarg(kwarg_name, kwarg_regex=r'[a-z0-9-]+'): | |
""" | |
:param kwarg_name: The key to which this kwarg will be assigned | |
:param kwarg_regex: The regular expression the keyword's value must match |
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
Host vagrant | |
Port 2222 | |
Hostname 127.0.0.1 | |
User vagrant | |
IdentityFile ~/.vagrant.d/insecure_private_key |