- TL;DR: オンライン実行環境作ってるよ (WIP)
- https://github.com/y-taka-23/dncl-playground
- https://elm-jp.connpass.com/event/280401/
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
| module Sample where | |
| import Language.Haskell.Liquid.Prelude ( liquidError ) | |
| {-@ safeHead :: { xs:[a] | len xs > 0 } -> a @-} | |
| safeHead [] = liquidError "empty list" | |
| safeHead (x : _) = x | |
| -- badUsage = safeHead [] -- => Liquid Type Mismatch |
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
| #!/bin/bash | |
| rm -f cut.mov | |
| rm -f palette.png | |
| rm -f encoded.gif | |
| rm -f output.gif | |
| ffmpeg -ss 10 -to 15 -i input.mov -c copy cut.mov | |
| ffmpeg -i cut.mov -vf fps=30,scale=340:-1:flags=lanczos,palettegen palette.png | |
| ffmpeg -i cut.mov -i palette.png -filter_complex "fps=30,scale=340:-1:flags=lanczos[x];[x][1:v]paletteuse" encoded.gif |
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
| module signal | |
| enum LightState { On, Off, Blink } | |
| abstract sig Light { | |
| var state: one LightState | |
| } | |
| one sig Red, Green extends Light {} |
OlderNewer