Skip to content

Instantly share code, notes, and snippets.

@neave
neave / bigbang.js
Last active Dec 29, 2015
Click to create the universe. Boom!
View bigbang.js
// Big Bang - click to create the universe!
// by Paul Neave
// @neave
var TOTAL = 300;
var galaxies = [];
var Galaxy = function() {
this.x = 0;
this.y = 0;
@neave
neave / index.html
Last active Aug 6, 2018
Wobbly Surface with canvas
View index.html
<!DOCTYPE html>
<html>
<head>
<style> body { margin: 0; } </style>
</head>
<body>
<canvas id="wobble"></canvas>
<script src="http://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
<script src="wobble.js"></script>
</body>
@neave
neave / phone-headers.php
Created Jan 25, 2012
Mobile phone headers PHP example
View phone-headers.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes, minimum-scale=1.0">
<title>And your phone number is...</title>
<style>
body {
font: 17px sans-serif;
color: #444;
@neave
neave / System.js
Created May 20, 2011
System.js with UAs reordered and iOS updated to include iPhone
View System.js
/**
* @author mr.doob / http://mrdoob.com/
*/
System = {
browser: ( function () {
if ( navigator.userAgent.match( /msie/i ) ) {
You can’t perform that action at this time.