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
import os | |
import psycopg2 | |
import psycopg2.extras | |
from psycopg2 import ProgrammingError | |
from psycopg2 import OperationalError | |
from controllers.settings import test_connection as TEST_CONN | |
from controllers.settings import connection as CONN | |
from controllers.settings import cursor_composites |
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
@login_required | |
@csrf_exemp | |
def stamp_detail(self, request): | |
# (N) login adapted from stamps.views.observe | |
# grab the stamp from the DB | |
GRID_SHAPES = [(4, 5), (7, 9), (13, 17)] | |
try: | |
request.META['HTTP_USER_AGENT'] = request.GET.get('uagent') | |
apicall = get_stamp( |
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
# Specifically for MaxOSX | |
# ================== | |
# TERMINAL CONFIGS | |
# ================== | |
# color scheme | |
PS1='\[\033[0;32m\]\u@\h\[\033[0;36m\] \w\[\033[00m\]: ' | |
# bash history modifications | |
shopt -s histappend |
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
#!/bin/bash | |
# This hook is sourced after a new virtualenv is activated. | |
#rvm ruby do rvm gemset create ${PROJECT_RVM_ENV}; | |
ruby do rvm gemset create ${PROJECT_RVM_ENV}; | |
pip install nodeenv; | |
nodeenv -p; | |
mkdir ~/projects/${PROJECT_NAME} | |
touch ~/projects/${PROJECT_NAME}/todo.stml | |
cat > ~/projects/${PROJECT_NAME}/${PROJECT_RVM_ENV}.sublime-project <<DELIM | |
{ |
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
# Specifically for MaxOSX | |
# ================== | |
# TERMINAL CONFIGS | |
# ================== | |
# color scheme | |
PS1='\[\033[0;32m\]\u@\h\[\033[0;36m\] \w\[\033[00m\]: ' | |
# bash history modifications | |
shopt -s histappend |
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
#!/bin/bash | |
# This hook is sourced after every virtualenv is activated. | |
export PROJECT_NAME=${VIRTUAL_ENV#$WORKON_HOME/}; | |
export PROJECT_PATH=/Users/${USER}/repos/${PROJECT_NAME}; | |
export PROJECT_RVM_ENV=`echo $PROJECT_NAME | sed 's,[/-_],,g'`; | |
# override path to... | |
# (1) setup rvm and | |
# (2) pyenv and | |
# (3) virtualenv binaries |
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
#!/bin/bash | |
# This hook is sourced after every virtualenv is deactivated. | |
source ~/.bash_profile; |
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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"copy_with_empty_selection": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", |
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
Better CoffeeScript | |
Bootstrap 3 Jade Snippets # (T) document, not used | |
Bootstrap 3 Snippets # (T) use more | |
Color Highlighter | |
Cucumber | |
Emmet | |
Handlebars | |
JSON Reindent # (T) remove, using npm install -g prettyjson | |
Javascript Beautity # (T) remove | |
JsFormat # (T) remove |
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
# Assumption: virtualenv hooks are all setup | |
PROJECT_NAME = 'obimod/myproject' | |
mkvirtualenv ${PROJECT_NAME} | |
pip install nodeenv | |
nodeenv -p | |
# TODO: Add in package.json now | |
npm install -g | |
npm link |
OlderNewer