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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
import 'package:flutter/material.dart'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: '貸し借りめも', |
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
Sub Pagebreak() | |
Dim cl As HPageBreak | |
Dim ws As Worksheet | |
Dim shp As Shape | |
Dim rng As Range | |
Dim flg As Boolean | |
Dim loopCount As Integer: loopCount = 1 | |
Do While ActiveSheet.HPageBreaks.Count + 1 <> loopCount |
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
Sub Pagebreak() | |
Dim cl As HPageBreak | |
Dim ws As Worksheet | |
Dim shp As Shape | |
Dim rng As Range | |
Dim flg As Boolean | |
For Each cl In ActiveSheet.HPageBreaks |
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
# 仮想環境venvを作成 | |
$ python3.7 -m venv venv | |
$ source venv/bin/activate | |
# 最新バージョンのFlaskをインストール | |
(venv)$ pip install -U Flask | |
# norilog/templates/index.html | |
# norilog/static/main.css | |
# norilog/norilog.py |
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.7 | |
print ("200 OK") | |
print ("Content-Type: text/plain") | |
print ("") | |
print ("Hello CGI!") |
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
# 実行権限を付与 | |
vagrant@ubuntu-xenial:/vagrant_data$ chmod u+x cgi-bin/sample.py | |
# http.server を実行 | |
vagrant@ubuntu-xenial:/vagrant_data$ python3.7 -m http.server --cgi | |
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... | |
192.168.33.1 - - [17/Oct/2018 10:30:56] "GET /cgi-bin/sample.py HTTP/1.1" 200 - | |
# Error No.1 | |
---------------------------------------- |
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
# venv 環境の作成 (VENV: 仮想環境の名前) | |
$ python3.7 -m venv VENV | |
# venv 環境の有効化 | |
$ source venv/bin/activate | |
(VENV) $ | |
# venv 環境の無効化 | |
(VENV) $ deactivate |
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
# シンボリックリンクを作成 | |
$ sudo ln -s /opt/python3.7.0/bin/pip3.7 /usr/local/bin/pip | |
# 動作確認 | |
$ pip --version | |
pip 10.0.1 from /opt/python3.7.0/lib/python3.7/site-packages/pip (python 3.7) | |
# パッケージをインストール | |
$ sudo pip install lxml | |
$ pip install --user beautifulsoup4 |
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
# Python3.7.0 インストール時のエラー解消のため | |
$ sudo apt install libffi-dev | |
# 再度インストールを実行 | |
$ sudo make install | |
# バージョン確認 | |
$ /opt/python3.7.0/bin/python3.7 -V | |
Python 3.7.0 |
NewerOlder