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
class Solution: | |
def romanToInt(self, s: str) -> int: | |
symbol_map = { | |
"I": 1, | |
"V" : 5, | |
"X": 10, | |
"L" : 50, | |
"C" : 100, | |
"D" : 500, | |
"M" : 1000, |
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
function execCopy(string){ | |
// 空div 生成 | |
var tmp = document.createElement("div"); | |
// 選択用のタグ生成 | |
var pre = document.createElement('pre'); | |
// 親要素のCSSで user-select: none だとコピーできないので書き換える | |
pre.style.webkitUserSelect = 'auto'; | |
pre.style.userSelect = 'auto'; |
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
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_CLIENT-ID: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_CLIENT-SECRET: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_CLIENT-NAME: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_PROVIDER: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_SCOPE: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_REDIRECT-URI: | |
SECURITY_OAUTH2_CLIENT_REGISTRATION_YOURAPP-CLIENT_AUTHORIZATION-GRANT-TYPE: | |
SECURITY_OAUTH2_CLIENT_PROVIDER_COGNITO_AUTHORIZATION-URI: | |
SECURITY_OAUTH2_CLIENT_PROVIDER_COGNITO_TOKEN-URI: | |
SECURITY_OAUTH2_CLIENT_PROVIDER_COGNITO_USER-INFO-URI: |
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
#!/bin/bash | |
# ================================================================================ | |
# 【For Mac】MacOS.sh : Setup MacOS | |
# ================================================================================ | |
if [ "$(uname)" != "Darwin" ] ; then | |
echo 'Not macOS!' | |
exit 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
# エイリアスの設定 | |
# ls(カラー表示) | |
alias vi='vim' | |
alias d='docker' | |
alias dc='docker-compose' | |
#alias gb='git branch' | |
#alias gc='git checkout' | |
#alias gcb='git checkout -b' | |
#alias git st='git status' | |
#alias gst='git status' |
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
" setting | |
"文字コードをUFT-8に設定 | |
set fenc=utf-8 | |
" バックアップファイルを作らない | |
set nobackup | |
" スワップファイルを作らない | |
set noswapfile | |
" 編集中のファイルが変更されたら自動で読み直す | |
set autoread | |
" バッファが編集中でもその他のファイルを開けるように |
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
[user] | |
name = Yoshiki Ohashi | |
email = [email protected] | |
[core] | |
excludesfile = /Users/YOSHIKI/.gitignore_global | |
pager = less -cm | |
quotepath = false | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = |
NewerOlder