Skip to content

Instantly share code, notes, and snippets.

@cbfrance
cbfrance / command linery
Created September 22, 2009 02:32
my .bash_profile
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
export PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ '
#Amazon EC2 Command-Line Tool
export EC2_HOME=~/.ec2
CmdUtils.CreateCommand({
names: ["worldwidelexicon"],
icon: "http://www.worldwidelexicon/favicon.ico",
description: "Translates page fragments using the WWL translation memory.",
help: "Select text and type 'translate with wwl'",
author: {name: "Chris Blow", email: "[email protected]"},
license: "GPL",
homepage: "http://worldwidelexicon.com/ubiquity",
arguments: [{role: 'object', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
// Favorites
@import partials/base.sass
@import partials/colors.sass
@import blueprint/reset.sass
@import compass
@import compass/layout/sticky_footer.sass
@import blueprint/modules/grid.sass
@import blueprint
div.nintey_percent_opacity {
opacity: 0.9;
-moz-opacity: 0.9;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=90);
filter: alpha(opacity=90);
}
div.fifty_percent_opacity {
opacity: 0.5;
-moz-opacity: 0.5;
@cbfrance
cbfrance / gist:105452
Created May 2, 2009 07:30
brainstorming SMS codes
GET earthquake.radius
GET hurricane.deaths
GET hurricane.center
PUT situation:poor