This file contains 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" | |
"runtime" | |
) | |
type LogHour struct { | |
pv uint32 | |
} |
This file contains 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 ( | |
"log" | |
"net" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" | |
"time" |
This file contains 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
//ReversePolishnotation,RPN | |
//逆波兰表达式相关 | |
//lexer 是一个中缀数学四则计算表达式词法解析器 | |
package rpn | |
import ( | |
"errors" | |
) | |
type Token int |
This file contains 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 ( | |
"flag" | |
"fmt" | |
"os" | |
"path/filepath" | |
"github.com/cheggaaa/pb" | |
"github.com/typepress/db" |
This file contains 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 ( | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" | |
) | |
func main() { |
This file contains 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
go get -u golang.org/x/crypto/bcrypt | |
go get -u golang.org/x/crypto/blowfish | |
go get -u golang.org/x/crypto/bn256 | |
go get -u golang.org/x/crypto/cast5 | |
go get -u golang.org/x/crypto/curve25519 | |
go get -u golang.org/x/crypto/hkdf | |
go get -u golang.org/x/crypto/md4 | |
go get -u golang.org/x/crypto/nacl/box | |
go get -u golang.org/x/crypto/nacl/secretbox | |
go get -u golang.org/x/crypto/ocsp |
This file contains 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 LOOP = 'LOOP' + Math.random(), | |
BREAK = 'BREAK' + Math.random() | |
/** | |
htmlLex 对合法 html 文本进行词法解析. | |
参数: | |
合法 html 文本 | |
*/ | |
function htmlLex() { | |
var pos, m, k, v, html, fn |
This file contains 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
// https://developer.mozilla.org/en-US/docs/Web/Events | |
(function(global) { | |
"use strict" | |
global.StandardEvents = { | |
"Animation": { | |
"animationend": { | |
"url": "https://developer.mozilla.org/en-US/docs/Web/Events/animationend", | |
"Specification": "CSS Animations", | |
"Interface": "AnimationEvent", | |
"Bubbles": true, |
This file contains 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 batch = require('gulp-batch'); | |
var gulp = require('gulp'); | |
function getPackageJson() { | |
var fs = require('fs'); | |
return JSON.parse(fs.readFileSync('./package.json', 'utf8')); | |
}; | |
gulp.task('bump', function(cb) { | |
var tag = require('minimist')(process.argv.slice(2)).tag || 'patch'; |
This file contains 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
%YAML 1.2 | |
--- | |
# http://www.sublimetext.com/docs/3/syntax.html | |
name: zxx | |
file_extensions: | |
- zxx | |
first_line_match: "-[*]-( Mode:)? Zxx -[*]-" | |
scope: source.zxx | |
contexts: |
OlderNewer