Skip to content

Instantly share code, notes, and snippets.

View jyaif's full-sized avatar
☮️

Jean-François Geyelin jyaif

☮️
View GitHub Profile
@jyaif
jyaif / main.cpp
Created September 24, 2017 18:00
Kiwi usage example in C++
// I couldn't find any example showing the how to use the C++ constraint
// solver library 'Kiwi' ( https://github.com/nucleic/kiwi ).
//
// Hopefully this Gist will save someone a couple of minutes.
//
// To build:
// clang++ main.cpp
#include <iostream>
@jyaif
jyaif / stun.cpp
Last active August 23, 2024 13:14
A simple stun client in C++ (posix only)
// How to compile:
// clang++ -std=c++11 stun.cpp
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <array>
#include <cstring>