Skip to content

Instantly share code, notes, and snippets.

View percentjuice's full-sized avatar

cstuempges percentjuice

View GitHub Profile
@percentjuice
percentjuice / 0_reuse_code.js
Created August 6, 2014 14:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// ported from http://alienryderflex.com/intersect/
public static function LineIntersection(a:Point, b:Point, c:Point, d:Point):Point
{
var distAB:Number, cos:Number, sin:Number, newX:Number, ABpos:Number;
if ((a.x == b.x && a.y == b.y) || (c.x == d.x && c.y == d.y)) return null;
if ( a == c || a == d || b == c || b == d ) return null;
b = b.clone();
@percentjuice
percentjuice / keybase.md
Created June 14, 2024 14:17
keybase.md

Keybase proof

I hereby claim:

  • I am percentjuice on github.
  • I am stuempges (https://keybase.io/stuempges) on keybase.
  • I have a public key ASBsEMk3edPaJMHZirY7fLU0PiFcMP4S1DiZYzebbXYFkAo

To claim this, I am signing this object: