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 ( | |
| "errors" | |
| "fmt" | |
| "log" | |
| "runtime" | |
| "sync" | |
| "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
| <?php | |
| Route::group([], function () { | |
| Route::any('/{controller?}/{action?}', function($controller='', $action=''){ | |
| if (empty($controller)) { | |
| return 'welcome!'; | |
| }else { | |
| $controller = "App\\Http\\Controllers\\".ucfirst($controller).'Controller'; | |
| return App::make($controller)->$action(); | |
| } |
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
| var tempDelay time.Duration | |
| for { | |
| conn, err := listener.Accept() | |
| if err != nil { | |
| if ne, ok := err.(net.Error); ok && ne.Temporary() { | |
| if tempDelay == 0 { | |
| tempDelay = 5 * time.Millisecond | |
| } else { | |
| tempDelay *= 2 | |
| } |
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
| <?php | |
| $host = "127.0.0.1"; | |
| $_type = chr(8); | |
| $type = pack('c', 8); | |
| $code = pack('c', 0); |
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
| node { | |
| // 使用的Go版本号 | |
| def root = tool name: 'Go1103', type: 'go' | |
| // 使用的第三方包目录 | |
| def sysGoVendorPath = "/opt/govendor" | |
| // 系统编译目录 | |
| def projBuildPath = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}/" | |
| // 项目构建目录 | |
| def goBuildPath = "${projBuildPath}src/quoteserver/quotereal" | |
| // 相对编译输出文件夹名称 |
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 idcardocr | |
| import ( | |
| "bytes" | |
| "crypto/cipher" | |
| "crypto/des" | |
| ) | |
| // 3DES加密 |
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" | |
| "reflect" | |
| ) | |
| type Aer interface { | |
| GetVal() string | |
| SetVal(int) |
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 tools | |
| import ( | |
| "bytes" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "crypto/x509/pkix" | |
| "encoding/asn1" | |
| "encoding/pem" |
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 tools | |
| // 谷歌验证 | |
| // clone from: https://github.com/928799934/googleAuthenticator | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha1" | |
| "encoding/base32" | |
| "encoding/hex" | |
| "errors" |
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
| [global_config] | |
| handle_size = -3 | |
| enabled_plugins = CustomCommandsMenu, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
| title_transmit_fg_color = "#000000" | |
| suppress_multiple_term_dialog = True | |
| title_transmit_bg_color = "#3e3838" | |
| inactive_color_offset = 1.0 | |
| [keybindings] | |
| [profiles] | |
| [[default]] |
OlderNewer