備忘録
青空文庫さんから利用させていただきました。ただ、商用利用は避けたほうがいいと思います。あと、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) |
| # 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 |