This file contains hidden or 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
alias docker-chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $(docker-machine ip default)" |
This file contains hidden or 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
WITH RECURSIVE r AS ( | |
SELECT 35 / 8 q, 35 % 8 r | |
UNION | |
SELECT q/8, q%8 FROM r WHERE q > 0 | |
) | |
SELECT string_agg(r::text, '' ORDER BY q)::int FROM r; |
This file contains hidden or 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
idea () { | |
"/opt/homebrew-cask/Caskroom/intellij-idea/14.0.3/IntelliJ IDEA 14.app/Contents/MacOS/idea" $(pwd) | |
} |
This file contains hidden or 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
scala> case class Foo(i:Int) | |
defined class Foo | |
scala> Foo.isInstanceOf[Int => Foo] | |
res4: Boolean = true | |
scala> Seq(1,2,3).map(Foo) | |
res5: Seq[Foo] = List(Foo(1), Foo(2), Foo(3)) | |
scala> def foo(f: Int => Foo)(i:Int) = f(i) |
This file contains hidden or 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
-[1617]% java -jar embulk.jar run -I embulk-output-parquet/lib config.yml | |
2015-02-17 18:08:09,161 [INFO]: main:org.embulk.standards.LocalFileInputPlugin: Listing local files at directory '/Users/okuno/tmp/embulk/try1/csv' filtering filename by prefix 'sample_' | |
2015-02-17 18:08:09,165 [INFO]: main:org.embulk.standards.LocalFileInputPlugin: Loading files [/Users/okuno/tmp/embulk/try1/csv/sample_01.csv.gz] | |
2015-02-17 18:08:09,230 [INFO]: main:org.embulk.exec.LocalExecutor: {done: 0 / 1, running: 0} | |
2015-02-17 18:08:09,459 [WARN]: embulk-executor-0:org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable | |
2015-02-17 18:08:09,561 [INFO]: embulk-executor-0:org.apache.hadoop.io.compress.CodecPool: Got brand-new compressor [.snappy] | |
Could not load 'org-xerial-snappy.properties' from classpath: java.lang.NullPointerException | |
java.lang.NullPointerException | |
at org.xerial.snappy.SnappyLoader.getRootClassLoader(SnappyLoader.java |
This file contains hidden or 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
> evicted | |
[warn] There may be incompatibilities among your library dependencies. | |
[warn] Here are some of the libraries that were evicted: | |
[warn] * org.apache.thrift:libthrift:0.7.0 -> 0.9.2 (caller: jp.scaleout:log_2.11:1.0-SNAPSHOT, com.twitter.elephantbird:elephant-bird-core:4.4) | |
[warn] * com.google.guava:guava:(11.0.2, 11.0.1, 12.0.1) -> 16.0.1 (caller: org.apache.hadoop:hadoop-yarn-server-common:2.6.0, org.apache.curator:curator-recipes:2.6.0, org.apache.hadoop:hadoop-hdfs:2.6.0, org.apache.curator:curator-client:2.6.0, org.apache.hadoop:hadoop-yarn-client:2.6.0, org.apache.hadoop:hadoop-common:2.6.0, org.apache.hadoop:hadoop-yarn-common:2.6.0, org.apache.hadoop:hadoop-yarn-api:2.6.0, org.apache.curator:curator-framework:2.6.0, com.twitter.elephantbird:elephant-bird-core:4.4, org.htrace:htrace-core:3.0.4) | |
[warn] * io.netty:netty:3.6.2.Final -> 3.7.0.Final (caller: org.apache.zookeeper:zookeeper:3.4.6, org.apache.hadoop:hadoop-hdfs:2.6.0) |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
[ | |
{name: 'foo1', ip: '192.168.77.21'}, | |
{name: 'foo2', ip: '192.168.77.22'}, | |
{name: 'foo3', ip: '192.168.77.23'}, |
This file contains hidden or 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 conf = ConfigFactory.load() | |
conf.getConfig("foo.properties").entrySet.asScala.foldLeft(new Properties) { (p, e) => | |
p.setProperty(e.getKey, e.getValue.unwrapped.toString) | |
p | |
} |
This file contains hidden or 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
trait Lifecycle { | |
def startup(): Unit | |
def shutdown(): Unit | |
} | |
trait FooModule extends Lifecycle { | |
abstract override def startup() { | |
super.startup() | |
println("startup foo") | |
} |
This file contains hidden or 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
/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:4610 | |
SA[$__jsx_ipdec(bkt, s.get$I((i | 0)), 1)] = (i | 0); | |
^ | |
ReferenceError: $__jsx_ipdec is not defined | |
at SAIS$_make$LOArray$AIII (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:4610:7) | |
at SAIS$make$S (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:4572:2) | |
at Object.BurrowsWheelerTransform (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:4319:22) | |
at Object.FMIndex.build$IUI (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:2235:8) | |
at Object.Oktavia.build$UI (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:1124:16) | |
at Object.Oktavia.build$ (/Users/okuno/git/oktavia/.jsx.test-oktavia-table.jsx.61619.14426404974.js:1099:7) |