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 ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "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
| var qiniu = require("qiniu"); | |
| var crypto = require('crypto'); | |
| var urllib = require('urllib'); | |
| var url = require('url'); | |
| var LineByLineReader = require('line-by-line'); | |
| var ak = '**'; | |
| var sk = '**'; | |
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 qiniu = require("qiniu"); | |
| var crypto = require('crypto'); | |
| var urllib = require('urllib'); | |
| var url = require('url'); | |
| var fs = require('fs'); | |
| var LineByLineReader = require('line-by-line'); | |
| var request = require('request'); | |
| var ak = '**'; | |
| var sk = '**'; |
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" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| ) | |
| func main() { |
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
| crc32Blob: function (blob, cb){ | |
| var fr = new FileReader(); | |
| fr.onload = function(e){ | |
| cb(CRC32.buf(new Uint8Array(this.result)).toString(16)); | |
| }; | |
| fr.readAsArrayBuffer(blob); | |
| } | |
| post.filesize = chunk.size; | |
| upload.crc32Blob(file.getNative(), function(crc32){ |
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 qiniu = require("qiniu"); | |
| var crypto = require('crypto'); | |
| var urllib = require('urllib'); | |
| var url = require('url'); | |
| var fs = require('fs'); | |
| var LineByLineReader = require('line-by-line'); | |
| var request = require('request'); | |
| var ak = '**'; | |
| var sk = '**'; |
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" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "strings" | |
| ) |
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" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| "strings" | |
| ) |
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
| h := md5.New() | |
| io.WriteString(h, "/D1/74/D174BCBDA755B66D8D4AB5FA7CB86BB0.f4v-1599580800-wVPJsMQQX97WQIlnpBIPpy27bSzK0bOr") | |
| fmt.Printf("%x\n", h.Sum(nil)) |
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 qiniustg | |
| import ( | |
| "config" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "encoding/json" | |
| "strconv" | |
| ) |
OlderNewer