Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrik Skoog Skoog

  • Eskilstuna, Sweden
View GitHub Profile
View gist:d09886ca08cece86830536b09f2cbc07
0.0.0.0 sportclient.888sport.com
0.0.0.0 www.888sport.se
0.0.0.0 888sport.se
0.0.0.0 www.unibet.se
0.0.0.0 se.unibet.com
0.0.0.0 eum.unibet.se
0.0.0.0 unibet.hs.llnwd.net
0.0.0.0 www.livesport.cz
0.0.0.0 stats.fn.sportradar.com
0.0.0.0 s5.sir.sportradar.com
View keybase.md

Keybase proof

I hereby claim:

  • I am skoog on github.
  • I am skoog (https://keybase.io/skoog) on keybase.
  • I have a public key whose fingerprint is 6410 3DBA 1E4E 1E4D CBF2 14C6 F788 C62D 373F 7A69

To claim this, I am signing this object:

@Skoog
Skoog / weekDate.js
Created Mar 12, 2012
ISO 8601 Week Date
View weekDate.js
/**
* Gets the real date for an ISO-8601 week-date
*
* @param year
* @param week
* @param day
*/
function getWeekDate(year, week, day) {
var date = new Date(+year, 0, 3); // Jan 3
date.setDate( 3 - date.getDay() + (week -1) * 7 + +day);