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 Clock = { | |
| include ReactRe.Component.Stateful; | |
| let name = "Clock"; | |
| type props = (); | |
| type state = {now: Js_date.t, timerID: option Js_global.intervalId}; | |
| let getInitialState () => { | |
| { now: Js_date.make (), timerID: None }; | |
| }; |
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
| <html> | |
| <canvas id="canvas" width="256" height="256" /> | |
| <script> | |
| const canvas = document.getElementById('canvas'); | |
| const ctx = canvas.getContext('2d'); | |
| ctx.fillStyle = 'black'; | |
| ctx.fillRect(0, 0, 256, 256); | |
| ctx.fillStyle = 'white'; |
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
| # compdb/BUCK | |
| python_bootstrap_binary( | |
| name = "combine_compdbs", | |
| main = "combine_compdbs.py", | |
| visibility = ["PUBLIC"] | |
| ) |
OlderNewer