Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
function hex() {
echo ''$1'' | perl -0777pe 's|([0-9a-zA-Z]{2}+(?![^\(]*\)))|\\x${1}|gs'
}
function replace() {
declare -r dom=$( hex $2 )
declare -r sub=$( hex $3 )
sudo perl -0777pi -e 'BEGIN{$/=\1e8} s|'$dom'|'$sub'|gs' "$1"
return
@tywtyw2002
tywtyw2002 / iina-output.js
Last active March 19, 2024 06:49
bilibili-Ev-iina
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["video/download/iina-output"]=n():e["video/download/iina-output"]=n()}(globalThis,(()=>(()=>{var e={607:(e,n,t)=>{var o=t(218)((function(e){return e[1]}));o.push([e.id,".rpc-config.download-video-config-section {\n display: flex;\n align-items: center;\n flex-direction: column;\n align-items: stretch;\n}\n.rpc-config.download-video-config-section > * {\n display: flex;\n align-items: center;\n}\n.rpc-config.download-video-config-section > *:not(:last-child) {\n margin-bottom: 12px;\n}\n.rpc-config.download-video-config-section .profile-select .be-textbox,\n.rpc-config.download-video-config-section .profile-select .be-dropdown {\n margin-right: 8px;\n}\n.rpc-config.download-video-config-section .profile-select .be-button {\n padding: 4px;\n}",""]),e.exports=o},218:e=>{"use strict"; // eslint-disable-next-line func-names e.exports=function(e){var
def bmp(rawdata, w, h):
rawdata = bytes(reversed(rawdata))
bitdata = b''
if w<16:
bitdata = b''.join([ bytes([rawdata[i],0,0,0]) for i in range(0,len(rawdata)) ])
elif w<24:
for i in range(len(rawdata)//2):
bitdata += rawdata[i*2:i*2+2]+b'\x00\x00'
1
00:00:02,000 --> 00:00:05,520
<font face="Tahoma" size="50" color="#eeeeee">♪</font>
2
00:00:24,240 --> 00:00:26,240
<font face="Tahoma" size="50" color="#eeeeee"><i>[people screaming in distance]</i></font>
3
00:00:28,240 --> 00:00:30,900

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

#name 75-77 祖达克
step << Alliance
#sticky
#label Priorities
.goto ZulDrak,32.03,74.42,0,0
>>交谈 Riannah
>> 交任务:资源调配
.isOnQuest 12770
step
.goto ZulDrak,32.18,74.39
#name 72-74 龙骨荒野
#next 74-75 灰熊丘陵
step
.goto Dragonblight,29.15,55.32
>>向东进入龙骨荒野
.fp Stars' Rest >> 激活群星之墓飞行点
step
>>前往 群星之墓. 交谈 Modera and Jodi
>> 接任务:寻找线索
--- QuestLog.lua 2022-09-20 11:47:48.000000000 -0600
+++ QuestLog.lua 2022-09-24 17:13:12.000000000 -0600
@@ -44,6 +44,25 @@
end
end
+local function CleanZombieQuests()
+ local numEntries, _ = GetNumQuestLogEntries()
+ if KT_GetNumQuestWatches() > 0 then
+ local questIds = {}
<div class='control-bar navbar'>
<div class="field is-horizontal">
<div class="field has-addons">
<div class="control">
<input class="input" id='item_input' type="text" placeholder="item_id">
</div>
<div class="control">
<a class="button is-info" id='btn_go'>
Go
</a>
!WA:2!TR1xVTXXrClluKc2GahHeJ0G40fmWYsjsuI0konUvUvuI6pbYYSuNSJrSl1Y72J3gF82R7UNevEQqpLN6dcTP9z9rqa99I8qFMqOOFas)auaJ(bOZU7Xt3rEurYU1pLdqq7D3SZoZS)MzNzoo2Qt0zcNjC(6z4SiPpnGWFWowBUXw1AyZ8z8pB9F1)UP6QCYGXh)ehQi0hFGfPRm8TS84eS8UOBAxPWA4q1GYhBhjKSokc6E1)UBuGTKYcMA6ci4YNzJ9rA23G4GwevCv462Wvr0SZw011EHYU3UvXbj(XeFF2(k6DvxF8D(0HiznoHey44cvu80qXGKPVN6IWrCCtsWELKADOoHBtcKOFj6tMhj9ibA6ux6zb89Sfr)kIVGmA2CVfv8bh4m615tpV1XOVxSf6CzeyLnCjWzqZrwgT4OwHsLqfVzXHmB2SaxA7VOOWJTFZqMGQ2Ll(0SIYGlXWCgn1huuniHV9zL(TtxmJWZjYiEa6rCCOcETrWYkvCzMdzQvz8oy5MyEBYwrDAr4tLWrC72CMbPo9mgRc8)8ysgXRpPfGvp8wPG9nD1Rvt7knDi20oy)MHCyGaK6Xobhy7X41z0azRLRTLvTgHx7mpIDcDWssdYEWc8D4i4Pyj1(ruhPxJvPDjoCS2DrCNgcjMl)NN0gWbnnpSQYw)TDicbUnPP8GqsLTx6XhRPWLJ7qcF)hrWpBjqXf31OWRfH5oO9kHkxA(sLp2H1mE6EneSiqX(fBeijCxSn5jl54al8tsyXtQZ2NW1dVpXHIFY2QziEIGfG5LyGvfyNAX9oslckb60wrsjl4b7r4G1QLrXdF)K9ITvkLfTdbadRr0JMA6db(OLgpES01yj1E23fji6fOPENW7iGodh9ovtFtBpCqaXV1kuSpRDlxAav4DNE3i8DYDfdO(9(aVE)mVQaHYj7DJUVXBpcu)IO5lKhck7lsaRlIkxy2zvQeYJ22JiKOawWSsCWZObTJX9iGqW9O)DsClFsbJVy8KSsld