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 | |
DIR_PATH=`pwd` # varsayılan olarak çalıştırıldığı dizinden başla | |
FILE_FORMAT=".txt" # varsayılan olarak txt uzantıları seç | |
N_DAYS=30 # 30 gün öncesinden başla | |
while getopts ":p:d:f:" opt; do | |
case $opt in | |
p) | |
DIR_PATH=$OPTARG |
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
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#define MATRIX_SIZE 16 | |
#define RANDOM_LENGHT 10000 | |
#define NTHREAD 4 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <libgen.h> | |
#include <readline/readline.h> | |
#include <readline/history.h> |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Scanner; | |
public class SetIPAddres { | |
String ip = null; | |
String netmask = null; |
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
package com.ykb.eulerDüzeltme; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.ArrayList; | |
import java.util.Date; |
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
module cpu (KEY, SW, LEDR); | |
input [1:0] KEY; | |
input [17:0] SW; | |
output [17:0] LEDR; | |
wire Resetn, Manual_Clock, Run, Done; | |
wire [15:0] DIN, Bus; | |
assign Resetn = KEY[0]; | |
assign Manual_Clock = KEY[1]; |
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/ruby | |
# encoding: utf-8 | |
# DİKKAT! Fazla test edilmemiştir. İki çay/sigara arası yazılmıştır. Daha | |
# iyisini siz yazın. -- roktas | |
class Arac | |
attr_reader :hiz, :vites_konumu, :yolcu_sayisi | |
def initialize(yolcu=1) |
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
# bu fonksiyon girilen denklemi (ör = 2x + 3y - 1z = 5) matris formuna dönüştürür. ([0, 2, 3, -1, 5]) | |
def denklemGirisi(satir = 3, sutun = 4): | |
satir += 1 | |
sutun += 1 | |
# bu liste yardımıyla herbir denklem için bir matris oluşturduk. | |
liste = [] | |
#girilen denklemlerin matris şeklinde bu listede tutuk. |
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
# -*- coding: cp1254 -*- | |
import math | |
import time | |
# bu fonksiyon yardımıyla köke yaklaşımı gözleyebiliyoruz. | |
def analiz(liste): | |
for ind, i in enumerate(liste): | |
if i != 0: | |
print "x[%s] = %s" %(ind, i) |
NewerOlder