Skip to content

Instantly share code, notes, and snippets.

View eralpkaraduman's full-sized avatar
🐊
ᑴ ͡° ͟ʖ ͡°ᑷ

Eralp Karaduman eralpkaraduman

🐊
ᑴ ͡° ͟ʖ ͡°ᑷ
View GitHub Profile
@eralpkaraduman
eralpkaraduman / printStack.swift
Created August 23, 2016 23:57
Printing where the function was called from in swift 2
func someFunction() {
// drops last call because it's the current function call
if let sym = NSThread.callStackSymbols().dropFirst().first {
print(sym)
}
}
MSI GTX970 GAMING 4G GDDR5 4GB 256Bit Nvidia GeForce DX12 Ekran Kartı
1.431,35
http://www.vatanbilgisayar.com/msi-gtx970-gaming-4g-gddr5-4gb-256bit-nvidia-geforce-dx12-ekran-karti.html
Intel Core i5 6400 Soket 1151 2.7GHz 6MB Önbellek 14nm İşlemci
679,80
http://www.vatanbilgisayar.com/intel-core-i5-6400-soket-1151-27ghz-6mb-onbellek-14nm-islemci.html
OCZ 240GB TRION 100 Serisi Sata 3.0 SSD (550MB Okuma / 520MB Yazma)
249,00
@eralpkaraduman
eralpkaraduman / ViewController.swift
Created October 26, 2015 11:26
executing javascript on WKWebView
import UIKit
import WebKit
class ViewController: UIViewController, WKNavigationDelegate {
let webView = WKWebView(frame: CGRectMake(0, 0, 1024, 720))
override func viewDidLoad() {
super.viewDidLoad()
webView.navigationDelegate = self
@eralpkaraduman
eralpkaraduman / ruby_and_rails_books.md
Last active September 28, 2015 10:21
Ruby & Rails Books

ruby books:

  • pickaxe - programming ruby
  • ruby way
  • metaprogramming ruby

rails books:

@eralpkaraduman
eralpkaraduman / week_log.py
Created September 11, 2015 10:45
dumps commit messages with dates in last week to a file with week number
import subprocess
from datetime import datetime
process = subprocess.Popen([
"git",
"log",
"--after", "1 week ago",
"--author", "eralpkaraduman",
"--format=%cd%n%s%n",
"--reverse",
@eralpkaraduman
eralpkaraduman / embeddingUnity3DInTumblr.txt
Last active August 29, 2015 14:05
Embedding Unity3D in Tumblr & Stuff
// customize theme -> edit html
// paste below in head
<!-- Unity3D -->
<script type="text/javascript">
<!--
var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
if (document.location.protocol == 'https:')
unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
document.write('<script type="text/javascript" src="' + unityObjectUrl + '"></script>');
@eralpkaraduman
eralpkaraduman / winmac.ahk
Created February 28, 2014 23:45
autohotkey windows survival
LWin::Control
Control::LWin
!u::ü
!i::ı
!c::ç
!g::ğ
!o::ö
!s::ş
Köstebek Şarkısı: Gizli Ajan Reiji
14 Şubat 2014, 23:59
Cinemaximum Fitaş Salon 1
Ucuz Heyecanlar
15 Şubat 2014, 23:59
Cinemaximum Fitaş Salon 1
Rüzgar Yükseliyor
21 Şubat 2014, 22:00
@eralpkaraduman
eralpkaraduman / extrachSeconds.sh
Created December 5, 2013 11:28
logs duration of videos between filename range to file as file,duration (number of seconds)
#!/bin/bash
START=4699
END=4824
VIDEO_PATH="/media/videoStorage/wowzaVideoFiles/cevaptv/"
EXT="_240p.mp4"
rm seconds.log
for((i=$START; i<=$END; i++))
@eralpkaraduman
eralpkaraduman / homeUpdater.js
Last active December 25, 2015 20:29
AWS route 53 dynamic ip update tool.
var AWS = require('aws-sdk');
AWS.config.loadFromPath('config.json');
var route53 = new AWS.Route53();
var net = require('net');
var os = require('os');
var zone = "YOUR_ZONE_ID";
var domain = "yourdoma.in";