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 / git_commit_only_deleted_files
Created August 3, 2012 21:00
Git - Commit only deleted files...
git ls-files --deleted | xargs git rm
git commit
@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 / 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
@alcidesqueiroz
alcidesqueiroz / gist:4622499
Created January 24, 2013 14:46
Ubuntu 12.10 + capybara-webkit error: An error occurred while installing capybara-webkit (0.12.1), and Bundler cannot continue.
sudo apt-get install libqtwebkit-dev
gem install capybara-webkit -v '0.12.1'
@alcidesqueiroz
alcidesqueiroz / gist:3666995
Created September 7, 2012 15:10
Git - Always rebase when pulling
git config --global branch.autosetuprebase always
@alcidesqueiroz
alcidesqueiroz / gist:3454318
Created August 24, 2012 18:56
Ubuntu 12.04 - add-apt-repository command not found
how to fix:
apt-get install python-software-properties
@alcidesqueiroz
alcidesqueiroz / gist:3407518
Created August 20, 2012 20:22
Erro Library not loaded: libmysqlclient.18.dylib [MySQL] [Mac OS X]
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
@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