Skip to content

Instantly share code, notes, and snippets.

gnzlbg gnzlbg

Block or report user

Report or block gnzlbg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
MHeasell / bins.js
Created Apr 8, 2015
My CodeCombat Zero Sum tournament entry source code. Check out for the compiled version and for a full write-up about my strategy.
View bins.js
// bin stuff -------------------------------------------------------------------
const BIN_WIDTH = 13.333333333333;
const BIN_HEIGHT = 14;
const NUM_BINS_X = 6;
const NUM_BINS_Y = 5;
14427 /
Last active Oct 4, 2019
Higher-kinded type trait
use std::rc::Rc;
trait HKT<U> {
type C; // Current type
type T; // Type with C swapped with U
macro_rules! derive_hkt {
($t:ident) => {
impl<T, U> HKT<U> for $t<T> {
gnzlbg / gist:5547905
Created May 9, 2013
variadic zip and join function extensions to boost range
View gist:5547905
#include <iostream>
#include <array>
#include <vector>
#include <list>
#include <deque>
#include "tupleit.hh" //
#include <stdio.h>
#include <boost/range.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/adaptors.hpp>
You can’t perform that action at this time.