View mdium-example-sample2.hs
This file contains 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
main :: IO () | |
main = putStrLn "World" |
View mdium-example-sample1.hs
This file contains 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
main :: IO () | |
main = putStrLn "Hello" |
View sample.hs
This file contains 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
main :: IO () | |
main = putStrLn "Hello" |
View ski.hs
This file contains 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 Data.String.Utils (replace) | |
import Data.Char (isDigit) | |
data CLTerm = Var String | |
| I | |
| K | |
| S | |
| Cons CLTerm CLTerm | |
instance Show CLTerm where | |
show I = "I" |
View gist:72326e613ac8967f71ed43e8e1521949
This file contains 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
# イスの過去のお題一覧 | |
- 1予選「」 | |
- 1本選「」 | |
- 2予選「」 | |
- 2本選「」 | |
- 3予選「GitHub Gist のようなもの」 http://isucon.net/archives/32951806.html | |
- 3本選「」 | |
- 4予選「いすこん銀行」 http://isucon.net/archives/40724693.html | |
- 4本選「動画広告配信」 http://isucon.net/archives/41634734.html |
View DefaultJson.hs
This file contains 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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE OverloadedLabels #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
module DefaultJson where | |
import Data.Aeson | |
import Data.Extensible | |
import Data.Maybe (fromMaybe) |
View PolyPersonParams.hs
This file contains 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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedLabels #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeFamilies #-} |
View lifgame.elm
This file contains 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
module Main exposing (main) | |
import Browser exposing (Document) | |
import Browser.Navigation exposing (Key) | |
import Html exposing (Html, button, div, text) | |
import Html.Events exposing (onClick) | |
import Html.Events.Extra.Pointer as Pointer | |
import Html.Attributes exposing (style, src) | |
import Array exposing (Array) | |
import SingleSlider |
View 0-tpl.json
This file contains 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
{ | |
"01": [], | |
"02": [], | |
"03": [], | |
"04": [], | |
"05": [], | |
"06": [], | |
"07": [], | |
"08": [], | |
"09": [], |
View md2hugo.rb
This file contains 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
path = ENV['path'] | |
files = `ls -d #{path}/*`.split("\n") | |
p files | |
files.each do |filepath| | |
cont = File.read(filepath) | |
title, body = cont.split("\n", 2) | |
next unless title.start_with?('# ') |
NewerOlder