Skip to content

Instantly share code, notes, and snippets.

View nvkv's full-sized avatar
:shipit:
What's happening indeed?!

Semyon Novikov nvkv

:shipit:
What's happening indeed?!
View GitHub Profile
@nvkv
nvkv / profile.txt
Created August 10, 2020 20:33
media extractor thread profile
profiling results for thread "media extractor thread" (39209):
tick interval: 1000 us
total ticks: 2293 (2293000 us)
unknown ticks: 0 (0 us, 0.00%)
dropped ticks: 0 (0 us, 0.00%)
hits unknown image
------------------------------------------------------------------------------
5 0 7074 /boot/system/lib/libmedia.so
2088 0 7080 /boot/system/lib/libroot.so

Keybase proof

I hereby claim:

  • I am nvkv on github.
  • I am sdfgh153 (https://keybase.io/sdfgh153) on keybase.
  • I have a public key whose fingerprint is F0A3 1BA3 49A6 93FD 51B3 E0ED 51DC E27C EA51 6FA4

To claim this, I am signing this object:

# Based on ys
# VCS
YS_VCS_PROMPT_PREFIX1=" %{$fg[black]%}on%{$reset_color%} "
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}"
YS_VCS_PROMPT_SUFFIX="%{$reset_color%}"
YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}✖︎"
YS_VCS_PROMPT_CLEAN=" %{$fg[green]%}✓"
# Git info

Keybase proof

I hereby claim:

  • I am semka on github.
  • I am sdfgh153 (https://keybase.io/sdfgh153) on keybase.
  • I have a public key ASCkwvUv-I9Ev9QsOFDEJqfZZAw5slvLbScc4wgJRAE2LAo

To claim this, I am signing this object:

@nvkv
nvkv / kanboard-metrics.scala
Last active August 29, 2015 14:24
kanboard-metrics.scala
#!/usr/bin/env scalas
/***
scalacOptions += "-deprecation"
libraryDependencies ++= Seq(
"com.github.tototoshi" %% "scala-csv" % "1.2.1"
)
*/
import com.github.tototoshi.csv._
set gfn=Consolas:h13
set guifont=Consolas\ 10
set tabstop=4
set shiftwidth=4
set expandtab
set linebreak
set wrap
set noswapfile
syntax off

Lit, simple tool for language agnostic literate programming

Literate programming is a technique introduced by Dolad Knuth many years ago. Nowdays literate programming is almost dead, it's really sad in my opinion. This little application designed to bring literate programming approach to almost any programming language expirience.

I strongly recomend to read original Knuth paper on Literate Programming (http://www.literateprogramming.com/knuthweb.pdf)

Noweb.py by Jonathan Aquino was inspiration for this humble peace of code.

@nvkv
nvkv / lit.go.w
Last active December 15, 2015 22:50
Lit.go as a literate program. Can be compiled with lit.go :)
# Lit, simple tool for language agnostic literate programming
Literate programming is a technique introduced by Dolad Knuth many years ago.
Nowdays literate programming is almost dead, it's really sad in my opinion. This little application designed to bring
literate programming approach to almost any programming language expirience.
I strongly recomend to read original Knuth paper on Literate Programming (http://www.literateprogramming.com/knuthweb.pdf)
Noweb.py by Jonathan Aquino was inspiration for this humble peace of code.
@nvkv
nvkv / lit.go
Last active December 15, 2015 22:39
Yet another simple literate programming tool
package main
import (
"regexp"
"flag"
"bufio"
"fmt"
"os"
"io"
"strings"
int*
concord_factor(matrix_t *m)
{
int *cfactor = malloc(m->rows - 1 * sizeof(int));
int i, j;
for (j = 0; j < m->lines; j++)
for (i = 0; i < m->rows - 1; i++)
cfactor[i] += (m->data[j][i] == m->data[j][m->rows - 1]) ? 1 : 0;