This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @param $sibling-selector: selector to target siblings (e.g. h5 | ".simple-filed") | |
// @param $sibling-count: the number of siblings that must exist in order for these widths to be applied | |
// @param $fixed-widths: optional keyword argument, list of fixed (percentage) widths to be applied to | |
// the first-n siblings (e.g. $fixed-widths: 40 30) | |
// | |
// Usage: | |
// h5 { | |
// @include width-by-sibling-count(h5, 4, $fixed-widths: 55); | |
// @include width-by-sibling-count(h5, 5, $fixed-widths: 40); | |
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection | |
namespace :db do | |
desc "Fix 'database is being accessed by other users'" | |
task :terminate => :environment do | |
ActiveRecord::Base.connection.execute <<-SQL | |
SELECT | |
pg_terminate_backend(pid) | |
FROM | |
pg_stat_activity | |
WHERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= Enum.map arbitrary_list, fn(item) -> %> | |
<%= item %> | |
<%= end %> |