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 microFortnightSleep | |
{ | |
public static void mfsleep(int num) | |
{ | |
int time = num * 1209; | |
try | |
{ | |
Thread.sleep(time); | |
} | |
catch( InterruptedException e ) |
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
class ArrayExample{ | |
static int size = 10240; | |
static int A[][] = new int[size][size]; | |
static int B[][] = new int[size][size]; | |
static void copyij(){ | |
for( int i = 0; i < size; i++){ | |
for( int j = 0; j < size; j++){ | |
B[i][j] = A[i][j]; |
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
#include <stdio.h> | |
#include <sys/time.h> | |
#include <time.h> | |
#define DIM 10240 | |
int A[DIM][DIM]; | |
int B[DIM][DIM]; | |
void copyij( int *src, int *dst ){ |
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
import java.util.*; | |
public class PasswordStrength { | |
final static double POSSIBLECHARS = 62; //Upper and Lower Alphebet (52), Arabic Numberals (10) | |
public static void main( String[] args ){ | |
double entropy = 0; | |
int pwlength = 0; | |
String password; |