Skip to content

Instantly share code, notes, and snippets.

View banerRana's full-sized avatar

Rana Banerjee banerRana

  • Automated It Solutions
  • Washington, DC
View GitHub Profile
@ydnar
ydnar / csspec.sample.js
Created January 3, 2010 19:47
CSSpec, BDD for CSS. Theoretical.
/* CSSpec: Theoretical BDD for CSS based on jQuery. Doesn’t exist yet. */
with(CSSpec) {
describe("all layouts", function() {
describe("body", function() {
it("has a white background", function() {
value(this.css("background-color")).should.be.color("#fff")
})
it("has black text", function() {
@troy
troy / save-redfin-listing-images-bashrc
Created September 10, 2009 13:22
Given a redfin.com house listing URL, save all full-size images
# usage: redfin-images "http://www.redfin.com/WA/Seattle/123-Home-Row-12345/home/1234567"
function redfin-images() {
wget -O - $1 | grep "full:" | awk -F \" '{print $4}' | xargs wget -
}