This file contains 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
#!/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 |
This file contains 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
#!/usr/bin/env bash | |
cd cpython | |
make distclean | |
install_dir=$HOME/opt | |
# Install python2 | |
version=2.7.11 | |
pydir=$install_dir/python-$version |
This file contains 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! 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 |
OlderNewer