Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Dec 6, 2011
Namespaces in JavaScript
View namespace.js
/**
* 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 Oct 21, 2021
Sample code for Basic LTI Consumer in PHP
View blti-launch.php
<?php
# ------------------------------
# START CONFIGURATION SECTION
#
$launch_url = "https://lti.tools/test/tp.php";
$key = "12345";
$secret = "secret";
$launch_data = array(