Skip to content

Instantly share code, notes, and snippets.

@cduruk
cduruk / units.swift
Created June 11, 2014 22:05 — forked from 74hc595/units.swift
foo
// Playground - noun: a place where people can play
import Cocoa
protocol UnitBase {
class var unitLabel:String { get }
}
// T: the unit
// U: its inverse
@cduruk
cduruk / keybase.md
Created August 13, 2014 21:18
keybase.md

Keybase proof

I hereby claim:

  • I am cduruk on github.
  • I am cduruk (https://keybase.io/cduruk) on keybase.
  • I have a public key whose fingerprint is 757B 80B7 C7BE E441 E519 9DA4 D859 787C FA7C 1ACB

To claim this, I am signing this object:

@cduruk
cduruk / data.json
Last active August 29, 2015 14:10
Sprongo
"{\"total\":1079,\"current_page\":1,\"per_page\":15,\"total_pages\":72,\"tickets\":[{\"id\":3910792,\"subject\":\"Feedback\",\"replies_count\":0,\"agent_replies_count\":0,\"comments_count\":0,\"last_activity_at\":\"2014-11-28T18:42:07Z\",\"created_at\":\"2014-11-28T18:42:07Z\",\"unanswered\":true,\"archived\":false,\"private\":false,\"spam\":false,\"trash\":false,\"summary\":\"can I copy a playlist that has already been created and paste under a different team?\",\"draft\":false,\"source\":{\"web\":\"sprongo-support@supportbeemail.com\"},\"labels\":[],\"content\":{\"html\":\"can I copy a playlist that has already been created and paste under a different team?<br>\",\"text\":\"can I copy a playlist that has already been created and paste under a different team?\n\",\"truncated\":false,\"attachments\":[{\"id\":1187638,\"created_at\":\"2014-11-28T18:42:04Z\",\"filename\":\"user.txt\",\"size\":603,\"content_type\":\"application/octet-stream\",\"cid\":null,\"url\":{\"original\":\"https://sprongo.supportbee.com/att
@cduruk
cduruk / gunce_scraper.rb
Created November 11, 2008 19:16
Small screen scraper to see if there have been updates in Turkish Guncem.com journal-keeping service.
# Tum haklari serbesttir.
require 'rubygems'
require 'mechanize'
require 'hpricot'
if ARGV.length < 2
puts "Kullanici adi ve sifre girmen lazim."
exit
end
Duruk:~ cduruk$ curl -I 37signals.com
HTTP/1.1 200 OK
Date: Fri, 06 Mar 2009 19:23:56 GMT
Server: Apache/2.2.4
Accept-Ranges: bytes
X-Powered-By: PHP/5.2.4
Content-Type: text/html
@cduruk
cduruk / .bash_profile
Created April 7, 2009 01:59
My .bash_profile for SL
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
~/Desktop $ cat log.txt
11:40:11 PM Can Duruk: 2700 even if 1 per cent clicks on that
11:40:20 PM Marshall Roch: lol
11:51:13 PM Can Duruk: wtf, i just got a robocall from at&t saying that my payment method no more works
11:51:33 PM Can Duruk: it's an autopay with my card which expires next year
11:51:40 PM Can Duruk: and i have money on it
11:51:56 PM Marshall Roch: lol
11:52:44 PM Can Duruk: there's a stupid problem with stainless, when you open a new tab, the focus is not on the address bar
11:53:37 PM Can Duruk: even though he knew better, George
11:54:25 PM Marshall Roch: lol
YUI().use('node', 'plugin',
function(Y) {
var PieMenu = function(config) {
this.init(config);
};
//Plugin Settings
PieMenu.NAME = 'piemenu';
PieMenu.NS = 'pm';
# You actually need to be logged in for this to work. Even then, no guarantees
require 'rubygems'
require 'open-uri'
require 'nokogiri'
require 'net/http'
#target = 'http://www.linkedin.com/in/'+ARGV[0]
result = Nokogiri::HTML(open(ARGV[0]))
10:24:34 PM Can Duruk: let's see
10:24:44 PM Can Duruk: http://qkpic.com/d9468