This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)) |