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
#!/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ç..." |
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
# 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; | |
} |
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
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: |
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
/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 |
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
#!/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=',') |
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
#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)); |
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 | |
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 |
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 | |
# 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. |
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
--------------- | |
-- Options -- | |
--------------- | |
options.timeout = 120 | |
options.subscribe = true | |
---------------- | |
-- Accounts -- |
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
.gist-highlight { | |
border-left: 3ex solid #eee; | |
position: relative; | |
} | |
.gist-highlight pre { | |
counter-reset: linenumbers; | |
} | |
.gist-highlight pre div:before { |