Skip to content

Instantly share code, notes, and snippets.

View maekawatoshiki's full-sized avatar
🙃
Pursuing a master's degree

uint256_t maekawatoshiki

🙃
Pursuing a master's degree
View GitHub Profile
@maekawatoshiki
maekawatoshiki / delete_git_submodule.md
Created July 6, 2023 02:25 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
    • git config -f .git/config --remove-section submodule.サブモジュールのパス
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@maekawatoshiki
maekawatoshiki / fixed_table_column_width_aligned_text_demo.tex
Created January 19, 2023 13:36 — forked from LanternD/fixed_table_column_width_aligned_text_demo.tex
LaTeX - Fixed table column width while aligning text left/center/right
\documentclass{article}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\begin{document}
@maekawatoshiki
maekawatoshiki / float_arcade.md
Created November 13, 2022 15:35 — forked from CrockAgile/float_arcade.md
Floating Point Arcade

Floating Point Arcade

![Twitter Follow][twitter]

A Shady Coin Toss

A shady game master approaches...

Hey there! You look like you would enjoy a good game of chance.