Skip to content

Instantly share code, notes, and snippets.

@spilliams
spilliams / avbc.txt
Last active October 3, 2015 22:27
bottle cap messages!
72 Brightlighter 'n eeld'm piked straightnecky moshe from Frisk
73
74
75
76 needeekin' the bahlness, neeshyin' the pike, deekin' for frattey nooks.
77
78 "Serowish!" springkneed Brightlight, n shied pikin' for parkin' on muzz creek.
79
80 n harped, "Tire's strung, moshe's stook," on eeld'm.
81 "I'll pike to Boont, deek for a walter levi,
@spilliams
spilliams / stickyfoundationfooter.js
Created May 14, 2012 22:13
Make Ryan Fait's Sticky Footer work with ZURB Foundation
/* Sticky Footer Foundation fix */
$(".footer, .push").height($(".footer .row").height()+"px");
$(".wrapper").css({'margin-bottom':(-1*$(".footer .row").height())+"px"});
window.onresize = function(){
$(".footer, .push").height($(".footer .row").height()+"px");
$(".wrapper").css({'margin-bottom':(-1*$(".footer .row").height())+"px"});
}
@spilliams
spilliams / 1_route.md
Created May 15, 2012 03:28
Oh, the places I'll go (on my bike trip this summer).

#Route

6 SeptHannibal, MOAstoria, OR27 SeptLewis & Clark trail
Morning ofleaveand arrive atin the evening ofvia
14 AugPortland, MEBoston, MA15 AugPortsmouth, NH
16 AugBoston, MAMamaroneck, NY17 Aug???
19 AugMamaroneck, NYWashington, D.C.21 Aug???
23 AugWashington, D.C.Pittsburgh, PA25 Aug???
27 AugPittsburgh, PAHannibal, MO4 Sept???
@spilliams
spilliams / Templater.js
Created May 23, 2012 02:06 — forked from bryfox/Templater.js
One variation on simple JS templating
/*global document */
(function (ctx) {
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
@spilliams
spilliams / leaflet_numbered_markers.css
Created May 23, 2012 23:55 — forked from comp615/leaflet_numbered_markers.css
Numbered Markers in Leaflet (JS Mapping)
.leaflet-marker-pane .leaflet-clickable {
position: absolute;
top: -55px; /* depends on icon graphic */
left: -17px; /* depends on icon graphic */
}
.leaflet-marker-pane .leaflet-clickable .number {
position: absolute;
top: 10px; /* depends on icon graphic */
width: 34px; /* depends on icon graphic */
text-align: center;
@spilliams
spilliams / jquery.boilerplate.js
Created June 6, 2012 13:05
Boilerplate jQuery Plugin. Copypasta.
// replace instances of "myPlugin" with your plugin name
(function($){
var methods = {
init : function( options ) {
var defaults = {
};
var options = $.extend(defaults,options)
return this.each(function() {
@spilliams
spilliams / mobile.css
Created June 11, 2012 22:07
Responsive Breakpoints Boilerplate
.show_on_phones, .show_on_tablets, .hide_on_desktop {
display: none;
}
@media only screen and (max-width: 768px) and (min-width: 481px) {
/* tablets only */
.show_on_tablets {
display: block;
}
.show_on_desktop, .hide_on_tablets {
@spilliams
spilliams / magicks.css
Created June 21, 2012 00:23
css magicks!
/* flag links that don't go anywhere */
a[href = ""] {
background: red;
color: white;
font-size: x-large;
}
/* flag absolute links */
@spilliams
spilliams / SWAppDelegate.h
Created January 18, 2013 02:08
lock state notifications test
//
// SWAppDelegate.h
// lockstatenotificationstest
//
// Created by Spencer Williams on 1/17/13.
// Copyright (c) 2013 Spencer Williams. All rights reserved.
//
#import <UIKit/UIKit.h>
@spilliams
spilliams / 1_iOS_bootstrap.md
Last active December 14, 2015 17:09
steps for bootstrapping an iOS project

#Bootstrapping An iOS App

Note: If you're bootstrapping a static lib project, read this gist instead.

##Project Setup

  1. New xcode project (including save to directory).
  2. Set devices and iOS target
  3. decide if you're going to use Autolayout (set in the Storyboard > File inspector > Interface Builder Document section)
  4. Create Constants.h, and #import "Constants.h" in the PCH