Skip to content

Instantly share code, notes, and snippets.

View lguzzon's full-sized avatar
Quality Is Free - Getting There Isn't

Luca Guzzon lguzzon

Quality Is Free - Getting There Isn't
View GitHub Profile
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
import Map;
class OrderedMapIterator<K,V> {
var map : OrderedMap<K,V>;
var index : Int = 0;
public function new(omap:OrderedMap<K,V>)
map = omap;
public function hasNext() : Bool
@lguzzon
lguzzon / captureAjaxResponses.js
Last active December 20, 2015 16:39 — forked from markstreich/gist:3667944
PhantomJS script that is working for me ... the up-stream no
var page = require('webpage').create();
page.onInitialized = function () {
captureAjaxResponsesToConsole();
};
page.open('http://www.website.com/', function (status) {
if (status === 'success') {
phantom.exit();
} else {