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
#ifndef MODELVALIDATOR_H | |
#define MODELVALIDATOR_H | |
#include "memory" | |
#include <QList> | |
using namespace std; | |
enum class ModelType | |
{ | |
PERSON, |
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 <QGuiApplication> | |
#include <QQmlApplicationEngine> | |
#include <QDebug> | |
#include "packet.h" | |
#include "packetparser.h" | |
#include "packetprocessor.h" | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
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
obj-m += chardev-ex.o | |
CROSS_COMPILE= | |
LINUX_DIR=/lib/modules/$(shell uname -r)/build | |
PWD=$(shell pwd) | |
all: | |
make -C $(LINUX_DIR) M=$(PWD) modules | |
clean: |
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
let axios = require('axios'); | |
const api = { | |
async version() { | |
let response = await axios.get("http://localhost:5454/rest/api/1.0/application-properties") | |
return response.data; | |
}, | |
async branches(projectKey, repositorySlug, params) { | |
try { | |
let response = await axios.get(`http://localhost:5454/rest/api/1.0/projects/${projectKey}/repos/${repositorySlug}/branches`, { |
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
async function pageRequest(params) { | |
if (params.start >= 100) { | |
return Promise.resolve({ | |
start: params.start, | |
limit: 25, | |
isEndOfData: true | |
}); | |
} else { | |
return Promise.resolve({ | |
start: params.start, |
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
// | |
// ostream.cpp | |
// utility | |
// | |
// Created by Talha Havadar on 18.04.2019. | |
// Copyright © 2019 Talha Can Havadar. All rights reserved. | |
// | |
#include "ostream.hpp" | |
#include <iostream> |
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
package com.talhahavadar.exceptions; | |
/** | |
* Created by talhahavadar on 13.03.2018. | |
*/ | |
public class InvalidPlateException extends RuntimeException { | |
private static final String message = "Plate information is not valid."; | |
public InvalidPlateException() { |
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
package be.telenetgroup.services.tgapi.testing.support; | |
import org.springframework.util.CollectionUtils; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Objects; | |
/** |
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
""" | |
Implementation of Babylon algorithm to find roots of the number | |
@author Talha Can Havadar | |
""" | |
def root(number, degree): | |
""" | |
Takes the root of the given number according to given degree | |
and returns the rooted number as a result | |
""" |
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 socket, io, struct, time | |
s = socket.socket() # defaults family AF_INET and type SOCK_STREAM (tcp) | |
HOST = ""# "192.168.1.39" # computer's ip address | |
PORT = 51215 # port number that computer will listen | |
s.connect((HOST,PORT)) | |
try: |