Skip to content

Instantly share code, notes, and snippets.

View asmasa's full-sized avatar

Masayuki.A asmasa

  • Japan
  • Shinagawa
View GitHub Profile
@asmasa
asmasa / elm_setting.md
Last active October 8, 2018 02:57
Elmの開発環境構築

環境構築

ハンズオンを実施するために必要な環境は以下になります。
ハンズオン当日までにインストールしておいてください。
なお、Node.jsをインストールしていることを前提としています。

  • Elm 0.19
  • elm-format
  • Visual Studio Code

インストール

@asmasa
asmasa / elm.md
Created January 27, 2018 03:48
Elm言語資料

Elm言語資料

前提としているElmのバージョンは0.18.0

  • 実行環境
  • リテラル
  • 関数
  • 構文
  • モジュール
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events as Events exposing (on)
import Json.Decode as Json
type alias Model =
{ selectedText : Maybe String
@asmasa
asmasa / file0.txt
Created January 23, 2015 10:44
giter8でScalaプロジェクトの作成 ref: http://qiita.com/asmasa/items/68f90db705bd44f4e590
$ tree .
├── main
│   ├── java
│   └── scala
└── test
├── java
└── scala
trait InstantaneousTime {
val repr: Int
override def equals(other: Any) : Boolean = other match {
case that: InstantaneousTime =>
if(this eq that) {
true
} else {
(that.## == this.##) &&
(repr == that.repr)
}
@asmasa
asmasa / file2.txt
Created June 6, 2014 04:08
独書会 Scala IN DEPTH @ファミレス その1 ref: http://qiita.com/asmasa/items/f8f09655543cf171aaf3
x.foo(); /*is the same as*/ x foo
x.foo(y); /*is the same as*/ x foo y
x.::(y); /*is the same as*/ y :: x