This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include <unistd.h> | |
int main(void) | |
{ | |
int i; | |
for (i = 0; i < 3; ++i) | |
fork(); | |
printf("process...\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <dirent.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#define MAX_PATH_SIZE 1024 | |
void DirWalk(const char *path, void (*Proc) (const char *))//fonksiyon işaretçileriyle dışardaki bir fonksiyona yönlendirez. | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class A | |
def initialize(x) | |
self.x = x #self ile x methoduna gönderiyoruz | |
end | |
def x=(x) | |
x[0] = x[0].chr.capitalize #x[0] ifadesi asci dönmekte ve bunu chr ile karaktere ,capitalize ile upper yapmaktayız. | |
@x = x | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
awk ' | |
BEGIN { | |
FS="\t" | |
} | |
{ | |
if ( $6 > 50 ){ | |
print "Dsn notu 50 den yuksek kisiler: "$2"" | |
} | |
vizetop=vizetop+$4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#-*- coding:utf-8 -*- | |
sesli = ['a', 'e', 'ı', 'i', 'o', 'ö', 'u', 'ü', 'A', 'E', 'I', 'İ', 'O', 'Ö', 'U', 'Ü'] | |
sessiz = ['b', 'c', 'ç', 'd', 'f', 'g', 'ğ', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', | |
'ş', 't', 'v', 'y', 'z', 'B', 'C', 'Ç', 'D', 'F', 'G', 'Ğ', 'H', 'J', 'K', 'L', | |
'M', 'N', 'P', 'R', 'S', 'Ş', 'T', 'V', 'Y', 'Z' ] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h = [1, 2, 3, 4, 5, 4, 3, 2 ,1]; | |
x = [0, 10, 10, 10, 10, 10, 10, 10, 0]; | |
subplot(3,1,1); plot(h); | |
subplot(3,1,2); plot(x); | |
p = []; | |
i = 0; | |
durum = 0; | |
for k = 1:(length(h)+length(x)-1) | |
top = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'net/http' | |
require 'open-uri' | |
require 'json' | |
print "İsim <enter> depo <enter>\n" | |
isim = gets.chomp! | |
repo = gets.chomp! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
def en_uzun_kelime(cumle): | |
liste = cumle.split() | |
uzunluk = map(lambda x:len(x),liste) #Burasi liste donmektedir. | |
print liste[uzunluk.index(max(uzunluk))] #listenin en uzununun indexini listede bul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;<Program title> | |
mvi D , 0; | |
mvi E , 8; | |
mvi H , 0B1h; | |
mvi A , 1; | |
mov L , A; | |
;A 'nin kaydirilmis degeri ile H'nin o basamagindaki degerin 1 mi 0 mi oldugunu anlariz. | |
don: ANA H ; A ile H yi and'la ve basamagin 1 mi 0 mi oldugunu anla. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;<Program title> | |
;B eşitlerin sayısı | |
;C kücüklerin sayısı | |
;D büyüklerin sayısı | |
lxi h, 0200h; | |
mvi e, 11h | |
tara: dcr e; sayac | |
jz bitir; sifirsa bitir. | |
call kontrol;karsilastirma icin gonder. |
OlderNewer