Skip to content

Instantly share code, notes, and snippets.

@david-hoze
david-hoze / checksum_calculation.md
Last active May 5, 2024 17:27
How to Calculate IP/TCP/UDP Checksum
@david-hoze
david-hoze / FetchedResultsStandaloneDelegate.swift
Created April 7, 2016 07:38
A standalone FetchedResultsDelegate like the one in JSQDataSourcesKit for working with any data source for UITableViewController or UICollectionViewController
//
// CollectionViewFetchedResultsStandaloneDelegateProvider.swift
// Reporty
//
// Created by Amitai Hoze on 06/04/2016.
// Copyright © 2016 Reporty Homeland Security Ltd. All rights reserved.
//
import CoreData
import Foundation
@david-hoze
david-hoze / Example.swift
Created January 19, 2016 13:41
NSObject equality operator bug workaround
class Point: NSObject {
var x: Int
var y: Int
init(_ x: Int,_ y: Int) {
self.x = x
self.y = y
}
}