Skip to content

Instantly share code, notes, and snippets.

colors = [
(0,0,0),
(150,75,0),
(255,0,0),
(255,165,0),
(255,255,0),
(154,205,50),
(100,149,237),
from win32com.client import Dispatch
# Get a NetworkListManager object
networkListManager = Dispatch("{DCB00C01-570F-4A9B-8D69-199FDBA5723B}")
print networkListManager.IsConnectedToInternet
Parallel.For(0, H, y =>
{
int j = y * 3 * W;
//for(; y<ymax; ++y)
{
for (int x = 0; x < W; ++x)
{
float a = max,
b = max,
c = max;