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
import { createContext, useContext } from 'react'; | |
import { MessagesContext } from '../messages/MessagesContext'; | |
import { getDataFromMessage } from '../messages/messenger'; | |
type DbContextValue = { | |
getContexts: () => Promise<{ | |
name: string, | |
active: boolean | |
}[]> | |
}; |
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/env node | |
const sourceMap = require('source-map') | |
const fs = require('fs') | |
const path = require('path') | |
/** | |
* Prepend six lines to source-map | |
*/ | |
const runSourceMapPrepend = async (sourceMapFile) => { | |
const sourceMapFileContent = fs.readFileSync(sourceMapFile, 'utf8') |
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
#!/bin/bash | |
set -e | |
TEST_SUITES=(read rw randread randrw) | |
TEST_FILE_PRE=fio_ | |
TEST_FILE_POST=.json | |
function set_filename { | |
FILENAME=${TEST_FILE_PRE}${1}${TEST_FILE_POST} | |
} |