This file contains hidden or 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
# encoding: utf-8 | |
# Ufak bir betik. | |
require 'rake' | |
sh *%w[ps] do |ok, resp| | |
if ok | |
puts resp | |
else | |
puts "Error: #{resp.exitfailure if exit(stdout=false)}" |
This file contains hidden or 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
# encoding: utf-8 | |
veri = [ ] | |
kelimeler = [ :a, :b, :c, :d, :e, :f, :g, :h, :i, :j, :k, :l, | |
:m, :n, :o, :p, :r, :s, :t, :u, :v, :y, :z, :x ] | |
boyut = gets.chomp.to_i | |
boyut.times do | |
rasgele = rand(23) |
This file contains hidden or 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
// C dili çalışmaları: Kernighan Soru-1 | |
#include <stdio.h> | |
int main(void) { | |
int j = 0, sekme = 5; | |
int i, kr, bosluk; | |
for ( ; ; ) { |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# | |
# Piget için düzenlenmiş betik. | |
# | |
import urllib | |
import urllib2 | |
import sys | |
#import pita | |
import socket |
This file contains hidden or 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
[Desktop Entry] | |
Comment=Terminal dosya istemci | |
Exec=piget | |
GenericName=PIGET | |
Name=PIGET | |
StartupNotify=true | |
Terminal=true | |
TerminalOptions=piget -h | |
Type=Application | |
X-KDE-SubstituteUID=true |
This file contains hidden or 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
# -*- coding: utf-8 | |
# | |
# single thread bir programcık. | |
# | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * | |
from time import sleep | |
import sys |
This file contains hidden or 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
# + Kernel, Ruby method system | |
# + örnek gösterim | |
trace_var :$_, proc {|x| puts "$_ is now '#{x}'" } | |
$_ = "there" | |
Signal.trap(0, proc { puts "Terminating: #{$$}" }) | |
Signal.trap("CLD") { puts "Child died" } | |
fork && Process.wait |
This file contains hidden or 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
/* | |
* Linux altındaki ls komutuna benzer bir komut | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <dirent.h> | |
#define SUCCESS 1 |
This file contains hidden or 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
/* | |
* String Reverse | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
void string_reverse(char*); | |
int main(void) |
This file contains hidden or 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 | |
# | |
PARAM=$1 | |
ARGFILE="" | |
FILENAME="" | |
EXTENSION="" | |
VERSION="0.0.1" | |
USAGE="untarball file(-f): No file selected |