Skip to content

Instantly share code, notes, and snippets.

View ilkermanap's full-sized avatar

Ilker Manap ilkermanap

  • Stockholm / Sweden
View GitHub Profile
@ilkermanap
ilkermanap / main.py
Created January 30, 2023 22:58
scope icin sacma ornek
from modul1 import *
print("modul1 import edildi")
print("a =",a, " b = ", b, " maas = ", maas)
from modul2 import *
print("modul2 import edildi")
print("a =",a, " b = ", b, " maas = ", maas)
Verify Github on Galaxy. gid:RZeVpR4AWmymAB46ULYPTJ
@ilkermanap
ilkermanap / oyun.py
Created January 21, 2022 09:48
oyun. ordekleri tahtaya yerlestirir. degisik silah tanimi mumkun
import uuid
from math import sqrt
import pprint
import random
class Nokta:
def __init__(self, x, y):
self.id = str(uuid.uuid4())
self.x = x
@ilkermanap
ilkermanap / main.cpp
Created April 9, 2021 17:23
c/c++ linked list and binary tree examples. node addition and traversing
#include <iostream>
using namespace std;
/**
* Tek yonlu liste tanimi
*/
struct Node {
int data;
import matplotlib.pyplot as plt
import librosa.display
import os
import glob
import numpy as np
#import pandas as pd
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
import librosa
import sys
@ilkermanap
ilkermanap / geometri.py
Created May 3, 2020 17:57
Nokta, cizgi ve poligon nesneleri
from math import sqrt
class Nokta:
def __init__(self, x,y):
self.x1 = x
self.y1 = y
def __str__(self):
return f"{self.x1},{self.y1}"
@ilkermanap
ilkermanap / mybessel.py
Created April 11, 2020 15:15
bessel function
def bessel_series(x, order):
if order == 1:
return 1
sign = 1
if (order % 2) == 0:
sign = -1
top = x ** ((order * 2) -2 )
bottom = 1
@ilkermanap
ilkermanap / birlestir.py
Created March 8, 2020 15:55
ozel istek uzerine basit uygulama
harita = open("hastamap.txt","r").readlines()
def ekle(girdidosyasi, id, ciktidosyasi):
satirlar = open(girdidosyasi, "r").readlines()
f = open(ciktidosyasi, "a")
for satir in satirlar:
f.write(f"{id},{satir}")
f.close()
@ilkermanap
ilkermanap / cember.py
Created March 7, 2020 21:59
kesisen iki cember icin, ara bolgede kalan tamsayi noktalarin bulunmasi
import math
class Nokta:
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return f"({self.x},{self.y})"
def toplama(a,b):
return a+b
def carpma(a,b):
return a*b
class Komut:
def __init__(self):
self.liste = []
self.func = None