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
(function() { | |
window.frame = require("nw.gui").Window.get(); | |
window.frame.isFocused = true; | |
var windowFocusHandler = function() { | |
window.frame.isFocused = true; | |
} | |
, windowBlurHandler = function() { | |
window.frame.isFocused = false; |
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
#property copyright "" | |
#property link "" | |
#property description "moving averages" | |
#define MAGICMA 123123123 | |
input double MaximumRisk = 0.02; // maximum risk (% of depo) | |
input bool willYouTradeBuyHands = false; // if true, I'll check every opened order for creator (possible slowing?) |
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
// script moved to http://github.com/b1rdex/nw-contextmenu |
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
static public function build($formula, $isCalculable = self::CALCULABLE) | |
{ | |
return new Formula($formula, $isCalculable); | |
} | |
public function setVars(array $vars) | |
{ | |
$this->parameterBag->datas = array_merge($this->parameterBag->datas, $vars); | |
return $this; |
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
// defining hoa functions | |
'if' => xcallable(function($condition, $than, $else) { | |
return $condition ? $than : $else; | |
}), | |
'lt' => xcallable(function($left, $right) { | |
return $left < $right; | |
}), | |
'gt' => xcallable(function($left, $right) { | |
return $left > $right; | |
}), |
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
//Dear Razrabs, please add this fucking feature to your site. | |
;(function() { | |
var artids = $('.artid'), | |
names = $('.clName a'), | |
counts = $('.clCount input'), | |
prices = $('.clPrice'), | |
costs = $('.clCost'), | |
r = [] | |
; |
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 | |
class sfWidgetFormSchemaFormatterBootstrap extends sfWidgetFormSchemaFormatter | |
{ | |
protected | |
$rowFormat = "<div class=\"control-group %row_class%\">\n %label%\n <div class=\"controls\">\n %field%\n %error%\n %help%\n %hidden_fields%\n </div>\n</div>\n", | |
$errorRowFormat = '%errors%', | |
$errorListFormatInARow = "<span class=\"help-inline\">%errors%</span>\n", | |
$errorRowFormatInARow = "%error% ", | |
$namedErrorRowFormatInARow = "%name%: %error% ", | |
$helpFormat = '<p class="help-block">%help%</p>', |