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
function empirical(x, y, n){ | |
for (let i = 0; i < n; i++){ | |
x = x * (1 + (Math.random() < .5 ? -1 : 1) * (Math.random() * y)/x) | |
} | |
return x | |
} | |
let xs = [] | |
for (let i = 0; i < 10000; i++){ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
mdY5gcRkHAUDoT1ozxte3I0HPcsZoTbPN6HL7uxY0tCF8VvCmO76Afmtdkjt9Q9coypBPO3NMcbjLvk02WHsDg==--pUM5MMiEkb7IDrtbgZ+FuQ==--OCPpMBlU8nZvEJ2QbGoUFQ== |
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
function correlation(x, y) { | |
if (x.length !== y.length) return null | |
const xMean = x.reduce((acc, el) => el + acc, 0) / x.length | |
const yMean = y.reduce((acc, el) => el + acc, 0) / y.length | |
let numerator = 0, | |
xDSquaredSum = 0, | |
yDSquaredSum = 0 |
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
echo 'blacklist ucsi_ccg' | sudo tee -a /etc/modprobe.d/blacklist.conf #hibernation stall fix. Might have to remove l8r. | |
sudo sed 's/quiet splash/quiet splash button.lid_init_state=open /g' /etc/default/grub | sudo tee /etc/default/grub #wake up loop fix | |
sudo update-grub #save kernel params to grub | |
echo 'razer blade configurado...' |
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
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot6" | |
bind "8" "slot8" | |
bind "9" "slot9" |
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
{ | |
"name": "Questionário Geral Público", | |
"creation": "2018-11-15T20:04:33.787Z", | |
"resources": { | |
"money": { | |
"name": "dinheiro", | |
"subrecursos": { | |
"organizacao": { | |
"name": "organização", | |
"toAvoid": [ |
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
# ALUNO: Cesar Vargas | |
# TIA: 30908639 | |
import copy | |
# Exercício 1 | |
def triangular(entrada): | |
saida = [None for x in range(len(entrada))] | |
for i in reversed(range(0,len(entrada[0])-1)): #for (int i=sizeof(entrada)/sizeof(entrada[0]); i > 0; i--) | |
soma = 0 |
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
#installs homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#install zshell | |
brew install zsh pyenv | |
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh | |
#install some apps | |
brew cask install flycut spectacle google-chrome spotify skype slack sublime-text |
NewerOlder