Skip to content

Instantly share code, notes, and snippets.

View jhanschoo's full-sized avatar
👋

Johannes Choo jhanschoo

👋
View GitHub Profile
#!/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 / 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
@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 / 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