Skip to content

Instantly share code, notes, and snippets.

View TanUkkii007's full-sized avatar

Yusuke Yasuda TanUkkii007

View GitHub Profile
@TanUkkii007
TanUkkii007 / README
Created May 30, 2019 10:08
flite compilation on OSX 10.13.6
Delete `-no-cpp-precomp` from configure and configure.in
```
git clone http://github.com/festvox/flite
cd flite
./configure CC="gcc-8"
make
make get_voices
```
@TanUkkii007
TanUkkii007 / pyspark-in-jupyter.sh
Created June 26, 2018 02:15
How to use pyspark with Jupyter notebook
# https://blog.sicara.com/get-started-pyspark-jupyter-guide-tutorial-ae2fe84f594f
export PYSPARK_DRIVER_PYTHON_OPTS="notebook"
export PYSPARK_DRIVER_PYTHON=$(which jupyter)
export SPARK_HOME="path to spark dir"
$SPARK_HOME/bin/pyspark
@TanUkkii007
TanUkkii007 / raw_to_wav.sh
Last active March 29, 2019 06:29
wav to raw conversion with sox
ls | xargs -I {} basename {} .raw | xargs -I {} sox -r 16000 -e signed -b 16 -c 1 {}.raw /output/path/{}.wav
import java.util
import akka.NotUsed
import akka.stream.scaladsl.Source
import akka.stream.{ActorAttributes, Attributes, Outlet, SourceShape}
import akka.stream.stage.{GraphStage, GraphStageLogic, OutHandler, StageLogging}
import org.hbase.async.Scanner.ScanMetrics
import org.hbase.async.{KeyValue, Scanner}
import com.stumbleupon.async.Callback
import scala.collection.JavaConverters._
@TanUkkii007
TanUkkii007 / my_understanding_way_of_tensorflow.md
Last active July 25, 2017 03:20
my understanding way of tensorflow

tensorflowを勉強したくていろいろ本を読んでいたが、今の所以下の勉強方法がしっくりきてる。

  • 論文を読む
  • 誰かが論文を読んで実装していたら、そのコードを読んで、実行してみる

読んでいる論文の一覧はgithubで管理してる。

https://github.com/TanUkkii007/papers-i-read

読みたい論文はTwitterや引用から探してきて、リストに追加してる。 読んだものは"ready to summarize"の欄に移動させて、

package streams
import akka.actor.ActorSystem
import akka.stream._
import akka.stream.scaladsl._
import akka.stream.stage.{ GraphStage, GraphStageLogic, OutHandler }
import com.typesafe.config.ConfigFactory
object StreamDispatchers extends App {
@TanUkkii007
TanUkkii007 / export-java-home
Created May 8, 2016 01:56
set JAVA_HOME with specified java version on Mac
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
@TanUkkii007
TanUkkii007 / gist:0bbef0d32c4a55a80e19
Last active September 15, 2015 09:26
akka.ConfigurationException: configuration problem while creating [akka://TcpStreamActorITest/user/$b/flow-1-1-actorSubscriberSink/tcp-client-router] with router dispatcher [akka.actor.default-dispatcher] and mailbox [akka.actor.default-mailbox] and routee dispatcher [akka.actor.default-dispatcher] and mailbox [akka.actor.default-mailbox]
import java.net.InetSocketAddress
import java.util.concurrent.ConcurrentHashMap
import scala.collection.JavaConversions._
import akka.actor._
import akka.io.{IO, Tcp}
import akka.routing.{BalancingPool}
import akka.stream.actor.{ActorPublisher, ActorSubscriberMessage, WatermarkRequestStrategy, ActorSubscriber}
import akka.util.ByteString
import scala.concurrent.Promise
@TanUkkii007
TanUkkii007 / gist:dacbf45a65492808c53f
Created July 16, 2015 07:26
サンプルコード in "プログラミング言語のパラダイムシフトーScalaから見る関数型と並列性時代の幕開けー http://www.slideshare.net/TanUkkii/functional-and-concurencyinscala"
import akka.actor._
import akka.routing.{SmallestMailboxPool}
import akka.testkit.{TestKit, ImplicitSender}
import com.typesafe.config.ConfigFactory
import jp.trifort.ifu.StopSystemAfterAll
import org.scalatest.{MustMatchers, WordSpecLike}
import scala.concurrent.{Await, Future}
import akka.util.Timeout
import scala.concurrent.duration._