2023-01-01から1年間の記事一覧

macで閉じてもスリープしない

//スリープを無効 sudo pmset disablesleep 1 //スリープを有効 sudo pmset disablesleep 0

git

flowchart BT subgraph ローカル環境 subgraph remoteBranch["リモート追跡ブランチ"] origin/hoge upstream/hoge end subgraph localRepo ["ワーキングディレクトリ"] end subgraph index["インデックス (ステージング)"] ローカルブランチ end subgraph al…

ffmpeg 音声ファイルに黒背景をつけて動画として書き出し

FILE_NAME="inputfile.m4a" && ffmpeg -f lavfi -i color=c=black:s=480x360:d=10 -i ${inputfile} -c:v libx264 -c:a aac -strict experimental -t "$(ffprobe -i ${inputfile} -show_entries format=duration -v quiet -of csv='p=0')" $(echo $inputfile …

BIMモデルを利用したLPを作ってみる② styled-components導入編

単純にstyled-componentsを'edgesout' とエラーが出たのでLTSバージョンをインストール npm i -D styled-components@5.3.10 Typescript用の型定義もインポート npm i -D @types/styled-components@5.1.26

BIMモデルを利用したLPを作ってみる① Next.js + Storybook + Cloudflare編

プロジェクト作成 next バージョン 13.4.2 storybook バージョン 7.0.11 npx create-next-app@latest --ts npm i sb@latest type nextjs npm sb init Storybookのサンプル内のエラー修正 eslintで警告されたエスケープ処理を修正 "args" of child …

yabai&skhd設定

# focus window alt - x : yabai -m window --focus recent alt - h : yabai -m window --focus west alt - j : yabai -m window --focus south alt - k : yabai -m window --focus north alt - l : yabai -m window --focus east # swap window shift + alt…

javascript chromeでの並行ダウンロード制限(10まで)以上のダウンロード

const link = document.createElement('a'); document.body.appendChild(link); //Promiseを返却して処理を止める function pause() { return new Promise( (resolve, reject) => { setTimeout(resolve, 1000); } ); } const files = [ "file1", "file2", "f…

スプレッドシート

=query('シート1'!A:D,"where D like '"&A1&"%'")

Unity 文字列補完のエスケープ処理

"ダブルクオーテーション,{}中括弧はエスケープ対象 'シングルクオーテーションはエラー対象 var hoge = "HOGE" $"(function(){{ console.log(/"{hoge}/") }})();" ↓ ↓ (function(){ console.log("HOGE") })();