Skip to content

Instantly share code, notes, and snippets.

View jacqui's full-sized avatar

Jacqui Lough jacqui

View GitHub Profile
@jacqui
jacqui / gist:983051
Created May 20, 2011 14:43 — forked from pauldix/gist:981916
Redis SORT command examples
# Optimized for writes, sort on read
# LVC
redis.hset("bonds|1", "bid_price", 96.01)
redis.hset("bonds|1", "ask_price", 97.53)
redis.hset("bonds|2", "bid_price", 95.50)
redis.hset("bonds|2", "ask_price", 98.25)
redis.sadd("bond_ids", 1)
redis.sadd("bond_ids", 2)
@jacqui
jacqui / buenos-aires-recommendations.md
Last active July 27, 2017 15:56
places to eat, drink, stuff to do and see in the lovely port city of Buenos Aires

Buenos Aires

Restaurants & Food

  • Famous & fancy: Patagonia Sur
  • Pizzeria Guerrin excellent pizza, maybe the best in the city
  • Some cute cafes, all equally good, nice for breakfast or lunch: Malvon, Oui Oui
  • Historic cafe: Las Violetas
  • STEAK: some good places I've been are:
    • Social la Lechuza - ok, probably not the best steak in town, but for ambiance this place is neat, it's a social club with an owl (la lechuza) theme, walls are covered in customer drawings of, yes, owls. I like the joint.
@jacqui
jacqui / .block
Last active June 18, 2017 17:00
animated svg on scroll
license: mit
@jacqui
jacqui / index.html
Created September 19, 2016 10:45 — forked from dnprock/index.html
World Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
[http://story-newshack.rhcloud.com/]
<?xml version='1.0' encoding='utf-8'?><LostProperty><responsecode>0</responsecode><message></message><NumberOfLostArticles>214239</NumberOfLostArticles><NumberOfItemsclaimed>70594</NumberOfItemsclaimed><Category Category="Home Furnishings"><SubCategory SubCategory="Wall and Window Covering" count="80"/><SubCategory SubCategory="Ornaments" count="49"/><SubCategory SubCategory="Appliances" count="98"/><SubCategory SubCategory="Linen" count="977"/><SubCategory SubCategory="Floor Covering" count="30"/><SubCategory SubCategory="All Other Furnishings" count="557"/><SubCategory SubCategory="Dishware" count="610"/></Category><Category Category="Sports Equipment"><SubCategory SubCategory="Bats" count="13"/><SubCategory SubCategory="Scooter" count="65"/><SubCategory SubCategory="Golf Club" count="5"/><SubCategory SubCategory="Ball" count="230"/><SubCategory SubCategory="Skateboard" count="45"/><SubCategory SubCategory="Binocular" count="20"/><SubCategory SubCategory="Electric Motor Scooter" count="1"/><SubCategory SubC
@jacqui
jacqui / allmytweets.txt
Created January 26, 2014 00:05
all of "kingmickeyp"'s tweets
@ejacqui hahahaha fuck you. don't call the cops when you're in trouble you dumb cunt #rat 🐀 Jan 25, 2014
@Clemenparty and 1 in my bed #YourMom Jan 25, 2014
@Clemenparty Yeah. Pedicures are in douchebag. What's weird is being 22 and not partying ur face off on a Saturday #pussy Jan 25, 2014
RT @TimboSlice8: First ever Stadium Club Fièsta. Free mustaches and a piñata filled with live bee's at midnight. Jan 25, 2014
“@Mikey_Wagz: Fireballs at 2pm should be illegal” mandatory** Jan 25, 2014
RT @kelseywilsonn: @kingmickeyp 10.5 Jan 25, 2014
@ejacqui ur a beat off with no friends Jan 25, 2014
@vickaloo LOL 😂 http://t.co/IQ0rQcQUbf Jan 25, 2014
@vickaloo @KatlinBewley ur beatoff boyfriend slept w me. Woke up w his leg around me Jan 25, 2014
@HOPondees I will do that favor right noe. Jan 25, 2014
If you have an OO background - or have read Sandy Metz’ book [link] - you’ll notice something about this conventional Rails code. Not only is it a huge mess of dependencies, it violates damn near every part of SOLID object-oriented design [link to http://en.m.wikipedia.org/wiki/SOLID_(object-oriented_design)] that we practice as a means of keeping our code nimble.
require 'sinatra'
require 'sanitize'
TO_REMOVE = ["", " ", "&nbsp;"]
get '/' do
<<-HTML
<form method="post" action="sanitize">
<textarea name="dirty" style="width:100%;height:800px;"></textarea>
<input type="submit" value="Submit">
@jacqui
jacqui / earnings.json
Created February 15, 2013 21:29
Scraped from the Bureau of Labor Statistics "Labor Force Statistics from the Current Population Survey" http://www.bls.gov/cps/cpsaat39.htm
[{"female_workers":"45,462","total_workers":"102,749","male_earnings":"$854","male_workers":"57,286","female_earnings":"$691","total_earnings":"$768","label":"Total, full-time wage and salary workers"},{"label":""},{"female_workers":"21,059","total_workers":"40,984","male_earnings":"1,328","male_workers":"19,926","female_earnings":"951","total_earnings":"1,108","label":"Management, professional, and related occupations"},{"female_workers":"7,869","total_workers":"16,991","male_earnings":"1,387","male_workers":"9,121","female_earnings":"993","total_earnings":"1,171","label":"Management, business, and financial operations occupations"},{"female_workers":"4,765","total_workers":"11,547","male_earnings":"1,428","male_workers":"6,783","female_earnings":"1,036","total_earnings":"1,248","label":"Management occupations"},{"female_workers":"265","total_workers":"1,004","male_earnings":"2,275","male_workers":"739","female_earnings":"1,730","total_earnings":"2,060","label":"Chief executives"},{"female_workers":"278","to