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 / 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.
@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 / 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 / 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 / PartA1.py
Created April 7, 2020 17:06
Electronic Report 2 - Part A - 1 Plot
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
cur_vol = {"Voltage": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "Current": [0.0000555556, 0.000111111,
0.000166667, 0.000222222, 0.000277778, 0.000333333, 0.000388889, 0.000444444, 0.0005, 0.000555556]}
data = pd.DataFrame(cur_vol)
plt.plot(data.Voltage, data.Current, color="red")
plt.scatter(data.Voltage, data.Current, color="red")
plt.bar(data.Voltage, data.Current, alpha=0.5, align="center", color="blue")
@uysalserkan
uysalserkan / bashrc
Created February 25, 2020 10:08
My Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# format() Metodunun Kullanım Biçimleri"
]
},
{
{
// Most Commonly Used
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'.
"files.autoSave": "off",
// Controls the font size in pixels.
"editor.fontSize": 14,
// Controls the font family.
@uysalserkan
uysalserkan / RecursiveFibonacci.cpp
Created January 20, 2019 17:02
Find the fibonacci value of the your integer.
#include <iostream>
using namespace std;
int TakeFibonacci(int num);
int main(void){
int number;
cout <<"Please enter the number: ";
cin >> number;
cout << "Your number is: "<<number<<endl<< "Fibonacci number is: "<< TakeFibonacci(number)<<endl;
}
int TakeFibonacci(int num){
@uysalserkan
uysalserkan / EquilateralTriangleArea.cpp
Created January 20, 2019 13:34
The program find the are of the equilateral triangle.
#include <iostream>
#include <math.h>
using namespace std;
double area(double);
int main(){
double x1;
cout <<"Please enter one side dimesion: ";
cin>>x1;
cout <<"Your area is: "<<area(x1)<<endl;
system("pause");