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
function [compres, J] = four(image,oran) | |
I = imread(image); | |
J = I; | |
[R C L] = size(I); | |
for i = 1:L | |
inversF = zeros(R,C); | |
imF = fftshift(fft2(double(I(:,:,i)))); | |
compres(:,:,i) = imF(oran:(R-oran),oran:(C-oran)); |
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
class Myclass: | |
def __init__(self,x): | |
self.ozellik = x | |
def foomethodu(self,x,y): | |
self.x = x | |
self.y = y | |
nesne1 = Myclass(2) | |
nesne1.foomethodu(1,8) | |
nesne2 = Myclass(3) |
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
function R = rle(Q) | |
len = length(Q); | |
son_eleman = len; | |
i = 1; eleman = 1; | |
R = {}; | |
tmp = str2mat('PXX'); | |
while len > 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
function Q = zigzag(I) | |
A = 16; | |
Q = [0]; | |
buyuk = 2; | |
katman = buyuk; | |
kucuk = 1; i = 1; j = 1; | |
while A > 0 | |
if (i ==1 & j == 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
function [J,N,K,D] = compress() | |
f = double(rgb2gray(imread('g.png'))); | |
[R C] = size(f); | |
J = zeros(R,C); | |
N = zeros(R,C); | |
D = {}; | |
K = {}; |
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 | |
# Kullanımı | |
# ./ppt2jpg <dosya-adı>.ppt | |
fullpath="$1" | |
dosyaname="${fullpath##*/}" | |
basename="${dosyaname%.*}" | |
loimpress -convert-to pdf "$dosyaname" |
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
for f in *jpg | |
do | |
convert -resize 10% $f $f | |
done |
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
function renk_sayisi=different() | |
I = imread('autumn.tif'); | |
J = {}; | |
[R C L] = size(I); | |
for r=1:R | |
for c=1:C | |
if ( bul(J,I(r,c,1),I(r,c,2),I(r,c,3))) | |
J{length(J)+1} = [I(r,c,1),I(r,c,2),I(r,c,3)]; |
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
require 'rexml/document' | |
include REXML | |
UTF8 = "<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/></head>" | |
file = File.new( "yazılar.xml" ) | |
doc = REXML::Document.new file | |
doc.elements.each("*/channel/item/") do |f| | |
garbage = File.new('foo.html',"w") | |
garbage.write(UTF8 + f.elements['title'].text + f.elements['content:encoded'].text) | |
garbage.close |
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 | |
if [ $# -eq 0 ]; then | |
echo "kullanimi: '<user> <dbname> <dbpass>' " | |
echo "Yedekleme dizini belirtmek istiyorsaniz: '<user> <dbname> <dbpass> <path>' " | |
fi | |
date=$(date +"%d-%m-%Y") | |
if [ $# -eq 4 ]; then |