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
db.listingsAndReviews.aggregate([ { "$project": { "address": 1, "_id": 0 } }, { "$group": { "_id": "$address.country", "sum": { "$sum": 1 } } }]) | |
db.listingsAndReviews.aggregate([ { "$project": { "address": 1, "_id": 0 } }, { "$group": { "_id": "$address.country", "sum": { "$sum": 5 } } },{ "$sort" : { "sum" : 1 } } ]) |
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
const timeout = (ms) => new Promise((res) => setTimeout(res, ms)); | |
const items = document.querySelectorAll(".itemWrapper"); | |
console.log( | |
`duration: ${ | |
items.length * 4 | |
} seconds. password info will be copied to your clipboard (like copy/paste)` | |
); | |
const res = []; | |
async function go(i) { | |
var newItem = {}; |
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
license: cc-by-4.0 |
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
license: cc-by-4.0 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
margin: 0; | |
overflow: hidden; |
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
12e12e12e |
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
com | |
net | |
org | |
us | |
gdn | |
co | |
in | |
info | |
xyz | |
top |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
nav { |
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
#!/usr/bin/bash | |
get_six_hours() { | |
six_hours=:initially-not-a-number: | |
((six_hours = 21600)) | |
} | |
kill_in_six_hours() { | |
for ((; ;)); do | |
get_six_hours |
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
const fm = (() => { | |
const model = {} | |
let observers = { fm_observe_all : [] } | |
function sub (key, observerCallback) { | |
if (typeof observers[key] === 'undefined') { | |
observers[key] = [] | |
} | |
if (!observers[key].includes(observerCallback)) { | |
observers[key].push(observerCallback) |