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
<html> | |
<head> | |
<hta:APPLICATION | |
CAPTION="no" | |
SCROLL="no" |
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
#!/bin/bash | |
find . -type d -printf "%f\n" > file_list.tmp | |
sed -i -e 's/^/"/g' -e 's/$/"/g' -e '1d' file_list.tmp | |
mkdir origin/ converted/ | |
function run_convert(){ | |
f_in=$@ | |
f_out=$(echo ${f_in}|sed 's/$/\.zip/g') |
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, |
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
/** | |
* 新浪微博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 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
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
# 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
(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; |
OlderNewer