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
| 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
| <?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
| 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 | |
| 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
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "log" | |
| "runtime" | |
| "sync" | |
| "time" | |
| ) |
NewerOlder