Skip to content

Instantly share code, notes, and snippets.

View proincm's full-sized avatar
🎯
Focusing

proincm

🎯
Focusing
View GitHub Profile
@mathebox
mathebox / color_conversion.py
Created April 12, 2015 16:47
Python methods to convert colors between RGB, HSV and HSL
import math
def rgb_to_hsv(r, g, b):
r = float(r)
g = float(g)
b = float(b)
high = max(r, g, b)
low = min(r, g, b)
h, s, v = high, high, high
@proincm
proincm / GenerateWordFromNETXML
Created November 30, 2013 21:05
Generate Intellisense Word for Auto-complete from NET XML
const string saveNETWords = @"D:\ProinCm System\Visual Studio\English Word\NET Words.txt";
const string NETFramework = @"C:\Windows\Microsoft.NET\Framework\v4.0.30319";
const string NETFrameworkXML = @"C:\Windows\Microsoft.NET\Framework\v2.0.50727\en";
public static void GenerateFromNET()
{
Regex reg = new Regex(@"[A-Z][a-z]+", RegexOptions.Compiled);
var lines = new List<string>();
foreach (var item in Directory.EnumerateFiles(NETFrameworkXML))