https://binaryify.github.io/NeteaseCloudMusicApi/#/?id=banner
/banner?type=0
#include <chrono> | |
#include <ctime> | |
#include <iostream> | |
#include <string> | |
/** | |
* date format to string | |
* https://cplusplus.com/reference/ctime/strftime/ | |
*/ |
#ifndef PROJECT_TIMER_HPP | |
#define PROJECT_TIMER_HPP | |
#include <ratio> | |
#include <chrono> | |
namespace datetime { | |
// DurationPeriod | |
typedef std::chrono::nanoseconds Nano; // 纳秒 <long, long> |
import ( | |
"log" | |
"golang.org/x/crypto/bcrypt" | |
) | |
// go get -u golang.org/x/crypto/bcrypt | |
func GenerateBcryptSecret(plainPwd string) (string, error) { | |
return GenerateBcryptSecretWithCost(plainPwd, bcrypt.DefaultCost) |
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha512" | |
"encoding/hex" | |
"fmt" | |
) | |
func main() { |
import java.math.BigDecimal; | |
import java.math.RoundingMode; | |
/** | |
* 两经纬度点距离计算 | |
* </p> | |
* 根据圆周率计算两点地图经纬度距离 | |
* | |
* @author MinGRn <br > MinGRn97@gmail.com | |
*/ |
import ( | |
"github.com/gocarina/gocsv" | |
"os" | |
"time" | |
) | |
type DateTime struct { | |
time.Time | |
} |
import "math" | |
// VerifyChineseMainlandIdCard 检查身份证号码合法性 | |
// | |
// Wikipedia: | |
// https://zh.wikipedia.org/wiki/中华人民共和国公民身份号码 | |
// | |
// China gov: | |
// http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm | |
// |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
public final class ResponseUtils { | |
private ResponseUtils() { | |
} | |
public static void writeJsonObject(HttpServletResponse response, Object object) { |