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
def makeExtension(configs=None): | |
return StrikeoutExtension(configs=configs) |
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
function F_number(file_name, folder_name) { | |
var Array_files = []; | |
var Array_folders = []; | |
var fileIT = DriveApp.getFilesByName(file_name); | |
while (fileIT.hasNext()) { | |
Array_files.push(fileIT.next().getId()); | |
}; | |
var folderIT = DriveApp.getFoldersByName(folder_name); |
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
Declare a string variable arr, sum | |
Declare an integer variable loopcounter | |
Set arr to size n | |
for loopcounter = 0 to (size of arr) - 1 | |
sum = sum + arr[loopcounter] | |
loopcounter = loopcounter + 1 | |
endfor |
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
N_{l} = \sum_{k=1}^{\omega - 1} \frac{\theta}{\phi^{k}} \tag{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
data = ['a', 'b', 'c', 'd', 'b', 'c', 'd', 'b', 'c', 'b'] | |
result = sorted({i: data.count(i) for i in set(data)}.items(), key=lambda x: x[1], reverse=True) | |
print(result) | |
>>> [('b', 4), ('c', 3), ('d', 2), ('a', 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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import time | |
import csv | |
import pandas as pd | |
import SOUWA | |
def measure_csv(ar): | |
start = time.time() |
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
Drive.Files.insert({ | |
"title": ファイル名, | |
"mimeType": "application/vnd.google-apps.spreadsheet", | |
"parents": [{"id": フォルダID}] | |
}); |
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
var ss = SpreadsheetApp.getActiveSheet(); | |
var data = ss.getDataRange().getValues(); | |
for (var i in data){ | |
for (var j in data[i]){ | |
if (data[i][j].length > 0 && !/^[a-zA-Z0-9]+$/.test(data[i][j])){ | |
data[i][j] = null; | |
} | |
} | |
} | |
ss.getRange("A1").offset(0,0, data.length, data[0].length).setValues(data); |
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
http://ユーザ名:パスワード@ルータのIPアドレス |
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
> setlocal & curl -s -d "grant_type=password&client_id='#####'&client_secret='#####'&username='#####'&password='#####'&scope=read_station" "https://api.netatmo.net/oauth2/token" | for /f "usebackq tokens=*" %a in (`jq -r ".access_token"`) do @set a="%a" | curl -s -d "access_token=%a&device_id='#####'" "https://api.netatmo.net/api/getstationsdata" > dat.txt & for /f "usebackq tokens=*" %b in (`jq -r ".body.devices[0].dashboard_data.Temperature" dat.txt`) do @set b="%b" | echo: & set /p nb=Indoor: Temperature %b [degree C],<nul & for /f "usebackq tokens=*" %b in (`jq -r ".body.devices[0].dashboard_data.Humidity" dat.txt`) do @set b="%b" | set /p nb=Humidity %b [%],<nul & for /f "usebackq tokens=*" %b in (`jq -r ".body.devices[0].dashboard_data.Pressure" dat.txt`) do @set b="%b" | set /p nb=Pressure %b [hPa]<nul & for /f "usebackq tokens=*" %b in (`jq -r ".body.devices[0].modules[0].dashboard_data.Temperature" dat.txt`) do @set b="%b" | echo: & set /p nb=Outdoor: Temperature %b [degree C],<nul & for /f "usebackq |
OlderNewer