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> | |
| int main() { | |
| long int n, k, l, ara; | |
| int sayac; | |
| scanf("%ld", &n); | |
| k = n + 1; | |
| do { | |
| l = (k * n) / (k - n); | |
| ara = (k * l) / (k + l); |
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 | |
| die() { | |
| echo $1 >&2 | |
| exit 19 | |
| } | |
| ask() { | |
| export default | |
| message=$1 | |
| default=$2 | |
| echo -n "$message | $default |" |
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 | |
| #-*- coding:utf-8 -*- | |
| # DIKKAT! gem kurulumu gerek | |
| # sudo apt-get install rubygems | |
| # sudo apt-get install gem | |
| # gem install json | |
| require 'open-uri' | |
| require 'net/http' |
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 <string.h> | |
| #include <stdlib.h> | |
| #define MAXLINE 1000 | |
| // Liste için bir struct yapısı | |
| typedef struct list { | |
| char *item; | |
| struct list *next; | |
| }LIST; |
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 | |
| #-*-coding:utf-8-*- | |
| # Find the sum of all the multiples of 3 or 5 below 1000. | |
| print sum(i for i in range(1000) if i % 3 == 0 or i % 5 == 0) |
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 | |
| #-*- coding:utf-8 -*- | |
| from urllib2 import * | |
| import os | |
| def error(msj): | |
| print "%s" % (msj) | |
| exit(19) | |
| def ask(default_name): |
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
| gokhan | demir | 08060331 | gdemir.me | |
|---|---|---|---|---|
| sefa | yıldız | 08060333 | sayz.us | |
| yunus | ates | 08060327 | yunusa.github.com |
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
| create database DATABASE_NAME; | |
| grant all privileges on DATABASE_NAME.* to 'USER_NAME'@'localhost' identified by "PASSWORD"; |
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 | |
| #-*-coding:utf-8-*- | |
| from time import * | |
| def faktoriyel(n): | |
| if n <=1: | |
| return 1 | |
| else: | |
| return n * faktoriyel(n - 1) |
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 | |
| # coding: utf-8 | |
| require 'renk' | |
| class Dortgen | |
| include Unit | |
| attr_accessor :en, :boy, :alan | |
| def initialize x, y | |
| @en = x.to_s + " metre" | |
| @boy = y.to_s + " metre" | |
| @alan = (x * y).to_s + " metrekare" |
NewerOlder