View ProgrammableBlock.cs
String lcdName = "Assembler Control LCD";
public void Main(string argument) {
List<String> orderedResources = new List<String>();
Dictionary<String, int> desiredQuantities = new Dictionary<String, int>();
Dictionary<String, String> displayNames = new Dictionary<String, String>();
Dictionary<String, String> assemblerProducts = new Dictionary<String, String>();
StringBuilder text = new StringBuilder();
// Find config

Note: since I switched to free software (aka GNU+Linux), I don't maintain this tutorial anymore.

How to: build OpenCV x64 with Qt on Visual Studio 2015 Community Preview and Windows 10 Preview (build 10162)


As I'm an update addict, I like to try preview software. Or I'm an update addict because I like preview software. I don't know. Anyway, before my holiday started, I used OpenCV for a project in college. I like the library, because it's possible to achieve fun things with it and it makes vision easy. So when my holiday began, I started using OpenCV for some fun projects. And then I upgraded Windows 10. It wasn't stable back then, but I didn't need my pc for a while, so I could try it. Also I installed Visual Studio 2015 and I started to make OpenCV project.

Unfortunately, the pre-build binaries currently don't support Visual Studio 2015 (or, more precisely, msvc 14). The only option was to build OpenCV myself. So here is my tutorial of building OpenCV. As stated in the title, this is a x

View Makefile
## Makefile to compile a typical, simple C++14 project.
## Author : Bart Groeneveld
## License : GPLv3
## Latest update: Saturday, May 21st, 2016
## You are probably only interested in the first line of this Makefile.
# Libraries on which TARGET depends
LIBS = \
# Name of the executable
View FB2SaxInfo.c
// FB2SaxInfo.cpp : Defines the entry point for the console application.
// Lib2xml for windows get from
#include "stdafx.h"
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>
//#pragma comment(lib,"libxml2.lib")
#pragma comment(lib,"libxml2")
import blockspring
Convert JSON or Python Dict to Go (Golang) Structurest for unmarshalling.
import sys
__version__ = "1.0"
__author__ = "Yuri (Yuriy) Astrov <>"
class JSONtoGoStructConverter(object):
View NaiveBayesClassifier.cpp
* Naive Bayes classifier, C++ program by Yuri (Yuriy) Astrov.
* Compile:
* g++ -std=c++14 -g -Wall NaiveBayesClassifier.cpp -o nb
* g++ -std=c++14 -O2 -Wall -pedantic -g NaiveBayesClassifier.cpp && ./a.out
#include <utility> //std::move, std::swap
#include <algorithm> // std::copy
#include <vector>
#include <iostream>
View walk.cpp
#include <vector>
#include <tuple>
#include <boost/filesystem.hpp>
typedef std::tuple<boost::filesystem::path, std::vector<boost::filesystem::path>, std::vector<boost::filesystem::path>> WALK_ITEM;
typedef std::vector<WALK_ITEM> WALK_PATHS;
void display(const WALK_ITEM &item)
boost::filesystem::path p(get<0>(item));
View missionary-cannibal-haskell.hs
--h = number of humans on the left
--g = number of giants on the left
--s = side (left/right)
left = 0
right = 1
valid_state (h, g, s) =
if (h >= 0) && (h <= 3) && (g >= 0) && (g <= 3) --number of people valid?
then not (((g > h) && (h>0)) || ((3-g > 3-h) && (3-h > 0))) --num of giant <= num of human
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
Convert JSON or Python Dict to Go (Golang) Structurest for unmarshalling.
import sys
__version__ = "1.0"
__author__ = "Yuri (Yuriy) Astrov <>"
class JSONtoGoStructConverter(object):
from contextlib import contextmanager
class SwitchError(RuntimeError):
def switch(switch_value, *, ignore_nomatch=True):
blocks = {}
switch.rdefault = None