Skip to content

Instantly share code, notes, and snippets.

View LiaungYip's full-sized avatar

Li-aung Yip LiaungYip

View GitHub Profile

Keybase proof

I hereby claim:

  • I am liaungyip on github.
  • I am lws (https://keybase.io/lws) on keybase.
  • I have a public key whose fingerprint is C97D C154 FADB 4A9F 4739 77E0 0015 8784 442B 5EB7

To claim this, I am signing this object:

@LiaungYip
LiaungYip / common.py
Created June 9, 2017 16:21
twitch_launcher_configurator
import os
import shutil
def copy_file(root, src, dst):
print("Copying %s to %s" % (src, dst))
s = os.path.join(root, src)
d = os.path.join(root, dst)
shutil.copy(s, d)
@LiaungYip
LiaungYip / curve.py
Last active February 4, 2016 08:13
IEC 255 / IEC 60255 trip time calculator
def IEC_255_Trip_Time (pickup, curve, TMS, fault_current, debug = False):
# Given IEC 255 curve parameters and a fault current, returns the tripping time.
# pickup in amps
# curve type: "SI", "VI", or "EI"
# tms is time dial, a positive nonzero number
# current is in amps
# This function assumes the curve goes definite time after 20x setting.
# IEC 60255 curve constants
K = {"SI":0.14, "VI": 13.5, "EI": 80.0}[curve]
@LiaungYip
LiaungYip / portal_level_calc.py
Created January 27, 2016 02:41
Ingress Portal Level Calculator
full_deploy = [
[0, 0, 0, 0, 0, 0, 0, 0], # Padding so agent levels are same as list indices
[1, 1, 1, 1, 1, 1, 1, 1],
[2, 2, 2, 2, 1, 1, 1, 1],
[3, 3, 3, 3, 2, 2, 2, 2],
[4, 4, 4, 4, 3, 3, 3, 3],
[5, 5, 4, 4, 4, 4, 3, 3],
[6, 6, 5, 5, 4, 4, 4, 4],
[7, 6, 6, 5, 5, 4, 4, 4],
[8, 7, 6, 6, 5, 5, 4, 4],
@LiaungYip
LiaungYip / 00_SITEMAP.txt
Last active October 4, 2015 10:54
PCGen website copy
Front Page
1. News
2. Benefits
a. Screenshots
b. Benefits for GM's
c. System requirements
3. Download
4. Help and Support
5. Contribute
6. Donate
@LiaungYip
LiaungYip / globalprexxx.md
Created August 22, 2015 17:22
globalprexxx.md rewrite

PRExxx Tags

With these tags you can restrict access to a class, feat, deity, domain or any other object in a lst file. The same PRExxx tags are used in every lst file to make crafting restrictions as easy as possible.

Usage

PRExxx tags are used in two different manners:

  1. A PRExxx tag can be used is as a stand-alone tag to qualify an entire line. Thus, if a character does not meet the prerequisites of a stand-alone PRExxx tag, he will not be able to select the lst object containing the PRExxx and therefore shall not gain the benefits granted by the lst object.
@LiaungYip
LiaungYip / tidy_logs_run_1.txt
Last active August 29, 2015 14:25
Output of HTML Tidy for PCGen docs - conversion from HTML4 to XHTML 1.0
tidy -m -q -asxhtml ./acknowledgments/acknowledgments.html
tidy -m -q -asxhtml ./acknowledgments/bod.html
tidy -m -q -asxhtml ./acknowledgments/bylaws.html
tidy -m -q -asxhtml ./acknowledgments/contributors.html
tidy -m -q -asxhtml ./acknowledgments/gnulicense.html
tidy -m -q -asxhtml ./acknowledgments/licenses.html
tidy -m -q -asxhtml ./acknowledgments/ogllicense.html
line 116 column 9 - Warning: trimming empty <p>
tidy -m -q -asxhtml ./acknowledgments/outputsheets.html
line 71 column 12 - Warning: <a> discarding whitespace in URI reference
@LiaungYip
LiaungYip / preability.md
Last active August 29, 2015 14:24
Proposed change to PREABILITY documentation

PREABILITY

Require that the character has at least N abilities from a given ability_category. A type of ability can be specified, or individual abilities can be specified by name.

Status

  • Updated 6.03.00.
    • What changed?

Syntax

Keybase proof

I hereby claim:

  • I am LiaungYip on github.
  • I am lws (https://keybase.io/lws) on keybase.
  • I have a public key whose fingerprint is 3614 6E37 6F50 0A44 B317 63E6 B729 8435 425B B177

To claim this, I am signing this object: