Bu çalışmadaki amacımız; değişken tanımlama, operatörler, veri girişi, çevre &
alan hesapları ve doctest
özelliğinin kullanımı konularında öğrendiklerimizi pekiştirmektir.
This file contains 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
using System; | |
namespace MyHelloWorldApplication | |
{ | |
class HelloWorld | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World"); | |
} |
This file contains 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/awk -f | |
# input format : student number, full name, e-mail | |
# output format : full name, user name, student number | |
# example : | |
# input : 09060286,"emre can yılmaz","[email protected]" | |
# output : "emre can yılmaz","canyilmaz",09060286 | |
# usage : |
This file contains 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
# theme: moc_x | |
# [ecylmz](http://ecylmz.com) | |
background = white black | |
frame = white black | |
window_title = cyan black bold | |
directory = white black bold | |
selected_directory = cyan black bold | |
playlist = white black | |
selected_playlist = cyan black bold |
This file contains 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 -*- | |
import doctest | |
def faktoriyel(sayi): | |
"""\ | |
>>> faktoriyel(6) | |
720 | |
""" |
This file contains 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
function [x, y] = Newton(fun, funpr, x1, tol, kmax) | |
% Input: | |
% fun function (inline function or m-file function) | |
% funpr derivative function (inline or m-file) | |
% x1 starting estimate | |
% tol allowable tolerance in computed zero | |
% kmax maximum number of iterations | |
% Output: | |
% x (row) vector of approximations to zero | |
% y (row) vector fun(x)x |
This file contains 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
def secim(x, y, z): | |
secimler = { | |
(0, 0, 0): "a : 0\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0", | |
(0, 0, 1): "a : 1\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0", | |
(0, 1, 0): "a : 0\nb : 1\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0", | |
(0, 1, 1): "a : 0\nb : 0\nc : 1\nd : 0\ne : 0\nf : 0\ng : 0", | |
(1, 0, 0): "a : 0\nb : 0\nc : 0\nd : 1\ne : 0\nf : 0\ng : 0", | |
(1, 0, 1): "a : 0\nb : 0\nc : 0\nd : 0\ne : 1\nf : 0\ng : 0", | |
(1, 1, 0): "a : 0\nb : 0\nc : 0\nd : 0\ne : 0\nf : 1\ng : 0", |
This file contains 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
foo |
This file contains 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 | |
use std | |
PROGNAME=${0##*/} | |
ensuredeb wwwconfig-common | |
hascommand mysql || ensuredeb mysql-client | |
dbadmin=${WWWCONFIG_COMMON_DBADMIN:-root} |
This file contains 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
<?php | |
// hata raporlamayi kapa. | |
error_reporting(0); | |
try { | |
// json verisini decode et. | |
$payload = json_decode($_REQUEST['payload']); | |
} | |
catch(Exception $e) { |