Skip to content

Instantly share code, notes, and snippets.

View oiyio's full-sized avatar

Ömer İyiöz oiyio

  • Turkey
View GitHub Profile
@oiyio
oiyio / RainEmployeeProvider.java
Created January 10, 2017 17:16 — forked from dustin-graham/RainEmployeeProvider.java
An example Android ContentProvider
package com.rain.example.data.provider;
import com.rain.example.data.database.RainEmployeeDatabase;
import com.rain.example.data.database.table.*;
import android.provider.BaseColumns;
import android.text.TextUtils;
import android.content.ContentUris;
import android.database.sqlite.SQLiteQueryBuilder;
@oiyio
oiyio / hashmap.py
Last active August 29, 2015 14:17 — forked from landau/hashmap.py
class Hashmap(object):
"""
character holding hash map
"""
def __init__(self, hash_fn, length=100):
assert hasattr(hash_fn, '__call__'), 'You must provide a hash function'
self._buckets = [None] * length
self.hash_len = length
self.hash_fn = hash_fn