Skip to content

Instantly share code, notes, and snippets.

View nicomgd's full-sized avatar

Nicolas Lelong nicomgd

  • mgdesign
  • Nantes, France
View GitHub Profile
/* https://gist.github.com/nicomgd/8752912aaa0ecc7c2279 */
/* copy&paste theses lines in a new Stylish style */
.status-5 > * {
color: #CCC !important;
/*display: none;*/
background-color: #fff;
}
table.list tr.issue.status-5 a { /* en attente */
@nicomgd
nicomgd / getOpenFileName.py
Created November 5, 2015 12:11
win32 GetOpenFileName using ctypes
import ctypes
import ctypes.wintypes as wintypes
LPOFNHOOKPROC = ctypes.c_voidp # TODO
LPCTSTR = LPTSTR = ctypes.c_wchar_p
class OPENFILENAME(ctypes.Structure):
_fields_ = [("lStructSize", wintypes.DWORD),
("hwndOwner", wintypes.HWND),
("hInstance", wintypes.HINSTANCE),
@nicomgd
nicomgd / shader.frag
Created September 24, 2015 17:04
Crash Intel GLSL linker (drivers 10.18.14.4264) - minimal repro ; the two files compile fine, but when calling glLinkProgram, crashes the application (works fine on other vendors, even on Intel HD 4000)
#version 150
// UNCOMMENT the following line to crash the linker
// Crash happens on driver 10.18.14.4264 on Windows 8.1 x64, on Intel HD 4400
//#define CRASH_DRIVER_PLEASE
in vec4 var_shadowTexCoords;
uniform sampler2DShadow py_shadowMaps[ 1 ];
out vec4 fragColor;