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
18 | |
18 | |
Function 1 used 1184 bytes | |
Function 2 used 152 bytes |
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
let gcd u v = | |
Seq.unfold (fun (x, y) -> | |
if y = 0 then None | |
else | |
if x < y then Some ((x, y), (y, x % y)) | |
else Some ((x - y, y), (x - y, y)) | |
) (u, v) | |
|> Seq.last | |
|> snd |
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
let gcd u v = | |
Seq.unfold (fun (x, y) -> | |
if y = 0 then None | |
else Some ((x, y), (y, x % y)) | |
) (u, v) | |
|> Seq.last | |
|> snd |
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
let modulo u v = | |
(u, v) |> Seq.unfold (fun (x, y) -> | |
if x < y then None | |
else Some (x - y, (x - y, y)) | |
) |> Seq.last |
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 Main where | |
import Prelude | |
import Effect (Effect) | |
import Effect.Console (log) | |
main :: Effect Unit | |
main = log "Hello, World!" |
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
body { | |
background-color: black; | |
margin: 0; | |
} | |
canvas { | |
background-color: gray; | |
position: absolute; | |
left: 50%; | |
margin-right: -50%; |
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
const createStore = (reducer, preloadedState) => { | |
return { | |
currentState: preloadedState, | |
getState() { | |
return this.currentState | |
}, | |
dispatch(action) { | |
this.currentState = reducer(this.currentState, action) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>dart_pixijs</title> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.11/pixi.min.js"></script> | |
<script type="application/dart" src="main.dart"></script> | |
<script src="packages/browser/dart.js"></script> |
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
main() { | |
createDisplayObjectsStream().listen(render); | |
createSoundNotesStream().listen(playSoundNotes); | |
} |
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
たらはかさか | |
たらはかさき | |
たらはかさく | |
たらはかさけ | |
たらはかさこ | |
たらはかしか | |
たらはかしき | |
たらはかしく | |
たらはかしけ | |
たらはかしこ |
NewerOlder