Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working on a Tesla SDK for iOS

Doron Katz doronkatz

💭
Working on a Tesla SDK for iOS
View GitHub Profile
View Test gist
### 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 / cracking.md
Created Jun 21, 2016 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )
View cracking.md

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 Jun 5, 2016
RAML Cocoa Noir Example
View Cocoa-Noir.RAML
#%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:
View application.js
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>
View digit1.swift
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 Aug 29, 2015
Swift and __nullable and _nonnull
View Pet.m
@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];
}
View class-protected-function
private func eatFood(IamHungry: Bool) ->String {
return IamHungry? eatDinner(1) : eatSnack(1)
}
@doronkatz
doronkatz / BinaryTree
Created Oct 11, 2014
Binary tree search and traversal
View BinaryTree
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);
View controllers.js
'use strict';
var app = angular.module('chapter4App',
['directives', 'services']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {
controller: 'ListCtrl',
resolve: {