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
/** | |
* @param {String} msg 错误信息 | |
* @param {String} url 出错的文件 | |
* @param {Long} line 出错代码的行号 | |
* @param {Long} col 出错代码的列号 | |
* @param {Object} error 错误的详细信息,Anything | |
*/ | |
window.onerror = function(msg,url,line,col,error){ | |
//没有URL不上报!上报也不知道错误 | |
if (msg != "Script error." && !url){ |
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
from hashlib import md5 | |
from sqlite3 import connect as sql_conn | |
from time import localtime, strftime | |
class IllegalException(Exception): | |
def __init__(self, *args): | |
super().__init__(*args) | |
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 ciphers | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha512" | |
"crypto/x509" | |
"encoding/pem" | |
"log" | |
) |
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
//author: http://github.com/wongoo | |
//date: 20190717 | |
package rsautil | |
import ( | |
"bytes" | |
"crypto" | |
"crypto/rand" | |
"crypto/rsa" |
OlderNewer