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
Matrix* loadData(int n, int p) { | |
Matrix* data = new Matrix(n, p); | |
for (int i = 0; i < n; i++) { | |
for (int j = 0; j < p; j++) { | |
float a; | |
cin >> a; | |
data->update(i, j, a); | |
} | |
} | |
return data; |
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
map GH :newtab https://github.com |
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
#!/bin/bash | |
set -u | |
log="/var/log/hyperion-config-switch.log" | |
function echo_d() { | |
echo "[$(date "+%F %T")} $1" | |
} | |
function turn_hyperion_off() { |
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
#!/bin/bash | |
set -euo pipefail | |
if ! [ -d ~/.hosts ]; then | |
mkdir ~/.hosts | |
fi | |
cd ~/.hosts |
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
install: | |
mkdir ~/.new | cp Makefile.new ~/.new/Makefile | cp main.cpp ~/.new | cp new.fish ~/.config/fish/functions |
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
.badge-outline-primary { | |
color: #007bff; | |
background-color: transparent; | |
background-image: none; | |
border-color: #007bff; | |
border: 1px solid; | |
} | |
.badge-outline-secondary { | |
color: #6c757d; |
NewerOlder