Skip to content

Instantly share code, notes, and snippets.

View ohad7's full-sized avatar

Ohad Serfaty ohad7

View GitHub Profile
package com.codus.hello;
import java.io.File;
import java.nio.charset.Charset;
import org.apache.commons.codec.binary.Base64;
import com.google.common.io.Files;
public class CodusCipher {
@ohad7
ohad7 / tracker-reshape.py
Last active July 29, 2023 21:48
Convert Keras h5 model to CoreML (reshape input layer)
from keras.models import load_model
from keras.layers import Input, Dense
from tensorflow import Tensor
from keras import backend as K
from keras.engine import InputLayer
model = load_model('MyModel.h5')
for layer in model.layers:
print layer
@ohad7
ohad7 / Tweaks.swift
Last active August 22, 2019 11:49
Mixpanel A/B Testing in Swift
//
// Copyright (c) 2015 Nexar Inc. - All Rights Reserved. Proprietary and confidential.
//
// Unauthorized copying of this file, via any medium is strictly prohibited.
import Foundation
import Mixpanel
public class Tweaks : NSObject, MPTweakObserver {