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
| /* eslint-env browser */ | |
| /* global start, out */ | |
| const ws = new WebSocket('ws://localhost:7070'); | |
| const log = msg => out.textContent += `\n${msg}`; | |
| const send = obj => ws.send(JSON.stringify(obj)); | |
| ws.onopen = () => log('connection established'); | |
| ws.onmessage = (msg) => { |
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
| import QtQuick 2.12 | |
| import QtQuick.Controls 2.12 | |
| import QtQuick.Layouts 1.12 | |
| Item { | |
| id: root | |
| signal add(string todo) | |
| property var model | |
| RowLayout { |
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
| <canvas id=c></canvas> | |
| <p>Calculating and prerendering...</p> |
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
| #include <chrono> | |
| #include <thread> | |
| #include <cstdlib> | |
| #include <math.h> | |
| #include "render.cpp" | |
| #define PI 3.14159265 | |
| int main() { | |
| int i = 0; |
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
| [1518-11-22 00:49] wakes up | |
| [1518-05-18 00:01] Guard #1171 begins shift | |
| [1518-11-20 00:28] wakes up | |
| [1518-10-27 00:37] wakes up | |
| [1518-08-14 00:39] falls asleep | |
| [1518-09-08 00:51] falls asleep | |
| [1518-07-27 00:57] wakes up | |
| [1518-10-21 00:00] Guard #2699 begins shift | |
| [1518-09-09 00:16] falls asleep | |
| [1518-03-21 00:51] wakes up |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <map> | |
| #include <memory> | |
| struct InputLine { | |
| int min; | |
| std::string text; |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <map> | |
| #include <memory> | |
| struct InputLine { | |
| int min; | |
| std::string text; |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <map> | |
| #include <memory> | |
| struct InputLine { | |
| int min; | |
| std::string text; |
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
| #1 @ 335,861: 14x10 | |
| #2 @ 97,613: 24x14 | |
| #3 @ 118,29: 25x13 | |
| #4 @ 55,721: 10x22 | |
| #5 @ 102,127: 23x12 | |
| #6 @ 304,347: 24x17 | |
| #7 @ 172,726: 28x24 | |
| #8 @ 102,115: 25x25 | |
| #9 @ 270,568: 14x25 | |
| #10 @ 599,384: 10x16 |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| struct claim { | |
| int id; | |
| int x; | |
| int y; | |
| int w; |