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
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
Post.attribute_names.map {|n| [n.to_sym,Post.type_for_attribute(n).type]}.to_h |
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
def reverse arr | |
arr.reverse | |
end | |
def xander1 arr | |
out = [] | |
neg_i = -1 | |
arr.each do | |
out << arr[neg_i] | |
neg_i -= 1 |
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
def reversi str = "" | |
out = '' | |
1.upto str.length do |i| | |
out << str.chars[-i] | |
end | |
out | |
end |
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
class UserDecorator < Draper::Decorator | |
include Draper::LazyHelpers | |
delegate_all | |
class << self | |
def tagtionary | |
@tagionary ||= tagtionary!.clone | |
end | |
def tagtionary! |
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
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 |
- X is an aspect of the Universe just like me.
- May X be well and happy.
- May X have no fears or sorrows.
- May X be healthy and free from illness.
- May X live calmly and peacefully.
- When see wrong done to X I will try to right it.
- When I see X suffering I will try to heal it.
- When I see X at war I will try to end it.
- X is just as deserving of compassion as myself or anyone.
NewerOlder