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;
}
tap 'caskroom/cask'
brew 'git'
brew 'npm'
brew 'yarn', args: ["ignore-dependencies"]
brew 'heroku'
brew 'openssl'
brew 'watchman'
cask 'the-unarchiver'
# encoding: utf-8
xml.instruct!
# Drop this file in your source directory
#
# Uses the builder gem.
# Add
# gem 'builder', '~> 2.0'
# to the Gemfile, and run builder install
#
// Mixin: Automaticamente escreve
// USO:
// +background-2x(logo)
// Com imagem jpg:
// +background-2x(logo,jpg)
// Obs: Obrigatório ter a imagem normal e retina no mesmo diretório - "imagem.png" e "imagem@2x.png"
// OUTPUT CSS:
// #logo {
@renatocarvalho
renatocarvalho / template.rb
Last active September 5, 2018 07:51 — forked from julioprotzek/template.rb
Rails App template to create a custom rails app. Just run on terminal: rails new myrailsapp -T -m https://gist.github.com/renatocarvalho/5147512/raw/
remove_file 'Gemfile'
create_file 'Gemfile'
add_source "https://rubygems.org"
gem 'rails', '~> 3.2.12'
if yes?('PostgreSQL on development?')
gem 'pg'
@renatocarvalho
renatocarvalho / passo-01
Last active May 18, 2018 23:22
Install Node with Homebrew on OS X, also NPM and Bower
brew doctor
@renatocarvalho
renatocarvalho / _media-queries.scss
Created June 19, 2012 23:34 — forked from anthonyshort/_media-queries.scss
Media Queries in Sass
// ---------------------------------------------------------------------------------
// Mixin for Media Queries
// ---------------------------------------------------------------------------------
// http://thesassway.com/intermediate/responsive-web-design-in-sass-using-media-queries-in-sass-32
// Device Dimensions inpired on: http://css-tricks.com/snippets/css/media-queries-for-standard-devices
// Usage
// --------------------------------------------------
// .profile-pic
@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:

@renatocarvalho
renatocarvalho / Preferences.sublime-settings
Last active September 15, 2017 02:22
My User Settings for Sublime Text
{
"binary_file_patterns":
[
".svn/",
".git/",
".hg/",
"CVS/",
"node_modules/",
"bower_components/",
"dist/"
@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 = '.'