- 使用 SDK 搭建一个简易网站
- Motoko 语言简介
- Canister 智能合约
- 用 Motoko 做后端
- 用 Javascript 做前端
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
def calc_next_block_base_fee(gas_used, gas_limit, base_fee, elasticity_multiplier, max_change_denominator): | |
# Calculate the target gas by dividing the gas limit by the elasticity multiplier. | |
gas_target = gas_limit // elasticity_multiplier | |
if gas_used == gas_target: | |
return base_fee | |
elif gas_used > gas_target: | |
# Calculate the increase in base fee based on the formula defined by EIP-1559. | |
return base_fee + max( | |
1, |
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
#!/bin/bash | |
while true; do | |
cast call "0x1A46be28AB241F5A64F82ddFc384911520E3d557" "futuresUploadBatchId()" -r "https://rpc-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz" | |
sleep 5 | |
done |
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
module { | |
public type BatchId = Nat; | |
public type BatchOperationKind = { | |
#CreateAsset : CreateAssetArguments; | |
#UnsetAssetContent : UnsetAssetContentArguments; | |
#DeleteAsset : DeleteAssetArguments; | |
#SetAssetContent : SetAssetContentArguments; | |
#Clear : ClearArguments; | |
}; | |
public type ChunkId = Nat; |
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
- https://education.github.com/pack GitHub学生包,需用教育邮箱验证。各种福利,可从DigitalOcean上手
- https://github.com/ripienaar/free-for-dev 本文尽量不与此项目重复
- https://github.com/AchoArnold/discount-for-student-dev
- https://github.com/ivmm/Student-resources
DC竞赛:http://www.dcjingsai.com/ 阿里天池:https://tianchi.aliyun.com/ 京东JDATA:https://jdata.jd.com/ DataFountain:https://www.datafountain.cn/ Kesci:https://www.kesci.com/home/competition 百度大脑:https://aistudio.baidu.com/aistudio/competition 腾讯广告:https://algo.qq.com/application/home/home/index.htm AI争霸赛:http://www.justallinai.com
其中,阿里天池和腾讯、京东、百度比赛的大神太多,AI争霸赛是新起来的小平台,最近在搞AI翻译比赛,一等奖60w人民币奖金,很多大神不知道,新手来说拿奖比较容易
go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,https://goproxy.dev.longbridge-inc.com,direct
go env -w GOPRIVATE="*.5th.im"
NewerOlder