【Bootstrap】デフォルトでcollapseを開いたままにする
.collapse
の要素に .show
を追加する
Base64とかUUIDとか
勉強になったのでメモ。
CONFLICT (content): Merge conflict in db/development.sqlite3 のエラー
git rm db/*.sqlite3 git commit -m "Removing SQLite files from git" rm .gitignore wget https://raw.githubusercontent.com/github/gitignore/master/Rails.gitignore mv Rails.gitignore .gitignore git add .gitignore git commit -m "Ignoring files that Rails recommends"
備忘録
bundle i でffiがインストールできないエラー
An error occurred while installing ffi (1.15.4), and Bundler cannot continue. Make sure that `gem install ffi -v '1.15.4' --source 'https://rubygems.org/'` succeeds before bundling.
brew link --force libffi
で出てくる
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export CPPFLAGS="-I/usr/local/opt/libffi/include"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig
を打ち込んで 再度 bundle i で解決。
ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database
rails db:seed で
ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database
が出る問題は以下で解決。
はてぶろの編集画面にコードブロックない(パッとみ見当たらない)の使いづらいな。
無限ローディングをJavascriptでスクロールし続ける方法
#デベロッパーツールのコンソールで実行
##Jsで無限スクロール
const scroll = setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 1500);
###ストップ
clearInterval(scroll);
##ついでに「詳しく読む」を開ける
const open = setInterval(function() {
for(i=0;i<=document.getElementsByClassName("****").length;i++){
document.getElementsByClassName("****")[i].click();
}
}, 1500);
###ストップ
clearInterval(open);
「余談」
はてぶろで、```のコードブロックつかいたかったのに効かなかった、ん〜〜。
あと、VSCodeからコピペするとこれはこれで色つくのね、、、むずかしいな。
備忘録だからまあいいや。