Skip to content

Instantly share code, notes, and snippets.

@g2010a
g2010a / ing-scrape-commands.js
Last active February 27, 2021 08:44
ING transaction scraper (browser)
/**
* Scrape transaction information from ING's website
*
* Because sometimes exported documents don't lend themselves to being
* imported in personal finance software, and HBCI connections sometimes
* don't work ( -_- ), this is a guide and collection of scripts that can
* be executed in a browser to scrape transactions from ING's website.
*
* The scripts are very fragile and will stop working if ING re-designs
* their site, so please consider this more a guide than anything else.
@g2010a
g2010a / share-on-google-plus-command.js
Created March 7, 2013 21:18
[Ubiquity command] Share on Google Plus
// Basically just executes the Google Plus bookmark
CmdUtils.makeBookmarkletCommand({
names: ["Share on Google+", "Plus"],
icon: "https://www.gstatic.com/images/icons/gplus-64.png",
description: "Share the current page on Google Plus",
url: "javascript:void(window.open('https://plus.google.com/share?ur\l='+encodeURIComponent(location),%20'Share%20to%20Google+','width=600,height=460,menubar=no,location=no,status=no'))"
)}
@g2010a
g2010a / commands.js
Last active December 13, 2015 16:48
Track Firefox Ubiquity Events with Piwik -- tutorial at http://metrics.posterous.com/analytics-tracking-firefox-ubiquity-events-wi
// -----------------------------------------------
// Allows tracking of usage (for optimization purposes)
CmdUtils.trackEvent = function(argobj) {
var command,action,goalid
this.command = argobj.command
this.action = argobj.action
this.goalid = action == 'execute' ? 1 : action == 'preview' ? 2 : ''
that = this
this.submit = function() {
var img = new Image,
@g2010a
g2010a / ubiquitysortdropdowns.js
Created January 14, 2013 13:17
[ubiquity] Sort dropdowns
// ---------------------------------------
// Sort dropdowns
CmdUtils.CreateCommand({
names: ["sort"],
arguments: [{role:"object", label:"input",nountype: noun_arb_text}],
icon: "http://cdn1.iconfinder.com/data/icons/momenticons-gloss-basic/momenticons-gloss-basic/16/sort-ascend.png",
homepage: null,
author: {name:"Armando Gutierrez"},
description: "Sorts something. Accepts following parameters: <em>'dropdowns'</em>",
preview: function(pblock, input) {
@g2010a
g2010a / drag.js
Created June 15, 2011 07:33
Behaviors for D3 Visualization library
d3.behavior.drag = function() {
var x = 0,
y = 0,
listeners = [],
dragit
function drag() {
var container = this
.on("mousedown", mousedown)
@g2010a
g2010a / data.js
Created June 8, 2011 18:42
HTML + JS Source for Protovis+Hamburg Data visualization
// data.js
// As of 31.12.2009
// http://statistik-nord.de/daten/bevoelkerung-und-gebiet/familienstand-ehe-einbuergerungen/dokumentenansicht/38/produkte-2/
// years: 2001-2009
var ageofmomsums = [
//2001: [3971,6959,13655,23788,31591,3811,47499,47601,51724,54192,52975,59841,62383,62649,68443,69877,70606,7079,68128,62035,54636,46368,37636,28736,21324,15948,9099,5369,3576,1731],
{x:2002, y:[43,67,108,197,323,330,399,465,474,546,575,607,571,685,626,710,720,652,657,634,587,495,405,302,224,157,118,63,52,22]},
{x:2003, y:[3,47,102,199,322,366,377,418,487,551,578,569,577,656,703,704,736,754,663,668,596,511,433,297,248,178,108,56,38,11]},
{x:2004, y:[18,61,97,213,272,309,415,417,463,499,503,583,628,647,698,719,707,750,776,675,608,526,452,341,281,184,126,88,39,16]},
{x:2005, y:[27,57,82,194,285,320,356,399,448,481,537,599,603,626,692,726,788,766,791,699,668,540,450,366,267,195,135,84,53,14]},