This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lti.outcome_request import OutcomeRequest | |
outcome_request = OutcomeRequest( | |
opts={ | |
"consumer_key": "tophat-canvas", | |
"consumer_secret": "tophat123", | |
"lis_outcome_service_url": tool_provider.launch_params.get('lis_outcome_service_url'), | |
"lis_result_sourcedid": tool_provider.launch_params.get('lis_result_sourcedid'), | |
"operation": "replaceResult", | |
} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static searchQueries() { | |
const queryString = window.location.search.substring(1) | |
const pairs = queryString.split('&') | |
let queryObj = {} | |
for (let i=0; i<pairs.length; i++) { | |
const keyVal = pairs[i].split('=') | |
queryObj[keyVal[0]] = decodeURIComponent(keyVal[1]) | |
} | |
return queryObj | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tooltip { | |
private var theTip:MovieClip; | |
private var tFormat:TextFormat; | |
function Tooltip(hex:Number,hex2:Number) { | |
this.theTip = _root.createEmptyMovieClip("tooltip", _root.getNextHighestDepth()); | |
this.theTip.createTextField("theText",this.theTip.getNextHighestDepth(),3,1,95,20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var apn = require("apn") | |
var apnError = function(err){ | |
console.log("APN Error:", err); | |
} | |
var options = { | |
"cert": "cert.pem", | |
"key": "key.pem", | |
"passphrase": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PDAO implements \ArrayAccess, \Iterator | |
{ | |
/** | |
* @var array data | |
*/ | |
protected $data = array(); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Doctrine\DBAL\Logging; | |
class CIProfiler implements SQLLogger | |
{ | |
public $start = null; | |
private $ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace S3; | |
use Aws\S3\S3Client; | |
use \Aws\Common\Exception\TransferException; | |
/** | |
* Description of S3Client | |
* @author Rana | |
* @link http://codesamplez.com/programming/amazon-s3-get-multiple-objects-php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//test.class.php | |
<?php | |
class Test implements ArrayAccess | |
{ | |
private $data = array(); | |
public function __set($key, $value){ | |
$this->data[$key] = $value; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Go\Core\AspectKernel; | |
use \Go\Core\AspectContainer; | |
/** | |
* Application Aspect Kernel | |
*/ | |
class ApplicationAspectKernel extends AspectKernel | |
{ |
NewerOlder