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
| use random::Source; | |
| mod structures { | |
| #[derive(Eq, PartialEq, Clone, Copy)] | |
| pub struct Branch { | |
| pub x: u32, | |
| pub y: u32, | |
| pub w: u32 | |
| } |
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 fs = require("fs"); | |
| const memoryGame = () => { | |
| class util { | |
| static readNum() { | |
| let buffer = Buffer.alloc(4); | |
| buffer.fill(0); | |
| fs.readSync(0 /*stdin*/, buffer, 0, 4); | |
| return buffer[0] % 48; //( ͡° ͜ʖ ͡°) | |
| } |
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 <string> | |
| #include <curl/curl.h> | |
| int main(void) | |
| { | |
| CURL *curl; | |
| curl_global_init(CURL_GLOBAL_ALL); | |
| curl = curl_easy_init(); | |
| std::string url = "http://httpbin.org/post"; |
NewerOlder