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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> | |
</ItemGroup> |
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 parseTime(text) { | |
{ | |
const match = /(\d\d?)時(\d\d?)分/.exec(text); | |
if (match && match.length === 3) { | |
return [match[1], match[2]]; | |
} | |
} | |
{ | |
const match = /(\d\d?)時/.exec(text); | |
if (match && match.length === 2) { |
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 pandas as pd | |
df = pd.read_csv('https://www.city.yokohama.lg.jp/city-info/koho-kocho/koho/topics/corona-data.files/141003_yokohama_covid19_patients.csv', encoding='UTF-8') | |
#%% | |
import datetime | |
weeks = [0] * 8 | |
output = [] | |
dates = pd.to_datetime(df['公表日']) |
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
;キーバインド設定 | |
(global-set-key #\Home 'beginning-of-virtual-line) | |
(global-set-key #\End 'end-of-virtual-line) | |
(global-set-key #\S-Home 'selection-beginning-of-virtual-line) | |
(global-set-key #\S-End 'selection-end-of-virtual-line) | |
(global-set-key #\C-Home 'beginning-of-buffer ) | |
(global-set-key #\C-End 'end-of-buffer) | |
(global-set-key #\M-Right 'next-buffer) | |
(global-set-key #\M-Left 'previous-buffer) |
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
;; package管理 | |
(eval-and-compile | |
(when (or load-file-name byte-compile-current-file) | |
(setq user-emacs-directory | |
(expand-file-name | |
(file-name-directory (or load-file-name byte-compile-current-file)))))) | |
(eval-and-compile | |
(customize-set-variable | |
'package-archives '(("gnu" . "https://elpa.gnu.org/packages/") |
OlderNewer