Skip to content

Instantly share code, notes, and snippets.

View yccheok's full-sized avatar

Yan Cheng Cheok yccheok

View GitHub Profile
Gemini Prompt:
For "100+ languages supported" marketing text, is "Más de 100 idiomas compatibles" or "Admite más de 100 idiomas" a better Mexican Spanish localisation? Please analysis, evaluate and rate them?
## "Admite más de 100 idiomas" Rated Superior for Mexican Spanish Marketing
For businesses looking to capture the nuances of the Mexican market, the marketing phrase **"Admite más de 100 idiomas"** is the more effective and natural-sounding choice for conveying support for over 100 languages. It is rated as the superior option when compared to "Más de 100 idiomas compatibles" due to its directness, active voice, and common usage in the tech industry in Mexico.
### Analysis of the Options
**1. Admite más de 100 idiomas**
ChatGPT Prompt:
For "100+ languages supported" marketing text, is "Más de 100 idiomas compatibles" or "Admite más de 100 idiomas" a better Mexican Spanish localisation? Please analysis, evaluate and rate them?
# Short answer
Both are acceptable, but ***“Admite más de 100 idiomas”*** is the better, more natural choice for Mexican Spanish in most UI/marketing contexts.
---
# Quick ratings (Mexican Spanish)
static func deletePersistentHistoryIfPossible() {
let ONE_DAY_DURATION: Int64 = 1*24*60*60*1000
let SEVEN_DAYS_DURATION: Int64 = 7*24*60*60*1000
let FOURTEEN_DAYS_DURATION: Int64 = 14*24*60*60*1000
let lastDeletePersistentHistoryTimestamp = WeNoteOptions.lastDeletePersistentHistoryTimestamp
let currentTimeMillis = Date.currentTimeMillis
let iCloudLastSyncInfo = WeNoteOptions.INSTANCE.iCloudLastSyncInfo
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/constraint_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
private void edgeToEdgeIfPossible(boolean windowLightStatusBar) {
if (windowLightStatusBar) {
EdgeToEdge.enable(
this,
SystemBarStyle.light(
ContextCompat.getColor(this, android.R.color.transparent),
ContextCompat.getColor(this, android.R.color.transparent)
)
);
} else {
import SwiftUI
struct SpeechBubble: View {
var count: Int
var body: some View {
HStack(spacing: 0) {
Rectangle()
.fill(.red)
.rotationEffect(.degrees(45))
@globalActor actor MyGlobalActor : GlobalActor {
static let shared = MyGlobalActor()
}
extension MoveNoteViewController: UISearchBarDelegate {
@MyGlobalActor
private func filterNotes(_ text: String) async -> [Note] {
if text.isEmpty {
return await notes
func isInActiveCanceledTrial() async throws -> Bool {
let currentDate = Date()
for await verificationResult in Transaction.currentEntitlements {
guard case .verified(let transaction) = verificationResult else { continue }
guard let expirationDate = transaction.expirationDate else { continue }
// Check if it's an active trial
if transaction.offer?.type == .introductory {
private void xxx() {
Log.i("CHEOK", "xxx");
GetGoogleIdOption googleIdOption = new GetGoogleIdOption.Builder()
.setFilterByAuthorizedAccounts(true)
.setAutoSelectEnabled(true)
.setServerClientId(Constants.WENOTE_CLOUD_STORAGE_CLIENT_ID)
.setNonce("NONCE")
.build();
androidx.credentials.GetCredentialRequest request = new androidx.credentials.GetCredentialRequest.Builder()
1. Attempt to perform the silent sign-in:
Task<GoogleSignInAccount> task = googleSignInClient.silentSignIn();
2. If step 1 succeeds, we can pass the GoogleSignInAccount to the Google Drive service.
3. If step 1 fails, prompt the user to sign in using:
startActivityForResult(Utils.buildGoogleSignInClient().getSignInIntent(), ...)