Skip to content

Instantly share code, notes, and snippets.

View Tim-Machine's full-sized avatar

Tim Smith Tim-Machine

  • Cohezion.ai
  • Cary,NC
  • 20:55 (UTC -04:00)
View GitHub Profile
@Tim-Machine
Tim-Machine / 0_reuse_code.js
Created November 7, 2013 13:54
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
public function submit_entry()
{
$this->initialize();
// Get hidden meta vars
if ( ! isset($_POST['meta']))
{
// This should never be valid
return;
}
@Tim-Machine
Tim-Machine / robot.js
Created December 11, 2012 20:04
DeathAng3l2
// Conventions:
// We use angles in degrees in clock-wise fashion
RobotHelpers = {};
MathHelpers = {};
RobotHelpers.cannon_rotation_direction = {};
RobotHelpers.shoot = {};
RobotHelpers.target = {};
RobotHelpers.moving_direction = {};
<!--- LEFT NAVIGATION W/ THUMBNAILS --->
<div class="leftnav">
<div class="addViews">
<h3 class="optima"> additional views </h3>
<img src="${ms.urlPathNoProtocol}/imagesnew/product/alt/altBracketTop.png" alt="top" />