This file contains hidden or 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
echo "gem 'devise'" >> Gemfile # Or edit Gemfile and add line: gem 'devise' | |
bundle install # Fetch and install the gems | |
rails generate devise:install # Creates config file, etc. | |
rails generate devise user # Create model class, routes, etc. | |
rake db:migrate # Create user table | |
rails generate devise:views users # Creates (minimal) views |
This file contains hidden or 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
public class Main { | |
public static void main(String[] args) { | |
Scanner key = new Scanner(System.in); | |
String num = promptForInput(key); | |
while(true) { | |
System.out.println("The decimal value " + num + " is " + binary(num) + " in binary."); | |
num = promptForInput(key); | |
} |