A research document detailing approaches to run Development Containers remotely on AWS and GCP, plus Kubernetes/EKS-based ephemeral workspaces.
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 python3 | |
import json | |
import os | |
import sys | |
import argparse | |
import re | |
from typing import Dict, List, Optional, Any | |
def sanitize_filename(filename: str) -> str: |
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
" .ideavimrc is a configuration file for IdeaVim plugin. It uses | |
" the same commands as the original .vimrc configuration. | |
" You can find a list of commands here: https://jb.gg/h38q75 | |
" Find more examples here: https://jb.gg/share-ideavimrc | |
" vim settings | |
set scrolloff=5 | |
set history=1000 |
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
; ModuleID = 'hashx_module' | |
source_filename = "hashx_module" | |
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" | |
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) | |
define void @compute(ptr %0) local_unnamed_addr #0 { | |
entry: | |
%const3463 = bitcast i64 -489410267 to i64 | |
%const3447 = bitcast i64 -1543264299 to i64 | |
%const3440 = bitcast i64 -2121149370 to i64 |
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 { decodeAddress } from "https://esm.sh/@polkadot/util-crypto"; | |
import { u8aToHex } from "https://esm.sh/@polkadot/util"; | |
const input = Deno.args[0]; | |
if (!input) { | |
console.error("usage: deno run substrateToEvm.ts <SUBSTRATE_ADDRESS_HERE>"); | |
Deno.exit(1); | |
} | |
const accountId = decodeAddress(input); | |
const res = accountId.subarray(0, 20); |
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 "npm:@webb-tools/tangle-substrate-types@^0.5.1"; | |
import { ApiPromise, WsProvider } from "npm:@polkadot/[email protected]"; | |
import { Keyring } from "npm:@polkadot/[email protected]"; | |
import { | |
hexToU8a, | |
stringToU8a, | |
u8aToHex, | |
u8aToString, | |
} from "npm:@polkadot/[email protected]"; | |
import { decodeAddress, keccakAsU8a } from "npm:@polkadot/[email protected]"; |
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 "npm:@webb-tools/tangle-substrate-types@^0.5.1"; | |
import { ApiPromise, WsProvider } from "npm:@polkadot/[email protected]"; | |
import { | |
hexToU8a, | |
stringToU8a, | |
u8aToHex, | |
u8aToString, | |
} from "npm:@polkadot/[email protected]"; | |
import { decodeAddress } from "npm:@polkadot/[email protected]"; | |
import * as ethers from "npm:[email protected]"; |
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
#[test] | |
fn extended_witness_circom2() -> Result<()> { | |
use std::collections::HashMap; | |
use ark_circom::WitnessCalculator; | |
let mut wtns = WitnessCalculator::new("./test-vectors/circom2_multiplier2.wasm").unwrap(); | |
let inputs = HashMap::from([ | |
(String::from("a"), vec![4.into()]), | |
(String::from("b"), vec![5.into()]), |
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 { | |
blake2AsU8a, | |
encodeAddress, | |
} from "https://esm.sh/@polkadot/util-crypto"; | |
import { | |
hexToU8a, | |
stringToU8a, | |
u8aConcat, | |
} from "https://esm.sh/@polkadot/util"; |
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
-- Contains Neovim/Vim API and Settings. | |
vim.g.mapleader = " " | |
vim.g.maplocalleader = " " | |
local opt = vim.opt | |
opt.hlsearch = false | |
opt.autowrite = true -- Enable auto write | |
opt.clipboard = "unnamedplus" -- Sync with system clipboard |
NewerOlder