Skip to content

Instantly share code, notes, and snippets.

Working from home

Said Özcan s

Working from home
View GitHub Profile
s /
Last active Apr 25, 2021
MinStack implementation
package nl.saidozcan;
import java.lang.ref.WeakReference;
import java.util.Stack;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
// WeakBox
// This class is a wrapper around any generic value to make it weak referenced to
s / LargestSquareArea.swift
Created Jul 3, 2020
This snippet finds the largest square area within a matrix with consisting of 1s.
View LargestSquareArea.swift
import Foundation
import XCTest
typealias Matrix = [[Int]]
/// This function alias is used when a position is given:
/// And we'd like to check if we can go to a neighbor of it
/// And if we can go to the neighbor, what's the value of the neighbor
/// An example is usage:
/// ```
View TimeInterval+Convenience.swift
import Foundation
public extension TimeInterval {
/// `minuteSecondMS` is a convenience computed variable which converts a `TimeInterval` to `mm:ss:ms` format.
var minuteSecondMS: String {
return String(format: "%d:%02d.%03d", minute, second, millisecond)
/// `minute` is a convenience computed variable which converts a `TimeInterval` to minutes.
var minute: Int {
s / .travis.yml
Created May 23, 2020 — forked from shaypal5/.travis.yml
Comprehensive Python testing on Travis CI
View .travis.yml
language: python
# ===== Linux ======
dist: xenial
- 2.7
- 3.5
- 3.6
- 3.7
View yildizyemek
'name':'Yıldız Yemek',
'description':'Flat designed, open sourced iOS application for Yildiz Technical University students.',
'name':'Meryem Ekinci',
'bio':'Lead iOS Developer & Designer',
s /
Created Dec 4, 2013
import java.util.Arrays;
* class HuffmanTree
* @author M. Said Ozcan
public class HuffmanTree {
static int non_zero_element_count;
s / flather
Last active Dec 20, 2015
Flather is flat designed, open sourced weather application.
View flather
'description':'Flat designed, open sourced iOS weather application.',
'name':'Said Özcan',
'bio':'Photograph & Software Developer',