shortcut | result |
---|---|
CTRL+ALT+B |
navigate to the implementation |
CTRL+U |
navigate to the super method |
Sources:
<?php | |
$callback = function () { | |
}; | |
collect()->when($callback, static function (\Illuminate\Support\Collection $collection, \Closure $callback) { | |
return \Illuminate\Support\Collection::wrap($callback($collection)); | |
}); // Same as \DB::query()->get(), Model::query()->get() | |
\DB::query()->when($callback, static function (\Illuminate\Database\Query\Builder $query, \Closure $callback) { |
import {chromium as browser, ElementHandle, Page} from "playwright"; | |
import {default as PQueue} from "p-queue" | |
const username: string = 'gander' | |
const links = new Set; | |
let nextPage: string = ''; | |
(async () => { | |
const pages = new PQueue({concurrency: 7}) |
C:\Windows\System32\DisplaySwitch.exe /internal | |
C:\Windows\System32\DisplaySwitch.exe /external |
shortcut | result |
---|---|
CTRL+ALT+B |
navigate to the implementation |
CTRL+U |
navigate to the super method |
Sources:
jQuery(() => | |
jQuery('td').filter(function() { | |
return jQuery(this).text().match(/^https?:\/\/.+/); | |
}).each(function() { | |
const $this = jQuery(this); | |
$this.html(jQuery('<a>', { | |
href: $this.text(), | |
rel: 'noopener noreferrer', | |
target: '_blank' | |
}).text($this.text())); |
<?php | |
class DateFixer { | |
public function fix(string $date): string { | |
$time = new DateTime($date); | |
$time->modify('+3 days'); | |
return $time->format('Y-m-d'); | |
} | |
} |