##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
| # Browser caching of static assets. | |
| location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ { | |
| expires 7d; | |
| add_header Cache-Control "public, no-transform"; | |
| } | |
| # Media: images, icons, video, audio send expires headers | |
| location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ { | |
| expires 1M; | |
| access_log off; |
| const TronWeb = require('tronweb'); | |
| const HttpProvider = TronWeb.providers.HttpProvider; | |
| const fullNode = new HttpProvider("https://api.trongrid.io"); | |
| // const fullNode = new HttpProvider("http://192.168.1.162:8090"); | |
| const solidityNode = new HttpProvider("https://api.trongrid.io"); | |
| const eventServer = new HttpProvider("https://api.trongrid.io"); | |
| const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145"; | |
| const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey); | |
| import { reactive, watch } from 'vue' | |
| import { useStore } from 'vuex' | |
| // version 1 | |
| setup() { | |
| const store = useStore() | |
| // ref version | |
| // const document = ref(store.state.data) | |
| // const pseudoProp = ref(store.state.data) | |
| const thisComponentState = reactive({ | |
| document: store.state.data, |
| const numbers = [1,2,3]; | |
| //Spread Operator | |
| const newNumbers = [...numbers,4]; | |
| //const newNumbers = [numbers,4]; | |
| console.log(newNumbers); | |
| //JS_Practice | |
| // function printMyName(name) { | |
| // console.log(name); | |
| // } | |
| // const multiply = (number) => { | |
| // return number*2; | |
| // } | |
| // console.log(multiply(2)); |