This file contains hidden or 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
/** | |
* This script helps to artifically generate load on a web application through | |
* weighted requests to various endpoints. It may not be pretty, but it works | |
* for me. :) Feel free to use however you want. | |
* | |
* NOTE: Please use responsibly, don't run this script against a production server! | |
* | |
* @author Jordan Kasper (@jakerella) | |
* @license MIT | |
*/ |
This file contains hidden or 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
# Font Squirrel Font-face Generator Configuration File | |
# Upload this file to the generator to recreate the settings | |
# you used to create these fonts. | |
{"mode":"expert","formats":["ttf","woff","eot","svg"],"tt_instructor":"default","options_subset":"advanced","subset_custom":"","subset_custom_range":"f000-f073,f200-f273","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"} |
This file contains hidden or 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
function getScript (src, callback) { | |
var scripts = document.getElementsByTagName('script'); | |
var script = document.createElement("script"); | |
var once = true; | |
script.async = "async"; | |
script.type = "text/javascript"; | |
script.src = src; | |
script.onload = script.onreadystatechange = function () { | |
if (once && (!script.readyState || /loaded|complete/.test(script.readyState))) { | |
once = false; |