Skip to content

Instantly share code, notes, and snippets.

@miyakogi
miyakogi / bokeh_sample.py
Last active May 7, 2016 08:04
wdomでグラフをプロットするサンプル(とりあえず)
#!/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
@miyakogi
miyakogi / python-build.sh
Created May 17, 2016 12:00
pythonのビルドに使ってるスクリプト
#!/usr/bin/env bash
cd cpython
make distclean
install_dir=$HOME/opt
# Install python2
version=2.7.11
pydir=$install_dir/python-$version
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