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 / Keyword search
Last active December 2, 2015 16:01
Quicksearch jQuery
@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 / podbot.md
Last active December 25, 2022 11:58
Podbot Counter Strike 1.6 on Mac OSX

1 - Make sure you have Counter Strike installed

2 - Download YAPB http://forums.bots-united.com/showthread.php?t=9986

3 - Extract the zip and move the folder addons with all the content to ~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike

4 - After that, open the file liblist.gam in the folder above and replace gamedll_osx "dlls/cs.dylib" with this content:

//gamedll_osx "dlls/cs.dylib"
$map: (
small: (38px, 2.5px),
medium: (56px, 5px),
big: (96px, 15px)
);
.class {
@each $size, $value in $map {
&--#{$size} {
height: #{nth($value, 1)};