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
#include <zero_test.h> | |
#include <vector> | |
namespace example::test { | |
ZERO_DEFINE_TEST_SUITE(test_example); | |
ZERO_DEFINE_TEST(test_example, name1) { | |
std::vector<int> v; | |
v.reserve(10); |
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
load '~Projects/u.ijs' | |
load '~Projects/pq.ijs' | |
distance=: |@- | |
dtw=: dyad define | |
n=. #x | |
d=. x distance/"1 y |
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
NB. priority queue | |
coclass 'PQ' | |
load '~Projects/u.ijs' | |
create=: verb define | |
vals=: $ 0 | |
size=: 0 | |
) |
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
#include "array.h" | |
#include <assert.h> | |
#include <memory.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define HEADER(P) ((array_header_t*)((char*)P - sizeof(array_header_t))) | |
void* array_new(int length, int value_size) |
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
(package-initialize) | |
(custom-set-variables | |
'(blink-cursor-mode nil) | |
'(ring-bell-function (quote ignore)) | |
'(scroll-bar-mode nil) | |
'(tool-bar-mode nil) | |
'(visible-bell t)) | |
(custom-set-faces |
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
mid =: ([: <. [: -: #) : [: | |
take_mid =: ({~ mid) : [: | |
compare_mid =: [: : (> take_mid) | |
take_left =: ({.~ mid) : [: | |
take_right =: (}.~ mid) : [: |
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
" Plugins: | |
" https://github.com/scrooloose/nerdtree | |
" https://github.com/mbbill/undotree | |
" https://github.com/rafi/awesome-vim-colorschemes | |
" https://github.com/ntpeters/vim-better-whitespace | |
" https://github.com/xolox/vim-misc | |
" https://github.com/xolox/vim-session | |
" https://github.com/Shougo/vimproc.vim | |
" https://github.com/Shougo/vimshell.vim |
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
#include <chrono> | |
#include <ctime> | |
#include <string> | |
static std::string toString(std::chrono::time_point<std::chrono::system_clock> time) { | |
static char buf[100]; | |
std::time_t timeC = std::chrono::system_clock::to_time_t(time); | |
std::tm timeTm = *std::localtime(&timeC); | |
std::strftime(buf, 100, "%c", &timeTm); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Mathematics | |
{ | |
public class HoltWinters | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Yandex.Blitz | |
{ | |
class A_Miner | |
{ |
NewerOlder