If you have the latest sublime text (version 4), you can just do:
subl --safe-mode
vi /etc/environment | |
add these lines... | |
LANG=en_US.utf-8 | |
LC_ALL=en_US.utf-8 |
/** | |
* Sort array of objects based on another array | |
*/ | |
function mapOrder (array, order, key) { | |
array.sort( function (a, b) { | |
var A = a[key], B = b[key]; | |
import { ChildProcess, spawn } from 'child_process'; | |
import * as puppeteer from 'puppeteer'; | |
const DEBUG = Boolean(process.env.DEBUG); | |
const CI = Boolean(process.env.CI); | |
const QUERY = Boolean(process.env.QUERY); | |
jest.setTimeout((QUERY ? 200 : 100) * 1000); | |
interface MemorySample { |
This gist will no longer be updated as the changelog will be on the official website.
Converted via https://domchristie.github.io/turndown
This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import
package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).
For each of the provided functionalities, you need a connected IDBDatabase
instance.
import { idb } from 'some-database'