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
package ex2 | |
import akka.actor.SupervisorStrategy._ | |
import akka.actor._ | |
import scala.concurrent.Await | |
import scala.concurrent.duration.Duration | |
object Main1 extends App { | |
val system = ActorSystem() |
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
import java.util.concurrent.CountDownLatch | |
import akka.actor.SupervisorStrategy.{Restart, Resume, Stop} | |
import akka.actor._ | |
object Main extends App { | |
val system = ActorSystem() | |
try { | |
val actor = system.actorOf(Props[RootSupervisor]) | |
actor ! 1 |
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
#!/bin/bash | |
# https://gist.github.com/themoriarty/584b759513c5c5864dac | |
# | |
# (1) copy to: ~/bin/ssh-host-color | |
# (2) set: alias ssh=~/bin/ssh-host-color | |
# | |
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
# Fork from https://gist.github.com/773849 | |
# |
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
~sand/markdown-json-lint $ node index.js sample.md | |
Parse error on line 1: | |
{ "b: 'a' } | |
--^ | |
Expecting 'STRING', '}', got 'undefined' | |
Parse error on line 1: | |
{ "x: 2 } | |
--^ | |
Expecting 'STRING', '}', got 'undefined' | |
~sand/markdown-json-lint $ node index.js sample2.md |
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/matsu_chara/ghq/src/github.com/dwango/scala_text/src/IDE.md | |
1:1 error #(h1), ##(h2)の見出し行に難易度表記(★)がありません # IDE (Integrated Development Environment) chapter-difficulty-stars | |
62:1 error #(h1), ##(h2)の見出し行に難易度表記(★)がありません ## sbtプロジェクトのインポート chapter-difficulty-stars | |
102:1 error #(h1), ##(h2)の見出し行に難易度表記(★)がありません ## プログラムを実行する chapter-difficulty-stars | |
/Users/matsu_chara/ghq/src/github.com/dwango/scala_text/src/INTRODUCTION.md | |
1:1 error #(h1), ##(h2)の見出し行に難易度表記(★)がありません # はじめに chapter-difficulty-stars | |
36:1 error #(h1), ##(h2)の見出し行に難易度表記(★)がありません ## ライセンス chapter-difficulty-stars |
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
<?php | |
abstract class Mofu { | |
abstract function isNyan(); | |
public function mofureyo() { | |
if($this->isNyan() === true) { | |
return "mofure"; | |
} else { | |
return "mofuruna"; | |
} |
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
<?php | |
abstract class Mofu { | |
abstract protected function isNyan(); | |
public function mofureyo() { | |
if($this->isNyan() === true) { | |
return "mofure"; | |
} else { | |
return "mofuruna"; | |
} |
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
package io.grpc.examples.helloworld; | |
import static io.grpc.stub.ClientCalls.asyncUnaryCall; | |
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; | |
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; | |
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; | |
import static io.grpc.stub.ClientCalls.blockingUnaryCall; | |
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; | |
import static io.grpc.stub.ClientCalls.futureUnaryCall; | |
import static io.grpc.MethodDescriptor.generateFullMethodName; |
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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
end |
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
use "collections" | |
actor Main | |
let env: Env | |
new create(env': Env) => | |
env = env' | |
let ls = List[LightWorker] | |
let hs = List[HeavyWorker] |