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;
}
View Brewfile
tap 'caskroom/cask'
brew 'git'
brew 'npm'
brew 'yarn', args: ["ignore-dependencies"]
brew 'heroku'
brew 'openssl'
brew 'watchman'
cask 'the-unarchiver'
View sitemap.xml.builder
# 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
#
View retina-mixin.sass
// 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 Sep 5, 2018 — 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/
View template.rb
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
Install Node with Homebrew on OS X, also NPM and Bower
View passo-01
brew doctor
View _media-queries.scss
// ---------------------------------------------------------------------------------
// 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 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:

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