Skip to content

Instantly share code, notes, and snippets.



  • Yaroslavl
View GitHub Profile
View conanpylint.txt
************* Module
E: 15, 0: function already defined line 6 (function-redefined)
************* Module conan.conans.client.command
E:1572,26: Module 'signal' has no 'SIGBREAK' member (no-member)
************* Module conan.conans.client.conan_command_output
E:125, 8: No name 'PythonLexer' in module 'pygments.lexers' (no-name-in-module)
E:125, 8: No name 'IniLexer' in module 'pygments.lexers' (no-name-in-module)
E:125, 8: No name 'TextLexer' in module 'pygments.lexers' (no-name-in-module)
E:126, 8: No name 'TerminalFormatter' in module 'pygments.formatters' (no-name-in-module)
************* Module conan.conans.client.remote_registry
* Простой алгоритм параллельной нормализации.
module main();
integer values[3];
bit sum;
integer counter; // ticks count
rootbranch=`git rev-parse --abbrev-ref HEAD`
git checkout -b $featurebranch
Newlifer / latency.txt
Created Nov 10, 2017 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
View keymap.hpp
#pragma once
#include "hashmap.hpp"
#define UNKNOWN_PLATFORM "Unknown platform!"
namespace aim {
enum class VKey : int {
View lock.cpp
#include <mutex>
namespace aim {
template <typename T>
struct MutexLock {
using value_type = typename T::value_type;
using container_type = T;
Newlifer / id_generator.d
Last active Jun 15, 2017
View id_generator.d
import std.stdio;
import std.uuid;
import std.digest.murmurhash;
import std.format;
import std.bitmanip;
import std.system;
string next_id() {
auto uuid = randomUUID();
MurmurHash3!32 hasher;
View .vimrc
set nocompatible
set backspace=indent,eol,start
" improve perfomance
set lazyredraw
set synmaxcol=256
syntax sync minlines=256
set fileencodings=ucs-bom,utf-8,default,latin1
set fileencoding=utf-8
use std::mem;
struct Rec {
x: u32
fn main() {
let array = [8 as u8, 0 as u8, 0 as u8, 0 as u8];
let rec: Rec;
use std::sync::{Arc, RwLock};
struct Foo {
f: Arc<RwLock<i32>>
trait Formattable {
fn own_format(&mut self);