Skip to content

Instantly share code, notes, and snippets.

View eiennohito's full-sized avatar

Arseny Tolmachev eiennohito

  • Hakuhodo Technologies
  • Osaka, Japan
View GitHub Profile
scala> :javap -pvc org.eiennohito.spark.tensorflow.A
Size 521 bytes
MD5 checksum baadc4d92824e8003ebb73a997070959
Compiled from "A.java"
class org.eiennohito.spark.tensorflow.A
minor version: 0
major version: 52
flags: ACC_SUPER
Constant pool:
#1 = Methodref #7.#19 // java/lang/Object."<init>":()V
@eiennohito
eiennohito / -
Created November 17, 2016 05:11
'!'=0
'#'=0
'$'=133220
'*'=( )
-=569JNRXghiks
0=/mnt/orange/brew/data/bin/zsh
'?'=0
@=( )
ARGC=0
AUTOJUMP_ERROR_PATH=/home/arseny/.local/share/autojump/errors.log
@eiennohito
eiennohito / -
Created November 11, 2016 04:12
[arseny@lotus2:~/work/stuff/ansible-kurolab]% ansible basil -a 'cat /home/huang/work/EventCounts/try.sh' (master)
basil109 | SUCCESS | rc=0 >>
#!/bin/bash
echo $HOSTNAME
basil114 | SUCCESS | rc=0 >>
#!/bin/bash
echo $HOSTNAME
package ws.eiennohito.utils.serialization
import java.lang.reflect.Modifier
import java.util.concurrent.ConcurrentHashMap
import akka.serialization.Serializer
import com.google.protobuf.CodedOutputStream
import com.trueaccord.scalapb.{GeneratedMessage, GeneratedMessageCompanion}
import com.typesafe.scalalogging.StrictLogging
#include <vector>
#include <iostream>
using namespace std;
struct Report {
pair<string, string> stage1;
pair<double, string> stage2;
};
package io.grpc.examples.header;
import io.grpc.ForwardingServerCall;
import io.grpc.Metadata;
import io.grpc.ServerCall;
/**
* @author eiennohito
* @since 2016/05/30
*/
# JMH 1.11.3 (released 125 days ago, please consider updating!)
# VM version: JDK 1.8.0_92, VM 25.92-b14
# VM invoker: /mnt/orange/brew/data/Cellar/jdk/1.8.0_92/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 50 iterations, 500 ms each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Sampling time
# Benchmark: org.eiennohito.Bench3.copyAndSerialize
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 27 2016 14:23:27)
Included patches: 1-1655
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-balloon_eval +float +mouse_urxvt -tcl
-browse +folding +mouse_xterm +terminfo
++builtin_terms -footer +multi_byte +termresponse
scala> def a = { val x = Array(1.2, 2.3); return x }
<console>:11: error: method a has return statement; needs result type
def a = { val x = Array(1.2, 2.3); return x }
^
scala> def a = { val x = Array(1.2, 2.3); x }
a: Array[Double]
scala> :scalap a
scalap: no such command. Type :help for help.
diff --git a/engine/SCons/Platform/__init__.py b/engine/SCons/Platform/__init__.py
index d8be160..201ac42 100644
--- a/engine/SCons/Platform/__init__.py
+++ b/engine/SCons/Platform/__init__.py
@@ -62,6 +62,9 @@ def platform_default():
files. Since we're architecture independent, though, we don't
care about the machine architecture.
"""
+ if 'HOMEBREW_BREW_FILE' in os.environ:
+ return 'homebrew'