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); |
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
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
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
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
$("<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 urllib=require("./urllib.js"); | |
var sys=require("sys"); | |
var urlparser=require("url"); | |
var spawn = require('child_process').spawn; | |
var starturl="http://www.google.com/search?hl=en&q=http%3A%2F%2Fwww.humblebundle.com%2F%3Fkey%3D"; | |
var regex=/www ?\. ?humblebundle ?\. ?com ?\/\?key ?\=\w{2,13}/ig; | |
var hit=function(url){ | |
//console.log("newurl: "+url); |
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
Request URL:http://longcat.de/ccc/28C3-r0ket-tr4cking/v2/debug/proxy.php?rnd=0.8968758655246347 | |
Request Method:GET | |
Status Code:200 OK | |
Request Headers | |
Accept:application/json, text/javascript, */*; q=0.01 | |
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 | |
Accept-Encoding:gzip,deflate,sdch | |
Accept-Language:en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4 | |
Connection:keep-alive | |
Host:longcat.de |
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
{% extends "base.html" %} | |
{% block title %} | |
{{ title }} | |
{% endblock %} | |
{% block content %} | |
<form action="{{ action }}" method="{% block method %}post{% endblock %}"> | |
{% for field in form %} | |
<div> |
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
void energy::update(ticks time){ | |
const float angle=getAngle(start, target); | |
float fx, fy, tx, ty; | |
fx=start.x; | |
fy=-1*start.y; | |
tx=target.x; | |
ty=-1*target.y; | |
float dx,dy; | |
const float vert=getPointDistance(start, target); | |
const float addl=pxps*(time/1000); |
OlderNewer