Skip to content

Instantly share code, notes, and snippets.

View tdy's full-sized avatar

Tim Yang tdy

  • University of Illinois at Urbana-Champaign
  • Chambana, IL
View GitHub Profile
@tdy
tdy / virtual-desktops.ahk
Created February 11, 2019 17:28
AHK script for Ciantic/VirtualDesktopAccessor
DetectHiddenWindows, On
hwnd:=WinExist("ahk_pid " . DllCall("GetCurrentProcessId","Uint"))
hwnd+=0x1000<<32
hVirtualDesktopAccessor := DllCall("LoadLibrary", Str, "C:\Users\T\Applications\VirtualDesktopAccessor\VirtualDesktopAccessor.dll", "Ptr")
GoToDesktopNumberProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "GoToDesktopNumber", "Ptr")
GetCurrentDesktopNumberProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "GetCurrentDesktopNumber", "Ptr")
IsWindowOnCurrentVirtualDesktopProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "IsWindowOnCurrentVirtualDesktop", "Ptr")
MoveWindowToDesktopNumberProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "MoveWindowToDesktopNumber", "Ptr")
RegisterPostMessageHookProc := DllCall("GetProcAddress", Ptr, hVirtualDesktopAccessor, AStr, "RegisterPostMessageHook", "Ptr")
@tdy
tdy / PKGBUILD
Created January 23, 2017 07:10
utopia-documents-3.0.0
pkgname=utopia-documents
pkgver=3.0.0
pkgrel=1
pkgdesc="PDF reader that displays interactive annotations on scientific articles"
arch=(i686 x86_64)
url=http://utopiadocs.com
license=(GPL)
depends=(libqglviewer pcre qt5-svg qt5-webkit qt5-script poppler-qt5 python2-pyqt5)
makedepends=(cmake boost swig glew)
source=(http://utopiadocs.com/files/$pkgname-$pkgver.tgz)

Keybase proof

I hereby claim:

  • I am tdy on github.
  • I am tdy (https://keybase.io/tdy) on keybase.
  • I have a public key whose fingerprint is 3A78 8DDD 2B60 1994 CB98 B4E4 28B6 D82E 4501 7E05

To claim this, I am signing this object:

@tdy
tdy / clickplot.py
Created September 2, 2016 08:15 — forked from smathot/clickplot.py
Clickable interactive matplotlib figure
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from matplotlib import pyplot
import numpy as np
class ClickPlot:
"""
A clickable matplotlib figure
@tdy
tdy / aws-s3-gzip-compression.py
Created August 16, 2016 21:00 — forked from sukharevd/aws-s3-gzip-compression.py
Synchronizes directory with gzipped content of Amazon S3 bucket with local one to avoid redundant synchronization requests when files were not changed, but MD5 sums of Gzipped files are different.
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
AWS S3 Gzip compression utility
Author: Dmitriy Sukharev
Modified: 2013-09-11
-------
Synchronizes directory with gzipped content of Amazon S3 bucket with local
@tdy
tdy / sVim.rc
Last active July 2, 2016 01:56
"""""""" Settings """"""""
let mapleader = ","
"""""""" Movement """"""""
unmap "d"
map "ctrl+d" scrollPageDown
unmap "e"
unmap "u"