I hereby claim:
- I am fado on github.
- I am pdonnelly (https://keybase.io/pdonnelly) on keybase.
- I have a public key whose fingerprint is 05D0 F41F 33A1 540D 6920 2793 B46E 0495 09A8 1456
To claim this, I am signing this object:
public static void main(String[] args) { | |
List<Thread> threads = new ArrayList<>(); | |
for(int i = 0; i < 10; i++) { | |
Thread thread = new Thread(0) ; | |
thread.setName("Thread: "+ i); | |
threads.add(thread); | |
} |
I hereby claim:
To claim this, I am signing this object:
function [ Bkg ] = bckGenerator( videoStream, sampling ) | |
buffer = []; | |
counter = 0; | |
% start : step size : end | |
for t = 1:sampling:size(videoStream, 4) | |
counter = counter + 1; | |
currentFrame = read(videoStream, t); | |
currentFrameGrey = rgb2gray(currentFrame); | |
currentFrameGrey = double(currentFrameGrey); | |
buffer(:,:,counter) = currentFrameGrey; |
public void locateAndRefundTicket(int ticketID) { | |
Database database = new Database(); | |
System.out.println(this.ticketHandler.getSoldTicketsList().size()); | |
List<Ticket> ticketsToBeRemoved = new ArrayList<>(); | |
for (Ticket ticket : this.ticketHandler.getSoldTicketsList()) { | |
if (ticket.getTicketID() == ticketID) { | |
ticket.setIsRefunded(true); |
PDDocument document = new PDDocument(); | |
PDPage page = new PDPage(); | |
document.addPage( page ); | |
PDFont font = PDType1Font.HELVETICA_BOLD; | |
PDPageContentStream contentStream = new PDPageContentStream(document, page); |
import java.io.*; | |
public class MinOccurance2 { | |
public static void main (String[] args) throws IOException { | |
int[] occur = new int[256]; | |
int current = 0; | |
RandomAccessFile file = new RandomAccessFile("test.txt", "r"); | |
long length = file.length(); |
package revision; | |
import java.util.PriorityQueue; | |
import java.util.Queue; | |
public class PriorityQueueRevision { | |
public static void main(String[] args) { | |
Queue<Integer> queue = new PriorityQueue<>(); |
package revision; | |
import java.util.PriorityQueue; | |
import java.util.Queue; | |
public class PriorityQueueRevision { | |
public static void main(String[] args) { | |
Queue<Integer> queue = new PriorityQueue<>(); |
package FileWriter; | |
import java.io.PrintStream; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import java.util.Random; | |
public class FileWriter { |
List<Aircraft> allAircraft = AirspaceHandler.INSTANCE.getAircraftInAirspace(); | |
for(Aircraft aircraft : allAircraft) { | |
aircraft.setStatus(Status.DIVERTED); | |
} |