Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@neave
neave / System.js
Created May 20, 2011 10:14
System.js with UAs reordered and iOS updated to include iPhone
/**
* @author mr.doob / http://mrdoob.com/
*/
System = {
browser: ( function () {
if ( navigator.userAgent.match( /msie/i ) ) {
@neave
neave / bigbang.js
Last active December 29, 2015 00:29
Click to create the universe. Boom!
// 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 August 6, 2018 11:57
Wobbly Surface with canvas
<!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 January 25, 2012 10:30
Mobile phone headers PHP example
<!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;