Skip to content

Instantly share code, notes, and snippets.

View rlemon's full-sized avatar
🍋
Hanging around.

Robert Lemon rlemon

🍋
Hanging around.
  • Dryer Moisture Systems Inc.
  • Kitchener, Ontario. Canada.
View GitHub Profile
@rlemon
rlemon / trippy_spiral.js
Created November 14, 2011 21:58
Canvas rotation and translate example.
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 November 15, 2011 03:37
Canvas rotation and translate fun #2
// 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 November 15, 2011 04:17
Canvas rotation and translate fun #3
// 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 November 15, 2011 04:28
Canvas rotation and translate fun #2.1
// 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 November 15, 2011 13:09
Canvas rotation and translate fun #2.2
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 November 15, 2011 15:30
Canvas move object to mouse click. With easing.. :P
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();
@rlemon
rlemon / gist:1381273
Created November 21, 2011 00:33
MVC Links
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 November 21, 2011 17:27
Blog db export.
-- 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 November 22, 2011 14:10
links I need to have.
[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 November 22, 2011 21:06
Batman Equation
( (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)