Skip to content

Instantly share code, notes, and snippets.

View harazdovskiy's full-sized avatar
🏗️
Building great thing!

Dmytro Harazdovskiy harazdovskiy

🏗️
Building great thing!
View GitHub Profile
@harazdovskiy
harazdovskiy / .json
Created November 3, 2018 12:27
VSCode personal keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+g g",
"command": "-workbench.view.scm",
"when": "gitlens:enabled && gitlens:keymap == 'chorded'"
},
{
"key": "shift+cmd+2",
"command": "workbench.action.nextEditorInGroup"
[
{
"name": "Dominic King",
"text": "elit sed consequat auctor, nunc nulla vulputate dui, nec tempus",
"numberrange": 3,
"alphanumeric": "FAK07RDY6GL",
"list": 3,
"country": "Germany",
"region": "Southwestern Tagalog Region",
"postalZip": "88127",
const dotenv = require('dotenv');
dotenv.config()
const {promises: fs} = require('fs');
const {MongoClient, ServerApiVersion} = require('mongodb');
const DB_NAME = 'performance1m';
const PATH_1MIL = '../dataset/1m-generated.json';
(async () => {
const dotenv = require('dotenv');
dotenv.config()
const fs = require('fs');
const {MongoClient, ServerApiVersion} = require("mongodb");
const JsonlParser = require('stream-json/jsonl/Parser');
const parser = new JsonlParser();
const objectSize = require('object-sizeof');
const radash = require('radash');
const lodash = require('lodash');
[
{
"review_id": "KU_O5udG6zpxOg-VcAEodg",
"user_id": "mh_-eMZ6K5RLWhZyISBhwA",
"business_id": "XQfwVwDr-v0ZS3_CbbE5Xw",
"stars": 3.0,
"useful": 0,
"funny": 0,
"cool": 0,
"text": "If you decide to eat here, just be aware it is going to take about 2 hours from beginning to end. We have tried it multiple times, because I want to like it! I have been to it's other locations in NJ and never had a bad experience. \n\nThe food is good, but it takes a very long time to come out. The waitstaff is very young, but usually pleasant. We have just had too many experiences where we spent way too long waiting. We usually opt for another diner or restaurant on the weekends, in order to be done quicker.",
const dotenv = require('dotenv');
dotenv.config()
const fs = require('fs');
const objectSize = require('object-sizeof');
const radash = require('radash');
const JsonlParser = require('stream-json/jsonl/Parser');
const {MongoClient, ServerApiVersion} = require("mongodb");
const parser = new JsonlParser();
{
"success": 1,
"query_summary": {
"num_reviews": 100
},
"reviews": [
{
"recommendationid": "96150189",
"author": {
"steamid": "76561198838108725",
const fs = require('fs');
const {from = 0, to = 1} = require('minimist')(process.argv.slice(2));
const radash = require('radash');
const BASE_PATH = '../dataset/reviews';
const PARALLEL_EXECUTIONS = 5;
const LOG_PATH_EVERY = 1_000_000;
(async () => {
let started = Date.now()
const dotenv = require('dotenv');
dotenv.config()
const fs = require('fs');
const {from = 1, to = 20} = require('minimist')(process.argv.slice(2));
const radash = require('radash');
const {MongoClient, ServerApiVersion} = require("mongodb");
const lodash = require("lodash");
const objectSize = require("object-sizeof");
const dotenv = require('dotenv');
dotenv.config()
const {MongoClient, ServerApiVersion} = require('mongodb');
const DB_NAME = 'performance63m';
const COLLECTION_NAME = '63mil-collection';
(async () => {
try {