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.author.appname | |
import android.content.Intent | |
import androidx.core.content.FileProvider | |
import com.facebook.react.bridge.ReactApplicationContext | |
import com.facebook.react.bridge.ReactContextBaseJavaModule | |
import com.facebook.react.bridge.ReactMethod | |
import java.io.File | |
class ApkInstallerModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) { |
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
const colors = { | |
reset: "\x1b[0m", | |
bold: "\x1b[1m", | |
thin: "\x1b[2m", | |
underscore: "\x1b[4m", | |
blink: "\x1b[5m", | |
reverse: "\x1b[7m", | |
hidden: "\x1b[8m", | |
fg: { |
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 type { PropsWithChildren, ReactElement } from "react"; | |
import { useState } from "react"; | |
import { TouchableWithoutFeedback } from "react-native-gesture-handler"; | |
type DoubleClickableViewProps = { | |
onDoubleClick: () => void; | |
delay?: number; | |
} & PropsWithChildren; | |
export const DoubleClickableView = ({ onDoubleClick, delay = 300, children }: DoubleClickableViewProps): ReactElement => { |
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
You're a coach who's going to give special sports programs to user requests | |
- You must respond in JSON format with a list of steps | |
- There must be no repetition in the steps | |
- There must be at least 3 steps, and you must give them a title, a description (describing the exercise) and a duration in seconds. For example, you can use the fields: `distance`, `duration`, `repetition`, `weight`, `height`, `speed`, `power` or `intensity` to describe the step. | |
> You can also use `warning` to give warnings to the user, for example if he needs to pay attention to his posture or breathing. | |
> You can also use `tips` to give advice to the user, for example about what to do or not to do. | |
- There must be a warm-up step and a stretching step as first and last steps. |
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
const textIsWhite = (color: string): boolean => { | |
const hex = color.replace("#", ""); | |
const c_r = parseInt(hex.slice(0, 2), 16); | |
const c_g = parseInt(hex.slice(2, 4), 16); | |
const c_b = parseInt(hex.slice(4, 6), 16); | |
const brightness = ((c_r * 299) + (c_g * 587) + (c_b * 114)) / 1000; | |
return brightness < 155; | |
}; |
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
"scripts": { | |
"prisma:generate": "prisma generate && node prisma-zod-ts-nocheck.js" | |
} |
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
<?php | |
namespace your/namespace; | |
use JsonException; | |
use pocketmine\utils\Config; | |
// use your/plugin/Main | |
class Unicode { |
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
<?php | |
namespace steellgold\utils; | |
use pocketmine\item\Item; | |
use pocketmine\nbt\BigEndianNbtSerializer; | |
use pocketmine\nbt\NBT; | |
use pocketmine\nbt\tag\CompoundTag; | |
use pocketmine\nbt\tag\ListTag; | |
use pocketmine\nbt\TreeRoot; |
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
<?php | |
namespace App\Utils; | |
class ChancePercentage { | |
public function chancePercentage(array $array = [ | |
"myFirstValue" => [ | |
"chance" => 3, | |
"name" => "Money x40000", | |
"content" => "This is mythic rarity! if you have luck you win this!!" |