Skip to content

Instantly share code, notes, and snippets.

View jkriddle's full-sized avatar

Joshua Riddle jkriddle

  • Baltimore, MD
View GitHub Profile
itemEditor.on("save", function () {
// show item value
var manifest = itemEditor.getManifest();
alert(manifest);
var translation = itemEditor.getTranslation();
alert(translation);
});
@jkriddle
jkriddle / bootstrap.css
Created January 15, 2014 14:58
A compiled version of Twitter Bootstrap v3.0.3 using a CSS namespace of .tbs. For anyone wanting to use Twitter Bootstrap in an existing project without affecting existing styles, and don't have .less support. To use: apply the class .tbs to a wrapper element where you want to use Twitter Bootstrap. Anything inside that element will have the sty…
.tbs {
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
}
.tbs article,
.tbs aside,
.tbs details,
.tbs figcaption,
.tbs figure,
.tbs footer,
.tbs header,
<?xml version="1.0" encoding="UTF-8"?>
<!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd"
identifier="choice" title="Unattended Luggage" adaptive="false" timeDependent="false">
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
<correctResponse>
<value>ChoiceA</value>
</correctResponse>
var itemXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<!-- Thie example adapted from the PET Handbook, copyright University of Cambridge ESOL Examinations -->\
<assessmentItem xmlns=\"http://www.imsglobal.org/xsd/imsqti_v2p1\"\
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\
xsi:schemaLocation=\"http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd\"\
identifier=\"choice\" title=\"Unattended Luggage\" adaptive=\"false\" timeDependent=\"false\">\
<responseDeclaration identifier=\"RESPONSE\" cardinality=\"single\" baseType=\"identifier\">\
<correctResponse>\
<value>ChoiceA</value>\
</correctResponse>\
/**
* @file Sample instance of a host system's configuration file. For testing only.
*/
/**
* @namespace
* @property {String} name - Target XML element of this configuration
* @property {String} description - User-friendly description of this configuration
* @property {Array} subelements - Item Elements allowed to be created/managed
* @property {String} subelements.name - Target XML element of this element
oncurrency Level: 100
Time taken for tests: 20.205 seconds
Complete requests: 455
Failed requests: 238
(Connect: 0, Receive: 0, Length: 238, Exceptions: 0)
Write errors: 0
Non-2xx responses: 455
Total transferred: 399588 bytes
HTML transferred: 151452 bytes
Requests per second: 22.52 [#/sec] (mean)
Macs-MacBook-Pro:~ mac$ ab -n 100 -c 10 http://staging.beargrylls.discoveryuk.com/api/section/get
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking staging.beargrylls.discoveryuk.com (be patient).....done
Server Software: Apache
Server Hostname: staging.beargrylls.discoveryuk.com
new-host:~ mac$ ab -n 100 -c 10 http://staging.beargrylls.discoveryuk.com/api/section/get
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking staging.beargrylls.discoveryuk.com (be patient).....done
Server Software: Apache
Server Hostname: staging.beargrylls.discoveryuk.com
new-host:~ mac$ ab -n 100 -c 10 http://escapefromhell.theriddlebrothers.net/api/section/get
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking escapefromhell.theriddlebrothers.net (be patient).....done
Server Software: Apache/2.2.22
Server Hostname: escapefromhell.theriddlebrothers.net
@jkriddle
jkriddle / InvisibleShadowCaster.shader
Created March 29, 2013 03:17
Unity3D shader that will make an object transparent, but still cast shadows.
Shader "Transparent/InvisibleShadowCaster"
{
Subshader
{
UsePass "VertexLit/SHADOWCOLLECTOR"
UsePass "VertexLit/SHADOWCASTER"
}
Fallback off
}