Skip to content

Instantly share code, notes, and snippets.

@skaiser
skaiser / vanilla-bookmarklet.js
Last active August 29, 2015 13:56
Bookmarklet to speed deleting spam users in "Confirm Email" state in Vanilla Forum
javascript:(function () {
var href = $('a[href$="Confirm+Email"]').first().parent().siblings().find('a').filter(function(index) { return $(this).text() === "Delete"; }).attr('href');
if (href) {
window.location = href;
}
href = $('a').filter(function(index) { return $(this).text() === "Remove User Content"; }).attr('href');
if (href) {
@skaiser
skaiser / app.yaml
Last active August 29, 2015 13:56
(Very) Simple AppEngine python XHR proxy
application: <YOUR_APPSPOT.COM_NAME>
version: 1
runtime: python27
api_version: 1
threadsafe: yes
default_expiration: "30d"
handlers:
- url: /_xhr
@skaiser
skaiser / brush.js
Created September 20, 2013 21:12 — forked from enjalot/brush.js
if(!d3.chart) d3.chart = {};
d3.chart.brush = function() {
var g;
var data;
var width = 600;
var height = 30;
var dispatch = d3.dispatch(chart, "filter");
function chart(container) {