d3.js example showing a scatterplot with 500-50,000 random points and its associated density heat chart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D3 - Data Driven Documents | |
http://d3js.org/ | |
low level library to display/manipulate data in HTML/CSS & SVG | |
API Ref: https://github.com/mbostock/d3/wiki/API-Reference | |
D3 Plus - D3 Extension plugin | |
https://github.com/alexandersimoes/d3plus | |
Fabric - HTML5 Canvas library | |
http://fabricjs.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Select2 | |
* | |
* Renders Select2 - jQuery based replacement for select boxes | |
* https://gist.github.com/jbugwadia/9303389 | |
* | |
* Usage: Works the same as Select editor, with the following extensions for Select2: | |
* schema.config: configuration object passed to Select2 | |
* schema.multiple: sets 'multiple' property on the HTML <select> | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script language="javascript"> | |
// | |
// client side image to base64 conversion for your CSS | |
// from revolunet team - [email protected] | |
// demo at : http://revolunet.com/static/drop.html | |
// | |
$(document).ready(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABO8AAAMDCAYAAAD6xzFfAAAgAElEQVR4XuydBZhkxdWGa5FlWWxxTXCHECwJLsFdIri7u7trcA8WCBYkSICfIMHd3d016AIL+9+3SA13e1pu93TP9My89Tz77G53yam36lZ3fX1O1YDJJ598eDBJQAISkIAEJCCBFhP4/vvvA39MrScwePDg1jdiCxKQgAQkIAEJSEAC3UJggOJdt3C2EQlIQAISkEC/J6B4131TQPGu+1jbkgQkIAEJSEACEmg1AcW7VhO2fglIQAISkIAEIgHFu+6bCIp33cfaliQgAQlIQAISkECrCSjetZqw9UtAAhKQgAQkoHjXzXNA8a6bgducBCQgAQlIQAISaCEBxbsWwrVqCUhAAhKQgAR+JqDnXffNBsW77mNtSxKQgAQkIAEJSKDVBBTvWk3Y+iUgAQlIQAISiAQU77pvIijedR9rW5KABCQgAQlIQAKtJqB412rC1i8BCUhAAhKQgOJdN88BxbtuBm5zEpCABCQgAQlIoIUEFO9aCNeqJSABCUhAAhL4mYCed903GxTvuo+1LUlAAhKQgAQkIIFWE1C8azVh65eABCQgAQlIIBJQvOu+iaB4132sbUkCEpCABCQgAQm0moDiXasJW78EJCABCUhAAop33TwHFO+6GbjNSUACEpCABCQggRYSULxrIVyrloAEJCABCUjgZwJ63nXfbFC86z7WtiQBCUhAArUJbLfddmHTTTetndEcLSMw++yzt6xuK249AcW71jO2hQIEhg8fHsOpBg4cWCB3a7L8+OOP4YcffgijjjpqpwZ4DxtJAwYM6PjTGkusVQISkEDfJKB4133jqnjXfaxtSQISkIAEahNAvNtss81qZzRHywjMNttsLavbiltPQPGu9YxtoQCBeeedNyy99NLh9NNPDx999FHNEsOGDYt5RhlllJp5i2ZYZpllwlxzzRXOPPPMDhsQ7MYaa6yw0EILhYknn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = (function(w, d){ | |
var myPrivateVariable = "My private content"; | |
var __private = { | |
cache : function(){ | |
this.link = d.querySelector('.link-item'); | |
} | |
bind : function(){ | |
this.link.addEventListener('click', this.handleClick, false); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => { | |
return [1, 2, 3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'marionette', | |
'router', | |
'controller', | |
'modules/auth', | |
'modules/vent', | |
'views/_layout' | |
], function(Marionette, Router, Controller, Auth, Vent, Layout){ | |
var App = new Marionette.Application(); |