Skip to content

Instantly share code, notes, and snippets.

View contolini's full-sized avatar
🐛
call me

Chris Contolini contolini

🐛
call me
View GitHub Profile
<link rel="stylesheet" type="text/css" href="style.css?v2" />
<ul class="menu">
<li class="first leaf menu-635"><a href="/get-involved" title="Support Lumos by getting involved">Get Involved</a></li>
<li class="leaf menu-637"><a href="/the-problem" title="The problems institutionalized children face">The Problem</a></li>
<li class="leaf active-trail menu-638"><a href="/the-solution" title="The solutions to the problems children face" class="active-trail active">The Solution</a></li>
<li class="leaf menu-639"><a href="/about" title="About Lumos">About</a></li>
<li class="leaf menu-640"><a href="/resources" title="Lumos resources">Resources</a></li>
<li class="last leaf menu-636"><a href="/donate" title="Support Lumos financially">Donate</a></li>
</ul>
.sans {
font-family: 'Source Sans Pro', Arial, sans-serif;
}
.serif {
font-family: 'Droid Serif', Times, 'Times New Roman', serif;
}
.thin {
font-weight: 300;
}
.bold {
<html>
<head>
<style type="text/css">
td {
font-size: 30px;
padding: 20px;
border: 1px solid gray;
text-align: center;
}
.chosen {
@contolini
contolini / getCache.js
Last active January 17, 2020 14:58 — forked from ryanflorence/getCache.js
Memoization of jQuery's $.getJSON() to use localStorage for caching.
var getCache = function(url) {
var supportsLocalStorage = 'localStorage' in window;
// Both functions return a promise, so no matter which function
// gets called inside getCache, you get the same API.
function getJSON(url) {
var promise = $.getJSON(url);
@contolini
contolini / gist:7d4f8717cb0cdb1144e7
Last active August 29, 2015 14:03
jumbo loan logic
// This is extremely un-DRY pseudo code
$( loan_amount, loan_type ).on('change', function(){
// Jumbo loans
if ( loan_type == 'conf' && loan_amount >= $417,000 ) {
$( county_dropdown ).show();
$( county_dropdown ).on('change', function(){
@contolini
contolini / gist:c580c48f98dc22cc6238
Last active August 29, 2015 14:04
fellowship pitch

CFPB is a consumer-centric federal agency that uses its dev and design skills to raise awareness of financial issues like student debt and discriminatory lending practices. We’re accepting applications for our 2015 technology fellowship and we’re looking for graphic designers, front-end devs, back-end devs, data scientists and UX experts. It's a two-year fellowship that starts in January 2015. Applications close soon, though, on July 31!

More info: http://www.consumerfinance.gov/jobs/technology-innovation-fellows/ (Scroll down for the verbose job descriptions)

Job logistics:

  • 100% remote (work from anywhere in the U.S. with occasional trips to DC to meet with teammates and subject matter experts)
  • It's a full-time gig with a solid salary (between $75k and $145k depending on experience and location).
  • Write open source code all day long. Legally, all code you write is in the Public Domain.
  • Federal benefits and opportunities to attend conferences like OSCON, Fluent, PyCon, OpenVis, Strange Loop
function one( foo ){
return $.ajax({
url: foo
});
}
function two( bar ){
return $.ajax({
url: bar
});
@contolini
contolini / .gitconfig
Last active August 29, 2015 14:14
`git emoji` alias that will use a random emoji as commit message
[alias]
# Random emoji commit message
emoji = "!git commit -am \"$(echo $(emoji-random)\"\")\""
config_files = Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf")
config_files.each do |file|
certificate_files = ['ca', 'cert', 'key', 'tls-auth']
config_dir = File.dirname(file)
connection_name = nil
new_config = []
File.read(file).each_line do |line|
line.strip!