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
kostja@hulk ~ % ./test.py | |
^CShutdown requested | |
/usr/lib/python3.7/asyncio/unix_events.py:861: RuntimeWarning: A loop is being detached from a child watcher with pending handlers | |
RuntimeWarning) | |
/usr/lib/python3.7/asyncio/unix_events.py:137: RuntimeWarning: coroutine 'setup_signal_handlers.<locals>.shutdown' was never awaited | |
del self._signal_handlers[sig] | |
RuntimeWarning: Enable tracemalloc to get the object allocation traceback | |
Traceback (most recent call last): | |
File "./test.py", line 59, in <module> | |
asyncio.run(main()) |
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 ( | |
"bytes" | |
"fmt" | |
"github.com/gocql/gocql" | |
"log" | |
"reflect" | |
) |
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
struct index {}; | |
struct index_vtab { | |
void (*build_index)(struct index *); | |
}; | |
#define bps_declaration \ | |
struct bps_tree { \ | |
bps_tree_node node; \ | |
}; |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
enum { | |
ALLOC_STREAK_MAX = 1024, | |
ALLOC_MIN = 1024 * 1024, | |
ALLOC_MAX = 1024 * 1024 * 128, | |
ITERATIONS = 1024, | |
}; |
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
int main() | |
{ | |
int i = 0; | |
switch (i) | |
switch (i) | |
switch (i) | |
switch (i) | |
switch (i) | |
switch (i) | |
switch (i) |
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
#!/usr/bin/env python | |
import io | |
import json | |
import msgpack | |
import crcmod | |
crc32 = crcmod.mkCrcFun('4812730177', 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
#ifndef TARANTOOL_IPC_H_INCLUDED | |
#define TARANTOOL_IPC_H_INCLUDED | |
/* | |
* Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file. | |
* | |
* Redistribution and use in source and binary forms, with or | |
* without modification, are permitted provided that the following | |
* conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above |
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
instances := $(basename $(wildcard *.lua)) | |
hosts := n4 n6 n11 n12 n16 n17 n18 n19 n20 | |
all: | |
echo "nothing" | |
start: clean | |
$(foreach i, $(instances), tarantoolctl $@ $i;) | |
stop: |
NewerOlder