Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🤘

Renato Carvalho renatocarvalho

💭
🤘
View GitHub Profile
View stars-effect.css
html {
height: 100%;
background: radial-gradient(ellipse at bottom, #000 0%, #111 100%);
overflow: hidden;
}
body {
margin: 0;
}
@renatocarvalho
renatocarvalho / sublime_setup_mac.md
Last active Dec 31, 2017 — forked from barnes7td/sublime_setup.md
Sublime Terminal Setup on Mac
View sublime_setup_mac.md

Setup Terminal for Sublime Shorcut "subl":

Open terminal and type:

1. Create a directory at ~/bin:

mkdir ~/bin

2. Copy Sublime executable to your ~/bin directory:

View Brewfile
tap 'caskroom/cask'
brew 'git'
brew 'npm'
brew 'yarn', args: ["ignore-dependencies"]
brew 'heroku'
brew 'openssl'
brew 'watchman'
cask 'the-unarchiver'
@renatocarvalho
renatocarvalho / mailto_helper.rb
Last active May 9, 2017
Middleman email obfuscate helper
View mailto_helper.rb
# ====================================
# Obfuscate email
# Adapted from:
# http://stackoverflow.com/questions/483212/effective-method-to-hide-email-from-spam-bots2
# Usage:
# = mailto('hi@email.com', 'Get in touch', 'btn btn--nav')
# ====================================
MAIL_TO = 'mailto:'
AT = '@'
DOT = '.'
@renatocarvalho
renatocarvalho / SassMeister-input.scss
Created Oct 23, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
// ---------- //
// Sass stuff //
// ---------- //
@renatocarvalho
renatocarvalho / SassMeister-input.scss
Created Oct 15, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// Susy (v2.1.3)
// ----
@import "susy";
// Loop!
@renatocarvalho
renatocarvalho / _footer.slim
Created Oct 8, 2014
Frontend Responsa: Implementando código modular: _footer.slim
View _footer.slim
@renatocarvalho
renatocarvalho / _header.slim
Last active Aug 29, 2015
Frontend Responsa: Implementando código modular: _header.slim
View _header.slim
header.row
.container
.site-brand
= link_to 'Waza', '/'
nav.nav
ul.list.list--nav
li.list__item = link_to 'Sobre', '/', class: 'list__link'
li.list__item = link_to 'Projetos', '/', class: 'list__link'
@renatocarvalho
renatocarvalho / index.html.slim
Created Oct 8, 2014
Frontend Responsa: Implementando código modular: index.html.slim
View index.html.slim
/ Hero
.row
.hero
.container
h1.hero__title Nós sómos Waza
h2.hero__subtitle Lorem lipsum dolor sit amet consectue lorem dorem.
.hero__links
= link_to 'Conheça o nosso trabalho', '/', class: 'btn'
/ About
View dev-naming-conventions.md

dev naming conventions

production:

  • heroku app name: appname-prod
  • heroku app address: appname-prod.herokuapp.com
  • gitflow branch: master
  • mixpanel, etc: appname-prod

development:

  • heroku app name: appname-dev