Skip to content

Instantly share code, notes, and snippets.

View varjagg's full-sized avatar
🎯
Focusing

Eugene Zaikonnikov varjagg

🎯
Focusing
View GitHub Profile
@varjagg
varjagg / guohall.lisp
Created December 20, 2020 16:26
Guo-Hall Thinning
;;; Performs Guo-Hall thinning of a grayscale image using OptiCL library
(require 'opticl)
(defun guo-hall-thinning (image)
;; convert to bitmap
(declare (optimize (speed 3))
(type (simple-array (integer 0 255) (* *)) image))
(loop for i from 0 below (array-total-size image)
do (setf (row-major-aref image i)
@varjagg
varjagg / .block
Created July 9, 2020 21:29 — forked from mbostock/.block
Mobile Patent Suits
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/mobile-patent-suits

Keybase proof

I hereby claim:

  • I am varjagg on github.
  • I am varjag (https://keybase.io/varjag) on keybase.
  • I have a public key whose fingerprint is FED6 9C7A C073 D075 2921 25A4 8433 1470 0E7D 57FC

To claim this, I am signing this object:

@varjagg
varjagg / key_value_config.c
Created August 19, 2016 17:57
Reading a key=value configuration file without globall section using glib own GKeyFile
#include <stdio.h>
#include <glib.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
GKeyFile *config = g_key_file_new();