Skip to content

Instantly share code, notes, and snippets.

View Glowin's full-sized avatar

Glow Chiang Glowin

View GitHub Profile
@Glowin
Glowin / douyin.py
Last active November 27, 2019 08:03
2019年掘金 1024 特别视频活动抽奖代码 https://juejin.im/post/5daeffcb5188257a63539bae
import os
import json
import random
path = "/Users/glow/Desktop/aa/douyin/json" # json 文件位置
files = os.listdir(path)
jueyou = {} # 存储抖音所有掘友的 ID 和留言内容 为词典
nameList = [] # 存储掘友 ID
{"sig":"88eadd2cd562d75f4289f4552e7a28f676fe10db20c249a75e3674e7e7716ba2ebc36856690803177fc249413c67a9687f3b1b0f9c18e12b394b0b82f66268df0","msghash":"2a59af2a054fbd6223113a342ca6fa461a0b7a225402f8a08c05a3b0d374c7ba"}
@Glowin
Glowin / BPA-sample.py
Created January 11, 2018 06:16
自动监测 VVPool 矿池的矿机,如果掉线立即发送微信提醒
# -*- coding: utf-8 -*-
# 0. 安装 python 2.7 和 beautifulSoup https://www.crummy.com/software/BeautifulSoup/bs4/doc/
# 1. url 参数填写你的 VVPool 钱包主页地址,暂时只支持 VVPool
# 2. http://sc.ftqq.com/ 完成账号绑定后,在 http://sc.ftqq.com/?c=code 拿到 key
# 3. 更新文件同步在QQ群:617042593
from bs4 import BeautifulSoup
import requests
import time
server {
listen 80;
root /home/glow/www/wordpress;
index index.php index.html index.htm;
server_name example.com;
access_log /var/log/nginx/wordpress-access.log;
error_log /var/log/nginx/wordpress-error.log;
@Glowin
Glowin / designer.html
Created August 30, 2014 09:35
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@Glowin
Glowin / dabblet.html
Created May 2, 2013 10:11 — forked from anonymous/dabblet.html
Untitled
<P>&nbsp;&nbsp;秦奋忏悔了4个小时,牧师受不了了。<br><br>&nbsp;&nbsp;牧师说:我们的教堂太小了,装不下他那么大的罪恶,前面还有一个比较大的教堂。
@Glowin
Glowin / rss.py
Created February 17, 2013 06:58
我的 calibre RSS订阅列表
from calibre.web.feeds.news import BasicNewsRecipe
class myFeed (BasicNewsRecipe):
__author__ = u'Glowin <jiangbian66@gmail.com>'
__url__ = 'http://glowface.net'
__version__ = '1.0.1'
__license__ = 'GPL v3'
__copyright__ = u'2013, Glowin <jiangbian66@gmail.com>'
title = u'My Fav Feed'
description = u'Founded in September 2006, Smashing Magazine delivers useful and innovative information to Web designers and developers. Our aim is to inform our readers about the latest trends and techniques in Web development. We try to persuade you not with the quantity but with the quality of the information we present. Smashing Magazine is and always has been independent.'
@Glowin
Glowin / qmfl_portal.js
Last active December 12, 2015 02:09
腾讯音乐2012年终盘点音乐播放器代码
if (typeof (MUSIC) == "undefined" || !MUSIC) {
var MUSIC = {version: "1.0",_QMFL: true,_debugMode: false};
}
MUSIC.emptyFn = function() {
};
MUSIC.returnFn = function(v) {
return v;
};
(function() {
@Glowin
Glowin / fm.js
Last active December 10, 2015 11:08
百度随心听 http://fm.baidu.com 的核心播放代码
(function(a, b) {
function c(b, c) {
var g = b.nodeName.toLowerCase();
if ("area" === g) {
var g = b.parentNode, i = g.name;
if (!b.href || !i || "map" !== g.nodeName.toLowerCase())
return !1;
g = a("img[usemap=#" + i + "]")[0];
return !!g && d(g)
}
@Glowin
Glowin / ls.php
Created December 19, 2012 02:32 — forked from se4c0met/ls.php
<?php
/*
due to the open_basedir restriction, $tgtPath must be something like the following path param:
http://<your domain>.aws.af.cm/ls.php?path=/var/vcap.local/dea/apps/f-0-21341234123412abcdefgc75cc0f96b9/app/
to discover what are the allowed paths, try supplying any path, e.g. '/' then view the error logs via:
af logs <your app name>
*/