Skip to content

Instantly share code, notes, and snippets.

@matheusagcosta
matheusagcosta / ternary.jade
Last active June 24, 2021 18:56
Toggle Pug or Jade class using ternary operator
// Jade
.item(class="#{ current.source != 'about' ? 'is-active' : '' }")
https://mega.nz/#F!I4A33aYS
@matheusagcosta
matheusagcosta / .scss-lint.yml
Created November 3, 2017 18:52
SCSS lint config
scss_files: 'client/**/*.scss'
linters:
SelectorDepth:
max_depth: 4
NestingDepth:
max_depth: 4

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:

$map: (
small: (38px, 2.5px),
medium: (56px, 5px),
big: (96px, 15px)
);
.class {
@each $size, $value in $map {
&--#{$size} {
height: #{nth($value, 1)};
@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"
@mixin truncate($width) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: $width;
}
@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));
@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 / 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