Skip to content

Instantly share code, notes, and snippets.

View sffc's full-sized avatar

Shane F. Carr sffc

View GitHub Profile
@sffc
sffc / braindead.c
Last active February 21, 2017 20:51
Comparison between "braindead" double-to-ascii and sprintf
#include "stdio.h"
#include "stdint.h"
#include <float.h>
#include <limits.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define LOG2_10 3.32192809488736
@sffc
sffc / analyze.rb
Last active July 1, 2017 07:43
Helper script for counting the recruitment stats in the IRON Recruitment Corps
#!/usr/bin/env ruby
require 'uri'
LAST_MONTH_DAN = "2017/april-dan.txt"
THIS_MONTH_DAN = "2017/may-dan.txt"
THIS_MONTH_RULERS = "2017/may-rulers.txt"
THIS_MONTH_THREADS = "2017/may-threads.txt"
rulers = File