Skip to content

Instantly share code, notes, and snippets.

View orhanerday's full-sized avatar
🦆
Working from home

Orhan erday orhanerday

🦆
Working from home
View GitHub Profile
@orhanerday
orhanerday / main.go
Created September 20, 2023 14:01
Golang BFS algorithm
package main
import "fmt"
func main() {
graph := map[int][]int{
5: {3, 7},
3: {2, 4},
7: {8},
2: {},
@orhanerday
orhanerday / main.go
Created December 4, 2022 07:49
very primitive neural network written in go
package main
import (
"fmt"
"math"
"math/rand"
"time"
)
// Neuron represents a single neuron in a neural network.
@orhanerday
orhanerday / oop.php
Created July 13, 2021 11:23
Simple oop project for php 7.4.9
<?php
class Account
{
//Properties
private int $id;
private string $name;
private float $balance;
@orhanerday
orhanerday / hesapmakinesi.cpp
Created June 15, 2021 12:29
C++ Basit Hesap Makinesi
#include <iostream>
using namespace std;
int main() {
int sayi1 = 0;
int sayi2 = 0;
int secim = 0;
cout << "Lütfen Seçim Yapınız: " << endl << "1 = Bölme" << endl << "2 = Toplama" << endl << "3 = Çıkartma" << endl << "4 = Çarpma" << endl;
cout << "Seçiminiz : ";
@orhanerday
orhanerday / datatable.js
Last active September 14, 2023 06:44
DataTable Türkçe Arama problem çözümü:
/**
Merhaba,
datatable.js de escapeRegex fonksiyonunu arayın ve düzenlemenizi yapın
DataTable güncellemesi ile birlikte bir çok arkadaşımızdan geri dönüş oldu.
1.10.20 versiyonu ile birlikte jquery.DataTable.js kodlarımızda aşağıdaki değişikliği yapmanız gerekmektedir.
**/
/**
* Escape a string such that it can be used in a regular expression
# Local System Information v3
# Shows details of currently running PC
# Thom McKiernan 11/09/2014
$computerSystem = Get-CimInstance CIM_ComputerSystem
$computerBIOS = Get-CimInstance CIM_BIOSElement
$computerOS = Get-CimInstance CIM_OperatingSystem
$computerCPU = Get-CimInstance CIM_Processor
$computerHDD = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = 'C:'"
Clear-Host
@orhanerday
orhanerday / Activity1.cs
Created December 16, 2019 13:36
XamarinDosya Kurt Holland
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
import 'package:flutter/material.dart';
main()=>runApp(new MaterialApp(
home: new AppHome(),
));
class AppHome extends StatefulWidget{
@override
State<AppHome> createState() {
return new AppState();
}
//abstract - Soyut
//extends
//implements
//inheritence--kalıtım
//Sınıflar
abstract class Cinsiyet{
//abstract method - soyut metot gövdesi olmayan
#include <iostream>
using namespace std;
int main()
{
bool dogru = 1;
while (dogru)
{