Skip to content

Instantly share code, notes, and snippets.

View JohnCoconut's full-sized avatar

John JohnCoconut

  • Singapore
View GitHub Profile
@JohnCoconut
JohnCoconut / replcxx.md
Last active March 6, 2018 10:23
preview for replcxx

Read Evaluate Print Loop ++

demo

Build Status

A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters. Unlike GNU readline, which is GPL, this library uses a BSD license and can be used in any kind of program.

@JohnCoconut
JohnCoconut / bank.cpp
Created December 6, 2017 13:57
advent of code 2017 day 6 part 1
#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <string>
#include <unordered_set>
#include <vector>
namespace std {
template <> struct hash<std::vector<int>> {
@JohnCoconut
JohnCoconut / gtk_tree_view.c
Last active February 24, 2018 17:10
GtkTreeView warnings
#include <gtk/gtk.h>
static void activate_main (GtkApplication *app, gpointer user_data);
static void setup_tree_view (GtkWidget *treeview);
static void populate_tree_store (GtkTreeStore *store);
int
main (int argc,
char **argv)
{