Skip to content

Instantly share code, notes, and snippets.

@matheusagcosta
matheusagcosta / dabblet.css
Created May 13, 2014 19:36 — forked from iamstarkov/dabblet.css
centering with absolute position
/**
* centering with absolute position
*/
div {
width: 100px;
height: 100px;
background-color: red;
position: absolute;
@matheusagcosta
matheusagcosta / gist:f6d0bb43f4478b6b2e71
Created February 23, 2015 16:06
Show / Hide files on OSX
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.finder AppleShowAllFiles NO
@matheusagcosta
matheusagcosta / gist:be0b83a3f50062b88e6a
Created February 24, 2015 19:52
Import Refills Components
$ rails generate refills:list
$ rails generate refills:import SNIPPET
@matheusagcosta
matheusagcosta / git-yosemite-brew
Last active August 29, 2015 14:17
Fix Git Homebrew Version on Yosemite
type git
The answer will be like this:
git is hashed (/usr/bin/git)
hash -d git
@matheusagcosta
matheusagcosta / example.html
Last active August 29, 2015 14:17
Full width search
<style>
.container {
display: table;
position: relative;
width: 100%;
}
button,
.input {
display: table-cell;
@matheusagcosta
matheusagcosta / flash-message
Created April 29, 2015 13:47
Flash Message Toggle
$(function() {
var flashCallback;
flashCallback = function() {
return $("#flash-messages").fadeOut();
};
$("#flash-messages-close").bind('click', (function(_this) {
return function(ev) {
return $("#flash-messages").fadeOut();
};
})(this));
@mixin truncate($width) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: $width;
}
@matheusagcosta
matheusagcosta / Keyword search
Last active December 2, 2015 16:01
Quicksearch jQuery
$map: (
small: (38px, 2.5px),
medium: (56px, 5px),
big: (96px, 15px)
);
.class {
@each $size, $value in $map {
&--#{$size} {
height: #{nth($value, 1)};

Keybase proof

I hereby claim:

* I am matheusagcosta on github.  
* I am matheusagcosta (https://keybase.io/matheusagcosta) on keybase.  
* I have a public key ASDa6hF-csiUyWBiiJilmEvGNuXXPQPneFO8qS4zSS1EBwo

To claim this, I am signing this object: