Instantly share code, notes, and snippets.

View nodebots-flag-notes.txt
head
68 x 36.5 cm
eyes
12cm diameter
- 13cm in from left x 9.5 down from top.
neck 1
47 x 4.7cm
View lxjs-and-you.md

LXJS and DRIIFT

It's often said:

"LXJS is made with love".

It's true. Love, and a huge amount of work.

Lot's of awesome happens at LXJS.

View jsbin.jayap.css
html,body,#objects {
width: 100%; height: 100%
}
body{
background:white;
}
View things.html
<head>
<title>selector</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
</body>
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View aws-cor.xml
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
View withCanvas.js
// Provide a function with a temporary canvas, encapsulating the creation and clean up code.
function withCanvas(/*canvas => Any*/ use) {
var b = document.body;
// create canvas
var canvas = document.createElement("canvas");
// canvas doesn't draw well unless it's added to the page
b.appendChild(canvas);
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>minimal-pom</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<!-- Avoid using the platform default encoding... http://maven.apache.org/general.html#encoding-warning -->
View index.html
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v2.js"></script>
<style>
body{
margin:0;
background: #222;
}
.controls{