Skip to content

Instantly share code, notes, and snippets.

@loopspace
loopspace / 1aRadioactiveDecayTabOrder
Created January 25, 2015 17:09
Radioactive Decay Release v1.0 -A simulation of radioactive deacy.
Radioactive Decay Tab Order Version: 1.0
------------------------------
This file should not be included in the Codea project.
#Main
-- Touch Example
function setup()
-- initialise
touches = Touches()
boxes = {}
local c = {
color(255,0,0),
color(255,255,0),
color(0,255,0),
@loopspace
loopspace / 1aPenroseTilesTabOrder
Last active August 29, 2015 13:59
Penrose Tiles Release v3.0 -A Penrose tile program.
Penrose Tiles Tab Order Version: 3.0
------------------------------
This file should not be included in the Codea project.
#Main
#ProtoTile
#Tile
#Creator
#Tiles
#InitialiseTiles
#ccConfig
@loopspace
loopspace / 1aTabOrder
Created January 27, 2014 23:11
Flying Ignatz Release v1.12 -Using quaternions to fly a plane.
Flying Ignatz Tab Order Version: 1.12
------------------------------
This file should not be included in the Codea project.
#Main
#Flight
#Joystick
#Plane
#Quaternion
#Sky
#VecExt
@loopspace
loopspace / 1aTabOrder
Created January 19, 2014 22:42
Flying Release v1.7 -Using quaternions to fly a plane.
Flying Tab Order Version: 1.7
------------------------------
This file should not be included in the Codea project.
#Main
#JoyStick
#Quaternion
#Flight
#Plane
#Sky
@loopspace
loopspace / 1aTabOrder
Created January 11, 2014 19:51
Spitfire II Release v1.4 -Using quaternions to orient a plane.
Spitfire II Tab Order Version: 1.4
------------------------------
This file should not be included in the Codea project.
#Main
#Andrew
#Quaternion
#Q
#Plane
@loopspace
loopspace / 1aTabOrder
Created January 11, 2014 19:47
Plane Quaternions Release v1.2 -Using quaternions to orient a plane.
Plane Quaternions Tab Order Version: 1.2
------------------------------
This file should not be included in the Codea project.
@loopspace
loopspace / gist:7924800
Last active December 31, 2015 02:59 — forked from mattattui/gist:879249
<?php
/* html_convert_entities($string) -- convert named HTML entities to
* XML-compatible numeric entities.
*/
function html_convert_entities($string) {
return preg_replace_callback('/&([a-zA-Z][a-zA-Z0-9]+);/S',
'convert_entity', $string);
}
\documentclass[border=4pt]{standalone}
\usepackage{amsmath,mathpazo,gensymb}
\usepackage{tikz}
\makeatletter
\pgfarrowsdeclare{centre*}{centre*}
{
\pgfarrowsleftextend{+-.5\pgflinewidth}
\pgfutil@tempdima=0.4pt%
\advance\pgfutil@tempdima by.2\pgflinewidth%
@loopspace
loopspace / 1aTabOrder
Created October 14, 2013 18:51
Fake Sphere Release v1.1 -A shader that fakes a sphere effect, based on code by Ignatz.
Fake Sphere Tab Order Version: 1.1
------------------------------
This file should not be included in the Codea project.