Skip to content

Instantly share code, notes, and snippets.

Avatar
🍋
Hanging around.

Robert Lemon rlemon

🍋
Hanging around.
View GitHub Profile
@rlemon
rlemon / trippy_spiral.js
Created Nov 14, 2011
Canvas rotation and translate example.
View trippy_spiral.js
var s = 0;
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var w = window.innerWidth,
h = window.innerHeight;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
var make = function(o) {
ctx.beginPath();
@rlemon
rlemon / gist:1366056
Created Nov 15, 2011
Canvas rotation and translate fun #2
View gist:1366056
// mods by stevether
var s = 0;
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var w = window.innerWidth,
h = window.innerHeight;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
var make = function(o) {
@rlemon
rlemon / gist:1366122
Created Nov 15, 2011
Canvas rotation and translate fun #3
View gist:1366122
// just fucking around
var s = 0;
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var w = window.innerWidth,
h = window.innerHeight;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
var make = function(o) {
@rlemon
rlemon / gist:1366142
Created Nov 15, 2011
Canvas rotation and translate fun #2.1
View gist:1366142
// this time with squares!!!
var s = 0;
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var w = window.innerWidth,
h = window.innerHeight;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
var make = function(o) {
@rlemon
rlemon / gist:1367044
Created Nov 15, 2011
Canvas rotation and translate fun #2.2
View gist:1367044
var s = 0, makeSquares = false;
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var w, h;
this.onresize = function() {
w = window.innerWidth;
h = window.innerHeight;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
@rlemon
rlemon / gist:1367346
Created Nov 15, 2011
Canvas move object to mouse click. With easing.. :P
View gist:1367346
window.onload = function() {
var cvs = document.getElementById("cvs");
var ctx = cvs.getContext("2d");
var h, w, speed = 10;
this.onresize = function() {
h = window.innerHeight, w = window.innerWidth;
cvs.setAttribute("height", h);
cvs.setAttribute("width", w);
};
this.onresize.call();
View gist:1381273
http://php-html.net/tutorials/model-view-controller-in-php/
http://stackoverflow.com/questions/316509/where-can-i-learn-find-examples-of-mvc-for-php/316969#316969
http://www.tonymarston.net/php-mysql/model-view-controller.html
http://oreilly.com/php/archive/mvc-intro.html
@rlemon
rlemon / gist:1383312
Created Nov 21, 2011
Blog db export.
View gist:1383312
-- phpMyAdmin SQL Dump
-- version 3.4.5deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 21, 2011 at 12:26 PM
-- Server version: 5.1.58
-- PHP Version: 5.3.6-13ubuntu3.2
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@rlemon
rlemon / gist:1385743
Created Nov 22, 2011
links I need to have.
View gist:1385743
[Well Actually](http://tirania.org/blog/archive/2011/Feb-17.html)
http://www.fontsquirrel.com/fontface/generator
http://www.avalue.com.tw/products/EBM-LX800.cfm
Transcend CF 133x 4GB
@rlemon
rlemon / gist:1386960
Created Nov 22, 2011
Batman Equation
View gist:1386960
( (x/7)^2 sqrt(abs(abs(x)-3)/(abs(x)-3)) + (y/3)^2 sqrt(abs(y+ 3/7 sqrt(33))/(y+ 3/7 sqrt(33))) - 1 )
( abs(x/2)-(3 sqrt(33)-7) x^2/112 -3 +sqrt(1-(abs((abs(x)-2))-1)^2)-y)
(9 sqrt(abs((abs(x)-1)(abs(x)-.75))/((1-abs(x))(abs(x)-.75)))- 8 abs(x)-y)
(3 abs(x) + .75 sqrt(abs((abs(x)-.75)(abs(x)-.5))/((.75-abs(x))(abs(x)-.5)))-y)
(2.25 sqrt(abs((abs(x)-.5)(abs(x)-.5))/((.5-abs(x))(abs(x)-.5)))-y)