This file contains 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
texchange.tnt.nowtaxi.ru:3301> box.space.tst:select() | |
--- | |
- - ['tst 1', 0] | |
- ['tst 1', 1] | |
- ['tst 1', 2] | |
- ['tst 1', 3] | |
- ['tst 1', 4] | |
- ['tst 1', 5] | |
- ['tst 1', 6] | |
- ['tst 1', 7] |
This file contains 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/tarantool | |
local log = require 'log' | |
local digest = require 'digest' | |
local fiber = require 'fiber' | |
box.cfg{ slab_alloc_arena = 1.2, wal_mode = 'fsync' } | |
local id = 0 | |
function next_id() | |
id = tonumber64(id) + tonumber64(1) |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<title>тест</title> | |
This file contains 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 tarantool | |
box.cfg{ logger = '/dev/null' } | |
local test = require('tap').test() | |
test:plan(3) | |
box.schema.space.create( |
This file contains 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/perl | |
use warnings; | |
use strict; | |
use utf8; | |
use open qw(:std :utf8); | |
use Test::More tests => 6; | |
This file contains 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/perl | |
use warnings; | |
use strict; | |
use utf8; | |
use open qw(:std :utf8); | |
use Benchmark qw(:all) ; | |
use Socket; |
This file contains 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 char * | |
strstr(const char *str, const char *pat) | |
{ | |
int i, j; | |
if (!pat) | |
return str; | |
for (i = 0; str[i]; i++) { | |
for (j = i; ; j++) { |