//https://y.gtimg.cn/music/portal/js/common/pkg/common_b40e83e.js?max_age=31536000:formatted
formatMusic: function(e) {
function t(e) {
if (!e)
return {};
if ("string" == typeof e)
try {
e = JSON.parse(e)
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
import csv | |
import pprint | |
# opens csv file and assingns it to an object | |
with open('data-text.csv') as csvfile: | |
# Use Sniffer to figure out csv dialect | |
dialect = csv.Sniffer().sniff(csvfile.read(1024)) | |
csvfile.seek(0) | |
# pass the dialect to filereader to read the file | |
reader = csv.reader(csvfile, dialect) |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: pang | |
* Date: 2019/3/22 0022 | |
* Time: 1:11 | |
* | |
* 使用Bark App的推送url操作 | |
* | |
* |
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
:root { | |
--heng-fa-chuen: #b51921; | |
--tai-koo: #b2103e; | |
--kowloon-bay: #c41832; | |
--tseung-kwan-o: #ef342a; | |
--wui-kai-sha: #a84d18; | |
--po-lam: #f68f26; | |
--sai-wan-ho: #faca07; | |
--disneyland-resort: #07594a; | |
--skek-kip-mei: #4ba946; |
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
/* | |
js 版本的print_r() | |
Return 参数是用在递归函数里的,判断是alert()还是return | |
blank 参数是用于输出的样式更易于查看 | |
问题是没有像php的print_r()一样输出多维数组样式 | |
2015年编写 未完善的 | |
*/ | |
function print_r(output, Return) { | |
function isArray(obj) { |
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
<?php | |
# Nginx don't have PATH_INFO | |
if (!isset($_SERVER['PATH_INFO'])) { | |
$_SERVER['PATH_INFO'] = substr($_SERVER["ORIG_SCRIPT_FILENAME"], strlen($_SERVER["SCRIPT_FILENAME"])); | |
} | |
$request = substr($_SERVER['PATH_INFO'], 1); | |
$file = $request; | |
$fp = @fopen($file, 'rb'); |
NewerOlder