This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
- Lilly Ryan @attacus_au
This workshop is distributed under a CC BY-SA 4.0 license.
| # more stages... | |
| # When using a Node image, make sure to use the amd64 version, or it will take forever | |
| # GH Actions is running arm64 in a emulator (QEMU). This way, it will use the native amd64 and be much faster. | |
| FROM --platform=linux/amd64 node:19 as static-assets | |
| WORKDIR /app | |
| COPY . . | |
| RUN npm install ; npm run build | |
| # more stages... |
| function base642ab(base64) { | |
| const str = window.atob(base64); | |
| const len = str.length; | |
| const bytes = new Uint8Array(len); | |
| for (let i = 0; i < len; i++) { | |
| bytes[i] = str.charCodeAt(i); | |
| } | |
| return bytes.buffer; | |
| } |
| import { ApiPromise, WsProvider, Keyring } from "@polkadot/api"; | |
| import { expandMetadata } from "@polkadot/metadata"; | |
| import { stringCamelCase, u8aToHex } from "@polkadot/util"; | |
| import { | |
| blake2AsHex, | |
| cryptoWaitReady, | |
| encodeAddress, | |
| } from "@polkadot/util-crypto"; | |
| import type { SignerPayloadJSON, AnyJson } from "@polkadot/types/types"; |
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
| 'use strict'; | |
| (() => { | |
| class QuerySelector { | |
| constructor(origin) { | |
| /** | |
| * :nth-of-type is only ie9+ https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type |
| ---------- Usage | |
| The syntax created by these parameters is placed in an alert's description on TradingView | |
| to be utilized by Autoview, a Chrome Extension. | |
| Autoview: https://chrome.google.com/webstore/detail/autoview/okdhadoplaoehmeldlpakhpekjcpljmb | |
| > Website: https://autoview.with.pink | |
| > Help: https://use.autoview.with.pink | |
| > Discord: https://discordapp.com/invite/BFz8VPn | |
| TradingView: https://tradingview.go2cloud.org/aff_c?offer_id=2&aff_id=1187 |
| # pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ | |
| # expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu | |
| # tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks | |
| # OSX terminal | |
| brew install qemu | |
| # kernel-qemu is a linux kernel compiled with ARM1176 support. | |
| # learn more here: http://xecdesign.com/compiling-a-kernel/ | |
| curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu | |
| curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest |