I hereby claim:
- I am cokernel on github.
- I am cokernel (https://keybase.io/cokernel) on keybase.
- I have a public key ASAUTridD7arcOV7WFsZPgyu_HNjislk6EkbuCUMuFW4Pwo
To claim this, I am signing this object:
#!/usr/bin/env perl | |
@l=(z,one,two,thir,four,five,six,seven,eigh,nine,ten,eleven,twelve);for(sort{e($a)cmp e($b)}1..99){print"$_\n"}sub e{$_=$_[0];($j,$d)=/./gs;$_<13?$_=$l[$_]:$j<2?$_=($l[$d].'teen'):($_=$l[$j].'ty'.($d?'-'.e($d):''))=~s/u//;s/h$/ht/;s/vet/ft/;s/ot/ent/;s/ir$/ree/;$_} |
$ ./stato.pl < log-counts.txt | |
n = 90 | |
min = 120293 | |
max = 239341 | |
mean = 163764.722222222 | |
sd = 22877.6153035703 | |
72254 : | |
118009 : *** | |
127160 : ******* |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# turing.rb - simulate a Turing machine | |
require 'json' | |
def print_state_radius(tm, step, radius) | |
description = sprintf("%010d:%s", step, tm['state']) | |
pos = tm['pos'] | |
print "#{description} ..." |
#include <stdio.h> | |
#include <string.h> | |
#define DEBUG 0 | |
#define MAX_G6_LENGTH 256 | |
long invert_r(int skip, int len, char *bits) | |
{ | |
long output = 0; | |
for (int i = 0; i < len; ++i) { |
#!/usr/bin/env ruby | |
# fetch_solr_ids.rb -- Fetch all identifiers from a Solr index | |
# This program is dedicated to the public domain. | |
require 'rubygems' | |
require 'rsolr' | |
# Configuration | |
rows_per_page = 100 | |
filename = 'solr_ids.txt' |
require 'prawn' | |
require 'text-hyphen' | |
hh = Text::Hyphen.new | |
shy = Prawn::Text::SHY | |
source = 'Blacklight is an open source Solr user interface discovery platform. You can use Blacklight noninterruptable to longwordicationize searching and browsing of your collections. Blacklight uses the Apache Solr search engine to search full text and/or metadata. Blacklight has a highly configurable Ruby on Rails front-end. Blacklight was originally developed at the University of Virginia Library and is made public under an Apache 2.0 license.' | |
words = source.split(/\s+/) | |
hyphenated = words.collect {|w| hh.visualize(w, shy)}.join(' ') |
#!/bin/sh -e | |
# pdf_date: extract creation date from a PDF | |
# | |
# InfoKey: CreationDate | |
# InfoValue: D:20120207110303-05'00' | |
FILE=$1 | |
DATE=$(pdftk "$FILE" dump_data_utf8 | perl -e ' |
testing:$ ruby --version | |
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] | |
testing:$ rbenv --version | |
rbenv 0.4.0-98-g13a474c | |
testing:$ gem --version | |
2.2.2 | |
testing:$ java -version |
diff -Naur CastleDoctrine_v33_UnixSource/minorGems/game/platforms/SDL/Makefile.MacOSX CastleDoctrine_v33_UnixSource-clang/minorGems/game/platforms/SDL/Makefile.MacOSX | |
--- CastleDoctrine_v33_UnixSource/minorGems/game/platforms/SDL/Makefile.MacOSX 2014-02-20 15:34:25.000000000 -0500 | |
+++ CastleDoctrine_v33_UnixSource-clang/minorGems/game/platforms/SDL/Makefile.MacOSX 2014-02-20 19:21:46.000000000 -0500 | |
@@ -20,7 +20,7 @@ | |
# various frameworks to support OpenGL and SDL | |
# static linking against zlib and libpng | |
-PLATFORM_LINK_FLAGS = -framework OpenGL -framework SDL -framework Cocoa ../../minorGems/game/platforms/SDL/mac/SDLMain.m ${CUSTOM_MACOSX_LINK_FLAGS} | |
+PLATFORM_LINK_FLAGS = -L/usr/local/bin -lSDLmain -lSDL -Wl,-framework,Cocoa -framework OpenGL -framework Cocoa ../../minorGems/game/platforms/SDL/mac/SDLMain.m ${CUSTOM_MACOSX_LINK_FLAGS} | |