Skip to content

Instantly share code, notes, and snippets.

alex choi heyalexchoi

Block or report user

Report or block heyalexchoi

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
View actionBlocker.js
var scr = document.createElement("script");
scr.src = "http://code.jquery.com/jquery-1.9.1.min.js";
document.body.appendChild(scr);
$('body').on('click', function(event){
event.preventDefault();
alert("i'm sorry but you can't do that. better luck next time")
});
View Benchmarker.swift
/*! accepts event names and prints out time interval (seconds) since last event given */
struct Benchmarker {
struct Event {
let time: NSDate
let name: String
}
static var events = [Event]()
static let prefix = "--------\n--------\n--------\nBENCHMARK\n--------\n--------\n--------\n"
You can’t perform that action at this time.