Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"kvg"
"strings"
)
func xm(file string) {
_, base := kvg.Grab(file)
/home/ben/software/kanjivg/kanji/02ea8.svg ⺨
/home/ben/software/kanjivg/kanji/056ae-Kaisho.svg 嚮 ⻏
/home/ben/software/kanjivg/kanji/056ae.svg 嚮 ⻏
/home/ben/software/kanjivg/kanji/05815-Kaisho.svg 堕 ⻖
/home/ben/software/kanjivg/kanji/05815.svg 堕 ⻖
/home/ben/software/kanjivg/kanji/0589c.svg 墜 ⻖
/home/ben/software/kanjivg/kanji/058ae-Kaisho.svg 墮 ⻖
/home/ben/software/kanjivg/kanji/058ae.svg 墮 ⻖
/home/ben/software/kanjivg/kanji/05a1c.svg 娜 ⻏
/home/ben/software/kanjivg/kanji/05a40.svg 婀 ⻖
@benkasminbullock
benkasminbullock / radcount
Created April 19, 2022 22:18
KanjiVG files where there are too many instances of the radical element
kanji/04e09.svg: 一 3 1
kanji/04e15.svg: 一 2 1
kanji/04ece.svg: 人 4 2
kanji/04fce-Kaisho.svg: 人 4 2
kanji/04fce.svg: 人 4 2
kanji/05162.svg: 儿 4 2
kanji/053c3.svg: 厶 6 2
kanji/053cc.svg: 又 4 2
kanji/05442.svg: 口 6 3
kanji/05492.svg: 口 6 3

MONKEY

Funky::Gibbon::Now

See "one" or "two".

one

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 7:

=over without closing =back

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benkasminbullock
benkasminbullock / ramanujan.pl
Created June 9, 2021 11:33
Calculation of pi to 1000 decimal places using Ramanujan's formula and Math::BigFloat
#!/home/ben/software/install/bin/perl
use strict;
use warnings;
use feature qw!signatures say!;
no warnings 'experimental::signatures';
use Math::BigFloat;
Math::BigFloat->accuracy (1000);
my $sum = 0;
#!/home/ben/software/install/bin/perl
use Z;
use Perl::Build 'add';
my $ok = GetOptions (
add => \my $add,
copy => \my $copy,
diff => \my $diff,
reversion => \my $reversion,
verbose => \my $verbose,
#!/home/ben/software/install/bin/perl
use warnings;
use strict;
use utf8;
use FindBin '$Bin';
my $dir = '/home/ben/software/perl/perl-5.32.1/';
my $mods = '*.pm */*.pm */*/*.pm */*/*/*.pm */*/*/*/*.pm */*/*/*/*/*.pm */*/*/*/*/*/*.pm';
my $s = '\\\\\\\\s\\\\+';
chdir $dir;
#system ("grep \"$s\" $mods | grep \"/s\"");
{
"U+835C":{
"orig":"⿱艹毕"
}
}
@benkasminbullock
benkasminbullock / gist:f02980d4033224f01e1af16a34024168
Created March 14, 2021 01:07
Output of valgrind perl -I blib/lib -I blib/arch t/002basis.t
==62600== Memcheck, a memory error detector
==62600== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==62600== Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for copyright info
==62600== Command: perl -I blib/lib -I blib/arch t/002_basis.t
==62600==
--62600-- WARNING: unhandled x86-freebsd syscall: 570
--62600-- You may be able to write your own handler.
--62600-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--62600-- Nevertheless we consider this a bug. Please report
--62600-- it at http://valgrind.org/support/bug_reports.html.