This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echomsg 'begin' | |
python <<EOF | |
# coding: utf-8 | |
import threading | |
import time | |
def func(): | |
for i in range(0, 10): | |
print i | |
time.sleep(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from unittest import TestCase | |
from werkzeug.test import Client | |
from werkzeug.wrappers import BaseResponse | |
from app import create_app | |
class TestClient(TestCase): | |
def test_root(self): | |
c = Client(create_app(), BaseResponse) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:save_cpo = &cpo | |
set cpo&vim | |
" TODO check openbrowser.vim exists. | |
command! -nargs=0 DeNA call openbrowser#open('http://dena.jp/') | |
let &cpo = s:save_cpo | |
unlet s:save_cpo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function <SNR>114_do_auto_complete..neocomplcache#is_multibyte_input の処理中に> | |
エラーが検出されました: | |
行 1: | |
E684: リストのインデックスが範囲外です: -1 | |
function <SNR>114_do_auto_complete..neocomplcache#is_multibyte_input の処理中に> | |
エラーが検出されました: | |
行 1: | |
E116: 関数の無効な引数です: char2nr(split(a:cur_text, '\zs')[-1]) > 0x80 | |
function <SNR>114_do_auto_complete..neocomplcache#is_multibyte_input の処理中に> | |
エラーが検出されました: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Insert sudden-death strings | |
" Last Change: 2012-12-28 | |
" Maintainer: Shinya Ohyanagi <[email protected]> | |
" NOTE: Original code is https://github.com/supermomonga/unite-sudden-death | |
" | |
let s:save_cpo = &cpo | |
set cpo&vim | |
function! s:draw(text) | |
let width = strlen(substitute(substitute(a:text, "[ -~。-゚]", 's', 'g'), "[^s]", 'mm', 'g')) / 2 + 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
'use strict' | |
var Sample = { | |
foo: function () { | |
var callback = this.bar; | |
callback(); | |
this.bar(); | |
}, | |
bar: function () { | |
console.log(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
syntax enable | |
set fileformats=unix,dos,mac | |
filetype plugin indent on | |
set backspace=indent,eol,start | |
set nobomb | |
set tabstop=2 shiftwidth=2 softtabstop=2 expandtab | |
nnoremap j gj | |
nnoremap k gk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set laststatus=2 | |
set statuslineheight=2 | |
set statusline=%<%f\ %m%r%h%w[%{&ff}][%{(&fenc!=''?&fenc:&enc).(&bomb?':bom':'')}]%@\ 0x%B%@%=%l,%c\ %P |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gunicorn --debug --workers=2 --worker-class="gevent" manage:app -b unix:/var/run/gunicorn.sock | |
2012-10-10 20:59:59 [4694] [INFO] Starting gunicorn 0.14.6 | |
2012-10-10 20:59:59 [4694] [INFO] Listening at: unix:/var/run/gunicorn.sock (4694) | |
2012-10-10 20:59:59 [4694] [INFO] Using worker: gevent | |
2012-10-10 20:59:59 [4697] [INFO] Booting worker with pid: 4697 | |
2012-10-10 20:59:59 [4698] [INFO] Booting worker with pid: 4698 | |
^C2012-10-10 21:00:42 [4697] [INFO] Worker exiting (pid: 4697) | |
2012-10-10 21:00:42 [4698] [INFO] Worker exiting (pid: 4698) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function java_helper#complete_done の処理中にエラーが検出されました: | |
行 5: | |
E121: 未定義の変数です: b:java_helper_last_omnibase | |
function java_helper#complete_done の処理中にエラーが検出されました: | |
行 5: | |
E15: 無効な式です: b:java_helper_last_omnibase | |
function java_helper#complete_done の処理中にエラーが検出されました: | |
行 7: | |
E121: 未定義の変数です: start | |
function java_helper#complete_done の処理中にエラーが検出されました: |