This file contains 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
/* | |
* jdhuff.c | |
* | |
* This file was part of the Independent JPEG Group's software: | |
* Copyright (C) 1991-1997, Thomas G. Lane. | |
* libjpeg-turbo Modifications: | |
* Copyright (C) 2009-2011, 2016, 2018-2019, D. R. Commander. | |
* Copyright (C) 2018, Matthias Räncker. | |
* For conditions of distribution and use, see the accompanying README.ijg | |
* file. |
This file contains 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
/* Decode AC as fast as possible | |
* # Arguments( in order) | |
* -> s:(integer) | |
* -> nb:number of bits | |
* -> htbl: AC table | |
* -> fast_ac: A fast AC table | |
* -> k: | |
* */ | |
#define HUFF_DECODE_FAST_AC(s, nb, htbl,fast_ac,k,block) \ |
This file contains 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
abstract class Vehicle { | |
// The current speed of the car | |
double speed; | |
// The amount of gas(in litres) the car has | |
double gas = 200; | |
// acceleration | |
double initial_acceleration = 1.0; |
This file contains 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
package com.example.calculator; | |
import javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.geometry.Insets; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; | |
import javafx.scene.control.TextArea; | |
import javafx.scene.layout.BorderPane; |
This file contains 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
;------------------------------------------- | |
;This progra subtracts two 8 bit numbers | |
;----------------------------------------- | |
sub1: nop | |
mvi a,13h ; Move constant 13h into register a(Accumulator) | |
mvi b,10h ; Move constant 10h into register b. | |
sub b ; Subtract a from b | |
sta 00f0h ; Store value of accumulator in memory 00f0 | |
xra a ; Zero out a |
This file contains 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
;------------------------------------------- | |
;This program subtracts two 8 bit numbers | |
;----------------------------------------- | |
sub1: nop | |
mvi a,13h ; Move constant 13h into register a(Accumulator) | |
mvi b,10h ; Move constant 10h into register b. | |
sub b ; Subtract a from b | |
sta 00f0h ; Store value of accumulator in memory 00f0 | |
xra a ; Zero out a |
This file contains 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
; Multiply two numbers | |
; the number is held in register B | |
; The accumulator(Register A) holds the result | |
; Register c holds how far we are in | |
mvi a,29 ;Move zero into a | |
; Multiply 29*4 | |
mvi b,29 ; Move 29 to b | |
mvi c,1 ; Move 1 to c | |
mvi d,4 ; Move 4 to d |
This file contains 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
package com.example.multiwindows; | |
/* | |
* 146565 -Caleb Etemesi | |
* 142285 - Sumeiya Ali | |
* */ | |
import javafx.application.Application; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; |
This file contains 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 LinkedList | |
{ | |
// reference to the head node. | |
private Node head; | |
private int listCount; | |
// LinkedList constructor |
This file contains 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 ReverseString { | |
private static void reverse(String s, int position) { | |
// Base case , position === length. | |
if ((position) != -1) { | |
System.out.print(s.charAt(position)); | |
reverse(s, position - 1); | |
} |
OlderNewer