Skip to content

Instantly share code, notes, and snippets.

View kaichaosun's full-sized avatar
💭
👦

kaichao kaichaosun

💭
👦
View GitHub Profile
  1. I have been researching on various cross-platform developer frameworks, including Flutter/Dart, Wails/Go, Tauri/Rust, and ReactNative/Javascript. In order to choose the best tools for your project, it is important to consider the following Pros and Cons.
framework/language stable or not desktop support mobile support ecosystem libraries tutorias & document
Flutter/Dart yes good very good not good very good
Wails/Go yes very good planed very good good
Tauri/Rust yes very good in development good good
ReactNative/Javascript yes no good very good good
SocketRuntime/AnyBa
@kaichaosun
kaichaosun / course_poe_dev.md
Last active May 21, 2024 06:13
Primer course - Proof of Existence development

作业

选择题

  1. 哪一个不是Substrate FRAME内置的pallets

a. balances

b. sudo

did:3:kjzl6cwe1jw14b9tdb7h0xsxys7m2a0rb3kwuqlzgkcwrmt6h0b1esmmz2ndnti

第一课作业和答案

选择题

  1. Substrate 存储链上数据所使用的编码格式是哪个?
  • a. RLP
  • b. JSON
  • c. SCALE

作业:

选择题

  1. 选出不是Rust枚举类型的选项

    a. Option

    b. Result<T, E>

// React and Semantic UI elements.
import React, { useState, useEffect } from 'react';
import { Form, Input, Grid, Message } from 'semantic-ui-react';
// Pre-built Substrate front-end utilities for connecting to a node
// and making a transaction.
import { useSubstrate } from './substrate-lib';
import { TxButton } from './substrate-lib/components';
// Polkadot-JS utilities for hashing data.
import { blake2AsHex } from '@polkadot/util-crypto';
@kaichaosun
kaichaosun / node_template_metadata_v11.json
Created May 20, 2020 06:03
Metadata from node template
{
"magicNumber":1635018093,
"metadata":{
"V11":{
"modules":[
{
"name":"System",
"storage":{
"prefix":"System",
"items":[
env JAVA_OPTS="-Djava.rmi.server.hostname=localhost \
                -Dcom.sun.management.jmxremote \
                -Dcom.sun.management.jmxremote.port=9999 \
                -Dcom.sun.management.jmxremote.rmi.port=9999 \
                -Dcom.sun.management.jmxremote.local.only=false \
                -Dcom.sun.management.jmxremote.authenticate=false \
                -Dcom.sun.management.jmxremote.ssl=false" sbt run
@kaichaosun
kaichaosun / substrate_runtime_metadata.json
Last active July 20, 2019 16:13
The JSON format of Substrate runtime metadata, runtime implementation: https://github.com/kaichaosun/substrate-real-estate-node
{
"modules":[
{
"name":"system",
"prefix":"System",
"storage":[
{
"name":"AccountNonce",
"modifier":"Default",
"type":{
@kaichaosun
kaichaosun / ipfs-server-setup.md
Created April 29, 2019 15:44 — forked from claus/ipfs-server-setup.md
Host Your Site Under Your Domain on IPFS

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget: