Skip to content

Instantly share code, notes, and snippets.

View JorgenHookham's full-sized avatar

Jørgen JorgenHookham

  • Sokanu
  • Vancouver, BC
View GitHub Profile
This file has been truncated, but you can view the full file.
{"nodes":[{"id":"https://www.lifewire.com/how-to-find-free-wifi-locations-1358040","group":1},{"id":"https://www.lifewire.com/youtube-s-free-streaming-movies-and-tv-shows-1357439","group":1},{"id":"https://www.thebalance.com/","group":1},{"id":"https://www.thebalance.com/10-first-steps-for-early-fafsa-success-4102830","group":1},{"id":"https://www.thebalance.com/10-insurance-companies-offering-pet-insurance-4102566","group":1},{"id":"https://www.thebalance.com/10-percent-monthly-return-day-trading-4077743","group":1},{"id":"https://www.thebalance.com/10-ways-paying-extra-can-help-you-save-time-and-money-4083248","group":1},{"id":"https://www.thebalance.com/10-ways-your-debt-may-be-hurting-you-4087790","group":1},{"id":"https://www.thebalance.com/10-year-treasuries-historical-chart-416897","group":1},{"id":"https://www.thebalance.com/10-year-treasury-note-3305795","group":1},{"id":"https://www.thebalance.com/1000-marbles-story-2388733","group":1},{"id":"https://www.thebalance.com/1040-com-review-3193513","grou
@JorgenHookham
JorgenHookham / mixpanel-delete-people.py
Last active April 12, 2018 00:38
Mixpanel Delete People
"""
This is from mixpanel customer service, I just PEP8ified it. Update api key, secret and token.
You can define which users you want to delete on line 125. Right now it will delete users who haven't
been seen in over 7 weeks. You will recieve a confirmation prompt before the people are deleted.
"""
import hashlib
import time
import urllib
import base64
{
"ignored_packages":["Vintage"],
"theme": "Spacegray.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"tab_size": 4,
"translate_tabs_to_spaces": true,
"word_wrap": false,
"draw_white_space": "all",
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
// As good as pseudo code at the moment.
function dragIntent(event, callback) {
// Accepts a mousedown event and interprets whether or not the
// user's intention is to drag the target element.
// @event: A mousedown event.
// @callback: The function to be fired if the event is interpreted as a drag.
var x1 = event.pageX;
var y1 = event.pageY;
@JorgenHookham
JorgenHookham / Javascript Test Suite
Last active December 14, 2015 00:39
Boilerplate for widget unit tests
// Save these as two separate files.
// Write your tests in the js file.
// Run your tests from the html file.
// Add your test module to /static/lib/js/tests/run_all_js_tests.html
// lib/tests/unit_tests.js
define([
@JorgenHookham
JorgenHookham / FE Regex Toolbelt
Last active October 12, 2015 07:17
regex_toolbelt.js
/////////////////////
// Merge Conflicts //
/////////////////////
(?s)<<<<<<< HEAD(.*?)=======(.*?)>>>>>>> [a-z_0-9\-]+
///////////////////
// HTML Analysis //
///////////////////
@JorgenHookham
JorgenHookham / New Module
Last active October 11, 2015 23:07
Javascript define module boilerplate
define([
'jquery',
'underscore',
'backbone'
], function ($, _, Backbone) {
/*
* Documentation goes here