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
version: "3.6" | |
services: | |
ssr: | |
image: winterssy/shadowsocksr:latest | |
container_name: ssr | |
# ports: | |
# - 8989:8989 | |
# - 8686:8686 | |
network_mode: "host" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[ | |
"昔时贤文,诲汝谆谆,集韵增文,多见多闻。", | |
"观今宜鉴古,无古不成今。", | |
"知己知彼,将心比心。", | |
"酒逢知己饮,诗向会人吟。", | |
"相识满天下,知心能几人。", | |
"相逢好似初相识,到老终无怨恨心。", | |
"近水知鱼性,近山识鸟音。", | |
"易涨易退山溪水,易反易覆小人心。", | |
"运去金成铁,时来铁似金,读书须用意,一字值千金。", |
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
[ | |
"昔时贤文,诲汝谆谆,集韵增文,多见多闻。", | |
"观今宜鉴古,无古不成今。", | |
"知己知彼,将心比心。", | |
"酒逢知己饮,诗向会人吟。", | |
"相识满天下,知心能几人。", | |
"相逢好似初相识,到老终无怨恨心。", | |
"近水知鱼性,近山识鸟音。", | |
"易涨易退山溪水,易反易覆小人心。", | |
"运去金成铁,时来铁似金,读书须用意,一字值千金。", |
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
// some debug Macro | |
// #define DEBUG | |
#ifndef DEBUG_PRINT | |
#ifdef DEBUG | |
#define DEBUG_PRINT(fmt, args...) fprintf(stderr, fmt, ## args) | |
#else | |
#define DEBUG_PRINT(fmt, args...) /* Don't do anything in release builds */ | |
#endif | |
#endif //DEBUG_PRINT |
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
import os,sys | |
flist=[] | |
with open("/home/rui/tmp/sflist.txt") as fp: | |
for l in fp.readlines(): | |
l2=l.strip() | |
if l2=="#END": | |
break | |
flist.append(l2) | |
with open("/home/rui/tmp/output.txt","w") as fpo: |
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
import ( | |
"math" | |
) | |
func fib(N int) int { | |
N=N-1; | |
s5:=math.Sqrt(5); | |
return int(math.Round((math.Pow((1+s5)/2 , float64(N+1)) - math.Pow((1-s5)/2, float64(N+1))) /s5)); | |
} |
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
1 |
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
58 |