Skip to content

Instantly share code, notes, and snippets.

View momchil-velikov's full-sized avatar

Momchil Velikov momchil-velikov

  • Arm
  • Cambridge, United Kingdom
View GitHub Profile
#include <thread>
#include <mutex>
#include <condition_variable>
#include <deque>
#include <string>
#include <iostream>
#include <utility>
class semaphore {
public:
#include <atomic>
#include <chrono>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <thread>
package main
import (
"crypto/sha256"
"fmt"
"io"
"log"
"net"
"sync/atomic"
"time"
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#include <iostream>
#include <array>
#include <random>
#include <algorithm>
#include <memory>
#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);
package main
import (
"fmt"
"sync"
"time"
)
type BlockingMap struct {
Map map[string]int
(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)
#!/bin/sh
${HOME}/src/gcc/configure --prefix=${HOME}/opt/gcc-c-only --enable-languages=c --disable-multilib --disable-werror --disable-bootstrap
"".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
package main
import (
"fmt"
)
const (
a = 8
b = 8
maxLevels = 64