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
| function DragTagOperator(){ | |
| var position = {}; | |
| var dispatcher = null; | |
| var args = {'root':'header'}; | |
| var events = { | |
| 'drag-register':(data) => {this.register(data)} | |
| ,'drag-unregister':(data) => {this.unregister(data)} | |
| }; | |
| this.decorate = function(opts){ | |
| for (var key in opts){ |
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 signal, os, sys, psc, logging | |
| # @id :: | |
| # @job :: | |
| # @res :: | |
| class Engine(psc.PscIocJob): | |
| def __init__(self): | |
| psc.PscIocJob.__init__(self) | |
| def execute(self,key,value): | |
| if(psc.PscJobKeys.R1 == key): | |
| if(1 == value): |
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
| #!/usr/bin/env python | |
| # found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
| # simple example of a tray icon application using PyGTK | |
| import gtk | |
| def message(data=None): | |
| "Function to display messages to the user." | |
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
| from gi.repository import Gtk as gtk | |
| from gi.repository import AppIndicator3 as appindicator | |
| APPINDICATOR_ID = 'myappindicator' | |
| def main(): | |
| indicator = appindicator.Indicator.new(APPINDICATOR_ID, 'whatever', appindicator.IndicatorCategory.SYSTEM_SERVICES) | |
| indicator.set_status(appindicator.IndicatorStatus.ACTIVE) | |
| indicator.set_menu(gtk.Menu()) | |
| gtk.main() |
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 paramiko | |
| if __name__ == '__main__': | |
| host = 'REMOTE_HOST_IP' | |
| port = 'REMOTE_HOST_PORT' # int() | |
| user = 'USER_LOGIN_NAME' | |
| code = 'USER_LOGIN_PASSWORD' | |
| command = 'pss-shell -c help' |