Skip to content

Instantly share code, notes, and snippets.

View eduardojmatos's full-sized avatar

Eduardo Matos eduardojmatos

View GitHub Profile
@eduardojmatos
eduardojmatos / SassMeister-input.scss
Last active August 29, 2015 13:57
Generated by SassMeister.com.
// ----
// Sass (v3.3.0)
// Compass (v1.0.0.alpha.18)
// ----
$profile_themes: (
basic: (
title: (
color: blue,
font-family: Arial
@eduardojmatos
eduardojmatos / SassMeister-input.scss
Created March 10, 2014 17:20
Generated by SassMeister.com.
// ----
// Sass (v3.3.0)
// Compass (v1.0.0.alpha.18)
// ----
.post {
color: #333;
.link {
color: blue;
@at-root .link {
@eduardojmatos
eduardojmatos / .gitignore
Created March 15, 2014 09:45
.gitignore MustacheLabs
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
@eduardojmatos
eduardojmatos / ninth_digit_br.js
Last active August 29, 2015 14:00
Lista de DDDs que contém o nono dígito, considerando a data que os mesmos passam a valer (datas oficiais da Anatel)
/*
Author: Eduardo Matos
Release Date: 2014-04-18
Lista de todos os DDDs e as datas de liberação.
- Todos os lotes de dígitos serão liberados no dia 31 de dezembro de cada ano (2014, 2015, 2016);
Para usar, importe no seu javascript o link desse gist (versão 'raw') e chame:
@eduardojmatos
eduardojmatos / font_face_helper.css.scss
Last active August 29, 2015 14:02
Sass helper for font-face
@each $font-face in
"MyFont-Regular",
"MyFont-Bold",
"MyFont-Medium" {
@font-face {
font-family: $font-face;
font-style: normal; font-weight: normal;
src: font-url('#{$font-face}.eot');
src: font-url('#{$font-face}.eot?#iefix') format('embedded-opentype'),
@eduardojmatos
eduardojmatos / fixassets.rake
Last active August 29, 2015 14:06
Fix temporarily a sprockets bug with files that contains "." in their filenames
desc "Fix asset names with .min at end of filename"
task :fixassets => :environment do
puts "\n\n"
manifest_file = ""
manifest_json = ""
Dir.glob(File.join(Rails.root, 'public/assets/manifest*.json')) do |file|
manifest_file = file
@eduardojmatos
eduardojmatos / .gitconfig
Last active December 21, 2015 09:19
Git Config
[credential]
helper = osxkeychain
[user]
name = Eduardo Matos
email = eduardoj.matos@gmail.com
[color]
ui = auto
[color "diff"]
meta = blue bold
frag = yellow reverse dim
@eduardojmatos
eduardojmatos / .bash_profile
Last active December 21, 2015 09:19
My bash_profile
# append to the history file, don't overwrite it
shopt -s histappend
#enbles color in the terminal bash shell export
CLICOLOR=1
#sets up the color scheme for list export
LSCOLORS=cxfxcxdxbxegedabagacad
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
@eduardojmatos
eduardojmatos / .vimrc
Created August 20, 2013 17:36
My vimrc. *Plugins required listed on https://github.com/eduardojmatos/vimrc
"avoiding annoying csapprox warning message
let g:csapprox_verbose_level = 0
"necessary on some Linux distros for pathogen to properly load bundles
filetype on
filetype off
"load pathogen managed plugins
call pathogen#infect()
@eduardojmatos
eduardojmatos / dabblet.css
Last active March 23, 2016 00:46
max-content and min-content
section {
max-width: max-content;
margin: auto;
border: 1px solid #000;
}
section p {
padding: 10px;
background-color: yellow;
}