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 Video { | |
| constructor(video){ | |
| this.video = video; | |
| } | |
| setStream(stream){ | |
| console.log('setting stream', stream) | |
| this.video.srcObject = stream; | |
| this.video.play(); | |
| } |
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
| -- | |
| -- classic | |
| -- | |
| -- Copyright (c) 2014, rxi | |
| -- | |
| -- This module is free software; you can redistribute it and/or modify it under | |
| -- the terms of the MIT license. See LICENSE for details. | |
| -- | |
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 applicationWatcher(appName, eventType, appObject) | |
| if (appName == "Dolphin") then | |
| if (eventType == hs.application.watcher.launched) then | |
| hs.caffeinate.set('displayIdle', true) | |
| elseif (eventType == hs.application.watcher.terminated) then | |
| hs.caffeinate.set('displayIdle', false) | |
| end | |
| end | |
| end |
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 Cocoa | |
| class GremlinConnection{ | |
| var host : String = "" | |
| var port : String = "8182" | |
| var processor : String = "" | |
| var op : String = "eval" | |
| var request : NSMutableURLRequest? | |
| var web_socket : WebSocket? |
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 gremlinpy.gremlin import * | |
| from gremlinpy.gremlin import _, __ | |
| class PythonStringGraphTraversalSource(object): | |
| def __init__(self, graph_variable): | |
| self.graph_variable = graph_variable | |
| self.gremlin = Gremlin(self.graph_variable) |