Skip to content

Instantly share code, notes, and snippets.

Alex Smith alexjs

Block or report user

Report or block alexjs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@havvg
havvg / ajax-form.js
Created Aug 1, 2012
jQuery AJAX form submit with Twitter Bootstrap modal
View ajax-form.js
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
@use-sparingly
use-sparingly / hds_loadtest.py
Created Sep 4, 2015
Adobe HDS Load Testing Tool using Locust Framework. See inline for details
View hds_loadtest.py
# HDS Load Testing Tool using Locust Load Testing Framework and HDS_Fragmenter library
# Simulates user access by fetching the bootstrap file to parse out fragment names.
# Bootstrap files are fetched 1/10 times.
#
# Usage:
# 1. Fetch dependencies given below
# 2. Edit "url_f4m_path" below to the stream-level manifest path/URI
# 3. Run: `locust -f hdslt.py -H http://my_origin_server`
# pip install locustio
You can’t perform that action at this time.