Skip to content

Instantly share code, notes, and snippets.

View triptych's full-sized avatar
💭
Making web things

Andrew Wooldridge triptych

💭
Making web things
View GitHub Profile
@erikeldridge
erikeldridge / demo.html
Created October 11, 2010 03:59
A simple YUI 3 module for adding Yahoo! login to a page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!-- Licensed under Yahoo! BSD license http://gist.github.com/375593 -->
</head>
<body>
<span id="login"></span>
@apipkin
apipkin / lipsum.html
Created November 4, 2010 02:58
Generic HTML layout for quick starts to development.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Lorem Ipsum Dolor Sit</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css">
</head>
<body>
<div id="pageWrapper"><div id="page">
@mrdoob
mrdoob / gist:665235
Created November 6, 2010 06:29
Simple encode/decode for Array of Numbers (6-bit)
function decode( string ) {
var output = [];
string.split('').forEach( function ( v ) { output.push( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf( v ) ); } );
return output;
}
function encode( array ) {
//<iframe id="frame">
var frame = Y.Node.getDOMNode(Y.one('#frame'));
YUI({
win: frame.contentWindow,
doc: frame.contentWindow.document
}).use('node', function(Frame) {
//An element inside the frame
var foo = Frame.one('#foo');
});
@mrdoob
mrdoob / gist:718743
Last active July 23, 2023 06:53
Simplest HTML5 drawing tool
<html>
<style>
body {
margin: 0;
padding 0;
}
</style>
<body>
<script>
@bebraw
bebraw / gameengines.md
Created January 6, 2011 18:07
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
@funkatron
funkatron / redesign-idea2.html
Created January 7, 2011 17:39
shows some super fancy text kerning and positioning and shit. Uses jquery.lettering.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page Title</title>
<link href='http://fonts.googleapis.com/css?family=Cardo:regular"' rel='stylesheet' type='text/css'>
<style type="text/css" media="screen">
BODY {
background-color:#999;
font-family:Cardo;

Game Engines

Name Latest Release Size (KB) License Type Unit Tests Docs Notes
The Render Engine 1.5.3 MIT Cross-browser; extensive API; open-source. 2
gameQuery 0.5.1 CC BY-SA 2.5 Designed to be used with jQuery
gTile 0.0.1 (2008-07-21) Tile based
Akihabara 1.3 GPL2/MIT Classic Repro Intended for making classic arcade-style games in JS+HTML5 3
The Javascript 2D Game Engine GPL Emphasis on gravity/physics/collision detection; uses HTML5 Canvas and ExplorerCanvas for IE support. Focus on limiting CPU usage. 4
The GMP Javascript Game Engine
/**
* InfoViewer
*/
var InfoViewer,
INFO_VIEWER = 'infoViewer',
ATTRS = {},
TRANSITIONS = {},
INFO_NODES = 'infoNodes',
@lsmith
lsmith / gist:799930
Created January 28, 2011 06:50
Subscribe to custom events on Nodes fired from some other object
<!doctype html>
<html>
<head>
<meta charset="utf=8">
<title>Test Page</title>
</head>
<body>
<h3>Expected results:</h3>
<ul>