This document is still a scratch
You’ll want a directory to do this in so that you don’t screw up your machine.
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<title>crispr scanner, made by Liang Cai</title> | |
<style type="text/css" media="screen"><!-- | |
body{margin:25px;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:100%;line-height:1.5} | |
article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block} | |
h1,h2,h3,h4{margin:1em 0 .5em;line-height:1.25;font-weight:700} | |
h1{font-size:2em} |
/** | |
* GenPAC 0.2.1 http://jeeker.net/projects/genpac/ | |
* Generated: Fri, 17 May 2013 14:15:55 GMT | |
* GFWList Last-Modified: Fri, 17 May 2013 12:41:31 GMT | |
*/ | |
// proxy | |
var P = "PROXY 192.168.1.1:8118; DIRECT"; | |
// user rules |
$(function(){ // on dom ready | |
var cy = cytoscape({ | |
container: document.getElementById('cy'), | |
layout: { | |
name: 'cose', | |
padding: 10, | |
randomize: true | |
}, |
#coding=utf8 | |
import itchat, time | |
SINCERE_WISH = u'祝%s新年快乐!' | |
REAL_SINCERE_WISH = u'祝%s新年快乐!!' | |
def send_wishes(): | |
friendList = itchat.get_friends(update=True)[1:] | |
for friend in friendList: | |
# 如果不是演示目的,把下面的方法改为itchat.send即可 |
import re | |
from hashlib import md5 | |
from markdown import markdown | |
def gfm(value): | |
# Extract pre blocks. | |
extractions = {} | |
def pre_extraction_callback(matchobj): | |
digest = md5(matchobj.group(0).encode('utf-8')).hexdigest() | |
extractions[digest] = matchobj.group(0) |
#coding=utf8 | |
import itchat | |
CHATROOM_NAME = 'friend' | |
CHATROOM = None | |
HELP_MSG = u'''\ | |
好友状态监测 | |
* 发送名片将会返回好友状态 | |
* 请确有名为%s的未使用的群聊 | |
* 并将该群聊保存到通讯录 |
# Requires poster https://pypi.python.org/pypi/poster/ | |
# Requires webapp2 on App Engine for demo | |
# Example usage: | |
# import requests | |
# 'http://upload.wikimedia.org/math/4/7/9/479d9d21b183eb546b771447fcf69ddf.png' | |
# response = requests.post('http://myapp.appspot.com/i/post_from_url', {'url': wikipediaimg}) | |
import json |
# /etc/nginx/sites-available/blog.shellexy.info | |
server { | |
resolver 8.8.8.8; | |
listen 80; | |
server_name blog.shellexy.info; | |
#access_log off; | |
access_log /var/log/nginx/blog.shellexy.info.access.log; | |
location / { | |
#避免远方启用压缩导致无法替换纯文本 | |
proxy_set_header Accept-Encoding ""; |
# -*- coding: utf-8 -*- | |
""" | |
* 关于坚果云的 Webdav 的配置可以参看: https://griddiary.uservoice.com/knowledgebase/articles/478287-%E5%9D%9A%E6%9E%9C%E4%BA%91-webdav-%E8%AE%BE%E7%BD%AE%E6%95%99%E7%A8%8B | |
* 使用前请先安装 `easywebdav` : ``pip install easywebdav`` | |
坚果云 Webdav | |
============ | |
假设有下面的坚果云目录结构 |