{{ message }}

Instantly share code, notes, and snippets.

# Evan Miller evanmiller

Last active Oct 8, 2015
Haven / Debug AIX
 #include using namespace Rcpp; #include "readstat.h" #include "haven_types.h" class LabelSet { std::vector labels_; std::vector values_s_; std::vector values_i_; std::vector values_d_;
Created Oct 8, 2015
Created Feb 15, 2014
View gist:9022903
 { "metadata": { "language": "Julia", "name": "" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [
Created Jun 22, 2013
View gist:5841466
 fold_down(Acc) when Acc bsr 16 > 0 -> fold_down((Acc band 16#FFFF) + (Acc bsr 16)); fold_down(Acc) -> Acc.
Last active Dec 18, 2015 — forked from pragdave/gist:5833805
View gist:5834171
 defmodule CheckDigit do import Enum @doc """ Determine if a sequence of digits is valid, assuming the last digit is a Luhn checksum. (http://en.wikipedia.org/wiki/Luhn_algorithm) """ def valid?(numbers) when is_list(numbers) do
Last active Dec 18, 2015
View gist:5833698
 evenodd(List) -> evenodd(List, [], []). evenodd([Even, Odd|Rest], Evens, Odds) -> evenodd(Rest, [Even|Evens], [Odd|Odds]); evenodd([Even], Evens, Odds) -> evenodd([], [Even|Evens], Odds); evenodd([], Evens, Odds) -> {lists:reverse(Evens), lists:reverse(Odds)}.
Created Jul 22, 2012
View gist:3157712
 -module(testproj_test_controller, [Req]). -compile(export_all). csv('GET', []) -> {stream, fun (first_line) -> {output, "var1,var2,var3\n", 0}; (100) -> done; (N) when is_integer(N) ->
Created Jan 10, 2012
Scattered remains of Chicagosaurus Rex
View rr_db.erl
 -module(rr_db, [Server, PhotoRoot]). -define(MIME_TYPE, "application/json"). -compile(export_all). init() -> inets:start(), inets:start(httpc, [{profile, database}]). reset() ->