Skip to content

Instantly share code, notes, and snippets.

7cc 7cc

Block or report user

Report or block 7cc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View move-folder-windows.md

Windowsでフォルダーを別ドライブに移動する

cmd.exe の move は同一ドライブ間でしか移動できない。
エラーメッセージ "アクセスは拒否されました"

cmd.exe

移動先にフォルダーネーム必須

@7cc
7cc / online_storage_comp-data-omakoku.tsv
Last active Mar 17, 2019
個人で使うオンラインストレージ比較
View online_storage_comp-data-omakoku.tsv
名称 料金 容量 ファイルの最大サイズ URL
Office 365 Personal $7 1TB 15GB https://onedrive.live.com/about/en-us/plans/
Office 365 Home $10 1TB*6 15GB
Amazon Drive(.com) $11/年 100GB
Amazon Drive(.com) $60/年 1TB
View git_commands.sh
git config --global alias.up '!git remote update --prune; git merge --ff-only @{upstream}'
<repo> <branch> <commit>
# diff
git show /= git diff HEAD^ = git diff HEAD^..HEAD
git diff HEAD dev # branch
git diff HEAD v1 # tag
git diff @{u} # remote =? git diff FETCH_HEAD
View 制御文字.txt
SOH 
STX 
ETX 
EOT 
ENQ 
ACK 
BEL 
BS 
HT
LF -
View node-one-liner.md

node one liner

  • 実用的でない
  • windowsだとsjis問題に悩まされる

これをやりたい

echo "こんにちは" | perl -pe 's/にちは/ばんは/'
View copySubs.js
// RWBY字幕取り出し
// Google Chromeのコンソールで実行すると、各言語のリンクがコピーされます
fetch($$("video>source")[0].src)
.then(response=> response.text())
.then(getRoosterSub)
.then(copy)
.then(()=> console.log("コピーされました"))
function getRoosterSub(m3u8FileContent) {
return m3u8FileContent.split("\n")
View git-bash.txt
# MinGW64
"C:\Program Files\Git\bin\sh.exe" --login -i
# MSYS
"C:\Program Files\Git\usr\bin\sh.exe" --login -i
View pipe.js
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Pipeline_operator
const double = (n) => n * 2;
const increment = (n) => n + 1;
// without pipeline operator
double(increment(double(double(5)))); // 42
// with pipeline operator
5 |> double |> double |> increment |> double; // 42
You can’t perform that action at this time.