Skip to content

Instantly share code, notes, and snippets.

@kemalkanok
kemalkanok / test.sh
Created December 13, 2018 20:38
cpp compile with opencv
g++ `pkg-config --cflags --libs opencv` test.cpp -o test && ./test
@kemalkanok
kemalkanok / my_reverse.html
Created March 17, 2017 08:53
general reverse method
<script>
function start() {
// var text = prompt("here a text");
text="adanada";
// text = text.split('').reverse().join('');
// console.log(eval(text));
text = join(reverse(split(text)));
console.log(text);
}
http://paste.ubuntu.com/14163260/
<?php
function dispay($arr,$n)
{
for ($i=0; $i < $n; $i++) {
for ($j=0; $j < $j; $j++) {
echo $arr[$i][$j];
}
}
}
#include "stdio.h"
#include "time.h"
#include "stdlib.h"
#include "math.h"
#include "string.h"
//2002
//soru 5
// int main(int argc, char const *argv[])
// {
// int w = 0 , h=0;
@kemalkanok
kemalkanok / gist:464bb8c5225b38425352
Created October 13, 2015 19:34
function hierarchy
<?php
function test($a = "test")
{
echo $a;
}
function search($word,$key)
{
for($i=0;$i<strlen($word);$i++)
@kemalkanok
kemalkanok / php
Created October 13, 2015 19:32
function hierarch in system
<?php
function test($a = "test")
{
echo $a;
}
function search($word,$key)
{
for($i=0;$i<strlen($word);$i++)
function searchOne($word,$key,$start = 0)
{
for($i=$start;$i<strlen($word);$i++)
{
if($word[$i] == $key)
{
return $i;
}
}
return -1;
http://www.screenleap.com/webeducation
function search($word,$key)
{
for($i=0;$i<strlen($word);$i++)
{
if($word[$i] == $key)
{
echo $i;
break;
}
}