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 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
# Set CLICOLOR if you want Ansi Colors in iTerm2 | |
export CLICOLOR=1 | |
# Set colors to match iTerm2 Terminal Colors | |
export TERM=xterm-256color | |
# Customize terminal prompt | |
# export PS1="\u \W $ " | |
# virtualenv prompt |
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/sh | |
# | |
# Automatically prepends commit message with a branch name. | |
# | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
echo -n "$NAME"': '| cat - "$1" > /tmp/out && mv /tmp/out "$1" |
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 sys | |
from django.utils.html import format_html | |
from django.utils.safestring import mark_safe | |
import cloudinary | |
def pictureElement(publicID, sizes, srcset, alt): | |
""" | |
constructs HTML5 <picture> element with passed | |
sizes, srcset and alt parameters from Cloudinary publicID image |