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
@nkrebs13
nkrebs13 / adb-compare
Created January 22, 2026 02:22
ADB Screenshot Comparison Tool
#!/bin/bash
# ADB Screenshot Comparison Tool
# Dependencies: adb, imagemagick
# Usage: adb-compare
set -e
# ============================================================================
# Configuration
# ============================================================================
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