- Published
- Author
- Hilda
Slack apps best practices and User experience - https://api.slack.com/best-practices
At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.
/etc/systemd/system/puma.servicesudo systemctl daemon-reloadsudo systemctl enable pumasudo service puma startsudo service puma statushistory | fzflayer , groups or frames.override. When we override an instance component and afterwards make modifications to the main component, the override does not change.say_something = -> { puts "This is a lambda" }scope method.class Fruit < ApplicationRecord
scope :with_juice, -> { where("juice > 0") }
enddouble is a method provided by the RSpec library for creating test doubles, also known as mocks. Test doubles are objects that stand in for real objects in your system during tests.tailwindcss-rails gem we don't need cssbundling-rails gem because tailwindcss-rails gem is a standalone version of Tailwind CSS that integrates with rails asset pipeline. It's a simpler and more direct alternative for rails applications because it doesn't require Node.js at all..abs method in Ruby is used to return the absolute value of a number. The absolute value of a number is its distance from zero, regardless of direction. In other words, it's the number without its sign.num = -10
puts num.abs # Outputs: 10num.abs returns 10 because the absolute value of -10 is 10.num = 10
puts num.abs # Outputs: 10mongo show dbs to list all the databasesuse and select the database.db and this will show the selected database (optional)db.dropDatabase() and it will drop the database and show the following response { "dropped" : "", "ok" : 1 } mongorestore --db Showing 37 to 39 of 82 results
Codemancers can bring your vision to life and help you achieve your goals