Skip to content

Instantly share code, notes, and snippets.

View ZoomQuiet's full-sized avatar
🖖
Sayeahooo

Zoom.Quiet ZoomQuiet

🖖
Sayeahooo
View GitHub Profile
@ZoomQuiet
ZoomQuiet / autopostbar.py
Last active October 14, 2017 15:15 — forked from qingfeng/autopostbar.py
自动化发布以及 牛妞的起名脚本
#!/usr/bin/env python
# encoding: utf-8
from twill import *
import urllib2,re
USERNAME = 'YOUR USERNAME'
PASSWORD = 'YOUR PASSWORD'
@ZoomQuiet
ZoomQuiet / nsca_d.py
Created November 20, 2009 10:52 — forked from qingfeng/client.sh
import tornado.httpserver
import tornado.ioloop
import tornado.web
import time
import os
CMD_FILE = "/tmp/nagios.cmd"
def process_data(data):
resutls = data.split(";")
@ZoomQuiet
ZoomQuiet / gist:948080
Created April 29, 2011 09:08 — forked from lxneng/gist:472566
from lxneng 通用的 fabric 部署脚本原型
#!/usr/bin/env python
# encoding: utf-8
"""
Usage:
fab deploy:appname
"""
from fabric.api import env, run, cd, local, put
env.hosts = ['myserver.com']
env.user = 'eric'
#!/usr/bin/env python
import os, web, sys
sys.path.append(os.path.dirname(__file__))
urls = (
r'/', 'Home',
)
//已发送邮件的标记内容
var EMAIL_SENT = "EMAIL_SENT";
//记录已发送记录的列,一般为原有数据的后面一列,从0开始
var EMAIL_SENT_COLUMN = 9;
// 发送的邮件主题
var SUBJECT = "北京GDG之编程语言沙龙参会确认函";
// email 所在的列,从0开始算
// email 所在的列,从0开始算。email 作为唯一标示,用于去重。
var emailColumn = 1;
// 电子表格的 doc key
key = "0AhIp-TG_44qxdHFnTDFUeDNOUEp2LVVpbmVMa25QQVE";
/**
* 统计报名人数,根据 email 唯一标示去除重复的报名。
*/
function countUniqueRows() {
@ZoomQuiet
ZoomQuiet / moc-on-osx.md
Last active January 2, 2016 02:09 — forked from RobertAudi/moc-on-osx.md
Chinese verion and appended how to install ncurses for display mutli-byte words

MOCp on OS X 10.9 Mavericks with CJK

thanx: AzizLight/moc-on-osx.md

最近升级到 了 MAC OS X 10.9 Mavericks, 一直以来使用 brew 安装的 MOCP 这就不成了,决定折腾清楚,并分享大家

依赖 Requirements

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ZoomQuiet
ZoomQuiet / app.yaml
Last active August 29, 2015 14:06 — forked from darktable/app.yaml
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
@ZoomQuiet
ZoomQuiet / README.md
Last active August 29, 2015 14:24 — forked from wickman/README.md

Python development using Pants

brian wickman - @wickman

[TOC]

Why use Pants for Python development?

Pants makes the manipulation and distribution of hermetically sealed Python environments