Skip to content

Instantly share code, notes, and snippets.

View nurtemiz's full-sized avatar
🚀
on my way!

Nur Temiz nurtemiz

🚀
on my way!
View GitHub Profile
@nurtemiz
nurtemiz / natas11v2.php
Created January 31, 2019 06:39
xor_encrypt fonksiyonu
<?php
// original xor_encrypt fonksiyonu
function xor_encrypt($in) {
$key = 'qw8J';
$text = $in;
$outText = '';
// Iterate through each character
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
@nurtemiz
nurtemiz / natas11v1.php
Created January 31, 2019 06:36
xor_encrypt fonksiyonu
<?php
// encrypted_secret XOR secret = key eşitliğine uyarlanmış xor_encrypt fonksiyonu
function xor_encrypt($text) {
$key = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw='); //encrypted_secret
$outText = '';
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
}
@nurtemiz
nurtemiz / natas15.py
Created January 30, 2019 15:14
Natas15 Solition
# -*- coding: utf-8 -*-
# @author: Nur Temiz
# Natas15 Solition
import time
import requests
from requests.auth import HTTPBasicAuth
from tqdm import tqdm
print("\033[0;37;40m\nParolayı oluşturan karakterler tespit ediliyor...\033[1;m")
@nurtemiz
nurtemiz / basic-ann-calculate.py
Created August 24, 2018 13:28
basit bir neural network(perceptron) çıktısının hesaplanması
# -*- coding: utf-8 -*-
# @author: Nur Temiz
# basic ann output calculate
import math
net = 0
result = 0
x = [0.5, 0.6, 0.2, 0.7]
@nurtemiz
nurtemiz / bubble-sort-algorithm.py
Created August 24, 2018 13:23
Bubble sort (sıralama) algoritması
# -*- coding: utf-8 -*-
# @author: Nur Temiz
# Bubble sort (sıralama) algoritması
# 1- Veri listesi üzerinde birbirini izleyen geçişleri uygula.
# 2- Her geçiş esnasında birbirini izleyen iki liste elemanı arasında karşılaştırma işlemi yap ve gerekiyorsa yer değiştirme işlemini gerçekleştir.
# 3- Bir geçiş esnasında hiçbir yer değiştirme olmuyorsa ya da n-1 geçiş tamamlanmışsa (veri miktarının n olduğu var sayımı ile) sıralama işlemini sona erdir.
print("Sıralamak istediğiniz sayıları giriniz :" )
list = raw_input()
@nurtemiz
nurtemiz / interview.md
Last active March 28, 2018 08:37
an interview questions and my answers

Computation

You can just work with language-independent solutions.

  • Define a factorial function (done) here

  • Define a fibonacci function (done) here

  • Define a bubble_sort quick sort function which implements Bubble Sort algorithm. (done) here