Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
@d-kuro
d-kuro / git_conflict.md
Created October 18, 2018 12:21
コンフリクトしたときの --theirs と --ours

コンフリクトしたときの --theirs と --ours

よく忘れるやつ

merge

$ git checkout branch_b
$ git merge branch_a
@HirotoShioi
HirotoShioi / Trie.hs
Created September 15, 2018 03:17
Trie tree arbitrary instance
-- |A @'Trie' a b@ is a map with keys of type @[a]@ and values of type @b@.
data Trie a b = Fork (Maybe b) (Map a (Trie a b))
deriving (Show, Eq)
instance (Ord a, Arbitrary a, Arbitrary b) => Arbitrary (Trie a b) where
arbitrary :: Gen (Trie a b)
arbitrary = sized $ \n -> if n == 0 -- We interpret the size n as maximum number of values
-- stored in the trie.
then return empty -- If the n == 0, the trie must be empty.
@NomadBlacky
NomadBlacky / foo.scala
Last active August 13, 2018 06:08
scala.reflect.ClassTag
@ def foo[T: scala.reflect.ClassTag](obj: Any): Unit = obj match {
case t: T => println(t.getClass.getName)
case _ => println("ng")
}
defined function foo
@ foo[Int](1)
java.lang.Integer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ababup1192
ababup1192 / elm-hello-world.md
Last active June 29, 2020 08:31
Elmの開発環境を整えて、HelloWorldをするまで

ElmのHello Worldができるまで (2018 10/25)

nodeのインストール

  • 可能であれば、nvm, nodebrew等を使ってnodeをインストールする。

以下が、現時点(2018/9/3)の安定版のバージョン。

$ node -v
@Iruyan-Zak
Iruyan-Zak / index.html
Created May 17, 2018 05:08
New gender selection form
<head>
<title>Spin radio button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="forms-area">
<h3>性別</h3>
<div class="classic-area">
<div class="" ><input type="radio" name="classic-gender" value="1"> 男性</div>
<div class="" ><input type="radio" name="classic-gender" value="2"> 女性</div>
@leque
leque / refs.md
Last active March 31, 2018 21:47
CAML考古学参考文献

発表スライド

CAML考古学 at ML Day #1 2018-03-31 参考文献

@erukiti
erukiti / review.md
Last active October 13, 2025 07:30
Re:VIEWチートシート

Re:VIEWチートシート

いつもいつもいつもRe:VIEWの記法に悩んでぐぐってしまう皆さんへ送るチートシートです。

基本

名称 ルール 概要・備考
段落 1行以上の空行をはさむと別の段落になる HTMLでいうP
見出し =ではじまる行 =の個数で、章・節・項・段という感じで増えます。HTMLで言うH1, H2, H3, H4, H5
@matstani
matstani / clojurememo.md
Created December 28, 2017 01:11
Clojureで業務システムを作ったメモ

Clojureを仕事で使った経験をメモしておきます。 2015年の冬に本番稼働したシステムのため、使用したライブラリ等については、必ずしも現在の流行に沿っていないと思います。

作ったもの

  • スタッフがウェブブラウザによりアクセスし、ログインして使用する業務システム
    • 商品管理、売上管理、支払管理etc..

規模

  • DBテーブル数80程度
  • 画面数200程度
@rahulmutt
rahulmutt / Spec.md
Last active January 12, 2018 01:11
Eta FFI Specification

Eta FFI Specification

Architecture

The Eta FFI Generator will consist of support from three components:

  • The Eta compiler
  • The Etlas build tool
  • The eta-ffi tool

Eta Compiler