Skip to content

Instantly share code, notes, and snippets.

View nkrebs13's full-sized avatar
💭
:party_parrot:

Nathan Krebs nkrebs13

💭
:party_parrot:
View GitHub Profile
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);
}
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