Skip to content

Instantly share code, notes, and snippets.

View eminaksehirli's full-sized avatar

Emin Aksehirli eminaksehirli

View GitHub Profile
@eminaksehirli
eminaksehirli / Readme.md
Last active August 29, 2015 14:18
ffexp'in uzantilari.

ffim-finder.php arguman olarak aldigi tum dosyalardaki ff.im linklerini buluyor, ff sunucularina baglanip gercek url'i ve ID'yi aliyor. Daha sonra da

kisa kod\tURL\tID

seklinde standart ciktiya yaziyor.

ffexp-update.php indirilen .jsonlari da sakliyor. Boylece comment bilgisi kaybolmamis oluyor. Ayni zamanda indirilecek stream/feed komut satirindan verilebiliyor.

ffexp-tag.php komut satirindan verilen tag'leri ariyor ve indiriyor. Resim ve dosyalari,ff_media dizini altinda feed'in sahibi adina kaydediyor.

@eminaksehirli
eminaksehirli / kmeans.m
Created February 13, 2015 23:46
A simple k-means clustering implementation for GNU Octave.
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU Affero General Public License as
% published by the Free Software Foundation, either version 3 of the
% License, or any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU Affero General Public License for more details. It can be found
% at <http://www.gnu.org/licenses/>.
@eminaksehirli
eminaksehirli / prepareKeys.sh
Created February 13, 2015 22:41
Finds the signatures on PGP keys. More info on http://memin.tk/informatics/2015/01/29/key-upgrade.html
#!/bin/bash
MyKey=90D39AD1
I_SIGN_FILE=/tmp/i_signed.txt
I_SIGN_FILE_SORTED=/tmp/i_signed_sorted.txt
SIGNED_ME_FILE=/tmp/signed_me.txt
gpg --list-keys |grep "^pub"|grep -v revoked|grep -v expired|sed -e "s#.\+/\([0-9A-F]\+\) .\+#\1#" > /tmp/keyring.txt
if [ -e $I_SIGN_FILE ]; then
echo "File $I_SIGN_FILE exists. It may cause problems, please delete it if you don't need it."

Keybase proof

I hereby claim:

  • I am eminaksehirli on github.
  • I am emin (https://keybase.io/emin) on keybase.
  • I have a public key whose fingerprint is 3380 2171 FE81 1836 6A65 10E9 8E49 0395 F436 1444

To claim this, I am signing this object:

For 1 Processor:
dl_1:
real 0m1.081s
user 0m0.112s
sys 0m0.084s
dl_2:
real 0m1.016s
import static java.lang.System.currentTimeMillis;
import java.util.ArrayList;
public class ArrayTest
{
public static void main(String[] args)
{
int numOfIt = 10;
Arr-0 time:60
Arr-1 time:53
Arr-2 time:40
Arr-3 time:46
Arr-4 time:43
Arr-5 time:40
Arr-6 time:38
Arr-7 time:45
Arr-8 time:42
Arr-9 time:40