Skip to content

Instantly share code, notes, and snippets.

@digal
digal / .bash_profile
Created September 23, 2011 09:01
Digal's .bash_profile
# ANSI color codes
RS="\[\033[0m\]" # reset
HC="\[\033[1m\]" # hicolor
UL="\[\033[4m\]" # underline
HC="\[\033[5m\]" # blink
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
@digal
digal / Dimensions.scala
Created April 3, 2011 19:47
Scala DSL for simple imagemagick-styles geometry strings
/**
* DSL for imagemagick-style geometry strings
* See http://www.imagemagick.org/Magick++/Geometry.html for description
* Note: offesets are not supported
*
* Implements following constructs
*
* <width> x <height> - Rect
* <Rect> <Qualifier> (where qualifier is !/%/>/<) - Geometry
*
{
"version":{
"git.branch":"status-methods",
"git.message":"added last commit message to buildinfo",
"git.commit":"3dac634f99d19e65691fe529c3a6efd31da10959"
},
"db":{
"status":"OK",
"info":"DBTCPConnector: 127.0.0.1:27017 /127.0.0.1:27017",
"stats":{