Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

kgame kgamecarter

🤔
View GitHub Profile
View group.cs
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,
View jackgood.sql
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 Jul 11, 2019
SerialPort Retry
View com_retry.cs
// 建立多執行續工作
Task.Run(() =>
{
retry: // 重試起點
try
{
port = new SerialPort(portName, 9600);
port.Open();
string line;
while ((line = port.ReadLine()) != null) // 無限回圈讀取com資料
View keybase.md

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: