https://opengraph.githubassets.com/<any_hash_number>/<owner>/<repo>
example:
url:
https://opengraph.githubassets.com/og/Deri-Kurniawan/windows-11-os
/** | |
* NIM : 1930511068 | |
* Nama : Deri Kurniawan | |
* Mata Kuliah : Teknik Simulasi dan Pemodelan | |
*/ | |
/** | |
* Class Mahasiswa | |
* @param {any[]} data mahasiswa data | |
*/ |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp"> | |
<!-- All Permission --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.READ_CALENDAR" /> | |
<uses-permission android:name="android.permission.WRITE_CALENDAR" /> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-permission android:name="android.permission.READ_CONTACTS" /> | |
<uses-permission android:name="android.permission.WRITE_CONTACTS" /> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
import { type ClassValue, clsx } from "clsx" | |
import { twMerge } from "tailwind-merge" | |
export function cn(...inputs: ClassValue[]) { | |
return twMerge(clsx(inputs)) | |
} |
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "src/server.js", | |
"use": "@vercel/node" | |
} | |
], | |
"routes": [ | |
{ |
import { PrismaClient } from "@prisma/client"; | |
declare global { | |
var prisma: PrismaClient | undefined; | |
} | |
let prisma: PrismaClient; | |
if (process.env.NODE_ENV === "production") { | |
prisma = new PrismaClient(); |
Here's a clearer explanation of the structure of the base URL and path with placeholder values, along with implementation examples and an additional example for adding connection timeout:
Base URL Structure:
mysql://USER:PASSWORD@HOST:PORT/DATABASE?KEY1=VALUE&KEY2=VALUE&KEY3=VALUE
Example with Placeholder Values:
<div className="max-w-screen-2xl"> | |
<div className="flex flex-wrap"> | |
{Array.from({ length: 400 }) | |
.fill(0) | |
.map((_, i) => ( | |
<div | |
key={i.toString()} | |
className="animated-item h-16 w-16 rounded-md border-[0.1px] border-black/20 transition-all duration-500 ease-linear hover:bg-primary" | |
/> | |
))} |
// Get a random number between 1 to max number | |
function randomNumber(max) { | |
return Math.floor(Math.random() * max); | |
} | |
// Get a random number between min and max number | |
function randomNumberInRange(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} |