Skip to content

Instantly share code, notes, and snippets.

@robcolburn
robcolburn / create-load.js
Last active November 19, 2015 19:21 — forked from jakerella/create-load.js
Simple load generation script to test web applications.
/**
* 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
*/
@robcolburn
robcolburn / getScript.js
Last active December 10, 2015 01:09 — forked from anonymous/getScript.js
How jQuery.getScript should work!
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;
# 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"}