Skip to content

Instantly share code, notes, and snippets.

Nathan Glenn garfieldnate

Block or report user

Report or block garfieldnate

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
garfieldnate / build.gradle
Created Jul 8, 2018
Example gradle build that uploads to Bintray and Maven Central
View build.gradle
// Useful tasks:
// (default) jar: creates library jar
// fatJar: creates executable jar
// bintrayUpload: performs full publishingTasks/publication
apply plugin: 'java'
wrapper {
gradleVersion = '4.8.1'
garfieldnate /
Last active Sep 27, 2018
Python 2/3 version of imgcat tool, which displays images inline in iTerm2
from __future__ import print_function
import base64
import os
import select
import sys
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
garfieldnate /
Last active Aug 29, 2015
List non-ascii characters in input file
# This will look through an input utf8 file and print a list
# of all of the non-ascii characters found there. Not good for
# big files, since it stores and sorts all occurrences.
use strict;
use warnings;
use charnames ':full';
binmode STDOUT, 'utf8';
open my $fh, '<:utf8', $ARGV[0];
garfieldnate / knowledge.txt
Last active Aug 29, 2015
WICS Knowledge Transfer
View knowledge.txt
First, you can go and watch an intro video on ITS here:
Here's the ITS 2.0 specification: I recommend reading sections 1 and 2 straightaway.
The ITS Interest Group mailing archive:
You can join and ask good questions. You'll find lots from me. But do make sure they are good questions about ITS.
You can go and watch an intro video on WICS here:
Here are the GitHub repositories. The first two are managed by Logrus, and I have a commit bit to the converter one. The third repo is managed by us and is a fork of the converter repo managed by Logrus (please use it and not the Logrus one). It has the added functionality of a WICS "project", as well as some bug fixes:
garfieldnate / TRG Projects NathanG Knows About
Last active Aug 29, 2015
These are all of the projects I can remember having worked on with TRG. I'll update it if I think of more, or you can fork it and add more if you'd like.
View TRG Projects NathanG Knows About
The following are hosted on GitHub:
read/edit/write TBX-Min data
convert between UTX, TBX-Min and TBX-Basic.
convert MRC to TBX-Basic
read XCS files
You can’t perform that action at this time.