Skip to content

Instantly share code, notes, and snippets.

View shenlebantongying's full-sized avatar
🔬
Researching!

shenleban tongying shenlebantongying

🔬
Researching!
View GitHub Profile
@shenlebantongying
shenlebantongying / cjkpad.c
Last active January 19, 2023 08:05
add space between cjk & other chars
/*
gcc ./cjkpad.c -o cjkpad `pkg-config --libs --cflags icu-uc icu-io` && ./cjkpad
*/
#include <stdio.h>
#include <string.h>
#include <unicode/utext.h>
#include <unicode/ustdio.h>
static UErrorCode err = U_ZERO_ERROR;
language languageLabel iso audios
http://www.wikidata.org/entity/Q150 French fra 245883
http://www.wikidata.org/entity/Q809 Polish pol 84447
http://www.wikidata.org/entity/Q9610 Bengali ben 59964
http://www.wikidata.org/entity/Q33810 Odia ory 51558
http://www.wikidata.org/entity/Q143 Esperanto epo 34315
http://www.wikidata.org/entity/Q1860 English eng 24321
http://www.wikidata.org/entity/Q7913 Romanian ron 19406
http://www.wikidata.org/entity/Q8798 Ukrainian ukr 19084
http://www.wikidata.org/entity/Q1321 Spanish spa 17907
We couldn’t find that file to show.
@shenlebantongying
shenlebantongying / timing_function.py
Created May 11, 2021 02:27
Measure function run time with "with" statement
#!/usr/bin/env python3
import time
class Timer:
"""
A hack to measure function runtime with some hacking
https://preshing.com/20110924/timing-your-code-using-pythons-with-statement/
"""
def __enter__(self):

Linux gui toolkits that is still "usable" today:

TK of Tcl

Swing of Java

EFL of Enlightment (the E desktop, full wayland support)

GNUStep from GNU guru used for objective-C (Wayland support in alpha version)

@shenlebantongying
shenlebantongying / Programming Language Checklist.txt
Created March 14, 2021 05:00
Programming Language Checklist
Backup of
https://www.famicol.in/language_checklist.html
Programming Language Checklist
by Colin McMillen, Jason Reed, and Elly Fong-Jones, 2011-10-10.
You appear to be advocating a new:
[ ] functional [ ] imperative [ ] object-oriented [ ] procedural [ ] stack-based
[ ] "multi-paradigm" [ ] lazy [ ] eager [ ] statically-typed [ ] dynamically-typed
@shenlebantongying
shenlebantongying / projectexcalibur.ipynb
Created November 2, 2020 13:46
ProjectExcalibur.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.