Skip to content

Instantly share code, notes, and snippets.

View Loliver1224's full-sized avatar
🌸
今日も一日がんばるぞい!

FURUKAWA Daichi Loliver1224

🌸
今日も一日がんばるぞい!
View GitHub Profile
@Loliver1224
Loliver1224 / pixiv_bookmark_width_spread.js
Created January 16, 2023 11:50
pixivのブクマの表示域をWQHDモニターに合わせるブックマークレット
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;})();
@Loliver1224
Loliver1224 / BTD_setting.css
Created December 16, 2022 10:49
Better TweetDeck Custom CSS
body {
font-family: "Segoe UI", "メイリオ", Tahoma, sans-serif;
}
/* カラム幅を縦向きFHDディスプレイに合わせる */
.js-column.column:nth-child(n) {
width: 338px !important;
}
/* レイアウト設定 */
@Loliver1224
Loliver1224 / C-j2Kana-powerpoint.json
Created December 5, 2021 04:32
Karabiner-Elements: Ctrl+j to Kana on PowerPoint for AquaSKK
"rules": [
{
"description": "Ctrl-j to Kana on PowerPoint",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.Powerpoint"
],
@Loliver1224
Loliver1224 / levyflight.jl
Created October 24, 2021 03:42
Julia による Lévy flight のプロット
#=
Lévy flight
Copyright (c) 2021 Daichi Furukawa, github.com/Loliver1224
License: MIT
=#
using SpecialFunctions # gamma()
using Plots
N = 200 # max iter
@Loliver1224
Loliver1224 / mensetsu-prac.py
Last active May 24, 2021 12:51
コマンドプロンプトと面接練習👨‍💻
import win32com.client as wincl
import random
voice = wincl.Dispatch("SAPI.SpVoice")
# 絶対出る質問
absolute = \
["自己紹介をお願いします",
"御社を志望した理由を教えてください",
"長所と短所を教えてください"]
@Loliver1224
Loliver1224 / numCardPermutation.py
Created April 4, 2021 08:03
SPIの順列問題用に作ったけど出番なかった
# 順列(数字並べて倍数つくるやつ)
card = [0,1,2,3,4,5]
visited = [False] * len(card)
perm = []
def dfs(arr, pos, n):
if pos == n:
perm.append(arr)
@Loliver1224
Loliver1224 / template_own.cpp
Created March 28, 2021 06:35
競プロ用テンプレートをmainの下に置いとける書き方
#if !__INCLUDE_LEVEL__
#include __FILE__
int main() {
rep(i, 3) printf("%2d", i);
cout << endl << "ok." << endl;
}
#else
@Loliver1224
Loliver1224 / install.sh
Created March 23, 2021 09:01
Rust製CLIのfishシェル上でのインストール
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
@Loliver1224
Loliver1224 / fileEncryption.sh
Created March 22, 2021 07:10
openssl コマンドによるファイル暗号化
# 暗号化(-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]
@Loliver1224
Loliver1224 / pkl2jld.jl
Created March 19, 2021 12:11
pickle to jld converter
using PyCall, JLD
py"""
import pickle
with open("filename.pkl", 'rb') as f:
data = pickle.load(f)
"""
data = py"data"
save("file.jld", data)