Skip to content

Instantly share code, notes, and snippets.

Dimiter 'malkia' Stanev malkia

Block or report user

Report or block malkia

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 gammon2.dart
// Try on
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'dart:math';
import 'dart:async';
var random = Random(0);
View gammon1.dart
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'dart:math';
var random = Random(0);
class GammonRules {
// The total number of points on the table.
malkia /
Created Oct 24, 2019 — forked from reinsteam/
Links to materials about perceptual image comparison metric

Perceptual Image Differencing

  • [1983. Peter Burt and Edward Adelson. The Laplacian Pyramid as a Compact Image Code][1]
  • [1993. Scott Daly. The visible differences predictor: an algorithm for the assessment of image fidelity][2]
  • [1995. Andrew S. Glassner. In Principles of digital image synthesis, pages 59-66][3]
  • [1997. Gregory Ward-Larson, Holly Rushmeier, and Christine Piatko. A visibility matching tone reproduction operator for high dynamic range scenes][4]
  • [1999. Mahesh Ramasubramanian, Sumant N. Pattnaik, Donald P. Greenberg. A perceptually based physical error metric for realistic image synthesis][5]
  • [2004. Yangli Hector Yee, Anna Newman. A perceptual metric for production Testing][6]
  • [2004. HECTOR YEE, SUMANTA PATTANAIK and DONALD P. GREENBERG. Spatiotemporal Sensitivity and Visual Attention for Efficient Rendering of Dynamic Environments][7]
  • [2004. Hector Yee. *A Perceptual Metric for Production Testing (Submitted and Accepted in Journal of
malkia / StringViewTest_WithAdHocStackAllocator
Created Jul 30, 2018
View StringViewTest_WithAdHocStackAllocator
// StringViewTestss.cpp : performance experiments for string_view
#include <string_view>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
malkia /
Created Jun 24, 2018
jsonnet - no dynamic casts when gc's heap
../ 2>&1 | tee ../results.txt
View gist:89c6a78405132bc30dcc
Google Inc.
Copyright 2014 Google Inc. All rights reserved.
Google Chrome 40.0.2214.43 (Official Build) beta
Revision 9d5cd14c677accab1e25f0ee3d58667ff5b41dac
Platform 6457.36.0 (Official Build) beta-channel parrot_ivb
Blink 537.36 (@62f90f76bfca59fa9dd2d73329019b2d841a9b5e)
JavaScript V8
User Agent Mozilla/5.0 (X11; CrOS x86_64 6457.36.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.43 Safari/537.36
View gist:ebf7f54063c5aec6d1b0
#define FAST // Comment this out this going 7 times slower
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace netBlah1
class Program
View gist:9353312
cd /usr/local
tar jxf ~/opencv2.4.8-cygwin64-g++-4.8.2-shared-release-20131231.tar.bz2
cd ~
View gist:9330802
First I've downloaded ode from here: and extracted it in my e:\p under e:\p\ode-0.12
Then I did (from cmd.exe)
bash --login -i
$ cd /cygdrive/e/p/ode-0.12
$ ./configure
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
View gist:8825584
/* Stolen from luajit - */
/* Look for examples here - */
/* ANd */
#define MYDEFS(_) _(one) _(two) _(three) _(four) _(five)
/* Make an enum from 'one', 'two', etc. */
typedef enum my_enums{
#define MYENUM(name) my_##name,
You can’t perform that action at this time.