Skip to content

Instantly share code, notes, and snippets.

View renatocarvalho's full-sized avatar
💭
🤘✨

Renato Carvalho renatocarvalho

💭
🤘✨
View GitHub Profile
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 December 31, 2017 13:04 — forked from barnes7td/sublime_setup.md
Sublime Terminal Setup on Mac

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:

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 03:40
Middleman email obfuscate helper
# ====================================
# 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 October 23, 2014 14:52
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
// ---------- //
// Sass stuff //
// ---------- //
@renatocarvalho
renatocarvalho / SassMeister-input.scss
Created October 15, 2014 18:22
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// Susy (v2.1.3)
// ----
@import "susy";
// Loop!
@renatocarvalho
renatocarvalho / _footer.slim
Created October 8, 2014 14:12
Frontend Responsa: Implementando código modular: _footer.slim
@renatocarvalho
renatocarvalho / _header.slim
Last active August 29, 2015 14:07
Frontend Responsa: Implementando código modular: _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 October 8, 2014 14:06
Frontend Responsa: Implementando código modular: 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

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