I hereby claim:
- I am tsvetomir on github.
- I am tsvetomir (https://keybase.io/tsvetomir) on keybase.
- I have a public key whose fingerprint is E2F1 6A26 FD3B 6B21 CBC8 E2CC ED61 A1D4 7244 520B
To claim this, I am signing this object:
// ==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"; |
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; | |
} | |
} |
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 |
var groupedData = | |
from s in db.Intraday | |
where s.Date >= dateFrom && s.Date <= dateTo | |
group s by new | |
{ | |
Year = s.Date.Year, | |
Month = baseUnit >= BaseUnit.Months ? s.Date.Month : 1, | |
Day = baseUnit >= BaseUnit.Weeks ? s.Date.Day : 1, | |
Hour = baseUnit >= BaseUnit.Hours ? s.Date.Hour : 0, | |
Minute = baseUnit >= BaseUnit.Minutes ? s.Date.Minute : 0 |
/x/==x |
I hereby claim:
To claim this, I am signing this object:
location /foo { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'POST, GET, PUT, DELETE, OPTIONS'; | |
add_header 'Access-Control-Allow-Headers' '*'; | |
add_header 'Access-Control-Max-Age' 1728000; | |
add_header 'Content-Type' 'text/plain charset=UTF-8'; | |
add_header 'Content-Length' 0; |
var random = (function() { | |
// Implements 32-bit Linear feedback shift register | |
var lfsr = 0xDEADBEEF; | |
return function() { | |
lfsr = ((lfsr >>> 1) ^ (-(lfsr & 1) & 0xD0000001)) >>> 0; | |
return lfsr; | |
}; | |
})(); |
# Find broken symlinks | |
find /target/dir -type l ! -exec test -e {} \; -print | |
# Find and replace | |
find /some/path -type f -exec sed -i 's/old/new/g' {} \; | |
# Capture packets on a remote machine | |
# https://ask.wireshark.org/questions/36872/problem-capturing-remotely-by-running-tshark-on-the-remote-machine-and-piping-it-to-wireshark | |
ssh server1 'tcpdump -U -w - port not 22' | wireshark -k -i - |
**I'm submitting a ...** (check one with "x") | |
``` | |
[ ] bug report | |
[ ] feature request | |
[ ] support request => Please do not submit support request here, instead see the [Kendo UI Premium Forums](http://www.telerik.com/forums/kendo-ui) or our [support system](http://www.telerik.com/support) at Telerik.com | |
``` | |
**Reproduction of the problem (bug report only)** | |
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5). |