Skip to content

Instantly share code, notes, and snippets.

View wontoncc's full-sized avatar

Jason Chen wontoncc

  • Guangdong, China
View GitHub Profile
@wontoncc
wontoncc / cmd-admin-here.bat
Created October 23, 2017 06:24
AHK2: Open Command Line Here in Explorer with Hotkey
@cd/D "%*"
@cmd /k
@wontoncc
wontoncc / I2C Notes.md
Created July 25, 2014 01:49
Some notes for I2C protocool.

I2C Notes

  • Rise Time is measured between 30% - 70% of VDD.

Conditions

  • START

    HIGH -> LOW when SCL = HIGH

  • STOP

@wontoncc
wontoncc / notification.cpp
Created February 10, 2014 09:28
An executable to popup a balloon tip in notification area on Windows, written in C++.
// To popup a balloon tip in notification area.
//
// Usage:
// notification.exe [title] [content] [timeout]
// * custom icon can be used when named "notify.ico", which should stay
// in the current directory.
//
// How to compile:
// g++ notification.cpp -o notification.exe -lshlwapi
// Passed on mingw(http://nuwen.net/mingw.html).
@wontoncc
wontoncc / balloontip.py
Last active March 1, 2024 15:47
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip: