Skip to content

Instantly share code, notes, and snippets.

Hello world!

Keybase proof

I hereby claim:

  • I am mkantor on github.
  • I am mkantor (https://keybase.io/mkantor) on keybase.
  • I have a public key ASDN-v3INYjOKlv-EAJ7ViUk2UpOASXZTJetSvO5xumNhQo

To claim this, I am signing this object:

// @ts-check
const schedule = [
13,
'x',
'x',
41,
'x',
'x',
'x',
function bar(): void {
console.log('hello')
}
export class ClassWithClosedOverFunction {
constructor() {
bar()
}
}
/*
@mkantor
mkantor / bq_publicdata_samples_metadata.json
Created April 20, 2016 16:20
Output of `bq --format=prettyjson show publicdata:samples` on 2016-04-20.
{
"access": [
{
"role": "READER",
"specialGroup": "projectReaders"
},
{
"role": "WRITER",
"specialGroup": "projectWriters"
},
$ php requirer.php
before php tag in required.php
inside php tag in required.phpafter php tag in required.php
require_result: 1
global_var: global var from required.php
#
# Copyright:: Copyright (c) 2009 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
import scala.collection.mutable.Builder
import scala.collection.TraversableLike
import scala.concurrent.Future
class AsyncMapBuilder[A, B, Coll <: AsyncMap[A, B]](empty: Coll)
extends Builder[(A, B), Coll]
{
protected var elems: Coll = empty
/**
* Example of assigning a constructor to module.exports and methods to its
* prototype.
* @module
*/
/** @constructor */
module.exports = function() {};
/** An instance method. */
sealed abstract class LoyaltyDomain(val id: String) {
def name = {
this match {
case LoyaltyDomain.ANDROID => "Android"
case LoyaltyDomain.IOS => "iOS"
case LoyaltyDomain.AMAZON => "Amazon"
case LoyaltyDomain.WINPHONE => "Windows Phone"
case LoyaltyDomain.WINSTORE => "Windows Store"
// ???