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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\igvita-desert] | |
| "Present"=dword:00000001 | |
| "LogFileName"="putty.log" | |
| "LogType"=dword:00000000 | |
| "LogFileClash"=dword:ffffffff | |
| "LogFlush"=dword:00000001 | |
| "SSHLogOmitPasswords"=dword:00000001 | |
| "SSHLogOmitData"=dword:00000000 |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai] | |
| "Colour21"="255,255,255" | |
| "Colour20"="245,222,179" | |
| "Colour19"="200,240,240" | |
| "Colour18"="0,217,217" | |
| "Colour17"="179,146,239" | |
| "Colour16"="174,129,255" | |
| "Colour15"="122,204,218" |
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
| # OLS_4 = [[(0, 0), (2, 2), (3, 3), (1, 1)], | |
| # [(2, 3), (0, 1), (1, 0), (3, 2)], | |
| # [(3, 1), (1, 3), (0, 2), (2, 0)], | |
| # [(1, 2), (3, 0), (2, 1), (0, 3)]] | |
| # OLS_5 = [[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4)], | |
| # [(1, 2), (2, 3), (3, 4), (4, 0), (0, 1)], | |
| # [(2, 4), (3, 0), (4, 1), (0, 2), (1, 3)], | |
| # [(3, 1), (4, 2), (0, 3), (1, 4), (2, 0)], | |
| # [(4, 3), (0, 4), (1, 0), (2, 1), (3, 2)]] |
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
| # -*- coding: utf-8 -*- | |
| def mkdir(path, relative = True): | |
| import os | |
| currentPath = os.getcwd().replace("\\",'/') | |
| path = path.strip() | |
| path = currentPath + '/' + path.replace("\\",'/').rstrip('/') | |
| if not os.path.exists(path): | |
| print 'The Directory ' + path + ' has been created.' | |
| os.makedirs(path) |
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
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| 根据给定的范围,用混合进制的方式输出所有元组。 | |
| """ | |
| def tuplesGen(ranges): | |
| """ | |
| >>> ranges = (2,3,4) | |
| >>> for t in tuplesGen(ranges): |
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
| """ | |
| handle text in an open file | |
| lines: yield every line in the open file; | |
| blocks: yield every block ine open file. A block is many lines containing no empty lines. | |
| """ | |
| def lines(file): | |
| for line in file: yield line | |
| # yield '\n' |
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
| class Handler: | |
| """ | |
| An object that handles method calls from the Parser. | |
| The Parser will call the start() and end() methods at the | |
| beginning of each block, with the proper block name as a | |
| parameter. The sub() method will be used in regular expression | |
| substitution. When called with a name such as 'emphasis', it will | |
| return a proper substitution function. | |
| """ |