Skip to content

Instantly share code, notes, and snippets.

View chaelim's full-sized avatar

C.S. Lim chaelim

View GitHub Profile
@chaelim
chaelim / gist:5131715
Created March 11, 2013 03:33
C++ Macros
#if _MSC_VER
#define COMPILER_CHECK(expr, msg) typedef char COMPILE_ERROR_##msg[1][(expr)]
#else
#define COMPILER_CHECK(expr, msg) typedef char COMPILE_ERROR_##msg[1][(expr)?1:-1]
#endif
@chaelim
chaelim / WinConsoleSettings.reg
Created December 19, 2012 08:07
My Windows Command console settings registry file.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:00000000
"ColorTable01"=dword:00800000
"ColorTable02"=dword:00008000
"ColorTable03"=dword:00808000
"ColorTable04"=dword:00000080
"ColorTable05"=dword:00800080
"ColorTable06"=dword:00008080
@chaelim
chaelim / RestoreIME.reg
Created December 19, 2012 08:05
Windows Vista and Windows 7 에서 한글, 일본, 중국 입력기 (IME)를 사용하게 해주는 레지스트리 파일입니다. Restore original IME on Windows Vista and Windows 7.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0010404]
"Layout File"="KBDUS.DLL"
"Layout Text"="Chinese (Traditional) - Phonetic (IME)"
"IME file"="phon.ime"
"Layout Display Name"="@%SystemRoot%\\system32\\input.dll,-5066"