Skip to content

Instantly share code, notes, and snippets.

@ruzzbot
ruzzbot / stylus-mixin.styl
Created July 31, 2012 03:24
Stylus Mixin Template [CSS,Stylus,Configure,Settings,Template]
//################################################################ STYLUS MIXIN
// Colors
$lavender = #9569bb
$pink = #f468f9
$white = #fff
$black = #000
$grayDark = #333
$grayMed = #666
$grayLight = #999
@ruzzbot
ruzzbot / index-mobile.html
Created July 31, 2012 03:05
HTML Template for mobile web apps [iOS,HTML5,HTML,Mobile,Template]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{app_title}}</title>
<!-- Mobile viewport optimization h5bp.com/ad -->
<meta name="HandheldFriendly" content="True">
@ruzzbot
ruzzbot / grunt-bbb.js
Created July 31, 2012 03:04
JavaScript Gruntjs script for the backbone boilerplate [JavaScript,Configure,Settings,Backbone,BBB,Grunt,Bundle,Package,Template]
// This is the main application configuration file. It is a Grunt
// configuration file, which you can learn more about here:
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
module.exports = function(grunt) {
grunt.initConfig({
// The clean task ensures all files are removed from the dist/ directory so
// that no files linger from previous builds.
clean: ["dist/"],
@ruzzbot
ruzzbot / backbone-list.js
Created March 12, 2012 20:07
javascript: backbone-list
//=== LIST
Article.Views.List = Backbone.View.extend({
template: "",
initialize: function( options ){
_.bindAll(this, "render", "addAll", "addOne");
this.collection.bind( "add", this.addOne );
this.collection.bind( "reset", this.addAll );
this.totalItems = this.collection.length;
},