Skip to content

Instantly share code, notes, and snippets.

View roden0's full-sized avatar
🎯
Focusing

Rodrigo Encinas roden0

🎯
Focusing
  • Barcelona
View GitHub Profile
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
@roden0
roden0 / reset.sass
Created July 23, 2013 09:37 — forked from trey/reset.sass
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
@value: #000;
.mixin {
color: @value;
}
@value: #333;
.parametric() {
color: @value;
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<h2>Create some JSON object that is nested/structured from a form</h2>
<form id="form">
<input id="id" type="text" name="id" placeholder="id..." />
/*
*
* Icon index
* by @dic7 (github: ivanmendoza)
*
*/
/*
* SPRITE
* url: ../images/icons.png
/*
*
* FONTS
* by @dic7 (github: ivanmendoza)
*
*/
#fonts{
.base(@size: 1em){
font:normal @size verdana, helvetica, arial, sans-serif;
}
/* SMARTPHONES */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
}
/* PORTRAIT TABLETS & LANDSCAPE PHONES */
@media screen and (min-width: 481px) and (max-width: 640px) {
}
/* TABLETS */