short != clear, Write as much as you would like to add.
```
Triple quotes: “””
Triple backticks: ```,
Triple dashes: ---,
const canvas = document.getElementById('myCanvas'); | |
const ctx = canvas.getContext('2d'); | |
// Save the original method | |
const originalFillRect = ctx.fillRect; | |
// Override it | |
ctx.fillRect = function(x, y, width, height) { | |
console.log("Called fillRect with:", x, y, width, height); | |
// middleware.js | |
import { NextResponse } from 'next/server'; | |
export function middleware(request) { | |
// Get the referrer and target URL | |
const referrer = request.headers.get('referer') || ''; | |
const url = request.nextUrl.clone(); | |
// Check if this is a navigation to an external site | |
if (url.pathname.startsWith('/api/outbound')) { |
<?php | |
class DownloadDiscoveryArticleCommand | |
{ | |
public $batchSize = 10; | |
public function handle() | |
{ | |
$totalItems = $this->getTotalJournalsFromDiscovery(); |
<?php | |
return [ | |
'af' => [ 'calling_code' => '+93', 'name' => 'Afghanistan'], | |
'ax' => [ 'calling_code' => '', 'name' => 'Aland Islands'], | |
'al' => [ 'calling_code' => '+355', 'name' => 'Albania'], | |
'dz' => [ 'calling_code' => '+213', 'name' => 'Algeria'], | |
'as' => [ 'calling_code' => '+1', 'name' => 'American Samoa'], | |
'ad' => [ 'calling_code' => '+376', 'name' => 'Andorra'], | |
'ao' => [ 'calling_code' => '+244', 'name' => 'Angola'], |