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
GET earthquake.radius | |
GET hurricane.deaths | |
GET hurricane.center | |
PUT situation:poor |
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
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; |
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
// 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 |
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
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) { |
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
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 |
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
=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 |
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
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)$ ' |
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
<html> | |
<pre> | |
<code> | |
____ | |
___ .-~. /_"-._ | |
`-._~-. / /_ "~o\ :Y | |
\ \ / : \~x. ` ') | |
] Y / | Y< ~-.__j | |
/ ! _.--~T : l l< /.-~ | |
/ / ____.--~ . ` l /~\ \<|Y |
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 link creates a left-or-right aligned header link, like you might use on a blog post timestamp. | |
=wonky_link(!float = "left", !color="#333") | |
a.wrap | |
:text-decoration none | |
:line-height 15px | |
+columns(3,15) | |
:position absolute | |
:top 10px | |
:left 20px | |
:color #333 |
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
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| |
OlderNewer