Skip to content

Instantly share code, notes, and snippets.

View hldh214's full-sized avatar
🦄
IP属地:武汉

Jim Liu hldh214

🦄
IP属地:武汉
View GitHub Profile
import time
import win32api
import win32con
from ctypes import windll, c_uint
recoil = [20, 21, 22, 21, 22, 22, 23, 22, 23, 23, 24, 24, 25, 25, 25, 25, 26, 27, 28, 29, 30, 32,
34, 34, 35, 34, 35, 34, 35, 34, 35, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35,
35, 35]
a = 0
@hldh214
hldh214 / md5.js
Last active August 1, 2017 19:26
md5 algo with ~~JavaScript~~
var lZ1x = 8;
var VF2x = function(fw9n, cu7n) {
return fw9n << cu7n | fw9n >>> 32 - cu7n
};
var lj1x = function(x, y) {
var bAi2x = (x & 65535) + (y & 65535)
, cnf2x = (x >> 16) + (y >> 16) + (bAi2x >> 16);
return cnf2x << 16 | bAi2x & 65535
@hldh214
hldh214 / safe_schedule.py
Created July 19, 2017 04:24 — forked from mplewis/safe_schedule.py
An implementation of Scheduler that catches jobs that fail. For use with https://github.com/dbader/schedule
import logging
from traceback import format_exc
import datetime
from schedule import Scheduler
logger = logging.getLogger('schedule')