Skip to content

Instantly share code, notes, and snippets.

View lpe234's full-sized avatar
🎯
Focusing

lpe234 lpe234

🎯
Focusing
View GitHub Profile
@lpe234
lpe234 / ModbusService.kt
Last active June 24, 2024 10:40
ModBus TCP Master 示例
/**
* val modbusVersion = "1.2.2"
* implementation("com.digitalpetri.modbus:modbus-master-tcp:${modbusVersion}")
* implementation("com.digitalpetri.modbus:modbus-slave-tcp:${modbusVersion}")
*/
/**
* @author lpe234
* @since 2024/6/20 17:19
*/
@lpe234
lpe234 / EvalDTO.kt
Last active June 21, 2024 10:18
Ace.js 格式化代码 & Java ScriptEngine
data class EvalDTO(var script: String)
# -*- coding: UTF-8 -*-
__author__ = 'lpe234'
import logging as log
import re
import time
import requests as r
import qrcode_terminal
@lpe234
lpe234 / dict.c
Last active December 28, 2018 09:19
redis-core
// 💕核心科技~
dictEntry *dictFind(dict *d, const void *key)
{
dictEntry *he;
unsigned int h, idx, table;
if (d->ht[0].size == 0) return NULL; /* We don't have a table at all */
if (dictIsRehashing(d)) _dictRehashStep(d);
h = dictHashKey(d, key);
for (table = 0; table <= 1; table++) {
@lpe234
lpe234 / settings.py
Created July 26, 2017 01:44
flask config file
# -*- coding: UTF-8 -*-
__author__ = 'lpe234'
"""
config module
"""