Skip to content

Instantly share code, notes, and snippets.

View Shashikant86's full-sized avatar
💼
Running Business!

Shashikant Shashikant86

💼
Running Business!
View GitHub Profile
@Shashikant86
Shashikant86 / ml.swift
Created February 3, 2019 21:07
CreateML Swift Script
import Foundation
import CreateML
let training = URL(fileURLWithPath: "/tmp/ml/data-applenews/training")
let testing = URL(fileURLWithPath: "/tmp/ml/data-applenews/training")
let model = try MLImageClassifier(trainingData: .labeledDirectories(at: training))
let evaluation = model.evaluation(on: .labeledDirectories(at: testing))
@Shashikant86
Shashikant86 / main.workflow
Created December 24, 2018 00:45
Main Workflow Swift CI/CD
workflow "SwiftPM-Workflow" {
on = "push"
resolves = ["Swift Package Publish"]
}
action "Swift Package Fetch" {
uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH"
runs = "swift package resolve"
}
action "Swift Package Build" {
uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH"
@Shashikant86
Shashikant86 / Dockerfile
Created December 24, 2018 00:43
Dockerfiles for GitHub Action Swift
FROM swift:4.2
USER root
LABEL "com.github.actions.name"="SwiftPM-GitHubAction"
LABEL "com.github.actions.description"="Testing Swift Packages with Github Actions"
LABEL "com.github.actions.icon"="airplay"
LABEL "com.github.actions.color"="orange"
LABEL "repository"="http://github.com/shashikant86/SwiftPM-GitHubAction"
LABEL "homepage"="http://github.com/actions"
LABEL "maintainer"="Shashikant Jagtap <shashikant.jagtap@icloud.com>"
RUN apt-get update && apt-get install -y git
@Shashikant86
Shashikant86 / xcodebuild_parallel.sh
Created December 22, 2018 10:52
Parallel XCTest Script
$ git clone https://github.com/Shashikant86/Xcode10-ParallelTest-CI
$ cd Xcode10-ParallelTest-CI
$ xcodebuild -project Xcode10-ParallelTest-CI.xcodeproj/ -scheme Xcode10-ParallelTest-CI -destination 'platform=iOS Simulator,OS=12.0,name=iPhone X' clean build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -parallel-testing-enabled YES -parallel-testing-worker-count 4 -quiet
@Shashikant86
Shashikant86 / .travis.yml
Created December 22, 2018 10:46
Parallel XCTest TravisCI
language: objective-c
osx_image: xcode10
install: travis_wait 30 mvn install
install: true
matrix:
include:
- osx_image: xcode10
env: iPhone X
script: xcodebuild -project Xcode10-ParallelTest-CI.xcodeproj/ -scheme Xcode10-ParallelTest-CI -destination 'platform=iOS Simulator,OS=12.0,name=iPhone X' clean build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -parallel-testing-enabled YES -parallel-testing-worker-count 4 -quiet
- osx_image: xcode10
@Shashikant86
Shashikant86 / exportOptions.plist
Created December 21, 2018 13:34
ExportOptions Plist With Upload
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>YOUR_TEN_CHARACTER_TEAM_ID</string>
<key>destination</key>
<string>upload</string>
@Shashikant86
Shashikant86 / exportOptions_withoutUpload.plist
Created December 21, 2018 13:32
ExportOptions Without Upload
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>YOUR_TEN_CHARACTER_TEAM_ID</string>
</dict>
</plist>

Keybase proof

I hereby claim:

  • I am shashikant86 on github.
  • I am shashikant86 (https://keybase.io/shashikant86) on keybase.
  • I have a public key ASByyRzIEYR8jS9Yxc6onSwN43HXNUSBzEJaRBvE87_mPQo

To claim this, I am signing this object: