This file contains hidden or 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
| # Sexy Solarized Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
| # Customized for the Solarized color scheme by Sean O'Neil | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi | |
| if tput setaf 1 &> /dev/null; then | |
| tput sgr0 | |
| if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
| BASE03=$(tput setaf 234) | |
| BASE02=$(tput setaf 235) | |
| BASE01=$(tput setaf 240) |
This file contains hidden or 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 "bootstrap/responsive.less"; //Disable importing variables and mixins, causes to break.. | |
| // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET | |
| // -------------------------------------------------- | |
| @media (max-width: 767px) { | |
| .customGrid(auto, 0); | |
| } | |
| // PORTRAIT TABLET TO DEFAULT DESKTOP | |
| // ---------------------------------- |
This file contains hidden or 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
| /* ===== Primary Styles ===================================================== | |
| Author: Fruitcake Studio (Barry vd. Heuvel) | |
| ========================================================================== */ | |
| //Generate a custom (semantic) grid | |
| .customGrid(@gridColumnWidth, @gridGutterWidth){ | |
| #header, #main { | |
| .row(); | |
| } | |
| .block { |
This file contains hidden or 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
| ## Helper file to geocode address using Google Geocoder | |
| import urllib, urllib2, simplejson | |
| from django.utils.encoding import smart_str | |
| def get_lat_lng(location): | |
| # Reference: http://djangosnippets.org/snippets/293/ | |
| location = urllib.quote_plus(smart_str(location)) |
This file contains hidden or 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
| countries = [ | |
| {'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'}, | |
| {'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'}, | |
| {'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"}, | |
| {'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'}, | |
| {'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'}, | |
| {'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'}, | |
| {'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai |
NewerOlder