This file contains hidden or 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
| # coding: utf-8 | |
| s = input().split() | |
| target = [1, 5, 6, 7, 8, 9, 15, 16, 19] | |
| result ={} | |
| for i in range(len(s)): | |
| if i + 1 in target: | |
| result[i+1] = s[i][:1] |
This file contains hidden or 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
| # coding: utf-8 | |
| import re | |
| s = input() | |
| # カンマとコンマを除外してから単語毎のリストに分解 | |
| s = re.sub('[,.]', '', s) | |
| s = s.split() | |
| # 文字数をカウントしてリスト化 |
This file contains hidden or 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
| # coding: utf-8 | |
| s1 = 'パトカー' | |
| s2 = 'タクシー' | |
| s = ''.join([i+j for i, j in zip(s1, s2)]) | |
| print(s) |
This file contains hidden or 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
| lazy fmaps -u='https?://reader\.aol\.co\.jp/.*' gh gs gd ga go gx ? r = - f u j k <Space> <S-Space> t v <Return> m 1 2 3 4 5 / | |
| lazy fmaps -u='https?://reader\.aol\.co\.jp/.*' -events=vkeydown J K N P X O A |
This file contains hidden or 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("UScitiesD") | |
| hc <- hclust(UScitiesD) | |
| plot(hc) |
This file contains hidden or 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
| df <- data.frame(a = letters[1:3], | |
| b = c("あ", "い", "う")) |
This file contains hidden or 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
| library(sf) | |
| # 日本地図のシェープファイルを読み込む | |
| f <- "N03-160101_GML/N03-16_160101.shp" | |
| japan <- st_read(f) |
This file contains hidden or 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
| runner: | |
| scopes: | |
| python: "python3" |
This file contains hidden or 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
| library(ggplot2) | |
| library(dplyr) | |
| # hwy : highway miles per gallon | |
| # 1mile == 1.60934km | |
| # 1gallon == 3.78541L | |
| # ∴ mile / gallon = 1.60934 / 3.78541 km / L | |
| mpg2kpl <- function(x) x * 1.60934 / 3.78541 |
This file contains hidden or 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
| p <- ggplot(mpg, aes(displ, hwy)) + | |
| geom_point() + | |
| facet_wrap(~drv) + | |
| theme_bw() + | |
| theme(panel.grid = element_blank()) + | |
| geom_smooth(method = "lm") |