git commit --amend
git commit --amend --author="perpouh <perpouh@gmail.com>"
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
## Environment | |
M1Mac/Docker | |
alpine | |
Rails | |
## ERROR | |
``` | |
# rails db:create |
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 myFunction() { | |
var id = ""; // スプレッドシートのURL | |
var spreadsheet = SpreadsheetApp.openById(id); | |
var sheet = spreadsheet.getSheetByName('シートの名前'); | |
const lastRow = sheet.getLastRow(); | |
var results=[]; | |
for(var i=2;i<=lastRow;i++){ | |
results.push(sheet.getRange(i, 1).getValue()); | |
} |
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
{ | |
"vsnotes.tokens": [ | |
{ | |
"type": "datetime", | |
"token": "{dt}", | |
"format": "YYYY-MM-DD", | |
"description": "Insert formatted datetime." | |
} | |
], | |
"vsnotes.defaultNoteTitle": "{dt}-{title}.{ext}", |
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
{ | |
"vsnote_template_blog": { | |
"prefix": "vsnote_template_blog", | |
"body": [ | |
"---", | |
"date: '$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE'", | |
"auther: perpouh", | |
"lang: ja", | |
"tags:", | |
"\t- $1", |
こういうのをちょっとメモっておく場所がない
docker rmi $(docker images -f "dangling=true" -q) -f
docker rm $(docker ps -f "status=exited" -q)
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 csv | |
header = ''' | |
export default { | |
ja: { | |
''' | |
footer = ''' | |
} | |
} | |
''' |
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 random | |
pptp = ["ポ","プ","テ","ピ","ピ","ッ","ク"] | |
while True: | |
random.shuffle(pptp) | |
s = ''.join(pptp) | |
print(s) | |
if s == 'ポプテピピック': break; |
/Application/MAMP/conf
以下のphpn.n.n
(nは任意の整数)フォルダを一斉に名称変更したときのコード。
この後自分が使いたいバージョンのフォルダだけを手動で戻してMAMP再起動した。
for file in php*; do
mv $file _$file
done
NewerOlder