This file contains hidden or 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
| sudo apt -y update | |
| sudo apt -y upgrade | |
| sudo apt -y install git zsh curl micro | |
| yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
| chsh -c /bin/zsh |
This file contains hidden or 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
| #pragma once | |
| #include <string> | |
| #include <vector> | |
| inline std::vector<double> | |
| convolve_1d(const std::vector<double> &_f, const std::vector<double> &_g, const std::string mode) { | |
| if (_f.empty() || _g.empty()) { | |
| return {}; | |
| } |
This file contains hidden or 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
| # Cleanup old alternatives | |
| update-alternatives --remove-all cc | |
| update-alternatives --remove-all c++ | |
| update-alternatives --remove-all gcc | |
| update-alternatives --remove-all g++ | |
| update-alternatives --remove-all clang | |
| update-alternatives --remove-all clang++ | |
| update-alternatives --remove-all icc | |
| update-alternatives --remove-all icc++ |
This file contains hidden or 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
| function process(files) { | |
| var plots = document.getElementById('plots'); | |
| plots.innerHTML = ''; | |
| for (var i = 0, f; f = files[i]; ++i) { | |
| var reader = new FileReader(); | |
| reader.onload = (function (file) { | |
| return function (e) { | |
| var lines = e.target.result.split(/\n/); | |
| if (lines[0][0] == '#') { |
This file contains hidden or 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
| \documentclass{article} | |
| \usepackage{xeCJK} | |
| \setCJKmainfont{STSong} | |
| \begin{document} | |
| hello 中文 | |
| \end{document} |