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 | |
yoket="/dev/null" | |
# /home dizinini kullanarak kayitli kullanici arama | |
echo -n "kullanici adi giriniz : "; read name | |
ls $( readlink -f $HOME/.. ) >home.txt | |
if grep $name home.txt 2>$yoket 1>2 ; then | |
echo "$name isminde kullanici bulundu " |
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/bash | |
:>ogr_adi.csv | |
:>ogr_num.csv | |
while read line; do | |
echo $line |awk -F, '{ print $1, $2 }' >> ogr_adi.csv | |
echo $line |awk -F, '{ print $3 }' >>ogr_num.csv | |
done <ogr.csv #csv icinde "<ogrenci_adi>,<ogrenci_soyadi>,<ogrenci_no>" seklinde kayıtlar var |
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
oldumu rafıq :) |
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/bash | |
alanlar() { | |
! [ $# -eq 1 ] && echo "icerdeyim" && exit 1 | |
ifs_save="$IFS" | |
alan=$1 | |
while read line; do | |
IFS=":" | |
set $line |
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/bash | |
alani_goster() { | |
! [ $# -eq 1 ] && echo "simdilik alan adi tek olamali :) " && exit 1 | |
alan=$1 | |
ifs_save="$IFS" | |
case "$alan" in | |
"user") | |
while read line; do |
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 -*- | |
import sys | |
sesli = ['a', 'e', 'ı', 'i', 'o', 'ö', 'u', 'ü', 'A', 'E', 'I', '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' ] | |
def hecebul(kelime): | |
kelime = kelime[::-1] |
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/beef | |
+++++ +++++ initialize counter (cell #0) to 10 | |
[ use loop to set the next four cells to 70/100/30/10 | |
> +++++ ++ add 7 to cell #1 | |
> +++++ +++++ add 10 to cell #2 | |
> +++ add 3 to cell #3 | |
> + add 1 to cell #4 | |
<<<< - decrement counter (cell #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/python3 | |
#-*- coding:utf-8 -*- | |
import sys | |
import re | |
sesli = ['a', 'e', 'ı', 'i', 'o', 'ö', 'u', 'ü', 'A', 'E', 'I', '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' ] | |
def reg_exp(list): |
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
# Test kodlarını üret. | |
# Kullanım: | |
# make # üret | |
# make clean # temizle | |
PROGS := $(patsubst %.c,%,$(wildcard *.c)) | |
# pthread kitaplığını ekle. | |
CFLAGS += -Wall -lpthread |
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
/* Evrelerle gerçekleştirilen nokta çarpımı */ | |
/* | |
* POSIX Thread'leriyle ilgili okunabilecek bazı kaynaklar: | |
* | |
* http://randu.org/tutorials/threads/ | |
* http://www.ibm.com/developerworks/linux/library/l-posix1.html | |
* http://www.ibm.com/developerworks/library/l-pthred.html | |
* http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html | |
*/ |
OlderNewer