Skip to content

Instantly share code, notes, and snippets.

View Glowin's full-sized avatar

Glow Chiang Glowin

View GitHub Profile
@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;
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 / 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
{"sig":"88eadd2cd562d75f4289f4552e7a28f676fe10db20c249a75e3674e7e7716ba2ebc36856690803177fc249413c67a9687f3b1b0f9c18e12b394b0b82f66268df0","msghash":"2a59af2a054fbd6223113a342ca6fa461a0b7a225402f8a08c05a3b0d374c7ba"}
@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