Skip to content

Instantly share code, notes, and snippets.

View stdcall's full-sized avatar
🤠
Learning Haskell

Nikolay D Khodyunya stdcall

🤠
Learning Haskell
  • Yandex
  • Russia/Krasnoyarsk
View GitHub Profile
@stdcall
stdcall / inst.sh
Last active August 22, 2018 16:09
OpenCV3 + Python3 + Pyenv
export Version=3.4.2 # OpenCV version
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.0
pyenv virtualenv 3.7.0 opencv
pyenv activate opencv
pyenv rehash
pip install numpy
cd ~/Downloads

Keybase proof

I hereby claim:

  • I am stdcall on github.
  • I am nkhodyunya (https://keybase.io/nkhodyunya) on keybase.
  • I have a public key whose fingerprint is B8D6 DA8C EAB0 A675 990A 9049 C160 6237 8DA2 F83B

To claim this, I am signing this object:

@stdcall
stdcall / Permutations.hs
Created March 21, 2014 14:47
List permutations
-- Source: Simon Thompson – Haskell: The Craft of Functional Programming
-- http://www.haskellcraft.com/craft3e/Home.html
-- Chapter 17, Lazy Programming, p. 424
-- A permutation of a list is a list with the same elements in different order.
-- For a list of n elements, there are n! permutations of the list.
-- 1) The empty list has one permutation, itself. If xs is not empty, a
-- permutation is given by picking an element x from xs and putting x at the
-- front of a permutation of the remainder xs with x removed.
@stdcall
stdcall / myFoldl.hs
Last active January 3, 2016 13:49
RWH foldl with foldr code
myFoldl :: (a -> b -> a) -> a -> [b] -> a
myFoldl f z xs = foldr step id xs z
where step x g a = g (f a x)
@stdcall
stdcall / convert_subs.sh
Created July 2, 2013 10:40
Batch Conversion srt subs in current directory from WINDOWS-1251 to UTF-8
for i in *.srt; do iconv -f cp1251 -t utf-8 -o $i.new $i; done
rm *.srt
for i in *.new; do mv $i ${i%.new}; done