Skip to content

Instantly share code, notes, and snippets.

@ryo-ARAKI
ryo-ARAKI / keybindings.json
Last active June 5, 2024 02:34
VSCode setting file (manual backup)
// ~/.config/Code/User/settings.json
// 既定値を上書きするには、このファイル内にキー バインドを挿入しますauto[]
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditorInGroup"
},
{
"key": "ctrl+k ctrl+pagedown",
"command": "-workbench.action.nextEditorInGroup"
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# ~/.screenrc
# https://qiita.com/kamykn/items/9939b67e923dbb87f39c
# Character code
defutf8 on
defencoding utf8
encoding utf8 utf8
# Disable startup message & window flushing
startup_message off
@ryo-ARAKI
ryo-ARAKI / beamer_template.tex
Last active June 24, 2024 01:49
Template for LaTeX
% \PassOptionsToPackage{draft}{graphicx}
\documentclass[12pt,dvipdfmx,svgnames,uplatex,aspectratio=169]{beamer}
% \documentclass[12pt,dvipdfmx,svgnames,uplatex,aspectratio=169,handout]{beamer}
%
% ===========================================
% 図・表関係
% ===========================================
\graphicspath{{./pics/}} % \includegraphicsで参照するディレクトリ
\makeatletter
\def\input@path{{/home/raraki/github/TikZ_figures/}} % \inputで参照するディレクトリ
@ryo-ARAKI
ryo-ARAKI / abbreviated_journal_title.sty
Last active June 6, 2024 11:20
Unique commands and default setting for LaTeX
% 雑誌名の短縮形リスト
\DeclareSourcemap{%
\maps[datatype=bibtex,overwrite=true]{
\map{
\step[
fieldsource=journal,
match={Journal of Fluid Mechanics},
replace={J. Fluid Mech.}]%
\step[
fieldsource=journal,
@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active July 19, 2024 02:20
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
@ryo-ARAKI
ryo-ARAKI / config
Last active April 30, 2024 01:39
Config file of Terminator
[global_config]
focus = mouse
window_state = fullscreen
enabled_plugins = TerminatorThemes, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
always_split_with_profile = True
[keybindings]
split_horiz = <Primary><Shift>d
split_vert = <Primary>d
paste = <Primary>v
[profiles]
@ryo-ARAKI
ryo-ARAKI / .vimrc
Last active October 26, 2020 14:53
vimrc
" https://qiita.com/mfujimori/items/9fd41bcd8d1ce9170301
" setting
"文字コードをUFT-8に設定
set fenc=utf-8
" バックアップファイルを作らない
set nobackup
" スワップファイルを作らない
set noswapfile
" 編集中のファイルが変更されたら自動で読み直す
set autoread
@ryo-ARAKI
ryo-ARAKI / .latexmkrc_revtex
Last active February 17, 2023 12:27
LaTeX compile setting
#!/usr/bin/perl
$latex = 'pdflatex %O -synctex=1 -interaction=nonstopmode %S';
$bibtex = 'biblatex';
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars';
$dvipdf = 'dvipdfmx %O %S';
$max_repeat = 5;
$pdf_mode = 3;
$pvc_view_file_via_temporary = 0;
$pdf_previewer = 'evince 2>/dev/null';