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
| ([xml] (-join (svn log -r $version:HEAD --xml))).log.logentry | ? { @('zszugyi', 'author2') -contains | |
| $_.author } | foreach-object { svn diff --no-diff-deleted --summarize -r ("" + (-1 + $_.revision) + ":" + $_.revision) } | |
| > .\changed_files.txt | |
| Get-Content .\changed_files.txt | foreach { $_.split(" ")[7] } |sort |Get-Unique |
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 sublime, sublime_plugin | |
| import re | |
| class AddYardDocs(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| for selection in reversed(self.view.sel()): | |
| current_line_region = self.view.line(selection) | |
| current_line = self.view.substr(current_line_region) | |
| if 'def ' not in current_line: | |
| continue |
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 sublime, sublime_plugin | |
| class NumberSelections(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| selections = self.view.sel() | |
| for i in reversed(range(len(selections))): | |
| selection = self.view.sel()[i] | |
| self.view.insert(edit, selection.begin(), "%d" % (i + 1)) |
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
| { "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#{${0:$SELECTION}}"}, "context": | |
| [ | |
| { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
| { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
| ] | |
| } |
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
| require 'openssl' | |
| require 'base64' | |
| class RSAKeyToXmlConverter | |
| def initialize rsa_key_string | |
| @key = OpenSSL::PKey::RSA.new(rsa_key_string) | |
| end | |
| def to_public_key |