https://ja.wikipedia.org/wiki/JavaScript_Object_Notation
- Python標準に含まれている
- 仕様が厳格に決まっている
function! s:tm(timer) abort | |
" 何か時間のかかる処理 | |
for i in range(1000) | |
let a = 1 | |
endfor | |
if job_status(get(s:, 'job')) !=# 'run' | |
call timer_stop(a:timer) | |
endif | |
endfunction |
#!/usr/bin/env bash | |
cd cpython | |
make distclean | |
install_dir=$HOME/opt | |
# Install python2 | |
version=2.7.11 | |
pydir=$install_dir/python-$version |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import asyncio | |
from functools import partial | |
from wdom.document import get_document | |
from wdom.server import get_app, start_server, stop_server | |
from wdom.tag import H1, Div, Button |
diff --git a/jedi/parser/grammar3.4.txt b/jedi/parser/grammar3.4.txt | |
index d4a32b8..45f733f 100644 | |
--- a/jedi/parser/grammar3.4.txt | |
+++ b/jedi/parser/grammar3.4.txt | |
@@ -27,7 +27,8 @@ parameters: '(' [typedargslist] ')' | |
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [',' | |
['*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef]] | |
| '*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef) | |
-tfpdef: NAME [':' test] | |
+tname: NAME [':' test] |
if executable('fcitx-remote') | |
autocmd InsertLeave * call system('fcitx-remote -c') | |
else | |
autocmd InsertLeave * set iminsert=0 | |
endif |
https://ja.wikipedia.org/wiki/JavaScript_Object_Notation
#!/usr/bin/env python3 | |
import os | |
import shutil | |
# コピーしたいディレクトリにいること | |
# os.getcwd() とか ipythonからならpwdでパス確認できる | |
# 違うディレクトリにいたら移動するなりソース修正するなり | |
dstdir = 'コピー先のディレクトリのフルパス' | |
files = os.listdir() | |
num_files = len(files) # 進捗表示用 |
nim js -o:hellonim.js hellonim.nim |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from os import path, environ | |
from subprocess import check_output, call | |
from shlex import split | |
from codecs import open | |
home_dir = environ['HOME'] | |
python_path = u''' |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf. asdf | |
asdfasdf asdf | |
asdfasdf asdf | |
asdfasdf asdf |