https://www.jetbrains.com/idea/ からIntelliJ IDEAをダウンロードしインストールします。 あれこれJavaの開発環境じゃね?と思う方もいるかもしれませんが、どういう訳かnode.jsの開発環境がプラグインとして提供されています。学生ならUltimate Editionでもいいですが、node.jsの開発ならCommunity Editionで十分です。 Windows及びLinuxの場合はインストール時もしくは初回起動時にnode.jsのプラグインのインストールをすることができるのでそこからインストールしてください。Macもしくは初回起動時にインストールし忘れた場合は起動時に表示される小型のwindowの右下のconfigure→plugins→Install JetBrains Plugin...→nodeJSからインストールしてください。
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
| 皆さん、今日のスケジュールは覚えていますよね!?そう、今日は待ちに待ったコンプライアンス講習があります! | |
| というわけで今日はコンプライアンス、以下コンプラについてスピーチします。 | |
| さて、昨日ネタを探しにニフティニュースを眺めていたら去年2016年にコンプラ違反が一因で倒産した会社は178件とのニュースを見かけました。 | |
| 記事によると、二年連続で昨年度を下回っています。理由としてはそもそも企業倒産が減ったことや、コンプラ順守の意識の浸透があげられるそうです。 | |
| なお、内容別にみると、一位がその他、つまり法令違反や行政処分を食らったケース。 | |
| 二位が脱税滞納等の税金関連、そこから更に不正受給、粉飾、雇用関連が続きます。 | |
| では皆さんはコンプラという言葉を聞いてどういうイメージを持たれるでしょうか |
- Windows/Mac https://nodejs.org/en/ からnodeをDLしてインスコ。LTS版でも最新版でもお好きな方をどうぞ。でもインストーラータイプはメンテ面倒くさいしLTSの方がいいかもね!
- Linux それぞれのパッケージマネージャーで。Ubuntu14.04LTS等だとnodeがnodejsという名前にされてたり、そもそもバージョンが古すぎる場合があるのでそうだった場合はビルドしたほうがいいかも。
- 公式サイトからx64のバイナリを落とす
- インストール(Program Files下には置かないこと(デフォルトの設定なら大丈夫))
- start→msys2 64bit→msys2 shellを開く
- bashが出てくるので
pacman -Syuv(システム全体更新)をする。選択肢が出てきたら<enter> - 処理が終了するとバグるので一旦alt+F4で終了する
- もう一度msys2 shellを開く
- python2とmatplotlibのインストール
pacman -S python2 mingw-w64-x86_64-python2-matplotlibをする。選択肢が出てきたら<enter> - 凄まじい容量(DL400M,展開して4G)なので気長に待つ
- 終わったら
exit - start→msys2 64bit→MinGW-w64 Win64 Shellを開く(**ここ重要!**3.と違うもの開いてるので注意)
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 strict'; | |
| function rec(i,array) { | |
| if(i === 0) return 0; | |
| if(array === []) return 0; | |
| const now = i; | |
| const bool = (array === []); | |
| // なぜかtrueにならない | |
| console.log(`array === []: ${bool}`); | |
| console.log(array); |
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
| sealed abstract class Tree | |
| case class Branch(value:Int, left:Tree, right:Tree) extends Tree | |
| case object Empty extends Tree | |
| val tree:Tree = Branch(1, Branch(2, Empty, Empty),Branch(3, Empty, Empty)) | |
| def max(tree:Tree):Int = { | |
| tree match { | |
| case Branch(v0, v1, v2) => { | |
| (v1, v2) match { |
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
| trait Stack[+T] { | |
| def pop(): (T, Stack[T]) | |
| def push[E >: T](e: E): Stack[E] | |
| def isEmpty(): Boolean | |
| } | |
| class NonEmptyStack[+T](private val top: T, private val rest: Stack[T]) extends Stack[T] { | |
| def push[E >: T](e: E): Stack[E] = new NonEmptyStack[E](e,this) | |
| def pop(): (T, Stack[T]) = (top, rest) | |
| def isEmpty(): Boolean = false |
NewerOlder