Skip to content

Instantly share code, notes, and snippets.

paulmelnikow / shadows.scss
Last active Sep 19, 2020
Sass Mixin: Google Material Design Shadow
View shadows.scss
* A mixin which helps you to add depth to elements according to the Google Material Design spec:
* Please note that the values given in the specification cannot be used as is. To create the same visual experience
* the blur parameter has to be doubled.
* Adapted from a LESS version at
* Original Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp)
forxina / gist:1232482
Created Sep 21, 2011 — forked from tmc/gist:828553
fixed up backbone example to work with Backbone.js 0.5.3
View gist:1232482
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Backbone example</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="backbone.js"></script>
scottmessinger / backbone-todos.js
Created Jun 19, 2011
Backbone.js todos vs knockout.js todos
We couldn’t find that file to show.
joelnet / example.html
Created Jun 3, 2011
Unobtrusive Knockout support library for jQuery
View example.html
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
aza / CSS Animation for jQuery.js
Created Jun 11, 2010
jQuery CSS Animation Extension
View CSS Animation for jQuery.js
/* Copyright (c) 2011 Aza Raskin
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
| documentation files (the "Software"), to deal in the Software without restriction, including
| without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
| copies of the Software, and to permit persons to whom the Software is furnished to do so, subject
| to the following conditions:
| The above copyright notice and this permission notice shall be included in all copies or substantial portions
| of the Software.
remy / gist:349069
Created Mar 30, 2010
Early version of XUI native animations with drop back on to Emile/timer based
View gist:349069
(function ($, window, undefined) {
var m = document.createElement('i'),
m_style =,
// TODO support other browsers easings - based on Safari's easing options and ported to Emile easing.
stanardEasing = {
'ease-in-out' : function(pos){if((pos/=0.5)<1){return 0.5*Math.pow(pos,4);}return -0.5*((pos-=2)*Math.pow(pos,3)-2);},
'ease-in' : function(pos){return Math.pow(pos,4);},
'ease-out' : function(pos){return Math.pow(pos,0.25);},
'linear': function (i) {return i;}
banksean / perlin-noise-classical.js
Created Feb 15, 2010
two Perlin noise generators in javascript. The simplex version is about 10% faster (in Chrome at least, haven't tried other browsers)
View perlin-noise-classical.js
// Ported from Stefan Gustavson's java implementation
// Read Stefan's excellent paper for details on how this code works.
// Sean McCullough
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.