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 d1 = new Date(), | |
d2 = new Date(d1.getTime()); | |
console.log("d1 === d2 ->", d1 === d2); // false | |
console.log("d1 == d2 ->", d1 == d2); // false | |
console.log("d1 < d2 ->", d1 < d2); // false | |
console.log("d1 > d2 ->", d1 > d2); // false | |
console.log("d1 <= d2 ->", d1 <= d2); // true | |
console.log("d1 >= d2 ->", d1 >= d2); // true | |
// George Bool is really pissed at this point |
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 Point(a, b) { | |
if (arguments.length === 1) { | |
this.x = Math.round(a / 1000); | |
this.y = a - this.x * 1000; | |
} else { | |
this.x = a; | |
this.y = b; | |
} | |
} |
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
// ==UserScript== | |
// @name Campfire local time | |
// @namespace http://tsonev.net/campfire/localtime | |
// @version 0.2 | |
// @description Converts time stamps to local time in Campfire chats. Tested in Chrome. | |
// @match https://XXXXXX.campfirenow.com/room/* | |
// ==/UserScript== | |
var TIME_ZONE = "CDT"; |
NewerOlder