Skip to content

Instantly share code, notes, and snippets.

Avatar
🟢
Available

João Guilherme guicheffer

🟢
Available
View GitHub Profile
View config-iterm.json
{
"Ansi 7 Color" : {
"Green Component" : 0.7333333492279053,
"Red Component" : 0.7333333492279053,
"Blue Component" : 0.7333333492279053
},
"Tags" : [
],
"Ansi 12 Color" : {
@guicheffer
guicheffer / _reset.scss
Last active Jun 8, 2018
_reset.scss ❤️
View _reset.scss
/* http://guicheffer.me/
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
@guicheffer
guicheffer / alias.txt
Last active Dec 3, 2020
PRETTY GIT LG
View alias.txt
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
View @guicheffer.zsh-theme
# @guicheffer.zsh-theme, based on gnzh by Matthew Nelson.
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
local return_status="%{$fg[red]%}%(?..❌)%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX="|"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓%{$reset_color%} "
View .gitinit-config
/* Set up Git Configuration */
git config --global user.email "hi@guicheffer.me"
git config --global user.name "João Guilherme"
git config --global core.editor "vi"
git config --global color.ui true
@guicheffer
guicheffer / socialmedia.js
Last active Jun 7, 2016
social media (share) functions
View socialmedia.js
function shareFacebook(title, summary, url, image) {
url = ['https://www.facebook.com/sharer/sharer.php?s=100&p[summary]=', encodeURI(summary), '&p[title]=', encodeURI(title), '&p[url]=', encodeURI(url), '&p[images][0]=', encodeURI(image)];
window.open(url.join(''), 'facebook', 'height=300,width=600');
}
function shareFacebookFBui(options, callbackShare) {
// http://developers.facebook.com/docs/reference/dialogs/feed/
var defaults = {
method: 'feed',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
@guicheffer
guicheffer / pre-push
Created Jan 5, 2016
hook to force tests and prevent failing pushs to develop or master
View pre-push
#!/usr/bin/env bash
# .git/hooks/pre-push
# hook to force tests and prevent failing pushs to develop or master
#
# Refs:
# http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
# http://blog.ittybittyapps.com/blog/2013/09/03/git-pre-push/
#
# Bypassing the pre-push hook:
View common .gitconfig
# https://gist.github.com/codexico/2a34c0d599f3af93b46f
[color]
# Use colors in Git commanfds that are capable of colored output when
# outputting to the terminal. (This is the default setting in Git ≥ 1.8.4.)
ui = auto