- Markdown style
[](https://youtu.be/nTQUwghvy5Q)- HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">| #!/bin/sh | |
| print_usage() { | |
| echo "usage: compress_video <input_file>" | |
| echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
| } | |
| get_extension() { | |
| f="${1##*/}" | |
| case "$f" in |
| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2022 Albert Chang | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") | |
| // Tooltip implementation for AndroidX Jetpack Compose | |
| // See usage example in the next file | |
| // Tested with Compose version **1.1.0-alpha06** | |
| // Based on material DropdownMenu implementation. | |
| import androidx.compose.animation.core.MutableTransitionState | |
| import androidx.compose.animation.core.animateFloat |
| <?php | |
| namespace App\Queue; | |
| use Carbon\Carbon; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\DB; | |
| class DatabaseQueueMonitorCommand extends Command | |
| { |
| apply plugin: 'com.android.library' | |
| /** This closure will rename your output file with your outputName, versionName and git commit. */ | |
| android.metaClass.renameVariants = { String moduleName, String outputName -> | |
| def isApplication = binding.variables.containsKey('applicationVariants') | |
| def variants = isApplication ? applicationVariants : libraryVariants | |
| def gitCommit = "git rev-parse --short HEAD".execute().text.trim() | |
| def ext = isApplication ? '.apk' : '.aar' | |
| variants.all { -> outputs.each { |
| import android.Manifest | |
| import android.app.AppOpsManager | |
| import android.app.usage.StorageStats | |
| import android.app.usage.StorageStatsManager | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.content.pm.PackageManager | |
| import android.os.Build | |
| import android.os.Bundle | |
| import android.os.Process |
| import kotlinx.serialization.json.JsonArray | |
| import kotlinx.serialization.json.JsonElement | |
| import kotlinx.serialization.json.JsonNull | |
| import kotlinx.serialization.json.JsonObject | |
| import kotlinx.serialization.json.JsonPrimitive | |
| fun Any?.toJsonElement(): JsonElement { | |
| return when (this) { | |
| is Number -> JsonPrimitive(this) | |
| is Boolean -> JsonPrimitive(this) |
| import sys | |
| import anthropic | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| client = anthropic.Anthropic() | |
| prompt_template = """ | |
| Please review and edit the following text to ensure it is grammatically correct, clear, and concise. Aim to maintain a casual tone without being overly informal. Provide suggestions for improvement and explain any changes you make. Do not add double quotes in you rewrite answer. Answer in direct response. |
| Program Konversi Suhu | |
| ===================== | |
| Silakan pilih di bawah ini | |
| 1. Celcius ke Fahrenheit | |
| 2. Celcius ke Reamur | |
| 3. Celcius ke Kelvin | |
| ===================== | |
| Masukkan Menu di atas [1,2,3] | |
| 1 |