Skip to content

Instantly share code, notes, and snippets.

View eduardomartines's full-sized avatar
🏠
Working from home

Eduardo Martines eduardomartines

🏠
Working from home
View GitHub Profile
@eduardomartines
eduardomartines / .zshrc
Last active September 1, 2016 12:33
Exemplo: "username in ~/Projects/projectname on master ± [17:08:02] at machinename"
# ZSH
ZSH=$HOME/.oh-my-zsh
# PLUGIN
plugins=(git)
# SOURCE
source $ZSH/oh-my-zsh.sh
# PROMPT
@eduardomartines
eduardomartines / principios.md
Last active December 18, 2023 16:14
Algumas anotações sobre assuntos de tecnologia

Princípios

KISS - Keep It Simple Stupid.

Evitar complexidade desnecessária.

DRY - Don’t Repeat Yourself.

Evitar repetição de qualquer parte do sistema

@eduardomartines
eduardomartines / notifications.rb
Created September 7, 2014 05:17
Tabela de notificações
create_table "notifications", :force => true do |t|
t.integer "notified_id", :null => false
t.string "notified_type", :limit => 7, :null => false
t.integer "notifier_id", :null => false
t.string "notifier_type", :limit => 7, :null => false
t.integer "target_id", :default => 0, :null => false
t.string "target_type", :limit => 9, :default => "Undefined", :null => false
t.string "target_aggregation", :default => "", :null => false
t.string "action_type", :limit => 8, :null => false
t.boolean "read", :default => false, :null => false
@eduardomartines
eduardomartines / Preferences.sublime-settings
Created September 7, 2014 05:19
Configuração perfeita para o Sublime Text
{
"auto_complete": true,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_with_fields": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
@eduardomartines
eduardomartines / motospeed_ck62.ahk
Last active July 11, 2024 00:39
Motospeed CK62 - Autohotkey Script
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetCapsLockState, AlwaysOff
CapsLock & ,:: Send {Del}
CapsLock & .:: Send {End}
CapsLock & k:: Send {Ins}