Skip to content

Instantly share code, notes, and snippets.

View voidexp's full-sized avatar

Ivan Nikolaev voidexp

  • Vilnius, Lithuania
View GitHub Profile
@voidexp
voidexp / go-env-with-msys2.md
Last active February 19, 2024 19:44
Go development environment on Windows with MSYS2

Go development environment on Windows with MSYS2

Normally, it is sufficient to grab the Go MSI installer from the website in order to set up the toolchain. However, some packages that provide Go wrappers for C libraries rely on cgo tool, which in turn, needs the GCC toolchain in order to build the glue code. Also, 3rd-party dependencies are usually hosted on services like GitHub, thus Git is also needed. This mini-guide illustrates how to setup a convenient development environment on Windows using MSYS2.

@voidexp
voidexp / queue.c
Created March 5, 2016 23:50
TaskQueue
#include "error.h"
#include "mem.h"
#include "queue.h"
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
Validation failed col_id=cholesterol, cellname=I159, value=<5
Validation failed col_id=sodium, cellname=J39, value=0-25
Validation failed col_id=sugar_total, cellname=M39, value=0-1
Validation failed col_id=protein, cellname=N39, value=0-1
Validation failed col_id=energy, cellname=D40, value=10-15
Validation failed col_id=carbohydrate_by_difference, cellname=K40, value=2-4
Validation failed col_id=sugar_total, cellname=M40, value=1-2
Validation failed col_id=energy, cellname=D260, value=0-10
Getting required 'pyramid-fanstatic==0.5.dev0-45101ade2ba74b16b66889714c8a2070244e67f0'
We have no distributions for pyramid-fanstatic that satisfies 'pyramid-fanstatic==0.5.dev0-45101ade2ba74b16b66889714c8a2070244e67f0'.
Getting distribution for 'pyramid-fanstatic==0.5.dev0-45101ade2ba74b16b66889714c8a2070244e67f0'.
While:
Installing sphinx.
Getting distribution for 'pyramid-fanstatic==0.5.dev0-45101ade2ba74b16b66889714c8a2070244e67f0'.
Error: Couldn't find a distribution for 'pyramid-fanstatic==0.5.dev0-45101ade2ba74b16b66889714c8a2070244e67f0'.
@voidexp
voidexp / gist:1565837
Created January 5, 2012 15:55
SFML demo
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow win(sf::VideoMode(800, 600), "SFML Demo");
sf::Event evt;
bool run = true;
while(run)