Revisiting my original technique for creating CSS pie charts (http://atomicnoggin.ca/blog/2010/02/20/pure-css3-pie-charts/) Using :AFTER and :BEFORE to cut down on the amount of HTML required
A Pen by Patrick Denny on CodePen.
IScrollable = Mn.Behavior.extend({ | |
events: { | |
'scroll': _.throttle(function () { this.scrollHandler(); },500) | |
}, | |
scrollHandler: function (e) { | |
if (this.bottomHited || this.areWeAtTheBottomNow(this.$el)) return; | |
this.scrollBottomHit(); | |
}, |
## this will remove -fs8 from files like foobar1-fs8.png | |
for filename in *.png; do | |
[ -f "$filename" ] || continue | |
mv $filename ${filename//\-fs8/} | |
done |
# Usage: vagrant up windowsVersion-IEversion | |
# | |
# Eg. vagrant up xp-8 | |
# | |
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a | |
boxes = { | |
"xp-6" => "http://aka.ms/vagrant-xp-ie6", | |
"xp-8" => "http://aka.ms/vagrant-xp-ie8", | |
"vista-7" => "http://aka.ms/vagrant-vista-ie7", | |
"win7-8" => "http://aka.ms/vagrant-win7-ie8", |
MyApp = new Backbone.Marionette.Application(); | |
MyApp.addRegions({ | |
mainRegion: "#content" | |
}); | |
// Models | |
ShutterModel = Backbone.Model.extend({ | |
urlRoot: "/api/shutters", |
#!/bin/sh | |
echo "Now type reboot, remove CD-ROM, etc." |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
Revisiting my original technique for creating CSS pie charts (http://atomicnoggin.ca/blog/2010/02/20/pure-css3-pie-charts/) Using :AFTER and :BEFORE to cut down on the amount of HTML required
A Pen by Patrick Denny on CodePen.
# ---- Makefile for Vermaden's FreeBSD 9.1 root on ZFS manual install | |
# $Id: Makefile,v 1.18 2013/08/07 13:31:29 root Exp root $ | |
# | |
# Copyright (c) 2013 Adriaan van Roosmalen <j65nko daemonforums.org>> | |
# | |
# Permission to use, copy, modify, and distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |