Skip to content

Instantly share code, notes, and snippets.

View gu-fan's full-sized avatar
🏠
Working from home

Rykk gu-fan

🏠
Working from home
  • china
View GitHub Profile
www.163.com
www.acfun.tv
www.bilibili.com
www.dapenti.com
www.douban.com
www.qq.com
www.qzone.com
www.sina.com
www.sohu.com
www.zhihu.com
$dynamic_table.handsontable
startRows: 15
startCols: items_len
minSpareRows: 1
colHeaders: $.cs_data.cs_items_name
data: load_item()
columns: item_col_settings
afterChange: (changes, source)->
if changes != null
row = changes[0][0]
fun! s:convert(options) "{{{
...
let exe = 'rst2'.ft.'2.py'
echoe exe
...
echoe exe
call s:sys( exe." ". style ." ". args ." "
\.shellescape(input)
from flask import Flask, render_template, request
# from flask.ext.socketio import SocketIO, emit
import os
import rstdoc
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
app.debug = True
{'view_args': {}, 'files': ImmutableMultiDict([]), 'cookies': {}, 'form': ImmutableMultiDict([]), 'stream': <cStringIO.StringO object at 0x7fd9e4af31f0>, '_parsed_content_type': ('', {}), 'shallow': False, 'url_rule': <Rule '/' (PUT, HEAD, POST, OPTIONS, GET) -> index>, 'environ': {'wsgi.multiprocess': False, 'SERVER_SOFTWARE': 'Werkzeug/0.9.6', 'SCRIPT_NAME': '', 'HTTP_TRANSFER_ENCODING': 'chunked', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x7fd9e21b0aa0>, 'CONTENT_LENGTH': '', 'HTTP_USER_AGENT': 'curl/7.35.0', 'SERVER_NAME': '127.0.0.1', 'REMOTE_PORT': 59498, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '5000', 'werkzeug.request': <Request 'http://127.0.0.1:5000/' [POST]>, 'wsgi.input': <socket._fileobject object at 0x7fd9e21aa150>, 'HTTP_HOST': '127.0.0.1:5000', 'wsgi.multithread': False, 'HTTP_EXPECT': '100-continue', 'HTTP_ACCEPT': '*/*', 'wsgi.version': (1, 0), 'wsgi.run_once': False, 'wsgi.errors
{'view_args': {}, 'files': ImmutableMultiDict([]), 'cookies': {}, 'form': ImmutableMultiDict([('form', u'data'), ('file', u'-')]), 'stream': <werkzeug.wsgi.LimitedStream object at 0x7fb1ecfb4c10>, '_parsed_content_type': ('multipart/form-data', {'boundary': '------------------------334fb58c550d3aab'}), 'shallow': False, 'url_rule': <Rule '/' (PUT, HEAD, POST, OPTIONS, GET) -> index>, '_cached_data': '', 'environ': {'wsgi.multiprocess': False, 'SERVER_SOFTWARE': 'Werkzeug/0.9.6', 'SCRIPT_NAME': '', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x7fb1ecfbcaa0>, 'CONTENT_LENGTH': '237', 'HTTP_USER_AGENT': 'curl/7.35.0', 'SERVER_NAME': '127.0.0.1', 'REMOTE_PORT': 59806, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '5000', 'werkzeug.request': <Request 'http://localhost:5000/' [POST]>, 'wsgi.input': <socket._fileobject object at 0x7fb1ecfb61d0>, 'HTTP_HOST': 'localhost:5000', 'wsgi.multithread': False, 'HTTP_EXPEC
NOTE: this is NOT commented
#Web role handlers
- name: start nginx
service: state=started name=nginx
- name: restart nginx
service: state=restarted name=nginx
- name: check webapp
wait_for_cmd: shell='curl -s -o /dev/null -k -w "%{http_code}" {{local_webapp_url}} | grep 401' delay=15 timeout=60 repeat_delay=3
" www.11.cc [email protected] http://www.163.com www.123.com mailto:[email protected]
" [email protected] [email protected] www.143.com etee.vim [email protected]
" www.163.com jfeoijf
let g:clickable_browser = 'firefox'
let config = clickable#config#init()
for C in config.All
let c = C.new()
"
" __ _(_)_ __ ___ _ __ ___
" \ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" (_)_/ |_|_| |_| |_|_| \___|
"
" Author: joe di castro <[email protected]>
" Source: http://github.com/joedicastro/dotfiles/tree/master/vim
"
" This file is under a lot of stress, it changes frequently, so it's better if