Open in app

Sign in

Write

Sign in

Masa
Masa

46 Followers

Home

About

Aug 19

Pandas 学習

表を作ってみる import pandas as pd # 4x4のダミーデータを作成 data = [ ['A1', 'B1', 'C1', 'D1'], ['A2', 'B2', 'C2', 'D2'], ['A3', 'B3', 'C3', 'D3'], ['A4', 'B4', 'C4', 'D4'] ] # pandasのDataFrameを作成 df = pd.DataFrame(data, columns=['Column1', 'Column2', 'Column3', 'Column4']) # DataFrameをCSVに書き出す df.to_csv('4x4_data.csv', index=False) 2. 表にURLを記載してみる import pandas as pd data = { "name": ["OpenAI", "Google", "Microsoft"], "url": ["https://openai.com", "https://google.com", "https://microsoft.com"] } df = pd.DataFrame(data) df.to_csv('companies.csv', index=False)p

2 min read

2 min read


Aug 18

Karabinar ElementでCtr + mをreturnに変更する

Add the following file in complex_modifications add complex setting /Users/ユーザ名/.config/karabiner/assets/complex_modifications/ # my_rule.json { "title": "自分用", "rules": [ { "description": "ctrl-M を return に変換", "manipulators": [ { "type": "basic", "from": { "key_code": "m", "modifiers": { "mandatory": [ "control" ] } }, "to": [ { "key_code": "return_or_enter" } ] } ] } ] }

1 min read

1 min read


Aug 17

スクレイピング1

学習memo from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.c …

4 min read

4 min read


Jul 22

Vim RC

.vimrc syntax enable filetype plugin on filetype indent on set number set path=** set nocompatible " Set wild mode set complete-=i " set wildignore+=**/node_modules/**,**/public/** " set wildmenu " " set wildmode=longest:full,full " Make it obvious where 100 characters is set textwidth=100 " set colorcolumn=+1 " Search using Ag set grepprg=ag\ --nogroup\ --nocolor command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! " Keystrokes nnoremap K…

1 min read

1 min read


Jul 22

.tmux.conf

This is my .tmux.cofg ### vimのキーバインドでペインを移動する bind-key -r h select-pane -L bind-key -r j select-pane -D bind-key -r k select-pane -U bind-key -r l select-pane -Rv ### Moving window bind | split-window -h # 番号基準値を変更 set-option -g base-index 1 # マウス操作を有効にする set -g mouse on # ステータスバーの色を設定する set -g status-bg "colour255" set-option -g default-terminal screen-256color ## Escキーの遅延を解消 set -s escape-time 0 # Mac copy setting bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

1 min read

1 min read


Nov 14, 2022

VS Code — NeoVim Plugin — Settings

These tips for “VSCode Neovim” Plugin. VSCode Neovim - Visual Studio Marketplace VSCode Neovim Integration Neovim is a fork of VIM to allow greater extensibility and integration. This extension uses a…marketplace.visualstudio.com My environment is… - macOS Monterey - M1 MacBook Pro - Visual Studio Code Version: 1.73.1 - VSCode Neovim: v0.0.94 Comment out Open keybindings.json Add the following code on keybindings.json

1 min read

1 min read


Mar 8, 2021

How to call C lang function by SwiftUI

It’s a simple example of the C function with iOS. Note: This example uses Xcode(Version 12.4) and Target for iOS 14.4 1. Create a new SwiftUI project with Xcode. In the item “Life Cycle: ”, it doesn’t matter whether “SwiftUI App” or “UIKit App Delegate”. 2. Create the C file in the project. File > New > File…

Xcode

3 min read

How to call C lang function by SwiftUI
How to call C lang function by SwiftUI
Xcode

3 min read


Nov 2, 2020

What to do when Xcode’s predictions don’t show up?

Personal Memo on November 2020 System version in this article: Xcode Version 12.0.1 1. Navigation on Xcode > Preferences > “Text Editing” > Select “Editing” in the menu bar 2. Uncheck “Suggest completions while typing”. 3. Quit Xcode with “Quit Xcode” 4. Launch Xcode again. 5. Go to Xcode > Preferences > Text Editing in the menu bar again 6. Check “Suggest completions while typing”.

Xcode

1 min read

What to do when Xcode’s predictions don’t show up?
What to do when Xcode’s predictions don’t show up?
Xcode

1 min read


Oct 19, 2020

Data Handling related to layout in SwiftUI (part 2)

This is a memo for Learn Swift HK Meetup, which written on Oct in 2020. Please let me know in the comments what I have misunderstood. Part 1 is here. Data Handling related to layout in SwiftUI (part 1) About @State, @ObservedObject, @EnvironmentObjectmedium.com TL;DR, Reference Types and Value Types in Swift A. Reference Types and Value Types in Swift Pure Swift language doesn’t have the “Pointer” concept like C or C++…

Swift

2 min read

Swift

2 min read


Oct 17, 2020

Data Handling related to layout in SwiftUI (part 1)

About @State, @ObservedObject, @EnvironmentObject This article was written under the following system environment: - macOS Catalina Version 10.15 - Xcode Version 12.0 TL;DR, I. Preparation: What needs for Swift UI Programming II. @State, @ObservedObject, @EnvironmentObject I. Preparation: What needs for Swift UI Programming Please refer to the following article and see the topic “I. …

Swift

5 min read

Data Handling related to layout in SwiftUI (part 1)
Data Handling related to layout in SwiftUI (part 1)
Swift

5 min read

Masa

Masa

46 Followers

iOS Developer, Front-end Developer

Following
  • Takahiko Kawasaki

    Takahiko Kawasaki

  • Saladz

    Saladz

  • Matt

    Matt

  • N.Aomi

    N.Aomi

  • Ken Hui

    Ken Hui

See all (47)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams