Skip to content

Instantly share code, notes, and snippets.

Martin mstepien

Block or report user

Report or block mstepien

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
mstepien /
Last active Mar 3, 2017
Decorator Pattern done with function composition
Coffee coffee = Barista.makeCoffee(
new Arabica(),
+ ". Cost: "+
mstepien /
Last active Mar 13, 2017
Initialize a Java Map with lambda
* quick and neat way to initialize a Map since Java 8
Map<Integer, String> map = Collections.unmodifiableMap(
new SimpleEntry<>(0, "zero"),
new SimpleEntry<>(1, "one"),
new SimpleEntry<>(2, "two"),
new SimpleEntry<>(3, "three")
mstepien / drive-appscript.js
Last active Jan 1, 2016 — forked from igrigorik/drive-appscript.js
BigQuery queries for the HTTP Archive dataset with some Google BigQuery API code updates: - use of class QueryRequest -
View drive-appscript.js
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Run Query", functionName: "runQuery"} ];
ss.addMenu("HTTP Archive + BigQuery", menuEntries);
function runQuery() {
var projectNumber = 'httparchive';
var sheet = SpreadsheetApp.getActiveSheet();
You can’t perform that action at this time.