Skip to content

Instantly share code, notes, and snippets.

implicit def writeableOf_AnyContentAsMultiPartFormData(implicit codec: Codec): Writeable[AnyContentAsMultipartFormData] = {
writeableOf_multiPartFormData(codec).map(c => c.asMultipartFormData.getOrElse(MultipartFormData(Map(), List(), List(), List())))
}
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"
// ???
/**
* Example of assigning a constructor to module.exports and methods to its
* prototype.
* @module
*/
/** @constructor */
module.exports = function() {};
/** An instance method. */
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
#
# 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
#
$ 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
@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"
},
function bar(): void {
console.log('hello')
}
export class ClassWithClosedOverFunction {
constructor() {
bar()
}
}
/*
// @ts-check
const schedule = [
13,
'x',
'x',
41,
'x',
'x',
'x',