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 android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Paint | |
| import android.graphics.Path | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import kotlin.math.atan2 | |
| import kotlin.math.cos | |
| import kotlin.math.sin | |
| import kotlin.math.sqrt |
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 android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.Paint | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import androidx.annotation.ColorInt | |
| import java.lang.Math.pow | |
| import kotlin.math.cos |
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 android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.Paint | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import kotlin.math.cos | |
| import kotlin.math.sin | |
| import kotlin.math.sqrt |
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/sh | |
| if [ -z "$1" ]; then | |
| echo "Please specify a project" | |
| echo " e.g. show_lang.sh Polaris/Core" | |
| exit 1 | |
| fi | |
| BASEDIR=$(dirname "$0") |
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
| ... | |
| workflows: | |
| primary: | |
| steps: | |
| - activate-ssh-key@4.0.3: | |
| run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | |
| - git-clone@4.0.17: {} | |
| - script@1.1.5: | |
| inputs: | |
| - content: |- |
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
| String timeAgoSinceDate({bool numericDates = true}) { | |
| DateTime date = this.createdTime.toLocal(); | |
| final date2 = DateTime.now().toLocal(); | |
| final difference = date2.difference(date); | |
| if (difference.inSeconds < 5) { | |
| return 'Just now'; | |
| } else if (difference.inSeconds < 60) { | |
| return '${difference.inSeconds} seconds ago'; | |
| } else if (difference.inMinutes <= 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 uuid | |
| import os | |
| #Tags | |
| FILE_REF_SECTION = "PBXFileReference section" | |
| PACKAGE_HEADER_REF_SECTION = "PBXNativeTarget section" | |
| PACKAGE_HEADER_DEFINITION = "PBXHeadersBuildPhase section" | |
| PUBLIC_HEADER_DEFINITION = "PBXBuildFile section */" | |
| #Constants |
OlderNewer