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> | |
/* bu bir gist */ | |
int main(int argc, char *argv[]) | |
{ | |
int toplam; | |
if (argc < 2) { | |
fprintf(stderr, "kullanım: %s [sayı]...\n", argv[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
<?php | |
// Yerleştirme planımız. | |
function plan() { | |
return array( | |
'mühendislik' => array( | |
'salonlar' => array( | |
'a101' => array( | |
'kapasite' => 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
<?php | |
// Yerleştirme planımız. | |
function plan() { | |
return array( | |
'mühendislik' => array( | |
'salonlar' => array( | |
'a101' => array( | |
'kapasite' => 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/ruby | |
require 'csv' | |
##[global]############################################################# | |
$kisiler = {} #db.csv'den okunan bilgilerin tutuldugu sozluk | |
$csvname = "db.csv" #okunacak db'nin adı. | |
$kafa = [] #csv dosyasının ilk satırı.(örn : ["ad", "soyad", "no"]) | |
$key = "no" #herhangi bir csv de key olarak seçeceginiz ifade. | |
$value = [] #$kafa'nın keysiz hali.(örn : ["ad", "soyad"]) | |
####################################################################### | |
# |
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 'csv' | |
##[global]############################################################# | |
$kisiler = {} #db.csv'den okunan bilgilerin tutuldugu sozluk | |
$csvname = "db.csv" #okunacak db'nin adı. | |
$kafa = [] #csv dosyasının ilk satırı.(örn : ["ad", "soyad", "no"]) | |
$key = "no" #herhangi bir csv de key olarak seçeceginiz ifade. | |
$value = [] #$kafa'nın keysiz hali.(örn : ["ad", "soyad"]) | |
####################################################################### | |
# |
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 <sys/wait.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#define MAXLINE 1024 | |
void err_sys(char *msg) { |
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 'csv' | |
##[global]############################################################# | |
$kisiler = {} #db.csv'den okunan bilgilerin tutuldugu sozluk | |
$csvname = "db.csv" #okunacak db'nin adı. | |
$kafa = [] #csv dosyasının ilk satırı.(örn : ["ad", "soyad", "no"]) | |
$key = "no" #herhangi bir csv de key olarak seçeceginiz ifade. | |
$value = [] #$kafa'nın keysiz hali.(örn : ["ad", "soyad"]) | |
####################################################################### | |
# |
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> | |
void | |
sleep(char *msg) | |
{ | |
fprintf(stdout, "%s", msg); | |
} | |
void |
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 <ctype.h> | |
int main(void) { | |
int c, state = 1; | |
for ( ; ; ) { | |
c = getchar(); | |
if (c == EOF) break; | |
switch (state) { | |
case 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
#!/bin/sh | |
# hook : inoticoming --logfile t.log --pid-file t.pid /tmp/t --suffix .txt --stderr-to-log /tmp/t.sh {} \; | |
file=/tmp/t/$@ | |
mb=$(cat $file | wc -c); | |
min_size=5 | |
if [ -e $file ];then | |
echo >&2 "$@ dosyası daha önceden vardı, birşey yapmadım" |
OlderNewer