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
#!/usr/bin/ruby
# encoding: utf-8
digits = [1,2,3,4,5,6,7,8,9]
secret = digits.shuffle[0,4].join("")
guesses = 0
size = 4
puts "Rakamları birbirinden farklı 4 haneli sayı girmelisin, bunu sakın unutma!\nBol şans genç..."
# Your thin servers go here
# rails.ecylmz.com
upstream rails.ecylmz.com {
server 0.0.0.0:3000;
}
upstream bar {
server 0.0.0.0:3001;
}
Bar::Application.routes.draw do
resources :hmms
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
/var/lib/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /home/ecylmz in PATH, mode 040777
/home/ecylmz/bar/config/routes.rb:1:in `<top (required)>': undefined method `scope' for main:Object (NoMethodError)
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:in `load'
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:in `block in load'
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:in `load'
from /var/lib/gems/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:127:in `block in reload_routes!'
from /var/li
#!/usr/bin/python
#-*- encoding: utf-8 -*-
import csv
import re
yaz = csv.writer(open('out.csv', 'wb'), delimiter=',')
oku = csv.reader(open('bm-2011.csv', 'rb'), delimiter=',')
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *
tersle(char *dizgi)
{
int i, uzunluk;
char *ters_dizgi;
ters_dizgi = (char *) malloc(sizeof(char));
@ecylmz
ecylmz / indir
Created November 23, 2011 21:01
#!/bin/bash
mkdir yay_yesevi; cd yay_yesevi
echo "indiriyorum, bekle..."
for i in {4..483}
do
wget http://yayinlar.yesevi.edu.tr/files/article/$i.pdf >/dev/null 2>&1
done
# encoding: utf-8
# https://github.com/ecylmz/ecylmz.github.com deposu için Rakefile
#
# rake => rake n[9]
# rake n[9] => 9 kategorisinde yeni yazı oluşturur.
# rake n[1] => 1 kategorisinde yeni yazı oluşturur.
# rake e => son oluşturulan yazıyı düzenler.
# rake p => son yazıyı push yapar.
---------------
-- Options --
---------------
options.timeout = 120
options.subscribe = true
----------------
-- Accounts --
@ecylmz
ecylmz / gist_line_numbers.css
Created December 10, 2011 13:30 — forked from roktas/.gitignore
CSS to add line numbers to embedded gists
.gist-highlight {
border-left: 3ex solid #eee;
position: relative;
}
.gist-highlight pre {
counter-reset: linenumbers;
}
.gist-highlight pre div:before {