db.export_without__id.insert({a:1})
db.export_without__id.insert({a:2})
db.export_without__id.insert({a:3, something_id: 'name'})db.export_without__id.find().pretty()
{
"_id": ObjectId("606ee1c03557e533795e426f"),| /** | |
| Instructions: | |
| npm init | |
| npm install cors express multer | |
| node node-js-uploader-and-serve.js | |
| OR |
| source 'https://github.com/CocoaPods/Specs.git' | |
| # Uncomment the next line to define a global platform for your project | |
| platform :ios, '9.0' | |
| target 'nov17' do | |
| # Uncomment the next line if you're using Swift or would like to use dynamic frameworks | |
| # use_frameworks! | |
| # Pods for nov17 | |
| pod 'ExpoKit', |
| # Extract used CSS from a page | |
| # https://stackoverflow.com/a/55334749/728287 | |
| # | |
| # $ node extractCSS.js ~/Desktop/Coverage-20190325T110812.json | |
| const fs = require('fs'); | |
| let final_css_bytes = ''; | |
| let total_bytes = 0; | |
| let used_bytes = 0; |
| // console.table for mongo shell - v1.0.2 | |
| // https://gist.github.com/gianpaj/63e04baed150f30b8976c16b16a0010c | |
| // originally from 447dc8b on 18 Apr 2015 | |
| // https://github.com/chinchang/konsole.table/blob/447dc8be4bcb463865f0527ed6aef4da864d6558/index.js | |
| var SEPARATOR = '│'; | |
| /** | |
| * Repeat provided string a given no. of times. |
db.export_without__id.insert({a:1})
db.export_without__id.insert({a:2})
db.export_without__id.insert({a:3, something_id: 'name'})db.export_without__id.find().pretty()
{
"_id": ObjectId("606ee1c03557e533795e426f"),| // find all the alert logs 'div' elements that contain the text. e.g. 'BTCUSDTPERP, 15 Crossing Horizontal Line' | |
| const listSelector = ".widgetbar-widget-alerts_log > div:nth-child(2) .message-_BiOF1cO"; | |
| // get all the alert logs 'div' elements as an array of objects. sort them by 'pair' name. | |
| // e.g. | |
| // { i: 0, textContent: "BTCUSDTPERP, 15 Crossing Horizontal Line", pair: "BTCUSDTPERP" } | |
| var arr = Array.from(document.querySelectorAll(listSelector)) | |
| .map((a, i) => ({ | |
| i, | |
| textContent: a.textContent, |
| { | |
| "description": "non_us_backslash (backtick) fix", | |
| "manipulators": [ | |
| { | |
| "from": { "key_code": "non_us_backslash" }, | |
| "to": [ | |
| { "key_code": "non_us_backslash" }, | |
| { "key_code": "spacebar" } | |
| ], | |
| "type": "basic" |
| import argparse | |
| import base64 | |
| import requests | |
| import json | |
| import sys | |
| from pathlib import Path | |
| def image_to_base64(image_path): | |
| """Convert image to base64 string""" | |
| try: |
# AquaForge Utility Data Lake (`data_lake`)
> **Hexagonally-architected telemetry platform for municipal & industrial utilities.**
> Extract, cleanse, transform, and surface multi-modal data (water, power, gas, waste, steam) at utility scale—without coupling business rules to infrastructure.

