This file contains 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
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
This file contains 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
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
This file contains 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
<?php | |
/* | |
* Quick 'n Dirty Laravel 5.1 decrypter. | |
* | |
* Based directly off the source code at: | |
* https://github.com/laravel/framework/blob/5.1/src/Illuminate/Encryption/Encrypter.php | |
* | |
* Have access to an application key from a .env? | |
* Have some encrypted data you want to decrypt? | |
* Well: (new Crypt($key))->decrypt($payload); should have you sorted |
This file contains 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
//wearversion | |
//wearlog | |
//wearvoiceinputenable | |
//wearvoiceinputdisable | |
//weargoogleapi | |
//assert | |
//pushassert | |
//uplog | |
//upcrash | |
//switchnotificationstatus |
This file contains 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
Full Line Selection 选择文本是否根据文本内容进行描边 | |
Highlight Active Line 是否高亮所选行 | |
Show Invisibles 显示空格、Tab、回车等不可见符号 | |
Show Indent Guides 显示缩进对齐线 | |
Persistent HScroll 是否保持水平滚动条的显示 | |
Animate scrolling 滚动动画,比如查找时的跳跃 | |
Show Gutter 显示左栏行标 | |
Show Print Margin 显示打印边界线,超过就溢出打印范围 | |
Use Soft Tab 软Tab,即用4个空格体态\t | |
Highlight selected word 提醒显示和所选单词类似的词 |