備忘録
青空文庫さんから利用させていただきました。ただ、商用利用は避けたほうがいいと思います。あと、SNS に流すのもできるだけ避けたほうがいいと思います。
備忘録
青空文庫さんから利用させていただきました。ただ、商用利用は避けたほうがいいと思います。あと、SNS に流すのもできるだけ避けたほうがいいと思います。
# First install webview: | |
# pip install pywebview | |
# Then create a config.json file in the same folder with the following options: | |
""" | |
{ | |
"content":[ | |
{ | |
"exchange":"Bitstamp", | |
"ticker":"BTCUSD", |
from flask import Flask | |
import webview | |
import sys | |
import threading | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World!' |
import webview | |
import base64 | |
def open_file_dialog(window): | |
file_types = ('Image Files (*.bmp;*.jpg;*.gif;*.png)', | |
'All files (*.*)') | |
path = window.create_file_dialog(webview.OPEN_DIALOG, | |
allow_multiple=False, | |
file_types=file_types) |
PokerStars Hand #174088855475: Hold'em No Limit (50/100) - 2017/08/08 23:16:30 MSK [2017/08/08 16:16:30 ET] | |
Table 'Euphemia II' 6-max (Play Money) Seat #3 is the button | |
Seat 1: adevlupec (53368 in chips) | |
Seat 2: Dette32 (10845 in chips) | |
Seat 3: Drug08 (9686 in chips) | |
Seat 4: FluffyStutt (11326 in chips) | |
FluffyStutt: posts small blind 50 | |
adevlupec: posts big blind 100 | |
*** HOLE CARDS *** | |
Dealt to FluffyStutt [2h Ks] |
# ncurses をインストール | |
mkdir ~/opt && cd $_ | |
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz | |
tar zxfv ncurses-6.1.tar.gz | |
cd ncurses-6.1 | |
./configure --prefix=$HOME/local | |
make | |
make install | |
# Vim をインストール |
#!/usr/bin/env python | |
# Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6 | |
# Python3 http.server for Single Page Application | |
import urllib.parse | |
import http.server | |
import socketserver | |
import re | |
from pathlib import Path |
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |