This file contains 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
{ | |
"license" : "private", | |
"checkver": { | |
"github": "https://github.com/sudomabider/decompose" | |
}, | |
"autoupdate": { | |
"url": "https://github.com/sudomabider/decompose/releases/download/v$version/dc.exe" | |
}, | |
"description" : "Docker Compose helper", | |
"bin" : "dc.exe", |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
! | |
aaa new-model | |
! | |
! | |
aaa authentication login VPN local | |
aaa authorization network VPN local | |
! | |
! | |
vpdn enable | |
! |
This file contains 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
<?php | |
$options = array( | |
'ssl'=>array( | |
'capture_peer_cert' => true | |
) | |
); | |
// create our stream context requiring the peers certificate to be returned | |
$context = stream_context_create($options); |
This file contains 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
$("#placeholder").bind("plotselected", function (event, ranges) { | |
var ymin, ymax; | |
var plotdata = plot.getData(); | |
$.each(plotdata, function (e, val) { | |
$.each(val.data, function (e1, val1) { | |
if ((val1[0] >= ranges.xaxis.from) && (val1[0] <= ranges.xaxis.to)) { | |
if (ymax == null || val1[1] > ymax) ymax = val1[1]; | |
if (ymin == null || val1[1] < ymin) ymin = val1[1]; | |
} |
This file contains 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
/** | |
* Reflection helper to expose a method as public (for unit testing) | |
* and call call the method with (or without) arguments. There is | |
* dynamic support for static methods | |
* | |
* <code> | |
* | |
* $r = new ReflectionHelper('MyClass', 'myMethod'); | |
* $r->setPublic()->invoke("arg1", "arg2"); | |
* |
This file contains 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 MyClass: | |
def _test(self, *args): | |
print "This is a dynamic method" | |
return | |
def __getattr__(self, name, *args): | |
if name == 'myFunction': | |
def function (*args): | |
return self._test(*args) |