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 fix-file-endings () { | |
for f in `git ls-files` | |
do | |
newline=' | |
' | |
lastline=$(tail -n 1 $f; echo x); lastline=${lastline%x} | |
[ "${lastline#"${lastline%?}"}" != "$newline" ] && echo >> $f | |
done | |
} |
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
var cycleTimeFunctionThatNeedsABetterName = function(acceptedDate, inProgressDate) { | |
var cycleTime = Math.round(Ext.Date.getElapsed(acceptedDate,inProgressDate) / 1000 / 60 / 60 / 24); | |
if (cycleTime === 0) cycleTime = 1; | |
return cycleTime; | |
}; | |
Ext.define('CustomApp', { | |
extend: 'Rally.app.App', | |
componentCls: 'app', |
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
window.CountCalculator=window.PriceCalculator=window.TaxCalculator=window.ShippingCaclulator = { | |
calculate: (num) -> (num == undefined ? 0 : num + 1) } | |
ChainsCalls = | |
chain: (dependencies, method) -> | |
_(dependencies).inject((memo, dependency) -> | |
dependency[method](memo) | |
, undefined) | |
Invoice = |