Skip to content

Instantly share code, notes, and snippets.

Simone Civetta viteinfinite

View GitHub Profile
@viteinfinite
viteinfinite / aws-deploy.sh
Last active Jun 7, 2020
Swift Lambda build and package scripts
View aws-deploy.sh
# Install the jq tool (https://stedolan.github.io/jq/)
# It'll be used to parse the response of the aws cli commands
JQ_PATH=./scripts/jq
if [ ! -f "$JQ_PATH" ]; then
echo "Installing jq"
curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 --output $JQ_PATH
chmod +x $JQ_PATH
fi
# Create an AWS IAM Role
@viteinfinite
viteinfinite / build-1.gradle
Last active Nov 29, 2018
Understanding The Basics of Multiplatform Projects in Kotlin 1.3
View build-1.gradle
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
@viteinfinite
viteinfinite / convert.py
Last active Aug 2, 2019
Core ML Conversion Script for the Keras Facenet Model
View convert.py
import coremltools
from coremltools.proto import NeuralNetwork_pb2
from coremltools.models.neural_network.quantization_utils import *
import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.utils import np_utils
from keras.models import load_model
import os.path
View gist:7318b971666463e05e507b4f538f7e17
curl -X POST http://localhost:4985/couchbaseevents/_bulk_docs -H "Content-Type: application/json" -d '{"new_edits": false, "docs": [{"_id": "event", "name": "aaa", "_rev": "1-123"}, {"_id": "event", "name": "bbb", "_rev": "1-456"}, {"_id": "event", "name": "ccc", "_rev": "1-789"}]}'
View MobileThings-ServerSideSwift-README.md

0 Swiftenv

$ brew install kylef/formulae/swiftenv
$ swiftenv install 3.0.2
$ mkdir $project && cd $project && swiftenv local 3.0.2

1 Create Project

@viteinfinite
viteinfinite / Appfile
Last active Feb 27, 2016
Xebia's Blog Fastfile Example
View Appfile
# Definit le bundle identifier
app_identifier "fr.xebia.monAppli"
# Definit l'Apple ID du compte associé au compte de l'appli
apple_id "xxx@xebia.fr"
View DetailInterfaceController.swift
//
// DetailInterfaceController.swift
// XebiaSki
//
// Created by Simone Civetta on 02/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
View DetailInterfaceController.swift
//
// DetailInterfaceController.swift
// XebiaSki
//
// Created by Simone Civetta on 02/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
View InterfaceController.swift
//
// InterfaceController.swift
// XebiaSki WatchKit Extension
//
// Created by Simone Civetta on 03/12/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import Foundation
View SkiResortTableRowController.swift
//
// SkiResortTableRowController.swift
// XebiaSki
//
// Created by Simone Civetta on 28/11/14.
// Copyright (c) 2014 Xebia IT Architechts. All rights reserved.
//
import WatchKit
import XebiaSkiFramework
You can’t perform that action at this time.