Skip to content

Instantly share code, notes, and snippets.

View jhanschoo's full-sized avatar
👋

Johannes Choo jhanschoo

👋
View GitHub Profile
@jhanschoo
jhanschoo / jyutping.txt
Created June 6, 2023 05:26
Jyutping ibus-table
### File header must not be modified
### This file must be encoded into UTF-8.
### This table under LGPL
### comments start with ### not single #
### Derive from the format of SCIM Table, so you can modify the table from
### scim-tables' table
## for installation on Ubuntu:
## sudo apt install ibus-table ibus-table-jyutping
## ibus-table-createdb -s jyutping.txt
## sudo mv jyutping.db /usr/share/ibus-table/tables/jyutping.db
@jhanschoo
jhanschoo / timestamp_unpacking_2.txt
Created February 24, 2022 14:37
timestamp_unpacking_2.txt
Congrats for the 150K :_EnnaEee::_EnnaNnn::_EnnaNnn::_EnnaAaa::_EnnaLight::_EnnaWave::_EnnaLight:! Here are the timestamps. Apparently my internship timestamping the midnight Pho stream got me a return offer from the powers that be.
1/6
3:04 *💬 Initial zatsu. 🟥⬜ Where's -Waldo- Enna?*
├ 4:49 🥳 What to do for ├ 150k?
├ 06:51 👩🏴󠁧󠁢󠁳󠁣󠁴󠁿 Lady Enna Alouette owns a plot in Scotland!
├ 08:51 Scottish Accent?
09:30 📦 First stage! 🎬Bedroom. Recap.
@jhanschoo
jhanschoo / LICENSE
Last active April 24, 2020 04:48
DL_target_rate_calculator
Copyright 2020 Johannes Choo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH
#!/usr/bin/env python3
# this script calculates how likely you are to get at least a new
# 5* adventurer
# assumption: you do not own the rate-up adventurer
# assumption: all pulls in a 10-summon have the same 5* rate
# assumption: when pity breaks occur, they occur on the last draw
# in a 10-fold.
# assumption: we expect that a single summon is performed once
# it is a guaranteed 5*; we do not factor in the cost of that
# single summon
@jhanschoo
jhanschoo / Contract Killer 3.md
Created January 10, 2019 02:30
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

aurelia -- AureliaEffect
C/C++ -- Microsoft
Debugger for Chrome -- Microsoft
EditorConfig... -- EditorConfig
ESLint -- Dirk Baeumer
Git History -- Don ...
GitLens... -- Eric...
Gruvbox -- Tom Philbin
Path Intellisense -- Christian...
Prettier Now -- Remi...
;;; emacs.d-personal-init.el --- jhanschoo's customizations for Emacs Prelude
;;; Commentary:
;; Copyright (C) 2015-2016 Johannes Choo <jhanschoo@gmail.com>
;; This file is *NOT* part of GNU Emacs.
;;; Code:
;;define adding multiple elements to a list
(defun add-list-to-list (list-var elements &optional append compare-fn)
"Add each element in ELEMENTS to the value of LIST-VAR if it isn't there yet."
(dolist (item elements)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
阿爸 a1'ba4 18137
阿昌族 a1'chang1'zu2 50849
阿斗 a1'dou3 42632
阿飞 a1'fei1 48603
阿富汗 a1'fu4'han4 3461
阿訇 a1'hong1 34432
阿拉伯数字 a1'la1'bo2'shu4'zi4 35937
阿拉伯语 a1'la1'bo2'yu3 30476
阿妈 a1'ma1 16220
阿门 a1'men2 47913
@jhanschoo
jhanschoo / localc2csv.sh
Last active February 1, 2022 22:24
Uses LibreOffice to convert a file to csv format, preserving Unicode characters in UTF-8
#!/usr/bin/env sh
# localc2csv.sh [--outdir OUTPIT_DIR] FILE [FILE...]
# Uses LibreOffice to convert a file to csv format, preserving
# Unicode characters in UTF-8
# Assumes LibreOffice is installed to /Applications in MacOS.
# for documentation on the arguments, c.f.
# https://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/
# https://help.libreoffice.org/Common/Starting_the_Software_With_Parameters
# https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options