Skip to content

Instantly share code, notes, and snippets.

@clamburger
clamburger / test.js
Created February 4, 2017 13:54
Test
alert('Hi');
@clamburger
clamburger / phpcstest.php
Created January 20, 2015 03:50
Zend.Files.ClosingTag example
<?php
$arr = [1, 2, 3];
?>
A: <?= $arr[0] ?>
B: <?= $arr[1] ?>
C: <?= $arr[2] ?>
@clamburger
clamburger / composer.json
Created November 26, 2013 07:39
The no longer functional code behind ingress.clamburger.org
{
"name": "clamburger/ingress-queensland",
"license": "MIT",
"authors": [
{
"name": "Sam Horn",
"email": "samuel.horn1@gmail.com",
"role": "Developer"
}
],
@clamburger
clamburger / OSSL_Api.cs
Created April 25, 2012 07:03
OSSL implementation of A* Search (INN383 - AI for Games)
//A helper function to calculate the distance from one vector to another.
public double calcDist(LSL_Vector a, LSL_Vector b)
{
double dx = a.x - b.x;
double dy = a.y - b.y;
double dz = a.z - b.z;
double dist = Math.Sqrt(dx * dx + dy * dy + dz * dz);
return dist;
}