Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Said Özcan s

🏠
Working from home
View GitHub Profile
@s
s / MinStack.java
Last active Apr 25, 2021
MinStack implementation
View MinStack.java
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
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
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
python:
- 2.7
- 3.5
- 3.6
- 3.7
matrix:
include:
View yildizyemek
{
'name':'Yıldız Yemek',
'description':'Flat designed, open sourced iOS application for Yildiz Technical University students.',
'version':'1.0.2',
'authors':[
{
'name':'Meryem Ekinci',
'bio':'Lead iOS Developer & Designer',
'twitter':'meryemmekinci'
},
@s
s / HuffmanTree.java
Created Dec 4, 2013
HuffmanTree.java
View HuffmanTree.java
import java.util.Arrays;
/**
* class HuffmanTree
* @author M. Said Ozcan
*/
public class HuffmanTree {
static int non_zero_element_count;
@s
s / flather
Last active Dec 20, 2015
Flather is flat designed, open sourced weather application.
View flather
{
'name':'Flather',
'description':'Flat designed, open sourced iOS weather application.',
'version':'1.0',
'authors':{
'developer':{
'name':'Said Özcan',
'bio':'Photograph & Software Developer',
'twitter':'saidozcan'
},