Skip to content

Instantly share code, notes, and snippets.

@refik
refik / refik_turkeli_hw1.Rmd
Created November 11, 2018 01:28
Refik Turkeli MFIN 809 HW1 Rmarkdown
---
title: "MFIN 809 Homework 1"
author: "Refik Türkeli"
date: "11/11/2018"
output: pdf_document
---
```{r setup, include = FALSE}
library(tidyverse)
library(moments)
Year Deviation
1992 -7.14%
1993 1.62%
1994 2.48%
1995 -2.59%
1996 9.37%
1997 -0.55%
1998 -0.89%
1999 -9.19%
2000 -5.11%
@refik
refik / turknet.js
Created August 30, 2018 14:59
Turknet JS
This file has been truncated, but you can view the full file.
! function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = n[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, t), o.l = !0, o.exports
}
@refik
refik / gist:446767fd448eda7ee3d2a57851db52a0
Created June 29, 2017 06:53
exchange rates for TRY for 2010-2017
Kurlar-Döviz Kurları (Günlük)
Orijinal Frekans,KESİKLİ,Orijinal Gözlem
49911.html linkine tıkladıktan sonra da dosyayı kaydedebilirsiniz.
TP.DK.EUR.A TP.DK.EUR.C TP.DK.EUR.S TP.DK.GBP.A TP.DK.GBP.C TP.DK.GBP.S TP.DK.USD.A TP.DK.USD.C TP.DK.USD.S
01-01-2010 .. .. .. .. .. .. .. .. ..
library(lubridate)
library(tibble)
library(dplyr)
library(tidyr)
t <- ymd_hms("2017/06/14 10:00:00")
tp1 <- ymd_hms("2017/06/15 15:00:00")
# 10:00 T
# 15:30 T + 1
@refik
refik / refik-forecast.R
Created December 14, 2016 06:36
Holt winter forecasting for Audio production data
library(tidyverse)
library(forecast)
library(readxl)
tugce_file <- "/Users/refik/Desktop/her madde kodu için winters modeli.xlsx"
output <- "/Users/refik/Desktop/holt-winters.csv"
excel <- read_excel(tugce_file, col_names = FALSE)
products <- excel[5:nrow(excel), 1:30]
colnames(products) <- c(unlist(excel[4, 1:6]),
# 2 Dakikada Teklif icin ozel AX parametre isimleri #
buildingType = TR(state['building'])
quoteAmount = state['price']
daireSayisi = state['apartment']
blokSayisi = state['block']
product = "monitor: state['monitor']['id'] \n
panel: state['panel']['id'] \n"
ekstra: TR(state['extra']['monitors']]) + TR(state['extra']['panels']])"
@refik
refik / gist:7453478
Created November 13, 2013 18:00
hpacucli
[ 2280.900050] INFO: task hpacucli.real:4583 blocked for more than 120 seconds.
[ 2280.915408] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 2280.945460] hpacucli.real D ffffffff81806240 0 4583 4582 0x00000000
[ 2280.945465] ffff8803e0821a78 0000000000000082 ffffc9000100c000 fbde0f7c4c552c03
[ 2280.945470] ffff8803e0821fd8 ffff8803e0821fd8 ffff8803e0821fd8 00000000000137c0
[ 2280.945474] ffff8804055d1700 ffff8803f6b68000 ffffffffa0017d40 ffffffffa0017d40
[ 2280.945478] Call Trace:
[ 2280.945492] [<ffffffff8165b0cf>] schedule+0x3f/0x60
[ 2280.945496] [<ffffffff8165bed7>] __mutex_lock_slowpath+0xd7/0x150
[ 2280.945500] [<ffffffff8165baea>] mutex_lock+0x2a/0x50
@refik
refik / gist:7407519
Last active December 27, 2015 23:39
euler 1
(define null ())
(define range
(lambda (x)
(cond
((= x 0) (cons 0 null))
(else
(cons x (range (- x 1)))))))
(define sum
@refik
refik / gist:6522857
Last active December 22, 2015 19:58
libappindicator build()
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes
checking for gcc... gcc