mkdir ivrit-transcribe
cd ivrit-transcribe
REPO_PATH=ivrit-ai/transcribe-service/master; curl -fsSL https://raw.githubusercontent.com/$REPO_PATH/installers/osx/install-osx.sh | REPO_PATH=$REPO_PATH bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check if a GitHub URL is provided as an argument | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <github_url>" | |
| exit 1 | |
| fi | |
| # Store the GitHub URL | |
| GIT_URL="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.draw.drawWithContent | |
| import androidx.compose.ui.geometry.Offset | |
| import androidx.compose.ui.graphics.BlendMode | |
| import androidx.compose.ui.graphics.Color | |
| import androidx.compose.ui.graphics.nativeCanvas | |
| @Composable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private val PARTICLE_COLOR = Color.White | |
| private val LINE_COLOR = Color.White | |
| private const val PARTICLE_QUANTITY = 100 | |
| private const val DEFAULT_SPEED = 2 | |
| private const val VARIANT_SPEED = 1 | |
| private const val DEFAULT_RADIUS = 4 | |
| private const val VARIANT_RADIUS = 2 | |
| private const val LINK_RADIUS = 200 | |
| // TODO: 30/09/2020 These should be measured but are only used to calculate | |
| // the initial position |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.alexjlockwood.circularprogressindicator | |
| import android.os.Bundle | |
| import android.view.animation.PathInterpolator | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.compose.animation.core.* | |
| import androidx.compose.animation.transition | |
| import androidx.compose.foundation.Image | |
| import androidx.compose.foundation.layout.fillMaxHeight | |
| import androidx.compose.foundation.layout.fillMaxWidth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RgbConversion(val rs: RenderScript, private val feedSize: Size, private val hasRotate: Boolean = true) { | |
| private var mInputAllocation: Allocation? = null | |
| private var mOutputAllocation: Allocation? = null | |
| private var mRotatedAllocation: Allocation? = null | |
| private val yuvToRgb = ScriptIntrinsicYuvToRGB.create(rs, Element.U8_4(rs)) | |
| private val rotator = ScriptC_rotator(rs) | |
| var bufferCallback: ((ByteBuffer) -> Unit)? = null | |
| val inputSurface: Surface | |
| get() = mInputAllocation!!.surface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # in a terminal | |
| # python -m pip install --user opencv-contrib-python numpy scipy matplotlib ipython jupyter pandas sympy nose | |
| import cv2 | |
| import pandas as pd | |
| import numpy as np | |
| import imutils | |
| from scipy.spatial import distance as dist | |
| from imutils import perspective |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import PlaygroundSupport | |
| let view = UIView(frame: CGRect(x: 0, y: 0, width: 375, height: 647)) | |
| view.backgroundColor = UIColor.white | |
| let shadowView = UIView(frame: CGRect(x:50, y: 50, width:250, height:250)) | |
| view.addSubview(shadowView) | |
| let someView = UIView(frame: CGRect(x:50, y: 50, width:250, height:250)) | |
| someView.backgroundColor = UIColor.white |