Skip to content

Instantly share code, notes, and snippets.

:shipit:
What's happening indeed?!

Semyon Novikov nvkv

:shipit:
What's happening indeed?!
Block or report user

Report or block nvkv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View gist:f9584504a89bcb621660b9eee5db0bfe
# 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
View keybase.md

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 Aug 29, 2015
kanboard-metrics.scala
View kanboard-metrics.scala
#!/usr/bin/env scalas
/***
scalacOptions += "-deprecation"
libraryDependencies ++= Seq(
"com.github.tototoshi" %% "scala-csv" % "1.2.1"
)
*/
import com.github.tototoshi.csv._
View vimrc
set gfn=Consolas:h13
set guifont=Consolas\ 10
set tabstop=4
set shiftwidth=4
set expandtab
set linebreak
set wrap
set noswapfile
syntax off
View lit.md

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 Dec 15, 2015
Lit.go as a literate program. Can be compiled with lit.go :)
View lit.go.w
# 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 Dec 15, 2015
Yet another simple literate programming tool
View lit.go
package main
import (
"regexp"
"flag"
"bufio"
"fmt"
"os"
"io"
"strings"
View gist:4472766
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;
@nvkv
nvkv / acmeedit
Created Nov 19, 2012
A bit modified acmeedit from 9fans
View acmeedit
#!/usr/bin/env rc
. $PLAN9/lib/acme.rc
newwindow
st=$status
terminal=dumb
shell=rc
if (~ $st 1) {
acme -f /mnt/font/Menlo-Regular/13a/font $* &
You can’t perform that action at this time.