Skip to content

Instantly share code, notes, and snippets.

View cbfrance's full-sized avatar
👋

Chris B. France cbfrance

👋
View GitHub Profile
@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
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;
// 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
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) {
@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
=chunkybacon(!yes = !green, !please_and= !light_grey)
+hover-link
+rounded
:padding 2px
:display block
:font-weight bold
:background = !please_and
:color= !please_and - !light_grey
&:hover
:background= !yes
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)$ '
<html>
<pre>
<code>
____
___ .-~. /_"-._
`-._~-. / /_ "~o\ :Y
\ \ / : \~x. ` ')
] Y / | Y< ~-.__j
/ ! _.--~T : l l< /.-~
/ / ____.--~ . ` l /~\ \<|Y
@cbfrance
cbfrance / RTL-aware wonky link
Created February 6, 2010 03:15
Example of SASS and Compass mixins
if File.exist?('haiti.json.txt')
# parse the file
p "reading from the existing file ...."
jsonfile= File.open("haiti.json.txt", "r")
results= jsonfile.read
parsed_results= Crack::JSON.parse(results)
@incidents = parsed_results['payload']['incidents']
pdf.bounding_box([x_pos, y_pos], :width => 300, :height => 400) do
@incidents.each do |i|