Skip to content

Instantly share code, notes, and snippets.

View palharez's full-sized avatar
🦊
Every lesson learned

Eduardo Palhares palharez

🦊
Every lesson learned
View GitHub Profile
{
//"python.pythonPath": "optional: path to python use if you have environment path ",
// use this so the autocompleate/goto definition will work with python extension
"python.autoComplete.extraPaths": [
"/home/eduardo/work/erp/odoo/addons",
"/home/eduardo/work/erp/odoo",
"/home/eduardo/work/erp/odoo/openerp/addons",
"/home/eduardo/work/erp/odoo-brasil",
"/home/eduardo/work/erp/raizs"
@palharez
palharez / .gitconfig
Last active July 20, 2024 12:36 — forked from diego3g/.gitconfig
[alias]
ci = "!f() { git commit -m \"$*\"; }; f"
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
class Stack(object):
def __init__(self, limit=10):
self.stack = []
self.limit = limit
def __bool__(self):
return bool(self.stack)
def __str__(self):
@palharez
palharez / zshrc
Last active January 11, 2020 15:35
# Path to your oh-my-zsh installation.
export ZSH="/home/eduardo/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="spaceship"
# Set list of themes to pick from when loading at random
{
// Workbench
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.labelFormat": "short",
"workbench.activityBar.visible": true,
// Terminal
"terminal.integrated.shell.linux": "/bin/zsh",
"terminal.integrated.fontSize": 14,
@palharez
palharez / strategyPattern.js
Created September 1, 2019 19:33
Strategy Pattern for my blog
// encapsulamento
class Commute {
travel(transport) {
return transport.travelTime();
}
}
class Vehicle {
travelTime() {
return this._timeTaken;
@palharez
palharez / GitCommitEmoji.md
Created February 25, 2019 23:36 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji