Skip to content

Instantly share code, notes, and snippets.

View JohnCoconut's full-sized avatar

John JohnCoconut

  • Singapore
View GitHub Profile
@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)
{