Skip to content

Instantly share code, notes, and snippets.

View alcidesqueiroz's full-sized avatar
💭
Doing some OSS contribution in my spare time

Alcides Queiroz alcidesqueiroz

💭
Doing some OSS contribution in my spare time
View GitHub Profile
@alcidesqueiroz
alcidesqueiroz / gist:a53add38194a19e6344e
Created December 20, 2014 17:04
OS X Mavericks: Show hidden files and folders
defaults write com.apple.finder AppleShowAllFiles -boolean true && killall Finder
@alcidesqueiroz
alcidesqueiroz / gist:8d5e40a0c4c3b91bc1cb
Created December 14, 2014 15:20
Error installing Nokogiri gem on OS X Mavericks
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
@alcidesqueiroz
alcidesqueiroz / gist:86ceed070b1d5e25a28a
Created June 29, 2014 20:01
Git: Remove files in .gitignore from a repository
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached
@alcidesqueiroz
alcidesqueiroz / gist:4f64352e38ffdd8e1d5d
Last active August 29, 2015 14:02
Sass: Function to render a "begins with" selector, which matches elements with some class beginning with a given text
@function class-begins-with($class-name){
@return '[class^="#{$class-name}"], [class*=" #{$class-name}"]';
}
//Usage
#{class-begins-with(main-toolbar-action)}{
color: black;
}
//Output
@alcidesqueiroz
alcidesqueiroz / same-value.scss
Last active July 29, 2019 09:20
Sass: Mixin to assign the same value to multiple properties at once
@mixin same($values...) {
$length: length($values);
$value: nth($values, $length);
@for $i from 1 to $length {
#{nth($values, $i)}: $value;
}
}
// Usage:
@alcidesqueiroz
alcidesqueiroz / gist:401ea1059a6a90aa2ac7
Last active August 29, 2015 14:01
Sass/CSS: Prevent flicker when doing transition with transform (webkit only)
@mixin fix-flicker-for-transform-transition{
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
}
@alcidesqueiroz
alcidesqueiroz / gist:9475942
Created March 10, 2014 22:36
Fix: Erro "invalid command name 'bind'" no Ubuntu 13.04 ao tentar rodar o Receitanet-x.xx.bin
sudo apt-get install libgtk2.0-0:i386 libidn11:i386 libglu1-mesa:i386
@alcidesqueiroz
alcidesqueiroz / config.rb
Last active December 27, 2015 06:09
config.rb básico para o Workshop "Rompendo os (vários) Limites do CSS com Sass e Compass"
current_path = File.dirname(__FILE__)
sass_path = File.join(current_path, 'scss')
css_path = File.join(current_path, 'css')
#:expanded, :nested, :compact, :compressed
output_style = :expanded
@alcidesqueiroz
alcidesqueiroz / colordiff
Created May 27, 2013 03:53
Perl terminal Script which calculates the difference between two colors in percentages and generates a prepared scale-color SASS function.
#!/usr/bin/perl
if ($#ARGV != 1) {
print "usage: colordiff color_a color_b\n";
exit;
}
$color_a = $ARGV[0];
$color_b = $ARGV[1];
@alcidesqueiroz
alcidesqueiroz / gist:4699895
Created February 3, 2013 00:25
Ubuntu - Paperclip dependencies
sudo apt-get install imagemagick librmagick-ruby