Skip to content

Instantly share code, notes, and snippets.

View kyzn's full-sized avatar

Kivanc Yazan kyzn

View GitHub Profile
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">alert(document.flag)</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
#! /usr/bin/perl
use warnings;
use strict;
use utf8;
my @x1 = ('BAŞ');
my @x2 = @ARGV; # BAŞ
my @y = ('basari', 'başarı');
#based on nikhil's code
import mnist_loader
import random
import time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
@kyzn
kyzn / lab4.py
Created January 28, 2016 09:06
Counting Inversions with Brute Force and Merge Sort
import numpy as np
import scipy
from matplotlib import pyplot as plt
import timeit
#Brute Force Inversion Counting
def brute_count(A):
count=0
for i in range(0,len(A)):
for j in range(i,len(A)):
@kyzn
kyzn / Project.prm
Created November 24, 2014 19:56
CMPE443 Assignment#12
/* This is a linker parameter file for the MC9S12DG128B */
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
/* Register space */
/* IO_SEG = PAGED 0x0000 TO 0x03FF; intentionally not defined */
/* RAM */
RAM = READ_WRITE 0x0400 TO 0x1FFF;
/* This is a linker parameter file for the MC9S12DG128B */
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
/* Register space */
/* IO_SEG = PAGED 0x0000 TO 0x03FF; intentionally not defined */
/* RAM */
RAM = READ_WRITE 0x0400 TO 0x1FFF;