(Tentative)
function removeVerticalTabs() {
var body = DocumentApp.getActiveDocument().getBody();
var bodyText = body.getText();
bodyText = bodyText.replace( /\r/g, "\n" );
body.setText( bodyText );
}| import pandas as pd | |
| import numpy as np | |
| input_csv = "./weather_history_tiny.csv" | |
| output_csv = "./weather_history_tiny_windowed.csv" | |
| df = pd.read_csv(input_csv) | |
| n_lags = 1 | |
| N = len(df) | |
| all_columns = df.columns |
| import signal | |
| import threading | |
| import traceback | |
| import time | |
| import sys | |
| def func2(): | |
| y = 2 | |
| time.sleep(1) |
(Tentative)
function removeVerticalTabs() {
var body = DocumentApp.getActiveDocument().getBody();
var bodyText = body.getText();
bodyText = bodyText.replace( /\r/g, "\n" );
body.setText( bodyText );
}| import http.server | |
| import socketserver | |
| socketserver.TCPServer(("", 1234), http.server.SimpleHTTPRequestHandler).serve_forever() |
| # list | |
| fdisk -l | |
| pvs | |
| pvdisplay | |
| vgs | |
| vgdisplay | |
| lvs | |
| lvdisplay | |
| # create |
Somehow Install python3. (I'm not sure. Needs to be updated later. This is for macOS.)
brew install python3Install venv module first to create virtual environment.
pip3 install venvMake initial virtual environment files.
Make a configuration file like below at /etc/systemd/system/nodejs_www.service.
[Unit]
Description=My Node.js Web Server
[Service]
ExecStart=/usr/bin/yarn start
WorkingDirectory=/home/hotohoto/app
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Alpha Component</key> | |
| <real>1</real> | |
| <key>Blue Component</key> | |
| <real>0.0</real> |
Displaying PCI bus devices and their information
lspci
lspci -vhttps://devtalk.nvidia.com/default/topic/938988/-solved-cuda-8-0-on-ubuntu-16-04-gpu-not-available/
yarn init
yarn add babel-cli babel-preset-latest
vi index.js"scripts": {
"start": "babel-node --debug --presets latest -- index.js "