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
::-webkit-scrollbar { | |
width: 10px !important; | |
height: 10px !important; | |
-webkit-appearance: none | |
} | |
::-webkit-scrollbar-thumb { | |
height: 5px; | |
border: 1px solid transparent; | |
border-top: none; |
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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
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
func unicode2utf8(source string) string { | |
var res = []string{""} | |
sUnicode := strings.Split(source, "\\u") | |
var context = "" | |
for _, v := range sUnicode { | |
var additional = "" | |
if len(v) < 1 { | |
continue | |
} | |
if len(v) > 4 { |
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 ( | |
"bytes" | |
"io/ioutil" | |
"golang.org/x/text/encoding/traditionalchinese" | |
"golang.org/x/text/encoding/simplifiedchinese" | |
"golang.org/x/text/transform" | |
) | |
//convert GBK to UTF-8 | |
func Decodegbk(s []byte) ([]byte, error) { | |
I := bytes.NewReader(s) |
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 "bytes" | |
func StreamToByte(stream io.Reader) []byte { | |
buf := new(bytes.Buffer) | |
buf.ReadFrom(stream) | |
return buf.Bytes() | |
} | |
func StreamToString(stream io.Reader) string { | |
buf := new(bytes.Buffer) |
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
Python 🕓 561h43m ██████████▎░░░░░░░░░░ 49.2% | |
Rust 🕓 164h51m ███░░░░░░░░░░░░░░░░░░ 14.4% | |
Vue.js 🕓 83h15m █▌░░░░░░░░░░░░░░░░░░░ 7.3% | |
Dart 🕓 71h27m █▎░░░░░░░░░░░░░░░░░░░ 6.3% | |
TOML 🕓 49h36m ▉░░░░░░░░░░░░░░░░░░░░ 4.3% |