Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am matthanger on github.
  • I am matthanger (https://keybase.io/matthanger) on keybase.
  • I have a public key whose fingerprint is F4A4 3304 3C4D 8D99 11D3 33C6 FE7E 5ACB 3BFD 8CC7

To claim this, I am signing this object:

@matthanger
matthanger / namespace.js
Created December 6, 2011 23:09
Namespaces in JavaScript
/**
* Registers the specified namespace, ensuring all parts of the namespace are created. If the namespace
* already exists, it will not be modified.
*
* Usage:
* namespace('foo.bar');
* foo.bar.baz = 'qux';
*
* @param {String} namespace The namespace to register. Namespaces are hierarchal, and are separated by dots.
*/
@matthanger
matthanger / blti-launch.php
Last active October 24, 2022 07:12
Sample code for Basic LTI Consumer in PHP
<?php
# ------------------------------
# START CONFIGURATION SECTION
#
$launch_url = "https://lti.tools/test/tp.php";
$key = "12345";
$secret = "secret";
$launch_data = array(