Test User Credentials
password | |
---|---|
applicant@test.com | password |
manager@test.com | password |
admin@test.com | password |
password | |
---|---|
applicant@test.com | password |
manager@test.com | password |
admin@test.com | password |
To restart a docker from the cli docker-machine restart
Removes images and containers. (best to stop all containers first) docker system prune -a
Removes all inactive volumes docker volume prune
Restart Docker after System prune to clean things out completely.
Build before your up. docker-compose build
docker-compose up
Diversity between groups is lower than diversity between individuals. If Diversity is our strength then we should be focusing on individuals not groups.
Post.attribute_names.map {|n| [n.to_sym,Post.type_for_attribute(n).type]}.to_h |
def reverse arr | |
arr.reverse | |
end | |
def xander1 arr | |
out = [] | |
neg_i = -1 | |
arr.each do | |
out << arr[neg_i] | |
neg_i -= 1 |
def reversi str = "" | |
out = '' | |
1.upto str.length do |i| | |
out << str.chars[-i] | |
end | |
out | |
end |
class UserDecorator < Draper::Decorator | |
include Draper::LazyHelpers | |
delegate_all | |
class << self | |
def tagtionary | |
@tagionary ||= tagtionary!.clone | |
end | |
def tagtionary! |
res.sort! do |x,y| | |
archived = -> (z) {[:archived, 'archived'].include?(z.status)} | |
if archived.call(x) && archived.call(y) | |
0 | |
elsif !archived.call(x) && archived.call(y) | |
-1 | |
elsif archived.call(x) && !archived.call(y) | |
1 | |
elsif !archived.call(x) && !archived.call(y) | |
0 |