Skip to content

Instantly share code, notes, and snippets.

@mertdumenci
mertdumenci / hough.swift
Created July 23, 2017 17:22
Trying to implement Hough Transform in Swift
//: Playground - noun: a place where people can play
import UIKit
import CoreGraphics
let image = UIImage(named: "lines.jpg")
/*
Parameters
@mertdumenci
mertdumenci / download-nsscreencast.rb
Created May 1, 2014 12:14
Download NSScreencast videos for offline viewing in a batch
# Using this script downloads ALL the videos in NSScreencast.
# Use it wisely, it's extra load/bandwidth for the NSScreencast website.
# Usage: `EMAIL=your email PASSWORD=your password COUNT=how many videos should be downloaded? ruby download-nsscreencast.rb`
require "mechanize"
require "parallel"
mechanize = Mechanize.new
mechanize.post("https://www.nsscreencast.com/user_sessions", {"email" => ENV["EMAIL"], "password" => ENV["PASSWORD"]})
mechanize.pluggable_parser.default = Mechanize::Download

Keybase proof

I hereby claim:

  • I am mertdumenci on github.
  • I am mert (https://keybase.io/mert) on keybase.
  • I have a public key whose fingerprint is 2C69 0FE8 EFF7 3392 31EC 3F29 8BEB 3A1A F8C5 A725

To claim this, I am signing this object:

@mertdumenci
mertdumenci / rdio_collection_export.js
Last active January 1, 2016 13:49
Switch to the list mode in collection view, scroll to the bottom and load all the songs and run this code. You can import it to Spotify using Ivy (ivyishere.org).
javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
$(".collection")
.children(".collection_items")
.find(".Track")