Skip to content

Instantly share code, notes, and snippets.

@pamelafox
pamelafox / header.html
Created August 8, 2012 04:51
Handlebars Design Prototyping
<html>
<head>
<style>
.w100percent {
}
.w1280px {
}
.w900px {
}
.w768px {
@max-mapper
max-mapper / cordova-loader.js
Created August 31, 2012 23:33
phonegap conditional script loader
// require this script before your document is done loading
;(function () {
var isDroid = navigator.userAgent.match(/Android/)
var isiOS = navigator.userAgent.match(/(iPhone|iPod|iPad)/)
var droidScripts = [
"script/cordova-android.js",
"script/android-utils.js",
"script/cdv-plugin-childbrowser-android.js",
"script/cdv-plugin-datepicker.js",
@mikedup
mikedup / gist:6981842
Last active December 25, 2015 13:09
Publet FJ temp styles
div.table-of-contents { margin-top: 17px; }
div.table-of-contents h1 { font: bold 40px serif; padding-bottom: 80px; text-align: center; text-transform: uppercase; }
div.table-of-contents h4 { color: #363636; font: italic 12px serif; margin-bottom: 0; margin-top: 50px; text-align: center; }
div.table-of-contents ul li { margin: 20px 0; }
div.table-of-contents ul li a { font: bold 20px serif; text-decoration: none; }
div.sep { background: #9A9A9A; height: 1px; margin: 30px 0; width: 100%; }
header { background: #323A45; left: 0; height: 50px; margin: 0 !important; position: fixed; top: 0; width: 100%; z-index: 51; }
header h1 { color: transparent; display: block; float: left; width: 10%; }
@goldsmith
goldsmith / python_mavericks_guide.sh
Last active December 25, 2024 20:56
When I upgraded my Mac to OS X Mavericks, a lot of utilities (like Python, virtualenv, Xcode) broke, and it was pretty stressful trying to get it all set back up. Hopefully this guide can spare you some of that pain.Note: I'm by no means a Linux or Mac expert, so please fork and let me know if anything is redundant, incorrect, or missing!
# A guide to prevent pain and suffering while upgrading to OS X Mavericks
# This will vary greatly depending on system set up, so read the instructions carefully
# Back up Virtulenvs
####################
# Very important!
# For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv
# in order to prevent loss of dependencies during the upgrade.