Skip to content

Instantly share code, notes, and snippets.

View baruch-grs's full-sized avatar
🎯
Focusing

Baruch Guerra baruch-grs

🎯
Focusing
  • México, Estado de México
View GitHub Profile
#If your gitignore it's 'not working'
#cleanup your cached files
git rm -r --cached .
#then add your changes
git add .
git commit -m "your celebration message"
@baruch-grs
baruch-grs / bash_profile
Created June 28, 2017 04:39
This is my configuration and alias to a personal bash profile. It must been updated constantly.
cd ~/Documents/Digimundo
export WORKON_HOME=~/.virtualenvs
export VIRTUALENVWRAPPER_HOOK_DIR=$WORKON_HOME/hooks
source /usr/local/bin/virtualenvwrapper.sh
#------ Personal Alias -------------
alias mkv='mkvirtualenv --python=/usr/bin/python3'
@baruch-grs
baruch-grs / mínimos-cuadrados.py
Created May 12, 2017 02:50
Método para calcular los mínimos cuadrados
import math
class LeastSquares(object):
"""docstring for LeastSquares"""
def __init__(self, x:list, y:list):
super(LeastSquares, self).__init__()
if len(x) != len(y):
raise NameError('Las listas deben tener misma longitud.')
[
{"keys": ["ctrl+alt+i"], "command": "reindent", "args": {"single_line": false}},
]
print('Hola mundo')