Skip to content

Instantly share code, notes, and snippets.

View pradykaushik's full-sized avatar
😰
Watt is our problem!

PRADYUMNA KAUSHIK pradykaushik

😰
Watt is our problem!
View GitHub Profile
@pradykaushik
pradykaushik / Validation.java
Created October 29, 2020 01:03
Design for validation
public class Validation {
// Driver code.
public static void main(String... args) throws Exception {
Person p = new Person("john", 25);
Person p2 = new Person("", 25);
}
}
// Validator interface would typically be placed in the utility folder.
interface Validator {
@pradykaushik
pradykaushik / keybase.md
Created January 14, 2020 16:06
Keybase crypto file

Keybase proof

I hereby claim:

  • I am pradykaushik on github.
  • I am pkaushik (https://keybase.io/pkaushik) on keybase.
  • I have a public key ASCwC3PR-aOfbVSMbjOQboB-vwHmWg7A084lI129FxfXwAo

To claim this, I am signing this object:

@pradykaushik
pradykaushik / Load.java
Created October 23, 2017 21:00 — forked from SriramKeerthi/Load.java
Simple CPU Load Generator in Java
package com.caffinc.grex.core;
/**
* Generates Load on the CPU by keeping it busy for the given load percentage
* @author Sriram
*/
public class Load {
/**
* Starts the Load Generation
* @param args Command line arguments, ignored
@pradykaushik
pradykaushik / Alice and Bob Subtraction Game
Last active August 29, 2015 14:07
This is the Program that determines the winner in the Alice and Bob Subtraction Game. With the use of files the performance could be significantly increased.
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Scanner;
import java.util.Set;
public class MainGame {