Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
@nobilelucifero
nobilelucifero / gist:7579975
Created November 21, 2013 11:23
CamelCase to dash-case conversion
function camel2dash(value) {
return value.replace(/([A-Z])/g, '-$1').toLowerCase();
}
@nobilelucifero
nobilelucifero / tinyrn.css
Created July 28, 2013 23:00
A super super (and silly) tiny CSS reset and normalizer (kinda) for my HTML/CSS/JS demos
/*
:: tinyrn.css APLHA
::
:: Not even a proper release
*/
/* Apply the border-box box-model also to the pseudo elements */
*, *:after, *:before {
margin: 0;
padding: 0;