View OptMapOps.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit final class OptMapOps[A](self: A) { | |
def optMap[B, C >: A](otherOpt: Option[B])(f: (A, B) => C): C = otherOpt match { | |
case Some(other) => f(self, other) | |
case None => self | |
} | |
} | |
// sequence.mapOps(optionalFilter) { case (seq, filter) => filter(seq) }.otherOps(args) |
View another_lambda.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apply1() ( | |
body=$2 | |
block() { | |
eval "$body" | |
} | |
block "$1" | |
) |
View part of Settings.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android | |
packagingOptions in Android := PackagingOptions(Nil, Nil, Seq("META-INF/NOTICE.txt", "META-INF/LICENSE.txt")), | |
platformTarget in Android := "android-23", | |
minSdkVersion in Android := "23", | |
targetSdkVersion in Android := "23", | |
debugIncludesTests in Android := false, | |
dexMulti in Android := true, | |
typedResources in Android := false, | |
// Proguard |
View all.gyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
{ | |
'variables': { | |
# A hook that can be overridden in other repositories to add additional | |
# compilation targets to 'All'. | |
'app_targets%': [], | |
# For Android-specific targets. |
View n0s.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data; | |
set P1S := a b c; | |
set P2S := 1 2 3 4; | |
param Payoff1 | |
: 1 2 3 4 := | |
a 0 3 1 8 | |
b 5 5 4 6 | |
c 2 6 0 5; |
View 0s.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data; | |
set P1S := a b c; | |
set P2S := 1 2 3 4; | |
param Payoff | |
: 1 2 3 4 := | |
a -5 3 1 8 | |
b 5 5 4 6 | |
c -4 6 0 5; |
NewerOlder