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
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
#include "string.h" | |
#include "mem.h" | |
//Wav Header | |
struct wav_header_t | |
{ | |
char chunkID[4]; //"RIFF" = 0x46464952 |
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
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
#include "string.h" | |
#include "mem.h" | |
//Wav Header | |
struct wav_header_t | |
{ | |
char chunkID[4]; //"RIFF" = 0x46464952 |
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
#include <QCoreApplication> | |
#include <QVector> | |
#include <iostream> | |
#include "qmath.h" | |
using namespace std; | |
// Abs data of vector | |
void absVector (QVector <qint16> v, quint32 n) | |
{ |
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 MyMap; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
import static java.util.Objects.requireNonNull; | |
/** | |
* Custom implementation of HashMap with Stream API | |
* @author tkacz- |
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
import wave.WavHeader; | |
import wave.WavHeaderReader; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
/** | |
* Console utility for reading meta data of the wave files | |
*/ | |
public class MetaReader { |
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 models; | |
import enumerations.Grade; | |
/** | |
* Model of information about the discipline | |
*/ | |
public class Card { | |
/** | |
* Teacher who teach the discipline |
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
import java.io.*; | |
/** | |
* Console utility for copying file from source path to destination path | |
*/ | |
public class CopyFile { | |
public static void main(String[] args) { | |
if (args.length != 2) { | |
System.out.println("Illegal command line agruments!\n" + | |
"Usage: \n\t java CopyFile <source file path> <destination file path"); |
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
import java.util.*; | |
public final class RandomString { | |
public static String generateRandomString(Random random, int length) { | |
return random.insts(48, 122) | |
.filter(i -> (i < 57 || i > 65) && (i < 90 || i > 97)) | |
.mapToObj(i -> (char) i) | |
.limit(length) | |
.collect(StringBuilder::new, StringBuilder::append, StringBuilder::append) | |
.toString(); |
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
#include "Profile.h" | |
Profile::Profile() | |
{ | |
} | |
Profile::Profile(float w, short h, short age, QString g, float a, int calorie) | |
{ | |
setWeigth(w); |
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 converter; | |
/** | |
* Class utility for converting numbers to binary and back | |
* Addition and subtraction works for positive numbers | |
* Converter works right. Converter use two's complement for negative numbers | |
* <b>Functions:</b> | |
* <ul> | |
* <li>Converting integer to binary string</li> | |
* <li>Converting floating point (double) to binary string</li> |
OlderNewer