Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am srobbin on github.
* I am srobbin (https://keybase.io/srobbin) on keybase.
* I have a public key ASDcyTCB8mdVL-Jl1rVpKa5zKsUbZiZc9OWhf7cUdPCupwo
To claim this, I am signing this object:
@srobbin
srobbin / million-dollar.yml
Created November 13, 2014 18:58
Million Dollar YAML
-
coords: "630,310,640,320"
href: "http://www.getpixel.net"
title: "getpixel.net, stock photography"
-
coords: "850,50,860,60"
href: "http://www.mynewbritain.com"
title: "MyNewBritain.com"
-
coords: "390,280,420,310"
@srobbin
srobbin / gist:6612855bdc53becae704
Created August 3, 2014 20:26
FCC Comment Scraper
require 'mechanize'
require 'csv'
require 'net/http'
count = 1
site = "http://apps.fcc.gov"
last_id = 6018081653
agent = Mechanize.new
allowed_fields = [
'Proceeding Number:',
/*
* Flower - jQuery plugin for pie menus
*
* Author: Aza Raskin
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
notes.factory('Notes', function($resource) {
return $resource('/notes/:id.json', {id: '@id'});
});
notes.factory('UserNotes', function($resource) {
return $resource('/user/:user_id/notes/:note_id.json', {user_id: '@user_id', note_id: '@note_id'});
});
UserNote.query({user_id: 3})
UserNote.get({user_id: 3, note_id: 1})

Keybase proof

I hereby claim:

  • I am srobbin on github.
  • I am srobbin (https://keybase.io/srobbin) on keybase.
  • I have a public key whose fingerprint is BE65 F562 65A2 A60D BEE3 C113 8897 358A 156F B0C0

To claim this, I am signing this object:

@srobbin
srobbin / gist:6893837
Created October 8, 2013 23:52
A quick workaround for Backstretch on iOS7
if (navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i)) {
$("body").css({
"background": "url(path/to/image.jpg) center center no-repeat",
"background-size": "cover"
});
} else {
$.backstretch("path/to/image.jpg");
}
@srobbin
srobbin / gist:5990740
Created July 13, 2013 13:36
Semantic markup for The Starter League
<html>
<head>
<title>The Starter League</title>
</head>
<body>
<header>
<nav>
<a href="#">FAQ</a>
<a href="#">Blog</a>
<a href="https://twitter.com/starterleague">@StarterLeague</a>
@srobbin
srobbin / styles.css
Created April 18, 2013 23:46
A simple CSS tooltip
section {
font-family: Helvetica, sans-serif;
width: 960px;
margin: 50px auto 0 auto;
}
.tooltip {
display: none;
position: absolute;
background: black;
@srobbin
srobbin / index.html
Created March 19, 2013 17:02
jQuery Plugin Workshop Dropdown menu
<h2>Dropdown Menu</h2>
<div class="dropdown">
<a data-toggle="dropdown" href="#">Dropdown</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>