create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
(progn | |
;; http://d.hatena.ne.jp/kiwanami/20110224/1298526678 | |
(defvar ac-yas-expand-autostart-backup nil "保存用") | |
(defun ac-yas-expand-start () | |
"yasnippet展開開始時にはACを止める" | |
(setq ac-yas-expand-autostart-backup ac-auto-start) | |
(setq ac-auto-start nil)) | |
(defun ac-yas-expand-end () |
#!/usr/bin/env python | |
# Monitor for new questions on StackOverflow | |
# Author: Xueqiao Xu <xueqiaoxu@gmail.com> | |
import time | |
import json | |
import gzip | |
import pprint | |
import urllib | |
import urllib2 |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
import os.path | |
import contextlib | |
import hashlib | |
from flask import Flask | |
from flask.helpers import safe_join | |
# Injects an "h" parameter on the URLs of static files that contains a hash of | |
# the file. This allows the use of aggressive cache settings on static files, | |
# while ensuring that content changes are reflected immediately due to the | |
# changed URLs. Hashes are cached in-memory and only checked for updates when |
#! /usr/bin/env python | |
"""{escher} -- one-file key-value storage. | |
What? | |
This is a toy application to manage persistent key-value string data. | |
The file {escher} is *both* the application and its data. | |
When you run any of the commands below, the file will be executed and, | |
after data change, it will rewrite itself with updated data. | |
You can copy the file with whatever name to create multiple datasets. |
/* | |
gulpfile from one of my React applications which has a gulp --production build | |
set up. | |
Assumptions: | |
1. All your own .js/.jsx modules are somewhere under ./src, have unique | |
filenames and use Node.js-style requires WITHOUT any path information, just | |
the name of another module somewhere under ./src |
# 用于view的装饰器 | |
from ..utils.permissions import VisitorPermission | |
@bp.route('/signin', methods=['GET', 'POST']) | |
@VisitorPermission() | |
def signin(): | |
"""登陆""" | |
form = SigninForm() | |
if form.validate_on_submit(): | |
signin_user(form.user) |