Skip to content

Instantly share code, notes, and snippets.

View StatusReport's full-sized avatar

Yaron Inger StatusReport

  • Lightricks
  • Israel
View GitHub Profile
@StatusReport
StatusReport / main.mm
Created April 23, 2018 10:47
class_copyPropertyList returning multiple properties with the same name
#import <Foundation/Foundation.h>
#import <map>
#import <objc/runtime.h>
#import <set>
#import <string>
#import <vector>
struct property_info {
std::string name;
std::string attributes;
@StatusReport
StatusReport / ..build-protobuf.md
Last active May 21, 2021 08:32 — forked from petewarden/..build-protobuf-3.0.0.md
Build Google Protobuf 3.x for iOS. Builds all supported architectures and produces a universal binary static library.

Google Protobuf 3.x - Mac OS X and iOS Support

The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.

This gist was adapted from the original at https://gist.github.com/BennettSmith/7150245, and updated to deal with Xcode 8 and iOS 10, and download protobuf version 3.3.2.

@StatusReport
StatusReport / waze.py
Created December 7, 2013 16:46
Simple Waze wrapper for querying route cross time with / without real time data. More work is required with parsing the JSON returned from the server to extract the textual route information, but it should be pretty straightforward.
import json
import urllib
class WazeLocationNotFoundException(Exception):
pass
class Waze(object):
_BASE_URL = "http://www.waze.co.il/"
def __mozi(self, query):