Skip to content

Instantly share code, notes, and snippets.

db.getCollection('tmpplotdata_1461030620_c4ed4a31-81bd-412b-ac80-06ada2a9eb71').aggregate(
{$project:
{
bv: {$divide:[ { $subtract: ["$_id.value", 100] }, 2.0] },
point: "$point"
}
},
{$project:
{
kidx: {$subtract: ["$bv", {$mod: ["$bv", 1]}]},
@-moz-document domain("slack.com") {
/* ===[ General ]=== */
body {
background: #272a2e;
color: #e0e0e0; }
a, a:link, a:visited {
color: #b4b7b4; }
a:hover, a:active, a:focus {
@-moz-document url("https://sightmachine.atlassian.net/secure/Dashboard.jspa"), url("https://sightmachine.atlassian.net/secure/ViewProfile.jspa"), url-prefix("https://sightmachine.atlassian.net/browse/"), url-prefix("https://sightmachine.atlassian.net/plugins/servlet/gadgets") {
body, table, navigator-body {
color:#DAD9C2 !important;
background:#111 !important;
}
#descriptionArea {
color:#FFF !important;
font-weight:700 !important;
background:#333 !important;
@-moz-document url-prefix("http://jenkins") {
body {
background-color: #222 !important;
color: #eee;
}
table, form, td, th, p {
color: #eee;
}
a {
color: #99f !important;
@-moz-document domain("render.githubusercontent.com"), domain("raw.githubusercontent.com"), regexp("^https?://((gist|guides|help|raw|status|developer).)?github.com((?!generated_pages/preview).)*$") {
/*! Github Dark Theme v1.13.0 (5/15/2015) *//*
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: http://sam.zoy.org/wtfpl/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAgMAAAANjH3HAAAACVBMVEUaGhohISElJSUh9lebAAAB20lEQVRIx4XWuZXDMAwE0C0SAQtggIIYoAAEU+aKOHhYojTrYP2+QfOW/5QIJOih/q8HwF/pb3EX+UPIveYcQGgEHiu9hI+ihEc5Jz5KBIlRRRaJ1JtoSAl5Hw96hLB1/up1tnIXOck5jZQy+3iU2hAOKSH1JvwxHsp+5TLF5MOl1/MQXsVs1miXc+KDbYydyMeUgpPQreZ7fWidbNhkXNJSeAhc6qHmHD8AYovunYyEACWEbyIhNeB9fRrH3hFi0bGPLuEW7xCNaohw1vAlS805nfsrTspclB/hVdoqusg53eH7FWot+wjYpOViX8KbFFKTwlnzvj65P9H/vD0/hibYBGhPwlPO8TmxRsaxsNnrUmUXpNhirlJMPr6Hqq9k5Xn/8iYQHYIuQsWFC6Z87IOxLxHphSY4SpuiU87xJnJr5axfeRd+lnMExXpEWPpuZ1v7qZdNBOj
@-moz-document url-prefix("http://www.google.com/calendar/"), url-prefix("https://www.google.com/calendar/") {
/*========================Auto-Hide Header========================*/
/*To disable auto-hide header, comment out the code from lines 6 to 32.*/
#onegoogbar{
z-index:3;
-moz-transition-duration: .2s;
-webkit-transition-duration: .2s;
position:fixed !important;
width: 100% !important;
height: 37px !important;
/*! Github Dark Theme v1.13.0 (5/15/2015) *//*
* https://github.com/StylishThemes/GitHub-Dark
* http://userstyles.org/styles/37035
* License: http://sam.zoy.org/wtfpl/
*/
/* AGENT_SHEET */
body {
background-color: #222 !important;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAgMAAAANjH3HAAAACVBMVEUaGhohISElJSUh9lebAAAB20lEQVRIx4XWuZXDMAwE0C0SAQtggIIYoAAEU+aKOHhYojTrYP2+QfOW/5QIJOih/q8HwF/pb3EX+UPIveYcQGgEHiu9hI+ihEc5Jz5KBIlRRRaJ1JtoSAl5Hw96hLB1/up1tnIXOck5jZQy+3iU2hAOKSH1JvwxHsp+5TLF5MOl1/MQXsVs1miXc+KDbYydyMeUgpPQreZ7fWidbNhkXNJSeAhc6qHmHD8AYovunYyEACWEbyIhNeB9fRrH3hFi0bGPLuEW7xCNaohw1vAlS805nfsrTspclB/hVdoqusg53eH7FWot+wjYpOViX8KbFFKTwlnzvj65P9H/vD0/hibYBGhPwlPO8TmxRsaxsNnrUmUXpNhirlJMPr6Hqq9k5Xn/8iYQHYIuQsWFC6Z87IOxLxHphSY4SpuiU87xJnJr5axfeRd+lnMExXpEWPpuZ1v7qZdNBOjiHzDREHX5fs5Zz9p6X0vVKbKKchlSl5rv+3p//FJ/PYvoKryI8vs+2G9lzRmnEKkh+BU8yDk515jDj/HAswu7CCz6U/Mxb/PnC9N41ndpU4hUU7JGk/C9PmP/M2xZYdvBW2PObyf1IUiIzoHmHW9yTncliYs9A9tVNppdShfgQaTLMf+j3X723tLeHgAAAABJRU5ErkJ
@jstsuncode
jstsuncode / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console