Skip to content

Instantly share code, notes, and snippets.

View thiagao0860's full-sized avatar
🎯
Focusing

Thiago thiagao0860

🎯
Focusing
  • Embraer
  • Brazil
View GitHub Profile
@thiagao0860
thiagao0860 / Newtom-Sobre-Causalidade.md
Last active July 24, 2022 06:34
Regrinhas do Newtão

Newtom e a visão da física da simplificação

Regra I

Não devemos admitir mais causas para as coisas naturais do que as que são verdadeiras e suficientes para explicar suas
aparências. 

Sobre isto dizem os filósofos que a Natureza não faz nada em vão, e mais algo é vão quando menos serve. Pois a Natureza é simples e não se compraz com causas supérfluas.

If it's the first time you check-out a repo you need to use --init first:
git submodule update --init --recursive
For git 1.8.2 or above, the option --remote was added to support updating to latest tips of remote branches:
git submodule update --recursive --remote
This has the added benefit of respecting any "non default" branches specified in the .gitmodules or .git/config files (if you happen to have any, default is origin/master, in which case some of the other answers here would work as well).
For git 1.7.3 or above you can use (but the below gotchas around what update does still apply):
@thiagao0860
thiagao0860 / DisableLockScreen.sh
Created May 11, 2022 15:17
Disable lock screen on Mint Ubuntu
gsettings set org.gnome.desktop.screensaver lock-enabled false
@thiagao0860
thiagao0860 / EdgeDriverDown
Created January 30, 2022 08:40
get Edge driver for respecting version
browse with
https://msedgewebdriverstorage.z22.web.core.windows.net/?prefix={SERIAL_NUMBER}/
or directly download
https://msedgedriver.azureedge.net/{SERIAL_NUMBER}/edgedriver_win64.zip
https://msedgedriver.azureedge.net/{SERIAL_NUMBER}/edgedriver_linux64.zip
@thiagao0860
thiagao0860 / FirstPersonThreeJS.js
Created January 29, 2022 05:58
This was my first solution for First Person Control using Three JS
import {
MathUtils,
Spherical,
Vector3
} from '../../../three/build/three.module.js';
const _lookDirection = new Vector3();
const _spherical = new Spherical();
const _target = new Vector3();
@thiagao0860
thiagao0860 / SubplotU.m
Last active May 11, 2022 15:19
Subplot Utilization example
#format: subplot(y_size, x_size, position)
subplot(2,1,1);
plot(z);
axis([-2 150 -1 30]);
grid;
subplot(2,1,2);
stem(zp);
axis([-2 153 -1 30]);
@thiagao0860
thiagao0860 / Swap.sh
Created January 23, 2022 20:57
Swap resize
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
sudo mkswap /swapfile
sudo swapon /swapfile
@thiagao0860
thiagao0860 / GitNewBranch.txt
Last active May 11, 2022 15:19
Git New Branch
git branch iss53
git checkout iss53
git push <remote-name> <local-branch-name>:<remote-branch-name> // if <local-branch-name> or <remote-branch-name> are omited git will assume that they are the same.