Skip to content

Instantly share code, notes, and snippets.

View 1715173329's full-sized avatar
💭
燒酒一杯兩杯三杯,當作是笑虧。

Tianling Shen 1715173329

💭
燒酒一杯兩杯三杯,當作是笑虧。
View GitHub Profile
@shangdawei
shangdawei / gpt_parser.py
Last active March 25, 2024 05:52 — forked from culots/gpt_parser.py
Feed this your GPT.bin, and out it shoots a partition.xml
#!/usr/bin/python
# Author : n0fate
# E-Mail rapfer@gmail.com, n0fate@live.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@kgriffs
kgriffs / string_util.lua
Created May 27, 2020 17:41
Lua string utilities (contains, startswith, endswith, replace, insert)
function string:contains(sub)
return self:find(sub, 1, true) ~= nil
end
function string:startswith(start)
return self:sub(1, #start) == start
end
function string:endswith(ending)