Skip to content

Instantly share code, notes, and snippets.

View uysalserkan's full-sized avatar
🐉
model.predict(privateInput)==25

Serkan UYSAL uysalserkan

🐉
model.predict(privateInput)==25
View GitHub Profile
@uysalserkan
uysalserkan / Part-1-B
Created April 7, 2020 18:28
Electronic Report 2 Plot Codes
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
cur_vol = {"Voltage": [0, 0.233182, 0.54725, 1.0225, 1.555, 5.63033, 10.67], "Current": [
0, 0.0000100, 0.000100, 0.000500, 0.001000, 0.005000, 0.010000]}
data = pd.DataFrame(cur_vol)
plt.plot(data.Voltage, data.Current)
plt.scatter(data.Voltage, data.Current)
plt.xticks(data.Voltage)
@uysalserkan
uysalserkan / basic_es.pl
Created August 13, 2020 12:52
Basic Expert System, Prolog
% Expert system should be started from here
main :-
intro,
reset_answers,
find_language(Language),
describe(Language), nl.
intro :-
write('Which programming language should I learn first?'), nl,
@uysalserkan
uysalserkan / BLCCS.md
Last active September 18, 2020 13:36
Basic Linux Commands Cheat-Sheet

This list includes a bunch of different commands that are useful to know when working with Linux. Not all of these commands are covered in the videos, so feel free to investigate them on your own.

Managing files and directories

cd directory: changes the current working directory to the specified one

pwd: prints the current working directory

ls: lists the contents of the current directory

@uysalserkan
uysalserkan / Assignment_1.ipynb
Created June 3, 2021 10:40
P.I. Works Assignment 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@uysalserkan
uysalserkan / SudokuSolver.cpp
Created June 12, 2021 14:06
Sudoku Solver - Recursive function C++17 or above
/**
* @file SudokuSolver.cpp
* @author Serkan UYSAL (uysalserkan08)
* @brief Sudoku Solver with recursive functions and class.
* @version 0.1
* @date 2021-06-12
*
* @copyright Copyright (c) 2021
*
*/
@uysalserkan
uysalserkan / hibernate.cfg.xml
Created June 26, 2021 09:06
hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/java_relation</property>
<property name="hibernate.connection.username">admin</property>
<property name="hibernate.connection.password">myPasswordExactlySame</property>
<!-- <property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.current_session_context_class">thread</property>
@uysalserkan
uysalserkan / application.properties
Created July 1, 2021 06:00
application.properties spring boot mysql connection
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=admin
spring.datasource.password=my_amazing_passwordz
spring.datasource.url=jdbc:mysql://localhost:3306/employee_mng
spring.jpa.hibernate.ddl-auto=update
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=username
spring.mail.password=password
# Other properties
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.connectiontimeout=5000
spring.mail.properties.mail.smtp.timeout=5000
spring.mail.properties.mail.smtp.writetimeout=5000
@uysalserkan
uysalserkan / better-commands-settings.json
Created November 16, 2021 06:41
Better commands tags
"better-comments.tags": [
{
"tag": "ERROR",
"color": "#FF0000",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},