Skip to content

Instantly share code, notes, and snippets.

Gustavo gugutz

Block or report user

Report or block gugutz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gugutz
gugutz / devise-auth-for-rails
Created Mar 31, 2019
rails authentication with devise
View devise-auth-for-rails
updated: 31/03/2019 with rails 5.2
add `gem 'devise'` to gemfile
bundle install
rails g devise:install
Ensure you have defined default url options in your environments files. Open up config/environments/development.rb and add this line:
```config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }```
@gugutz
gugutz / keybase.md
Created Mar 10, 2019
keybase prrof
View keybase.md

Keybase proof

I hereby claim:

  • I am gugutz on github.
  • I am gugutz (https://keybase.io/gugutz) on keybase.
  • I have a public key ASDtzDrkxpOABAQFTGBcuSZ7Uu0OJdoVpKrnD7Jgn2m-RQo

To claim this, I am signing this object:

@gugutz
gugutz / FizzBuzz.js
Created Jan 2, 2018
Fizz Buzz em JavaScript
View FizzBuzz.js
function fizzBuzz() {
var numero = 0;
for (numero == 0; numero < 101; numero++) {
if (numero % 5 == 0 && numero % 3 == 0) {
console.log("FizzBuzz");
continue;
}
else if (numero % 3 == 0) {
console.log("Fizz");
continue;
You can’t perform that action at this time.