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 | |
| import sublime_plugin | |
| import os | |
| class DeleteOpenedFileCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| file_path = self.view.file_name() | |
| ok = sublime.ok_cancel_dialog("Really remove?", "Yeah, baby!") | |
| if ok: | |
| self.view.close() |
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 PENDING = -1 | |
| const SUCCESS = 0 | |
| const ERROR = 1 | |
| class J { | |
| constructor (fn) { | |
| this.value = null | |
| this.state = PENDING | |
| this.successReactions = [] | |
| this.failureReactions = [] |
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
| cfgver "1" | |
| unbindall | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "slot4" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "9" "slot9" | |
| bind "a" "+moveleft;r_cleardecals" |
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
| module SidekiqClientExtension | |
| def raw_push(jobs) | |
| DB.after_commit { super } | |
| end | |
| end | |
| Sidekiq::Client.prepend(SidekiqClientExtension) |