Skip to content

Instantly share code, notes, and snippets.

View doronkatz's full-sized avatar
💭
Working on a Tesla SDK for iOS

Doron Katz doronkatz

💭
Working on a Tesla SDK for iOS
View GitHub Profile
### Keybase proof
I hereby claim:
* I am doronkatz on github.
* I am doronkatz (https://keybase.io/doronkatz) on keybase.
* I have a public key ASCwI0-NYvKq3iPBEtIkGFyM-BpTu1d3gO67ViAzpH08CAo
To claim this, I am signing this object:
@doronkatz
doronkatz / Test gist
Created December 28, 2018 21:55
Test gist
Test gist
@doronkatz
doronkatz / cracking.md
Created June 21, 2016 19:16 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@doronkatz
doronkatz / Cocoa-Noir.RAML
Last active June 5, 2016 07:36
RAML Cocoa Noir Example
#%RAML 0.8
title: Cocoa Noir API
mediaType: application/json
baseUri: http://mocksvc.mulesoft.com/mocks/301ca91c-9739-4ed0-b1e3-19525ee7a438/apiplatform/proxy/api/{version}
version: 1
/coffees:
put:
queryParameters:
access_token:
App.onLaunch = function(options) {
// 1
var alert = createAlert("Hello World", ""); //leaving 2nd parameter with an empty string
navigationDocument.presentModal(alert);
}
// 2
var createAlert = function(title, description) {
var alertString = `<?xml version="1.0" encoding="UTF-8" ?>
<document>
let authenticationButton = TWTRLogInButton(logInCompletion:
{ (session, error) in
if (session != nil) {
//We signed in, storing session in session object.
} else {
//we get an error, accessible from error object
}
})
@doronkatz
doronkatz / Pet.m
Last active August 29, 2015 14:18
Swift and __nullable and _nonnull
@interface Pet: NSObject{
-(void)assignOwnerForCat(NON_NULL id)cat withSerial:(NON_NULL NSNumber*)serial;
}
@end
@implementation Pet{
- (void)serialAssignmentForCat:(Cat *)cat forSerial:(nullable NSNumber *)erial
...
[pet assignOwnerForCat:cat forSerial:serial];
}
private func eatFood(IamHungry: Bool) ->String {
return IamHungry? eatDinner(1) : eatSnack(1)
}
@doronkatz
doronkatz / BinaryTree
Created October 11, 2014 22:54
Binary tree search and traversal
public class BinaryTree {
Node root;
public void addNode(int key, String name) {
// Create a new Node and initialize it
Node newNode = new Node(key, name);
'use strict';
var app = angular.module('chapter4App',
['directives', 'services']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {
controller: 'ListCtrl',
resolve: {