This file contains 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 axios from 'axios'; | |
import { fromBuffer } from 'file-type'; | |
import { equals, includes, isEmpty, isNil, last, split } from 'ramda'; | |
/** | |
* Checks is the payload image and if it is will also check do we need to process it, the searchParams are not empty. Internally this method will fetch the minimum amount of bytes (4100) using the Range header and try to determine the mime type. | |
* | |
* Example: | |
* | |
* ```ts | |
* // this will return false because it doesn't have the searchParams |
This file contains 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
image: woss/gitpod-workspace:gitpod_workspace-full_2022-05-08-14-31-53 | |
tasks: | |
- name: prep env | |
before: > | |
pnpm add -g json @microsoft/[email protected] | |
init: > | |
node common/scripts/install-run-rush.js update && exit | |
- name: Start mongodb container | |
command: cp dev-env .env && docker-compose up -d ipfs db && exit |
This file contains 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
tasks: | |
- name: prep env | |
init: > | |
bash devops/install-deps.sh && cp env.sample .env && node common/scripts/install-run-rush.js update && exit | |
- name: Start mongodb container | |
command: docker-compose up -d ipfs db && exit |
This file contains 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 { filter, isEmpty, split, startsWith } from 'ramda'; | |
/** | |
* Parse the hash string and return the the value for the given name | |
* @param fullHash - The value of `$page.url.hash` | |
* @param hashName - Name of the hash which comes in `nam=value` format | |
* @returns decoded value via `decodeURIComponent` | |
*/ | |
export function getHashValue(fullHash: string, hashName: string): string { | |
console.log('getHashValue', { hashName, fullHash }); |
This file contains 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
# Put this file in the root of substrate / polkadot directory and build the image using | |
# the following command: | |
# | |
# docker build -t <container id> . | |
# | |
# you can pick <container id> yourself. For example: `johndoe/rpi-cross`. | |
# | |
FROM rust:latest |
This file contains 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
BEGIN MESSAGE. | |
1eYirDxpAOKX9ds rl1OnjeYazalApH m0G4i0bHAFvQdv2 2QOmzieTMHLkjqi | |
flBA5wtRVZ7mEcN WsvIV6NVaOmTCKq 6Xr2MZHgg6tQkgj DHBfNlZB9TyhXbx | |
3WfxsKToqSnEmsY 2p2D8LsfT1eBp6H FXlJ1SEExKWkDyt I1zoESG34Ip2r4I | |
JcojqYXgYcB5dLR WqTZuNyqYbCUZOw 82YP. | |
END MESSAGE. |
This file contains 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
type OperationID = string | |
type OperationChild = [OperationID, [] | OperationChild[]] | |
interface Operation { | |
name: string, | |
ops: OperationChild[] | |
} | |
export async function lib() { |
This file contains 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
#============================================================================= | |
# dark_powered.toml --- dark powered configuration example for SpaceVim | |
# Copyright (c) 2016-2020 Wang Shidong & Contributors | |
# Author: Wang Shidong < wsdjeg at 163.com > | |
# URL: https://spacevim.org | |
# License: GPLv3 | |
#============================================================================= | |
# All SpaceVim option below [option] section | |
[options] |
This file contains 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 { dirname } from 'path' | |
import esmFilename from './esmFilename' | |
/** | |
* ESM module helper for __dirname | |
* @example | |
* ``` typescript | |
* const __dirname = esmDirname(import.meta.url) | |
* ``` | |
*/ |
This file contains 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 {c as createCommonjsModule, r as react} from "./index-f0770002.js"; | |
function defaultSetTimout() { | |
throw new Error("setTimeout has not been defined"); | |
} | |
function defaultClearTimeout() { | |
throw new Error("clearTimeout has not been defined"); | |
} | |
var cachedSetTimeout = defaultSetTimout; | |
var cachedClearTimeout = defaultClearTimeout; | |
var globalContext; |