I hereby claim:
- I am WesJD on github.
- I am wesjd (https://keybase.io/wesjd) on keybase.
- I have a public key whose fingerprint is 5DF0 E345 74BD D70A 03B7 1C4E 45CB 4DED 972A F8C4
To claim this, I am signing this object:
public class InstanceHolder<T> { | |
private final List<T> instances = new ArrayList<>(); | |
public void add(T instance) { | |
instances.add(instance); | |
} | |
public T get(Class<? extends T> clazz) { | |
return instances.stream().filter(instance -> instance.getClass().equals(clazz)).findFirst().orElse(null); |
use std::io; | |
struct Question { | |
ask: String, | |
answers: Vec<String>, | |
} | |
impl Question { | |
fn new(ask: String, answers: Vec<String>) -> Question { | |
Question { |
clear control | |
clear mod1 | |
clear mod4 | |
keycode 64 = Control_L NoSymbol Control_L | |
keycode 133 = Alt_L NoSymbol Alt_L | |
keycode 37 = Super_L NoSymbol Super_L | |
keycode 108 = Control_L NoSymbol Control_L | |
keycode 134 = Alt_L NoSymbol Alt_L |
public class FileManager { | |
private final JavaPlugin plugin; | |
private final List<ManagedFile> managedFiles = new ArrayList<>(); | |
public FileManager(JavaPlugin plugin) { | |
this.plugin = plugin; | |
plugin.getDataFolder().mkdirs(); | |
} |
I hereby claim:
To claim this, I am signing this object:
import javax.swing.JOptionPane; | |
public class CarRental { | |
private CarRental() { | |
final String make = JOptionPane.showInputDialog("What is the car make?"); | |
final String model = JOptionPane.showInputDialog("What is the car model?"); | |
final String licensePlate = JOptionPane.showInputDialog("What is the license plate value?"); | |
final int digits = Integer.parseInt(licensePlate.substring(4)); |
package net.wesjd.rockpaperscissors | |
import java.util.concurrent.ThreadLocalRandom | |
import scala.collection.JavaConverters | |
import scala.io.StdIn._ | |
import scala.reflect.ClassTag | |
class RockPaperScissors { |
MariaDB [(none)]> use michelle; | |
MariaDB [michelle]> create table items (type VARCHAR(75) NOT NULL, broken BOOL NOT NULL, used BOOL NOT NULL DEFAULT TRUE, got_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, last_used TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP);Query OK, 0 rows affected (0.01 sec) | |
MariaDB [michelle]> DESCRIBE items; | |
+-----------+-------------+------+-----+-------------------+-------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+-----------+-------------+------+-----+-------------------+-------+ | |
| type | varchar(75) | NO | | NULL | | | |
| broken | tinyint(1) | NO | | NULL | | | |
| used | tinyint(1) | NO | | 1 | | |