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
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
garfieldnate / imgcat.py
Last active Sep 27, 2018
Python 2/3 version of imgcat tool, which displays images inline in iTerm2
View imgcat.py
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
garfieldnate / list_chars.pl
Last active Aug 29, 2015
List non-ascii characters in input file
View list_chars.pl
# 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
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: http://www.youtube.com/watch?v=5Goet3hX6Jo
Here's the ITS 2.0 specification: http://www.w3.org/TR/its20/. I recommend reading sections 1 and 2 straightaway.
The ITS Interest Group mailing archive: http://lists.w3.org/Archives/Public/public-i18n-its-ig/
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: http://tinyurl.com/luzwgzd
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
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:
TBX::Min
read/edit/write TBX-Min data
Convert::TBX::[UTX|Min|Basic]
convert between UTX, TBX-Min and TBX-Basic.
Convert::MRC
convert MRC to TBX-Basic
TBX::XCS
read XCS files
You can’t perform that action at this time.