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
javascript:(function(){const width='2500px';const padding='20px';const wrapper=document.querySelectorAll('.iClkCH')[4];wrapper.style.width=width;wrapper.style.paddingLeft=padding;wrapper.style.paddingRight=padding;document.querySelector('.gTaKEp').style.width=width;})(); |
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
body { | |
font-family: "Segoe UI", "メイリオ", Tahoma, sans-serif; | |
} | |
/* カラム幅を縦向きFHDディスプレイに合わせる */ | |
.js-column.column:nth-child(n) { | |
width: 338px !important; | |
} | |
/* レイアウト設定 */ |
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
"rules": [ | |
{ | |
"description": "Ctrl-j to Kana on PowerPoint", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.microsoft\\.Powerpoint" | |
], |
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
#= | |
Lévy flight | |
Copyright (c) 2021 Daichi Furukawa, github.com/Loliver1224 | |
License: MIT | |
=# | |
using SpecialFunctions # gamma() | |
using Plots | |
N = 200 # max iter |
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 win32com.client as wincl | |
import random | |
voice = wincl.Dispatch("SAPI.SpVoice") | |
# 絶対出る質問 | |
absolute = \ | |
["自己紹介をお願いします", | |
"御社を志望した理由を教えてください", | |
"長所と短所を教えてください"] |
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
# 順列(数字並べて倍数つくるやつ) | |
card = [0,1,2,3,4,5] | |
visited = [False] * len(card) | |
perm = [] | |
def dfs(arr, pos, n): | |
if pos == n: | |
perm.append(arr) |
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
#if !__INCLUDE_LEVEL__ | |
#include __FILE__ | |
int main() { | |
rep(i, 3) printf("%2d", i); | |
cout << endl << "ok." << endl; | |
} | |
#else |
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
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # install Rust | |
set -U fish_user_paths $fish_user_paths $HOME/.cargo/bin # set Rust path | |
# install cargo packages | |
cargo install exa bat hexyl fd-find procs ripgrep |
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
# 暗号化(-pass未指定だと標準入力,-aでBase64形式に,-iterで暗号化回数の指定を推奨(総当り攻撃対策)) | |
openssl aes-256-cbc -e -in [filename] -out [filename] -a -iter [int: iteration] [-pass pass:password | env:環境変数 | file:filename] | |
# 復号 | |
openssl aes-256-cbc -d -in [filename] -out [filename] -a -iter [int: iteration] [-pass pass:password | env:環境変数 | file:filename] |
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
using PyCall, JLD | |
py""" | |
import pickle | |
with open("filename.pkl", 'rb') as f: | |
data = pickle.load(f) | |
""" | |
data = py"data" | |
save("file.jld", data) |
NewerOlder