Skip to content

Instantly share code, notes, and snippets.

View ecylmz's full-sized avatar
:shipit:
.

Emre Can Yılmaz ecylmz

:shipit:
.
View GitHub Profile
ecylmz@19:~/p$ rake
(in /home/ecylmz/p)
cd perde-nedir
cd -
cd falan-filan
cd -
cd foo-bar
cd -
cd perde-nedir
cd -
loadfile(GetDataPath() .. "Scripts/Locale.lua")()
local defaultPointsPerTurn = 3
local costsByWeapons = {
[amGrenade] = 1, [amClusterBomb] = 1, [amBazooka] = 1, [amBee] = 2, [amShotgun] = 1, [amMine] = 1, [amDEagle] = 1, [amDynamite] = 2,
[amFirePunch] = 1, [amWhip] = 1, [amPickHammer] = 1, [amBaseballBat] = 2, [amMortar] = 1, [amCake] = 3, [amSeduction] = 1,
[amWatermelon] = 3, [amHellishBomb] = 3, [amDrill] = 2, [amBallgun] = 3, [amRCPlane] = 3, [amSniperRifle] = 1, [amMolotov] = 1,
[amBirdy] = 2, [amBlowTorch] = 1, [amGasBomb] = 1, [amFlamethrower] = 2, [amSMine] = 2, [amSnowball] = 1, [amKamikaze] = 1
}
local costsByAirWeapons = {
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://deb.ondokuz.biz/ sid main contrib non-free
deb-src http://deb.ondokuz.biz/ sid main contrib non-free
server {
listen 80;
server_name .for.ce.omu.edu.tr;
include base.conf;
location / {
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
expires 30d;
server {
listen 80;
server_name .example.com;
include base.conf;
location / {
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
expires 30d;
@ecylmz
ecylmz / apue.h
Created September 25, 2011 09:38
/* Our own header, to be included before all standard system headers */
#ifndef _APUE_H
#define _APUE_H
//#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */
#include <sys/types.h> /* some systems still require this */
#include <sys/stat.h>
#include <sys/termios.h> /* for winsize */
@ecylmz
ecylmz / ex.c
Created September 25, 2011 09:39
hmm [c sistem-programlama]
#include "apue.h"
#define BUFFSIZE 4096
int main(void) {
int n;
char buf[BUFFSIZE];
while ((n = read(STDIN_FILENO, buf, BUFFSIZE)) > 0)
if (write(STDOUT_FILENO, buf, n) != n)
@ecylmz
ecylmz / group-add.py
Created September 26, 2011 18:15
csv'den okuma yapıp gam ile gruba ekle [python]
#!/usr/bin/python
#-*- coding:utf-8 -*-
import os
import csv
first_file = csv.reader(open("/home/ecylmz/Masaüstü/ilitam_son.csv", "rb"),delimiter=",")
for row in first_file:
@ecylmz
ecylmz / addbom.sh
Created September 26, 2011 18:16
hmm [sh]
#!/bin/sh
if [ $# -eq 0 ];
then
echo usage $0 files ...
exit 1
fi
for file in $*;
do
@ecylmz
ecylmz / csv-edit.py
Created September 26, 2011 18:16
csv'den okuma yapıp, düzenleyip yenisine yazan betik [python]
#!/usr/bin/python
#-*- coding:utf-8 -*-
import csv
first_file = csv.reader(open("/home/ecylmz/Masaüstü/tyl_2011-2012.csv", "rb"),delimiter=";")
last_file = csv.writer(open("/home/ecylmz/Masaüstü/tyl_son.csv", "wb"), delimiter = ",")