Skip to content

Instantly share code, notes, and snippets.

View Liyuu8's full-sized avatar

Liyuu Liyuu8

View GitHub Profile
@Liyuu8
Liyuu8 / main.dart
Created March 14, 2020 11:19
Flutter Layouts Challenge [Section 6: MiCard]
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
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: '貸し借りめも',
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
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
# 仮想環境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
#! /usr/bin/env python3.7
print ("200 OK")
print ("Content-Type: text/plain")
print ("")
print ("Hello CGI!")
# 実行権限を付与
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
----------------------------------------
# venv 環境の作成 (VENV: 仮想環境の名前)
$ python3.7 -m venv VENV
# venv 環境の有効化
$ source venv/bin/activate
(VENV) $
# venv 環境の無効化
(VENV) $ deactivate
# シンボリックリンクを作成
$ 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
# Python3.7.0 インストール時のエラー解消のため
$ sudo apt install libffi-dev
# 再度インストールを実行
$ sudo make install
# バージョン確認
$ /opt/python3.7.0/bin/python3.7 -V
Python 3.7.0