References:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Refs: | |
| * - https://gist.github.com/CatsMiaow/b479e96d5613dbd4711ab6d768b3eea0 | |
| * - https://stackoverflow.com/a/61852309 | |
| */ | |
| class BigIntBase62 { | |
| private static CHARSET = | |
| '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| static encode(integer: bigint | number): string { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type BatchConfig = { | |
| /** | |
| * Maximum number of data items for a batch. | |
| */ | |
| size: number; | |
| /** | |
| * Maximum timeout for executing a batch in millisecond. | |
| */ | |
| timeout: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
| git config --global alias.lg "log -n 10 --color --graph --pretty=format:'%Cgreen%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- This code is public domain, share and enjoy. --> | |
| <html> | |
| <style type="text/css" media="screen"> | |
| #table { | |
| position: absolute; | |
| top: 30px; | |
| bottom: 0; | |
| left: 10px; | |
| right: 10px; | |
| } |