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" | |
| "log" | |
| "net" | |
| "net/http" | |
| "time" | |
| ) |
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 ( | |
| "container/heap" | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| const nRequester = 100 |
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 ( | |
| "encoding/xml" | |
| "fmt" | |
| pkg "xml_unparsed/xmlmap" | |
| //pkg "xml_unparsed/xmlslice" | |
| ) |
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
| /* source: https://stackoverflow.com/a/1371654 | |
| * Pro: The transitions appear clearly in source code | |
| * Cons: need a lookup function (but could it be more cache efficient ? See data structures approach of N. Askitis) | |
| */ | |
| int entry_state(void); | |
| int foo_state(void); | |
| int bar_state(void); | |
| int exit_state(void); | |
| /* array and enum below must be in sync! */ |
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
| subex ./ git log --oneline | |
| NOTES: | |
| git repository not tested | |
| work only at first directory level | |
| Could be useful with git aliases to run on a list of repos |
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
| ctrl-z | |
| bg | |
| ./fdredir.bash | |
| # shell | |
| disown |