Skip to content

Instantly share code, notes, and snippets.

View kgamecarter's full-sized avatar
🤔

kgame kgamecarter

🤔
View GitHub Profile
@kgamecarter
kgamecarter / 超級悠遊卡.txt
Created March 14, 2024 10:25
超級悠遊卡
Start | End | Src | Data (! denotes parity error) | CRC | Annotation
------------+------------+-----+-------------------------------------------------------------------------+-----+--------------------
0 | 1056 | Rdr |26(7) | | REQA
2244 | 4612 | Tag |04 00 | |
25216 | 27680 | Rdr |93 20 | | ANTICOLL
28852 | 34740 | Tag |c5 fa 0b af 9b | |
42752 | 53216 | Rdr |93 70 c5 fa 0b af 9b f1 30 | ok | SELECT_UID
54468 | 57988 | Tag |28 b4 fc | |
64128 | 68896 | Rdr |50 00 57 cd
PRIVACY POLICY
Last updated February 24, 2024
This privacy notice for __________ ("we," "us," or "our"), describes how and why we might collect, store, use, and/or share ("process") your information when you use our services ("Services"), such as when you:
Download and use our mobile application (Chameleon Mini App), or any other application of ours that links to this privacy notice
Engage with us in other related ways, including any sales, marketing, or events
Questions or concerns? Reading this privacy notice will help you understand your privacy rights and choices. If you do not agree with our policies and practices, please do not use our Services. If you still have any questions or concerns, please contact us at kgamecarter@gmail.com.
@kgamecarter
kgamecarter / react-router+6.3.0.patch
Created April 16, 2022 16:10
fix react-router path start with @ symbol
diff --git a/node_modules/react-router/index.js b/node_modules/react-router/index.js
index 7f42297..a0dffec 100644
--- a/node_modules/react-router/index.js
+++ b/node_modules/react-router/index.js
@@ -307,7 +307,7 @@ function compilePath(path, caseSensitive, end) {
// Additionally, allow paths starting with `.`, `-`, `~`, and url-encoded entities,
// but do not consume the character in the matched path so they can match against
// nested paths.
- "(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";
+ "(?:(?=[@.~-]|%[0-9A-F]{2})|\\b|\\/|$)";
var list = result.Date
.GroupBy(x => new { x.City_Id, x.City_Name, x.Region_Id, x.Region_Name })
.GroupBy(g1 => new { g1.Key.City_Id, g1.Key.City_Name })
.Select(g2 => new StoreAddressModel()
{
City_Id = g2.Key.City_Id,
City_Name = g2.Key.City_Name,
Region = g2.Select(g1 => new Region()
{
Region_Id = g1.Key.Region_Id,
INSERT INTO `bec_chestdata_default` VALUES (329,'jackgood','{\"OwnerName\":\"jackgood\",\"DisabledSlots\":0,\"Inventory\":[{\"Slot\":0,\"id\":\"minecraft:white_shulker_box\",\"Count\":1,\"tag\":{\"BlockEntityTag\":{\"CustomName\":\"稀有道具\",\"Items\":[{\"Slot\":0,\"id\":\"minecraft:potion\",\"Count\":1,\"tag\":{\"Potion\":\"minecraft:empty\",\"CustomPotionEffects\":[{\"Duration\":144000,\"Ambient\":0,\"Id\":14,\"Amplifier\":0,\"ShowParticles\":1},{\"Duration\":144000,\"Ambient\":0,\"Id\":18,\"Amplifier\":3,\"ShowParticles\":1},{\"Duration\":144000,\"Ambient\":0,\"Id\":22,\"Amplifier\":3,\"ShowParticles\":1},{\"Duration\":144000,\"Ambient\":0,\"Id\":2,\"Amplifier\":3,\"ShowParticles\":1}],\"display\":{\"Name\":\"§f人間失格\"}},\"Damage\":0},{\"Slot\":1,\"id\":\"minecraft:potion\",\"Count\":1,\"tag\":{\"CustomPotionEffects\":[{\"Duration\":12000,\"Ambient\":0,\"Id\":8,\"Amplifier\":3,\"ShowParticles\":1},{\"Duration\":12000,\"Ambient\":0,\"Id\":18,\"Amplifier\":0,\"ShowParticles\":1}],\"RepairCost\":2,\"Potion\":\"mi
@kgamecarter
kgamecarter / com_retry.cs
Last active July 11, 2019 07:05
SerialPort Retry
// 建立多執行續工作
Task.Run(() =>
{
retry: // 重試起點
try
{
port = new SerialPort(portName, 9600);
port.Open();
string line;
while ((line = port.ReadLine()) != null) // 無限回圈讀取com資料

Keybase proof

I hereby claim:

  • I am kgamecarter on github.
  • I am kgame (https://keybase.io/kgame) on keybase.
  • I have a public key whose fingerprint is 9325 6F22 EB5B E088 3E32 3AC2 2459 DC09 08C6 FA5B

To claim this, I am signing this object: