Skip to content

Instantly share code, notes, and snippets.

View suapapa's full-sized avatar

Homin Lee suapapa

View GitHub Profile
@sabas1080
sabas1080 / ESP32_HID.ino
Last active June 29, 2024 16:54
Example of HID Keyboard BLE with ESP32
/*
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@StarpTech
StarpTech / funcAnalyse.go
Last active December 15, 2015 12:19
Fun with the reflection package to analyse any function.
package main
import (
"fmt"
"reflect"
"strconv"
)
@lifthrasiir
lifthrasiir / magicalmd5.py
Created August 20, 2012 08:37
마법의 MD5 스펙 생성기
# coding=utf-8
def score(s, encoding=None):
if encoding: s = s.encode(encoding)
import hashlib; a = hashlib.md5(s).digest()
return (int(round(10+ord(a[0])/255.*90)), # 공격
int(round(10+ord(a[5])/255.*90)), # 민첩
int(round(10+ord(a[1])/255.*90)), # 방어
int(round(10+ord(a[2])/255.*90)), # 명중
int(round(10+ord(a[3])/255.*90)), # 운
int(round(100+ord(a[4])/255.*200))) # 체력