Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
emails = [] | |
emails.each do |email| | |
@user = User.find_by_email(email) | |
@password = (0...8).map { [('a'..'z'), ('A'..'Z')].map(&:to_a).flatten[rand([('a'..'z'), ('A'..'Z')].map(&:to_a).flatten.length)] }.join | |
@user.password = @password | |
@user.password_confirmation = @password | |
raw, hashed = Devise.token_generator.generate(User, :reset_password_token) | |
@user.reset_password_token = hashed | |
@user.reset_password_sent_at = Time.now.utc | |
@url = Utils::GetUrlEnv.call(@user) |
<div id="root"></div> |
version: '3' | |
services: | |
db: | |
image: postgres | |
environment: | |
POSTGRES_HOST_AUTH_METHOD: trust | |
volumes: | |
- ./tmp/db:/var/lib/postgresql/data | |
web: | |
build: . |
numero = 7 | |
factorial = 1 | |
while numero > 0 | |
factorial = factorial * numero | |
numero -= 1 | |
end | |
puts factorial |
cont = 0 | |
while cont <= 10 | |
puts "el valor de cont es #{cont}" | |
cont += 1 | |
end |
Getting started:
Related tutorials:
A Pen by Luciano Tonet on CodePen.
A Pen by Avinash Kondagunta on CodePen.
A Pen by Fabio Biondi on CodePen.