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
Show hidden characters
{ | |
"presets": [ | |
"es2015", | |
"react" | |
], | |
"plugins": [ | |
["babel-root-slash-import", { | |
"rootPathSuffix": "src" | |
}] | |
] |
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
C:\Users\...\AppData\Roaming\npm\node_modules\mocha\lib\utils.js:634 | |
throw new Error("cannot resolve path (or pattern) '" + path + "'"); | |
^ | |
Error: cannot resolve path (or pattern) '"src/**/*.spec.js"' | |
at Object.lookupFiles (C:\Users\...\AppData\Roaming\npm\node_modules\mocha\lib\utils.js:634:15) | |
at C:\Users\...\AppData\Roaming\npm\node_modules\mocha\bin\_mocha:327:30 | |
at Array.forEach (native) | |
at Object.<anonymous> (C:\Users\...\AppData\Roaming\npm\node_modules\mocha\bin\_mocha:326:6) | |
at Module._compile (module.js:541:32) |
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
[ignore] | |
.*/node_modules/babel.* | |
.*/node_modules/fbjs/.* | |
.*/node_modules/config-chain/.* | |
.*/node_modules/npmconf/.* | |
[include] | |
node_modules/ | |
[libs] |
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
type Foo = { | |
prop: boolean, | |
prop2: boolean | |
}; | |
type Bar = { | |
prop: boolean, | |
prop2: boolean, | |
[key: string]: void | |
} |
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
@@ -3861,6 +3845,10 @@ Spasm.ShaderProgram.prototype.link = function() { | |
, c = this.fragmentShader; | |
b.attachShader(a, d.shader); | |
b.attachShader(a, c.shader); | |
+ | |
+ // Force a_position (used in all shaders) to attribute 0 for performance | |
+ b.bindAttribLocation(a, 0, 'a_position') | |
+ | |
b.linkProgram(a) | |
} |
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
object Staticville { | |
// private def makeCitizen(country: Country): Citizen | |
private var citizen: Citizen = null | |
def getCitizen(implicit country: Country): Citizen = { | |
citizen = citizen match { | |
case null => { |
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
class Generator { | |
// ... | |
} | |
object GeneratorUser { | |
def getGenerator(implicit seed: Int): Generator { | |
val gen = makeGenerator(seed) | |
gen.doSomethingElse() // Will error if called more than once, globally | |
gen |
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
val managerOne: ManagerGetter[Manager[One]] = getManager(oneParam) | |
managerOne.get().write(one.key, one) | |
managerOne.flush() |
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
/*** | |
scalaVersion := "2.11.7" | |
libraryDependencies += "com.jsuereth" %% "scala-arm" % "1.4" | |
resolvers += "Akka Repository" at "http://repo.akka.io/releases/" | |
*/ | |
import resource._ |
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 def ftpResource = new Resource[FTPClient] { | |
override def close(client: FTPClient) = client.logout() | |
} |