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
| package main | |
| import "golang.org/x/tour/tree" | |
| import "fmt" | |
| // Walk walks the tree t sending all values | |
| // from the tree to the channel ch. | |
| // DFS in order | |
| func Walk(t *tree.Tree, ch chan int) { | |
| if t != nil { |
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
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| // since we use waitgroup instead, no need for time anymore | |
| // "time" | |
| ) | |
| type Fetcher interface { |
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
| sudo postfix start # start postfix mail service on mac |
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
| nn_train = np.ndarray((bdata_train.shape[0],3),dtype=float,buffer=np.array([bdata_train[:,0],bdata_train[:,5],bdata_train[:,12]])) |
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
| { "name": "Delong","age": "24","College": "UW", } |