This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Dynamic Linker Bug | |
Memcheck:Cond | |
fun:_dl_relocate_object | |
fun:dl_main | |
fun:_dl_sysdep_start | |
fun:_dl_start | |
obj:/lib/ld-2.6.so | |
} | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate custom MeCab dictionary to be used with unidic-lite | |
import sys | |
from fugashi.fugashi import build_dictionary | |
import unidic_lite | |
args = ( | |
sys.argv[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pass() { | |
message=$1; | |
# bold green | |
echo -e "$(tput setaf 2)$(tput bold)$message$(tput sgr 0)" | |
} | |
fail() { | |
message=$1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from IPython.display import display, HTML | |
def html(s): | |
return display(HTML(s)) | |
def ok(message="OK"): | |
html(f"<div class=\"alert alert-block alert-success\">{message}</div>") | |
def _acceptable_global(name, value): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parse CSV vocab output from ThaiDict app | |
import csv | |
import sys | |
# from tango.tango import model | |
def row_to_vocab(row): | |
v = { | |
'headword': row['th'], | |
'pronunciation': row['pron'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Useful tasks: | |
// (default) jar: creates library jar | |
// fatJar: creates executable jar | |
// bintrayUpload: performs full publishingTasks/publication | |
apply plugin: 'java' | |
wrapper { | |
gradleVersion = '4.8.1' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |