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 <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <deque> | |
#include <string> | |
#include <iostream> | |
#include <utility> | |
class semaphore { | |
public: |
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 <atomic> | |
#include <chrono> | |
#include <ctime> | |
#include <iomanip> | |
#include <iostream> | |
#include <memory> | |
#include <sstream> | |
#include <string> | |
#include <thread> |
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
package main | |
import ( | |
"crypto/sha256" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"sync/atomic" | |
"time" |
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 <unistd.h> | |
#include <sys/wait.h> | |
#include <errno.h> | |
#include <iostream> | |
#include <array> | |
#include <random> | |
#include <algorithm> | |
#include <memory> |
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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
int main() { | |
mkfifo("test-fifo", 0660); |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type BlockingMap struct { | |
Map map[string]int |
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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(package-initialize) | |
(require 'ido) | |
(ido-mode) | |
(require 'cc-mode) | |
(require 'clang-format) |
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/sh | |
${HOME}/src/gcc/configure --prefix=${HOME}/opt/gcc-c-only --enable-languages=c --disable-multilib --disable-werror --disable-bootstrap |
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
"".f t=1 size=102 args=0x20 locals=0x10 | |
0x0000 00000 (entry.go:11) TEXT "".f(SB), $16-32 | |
0x0000 00000 (entry.go:11) SUBQ $16, SP | |
0x0004 00004 (entry.go:11) MOVQ BP, 8(SP) | |
0x0009 00009 (entry.go:11) LEAQ 8(SP), BP | |
0x000e 00014 (entry.go:11) FUNCDATA $0, gclocals·42de96b0ee2ecebee32eb4aae6bc10d1(SB) | |
0x000e 00014 (entry.go:11) FUNCDATA $1, gclocals·2a5305abe05176240e61b8620e19a815(SB) | |
0x000e 00014 (entry.go:13) MOVQ "".es+32(FP), AX | |
0x0013 00019 (entry.go:13) MOVQ "".es+24(FP), CX | |
0x0018 00024 (entry.go:13) MOVQ $0, DX |
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
package main | |
import ( | |
"fmt" | |
) | |
const ( | |
a = 8 | |
b = 8 | |
maxLevels = 64 |