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
泰古大陆中部凤阳城内一派繁华,如今不过辰时街道上已是熙熙攘攘,要说到为何这凤阳城如此热闹就不得不提当朝掌权者——朱氏。 | |
自朱氏掌权这泰古大陆已经逾过万年,而凤阳正是天子所在城郡既国都所在。经过万年发展又得天子佛照,怎能不繁荣昌平。 | |
由此可见这朱氏极不简单,若是按照历史洪流的自然定则,这早该改朝换姓不知多少次,但朱家依旧稳坐泰古这处江山。究其原因就不得不提到一个隐晦:据传说在朱氏后面有仙家势力撑腰。 | |
传说天地间有规则,各上仙均不得明中参与进凡人世俗间的皇权争斗,不可做皇帝,有违者皆受天罚灰飞烟灭,永世不得超生。 | |
仙者法术高强,求的是长生大道,这点凡间小小的皇权自然是不会放在眼中,哪怕是最初级的仙者,皇上看到了也不得不恭敬低头。这便是为何那么多人对修仙狂热追求的原因之一,按理说仙家根本就不会参与到此事中。 |
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
import { serve } from "https://deno.land/std/http/server.ts"; | |
function error(code: number): Promise<Response> { | |
const response = new Response(null, { | |
status: code, | |
}); | |
return Promise.resolve(response); | |
} | |
function options(): Promise<Response> { |
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
(async () => { | |
const lotteryStatusUrl = 'https://bgme.me/@bgme/105206731005287886'; // 抽奖嘟文URL | |
const lotteryType = 'reblog'; // 抽奖类型:转发(reblog),收藏(favourite) | |
const candidateNumber = 5; // 候选中奖者人数 | |
main(); | |
async function main() { | |
const domain = document.location.hostname; | |
const token = JSON.parse(document.querySelector('#initial-state').text).meta.access_token; |
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
# Encode inputfile.tar.gz as a series of video frames | |
# Frames are written to frames/frameNNNN.png | |
from PIL import Image | |
with open('inputfile.tar.gz', 'rb') as f: | |
data = f.read() | |
WIDTH = 120 | |
HEIGHT = 90 | |
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8) |
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
AIGO | |
ANQUAN | |
ASIA | |
BAIDU | |
BOX | |
CITIC | |
CN | |
FAN | |
FANS | |
HK |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import requests | |
import json | |
import tarfile | |
import os | |
import click |
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
/** | |
* 新浪微博mid与url互转实用工具 | |
* 作者: XiNGRZ (http://weibo.com/xingrz) | |
*/ | |
var WeiboUtil = { | |
// 62进制字典 | |
str62keys: [ | |
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", | |
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import requests | |
import os | |
def request_status_list(instance_uri, tag_name, max_id=None): | |
api_endpoint = '/api/v1/timelines/tag/' | |
uri = instance_uri + api_endpoint + tag_name |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
from six.moves.urllib.parse import urljoin | |
def capture( | |
target_url, | |
user_agent="savepagenow (https://github.com/pastpages/savepagenow)", | |
accept_cache=False, |
NewerOlder