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
$("<input>").attr({id:'bpr', type:'text'}).appendTo("#cal_form"); | |
$("<label>").attr({id:'dfsgdgsdg'}).appendTo("#bpr").text("bezeichnung"); |
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
var clc = require('cli-color'); | |
var colkeys =new Array(2); | |
colkeys[0] =new Array(); | |
colkeys[1] =new Array(); | |
colkeys[0][0]=clc.red; | |
colkeys[0][1]=clc.green; | |
colkeys[1][0]=clc.bgRed; | |
colkeys[1][1]=clc.bgGreen; | |
exports.gCol=function(str, bg){ | |
return mat[bg?1:0][str[0]=='-'?0:1](str); |
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
Number.prototype.fixedString=function(l){ | |
var s=new String(this.toPrecision(l)); | |
return s.substring(0, l); | |
}; |
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
template <class from, class to> | |
to* convertContainer(const from *in){ | |
to* ret=new to(); | |
ret->reserve(in->size()); | |
ret->insert(ret->end(),in->begin(),in->end()); | |
return ret; | |
} |
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
struct rndgen{ | |
boost::mt19937 rng; | |
rndgen(){ | |
rng.seed(static_cast<unsigned int>(std::time(0))); | |
} | |
template<class t> | |
t operator()(t min, t max){ | |
boost::uniform_real<t> u(min, max); | |
boost::variate_generator<boost::mt19937&, boost::uniform_real<t> > gen(rng, u); | |
return gen(); |
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
var todate=function locToUtc(timestring){ | |
var time=new Date(timestring); | |
var ms=time.getMilliseconds(); | |
var s=time.getSeconds(); | |
var mi=time.getMinutes(); | |
var h=time.getHours(); | |
var mo=time.getMonth(); | |
var yr=time.getYear(); | |
var newtime=new Date(); | |
newtime.setUtcMilliseconds(,s); |
NewerOlder