Skip to content

Instantly share code, notes, and snippets.

View yukinagae's full-sized avatar
💭
🍣

Yuki Nagae yukinagae

💭
🍣
View GitHub Profile
# こんな感じで書ける
- a
- b
- c
@yukinagae
yukinagae / network-rate.sh
Last active November 9, 2017 10:07 — forked from stephenlb/network-rate.sh
Network Throughput Bandwidth Rate Consumption Linux Command
#!/bin/bash
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- USAGE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
##
## ./network-rate.sh eth0
##
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
tx_bytes=0
@yukinagae
yukinagae / gist:58c25f220787eb3a0a90
Last active September 16, 2015 03:38 — forked from gakuzzzz/gist:8d497609012863b3ea50
Scalaz勉強会 主要な型クラスの紹介
@yukinagae
yukinagae / file0.txt
Last active August 29, 2015 14:17
Scala + PlayFramework on Heroku + MongoDB ref: http://qiita.com/yukinagae/items/fa75ba9cd2ad75dc63e1
c:\> md c:\data\db
@yukinagae
yukinagae / file0.txt
Created March 18, 2015 00:49
SublimeText2でCoffeeScriptを実行する時のビルド設定(Windows) ref: http://qiita.com/yukinagae/items/d2de7a3c0451cc96aa00
{
"cmd": ["coffee.cmd", "-c", "$file"]
, "selector": "source.coffee"
, "encoding": "cp932"
, "working_dir": "$project_path"
, "variants":
[
{
"name": "Run",
"cmd": ["coffee.cmd", "$file"]
@yukinagae
yukinagae / file0.txt
Created March 16, 2015 09:46
Windowsでdockerを動かしてみる ref: http://qiita.com/yukinagae/items/f39ed022fb34d087bb49
192.168.59.103
connecting...
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/
@yukinagae
yukinagae / HelloSpec.scala
Last active August 29, 2015 14:16
【STEP5】デバッグ(eclipse) : Scalaでコードを書く ref: http://qiita.com/yukinagae/items/50dc53273887da5fd3ad
import org.scalatest._
import org.scalatest.matchers.ShouldMatchers
class HelloSpec extends FlatSpec with ShouldMatchers {
"Hello" should "have tests" in {
var result = 1 + 1
println(result)
result should be === 2
}
}
@yukinagae
yukinagae / AddSpec.scala
Last active August 29, 2015 14:16
【STEP4】テスト : Scalaでコードを書く ref: http://qiita.com/yukinagae/items/038f75e9a1bf17978886
import org.scalatest._
import com.example.Calculate
class AddSpec extends FlatSpec with MustMatchers {
"Calculate" should "addメソッドの 1 + 2 = 3" in {
val calculate = new Calculate()
val result = calculate.add(1, 2)
result must be === 3
}
}
@yukinagae
yukinagae / Hello.scala
Last active August 29, 2015 14:15
【STEP3】run(実行)する : Scalaでコードを書く ref: http://qiita.com/yukinagae/items/a5e5ef37e5a9cf765d55
package com.example
object Hello {
def main(args: Array[String]): Unit = {
println("Bye, world!")
}
}
@yukinagae
yukinagae / file0.txt
Last active August 6, 2018 04:08
【STEP2】IDE(eclipse)にプロジェクトをインポート : Scalaでコードを書く ref: https://qiita.com/yukinagae/items/8bbb74385b288dffb69d
cd [プロジェクトのルートディレクトリ]