Skip to content

Instantly share code, notes, and snippets.

Avatar

Gustavo gugutz

View GitHub Profile
@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;
@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 / 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 }```
View rofi_-h_output
➜ ~ rofi -h
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
You can’t perform that action at this time.