- Message yourself
/slackdevtools - In the DevTools console:
function addStyle (styleString) {
const style = document.createElement('style');
style.textContent = styleString;
document.head.append(style);
}
addStyle(`
| # | |
| # REQUIRES: | |
| # - server (the forge server instance) | |
| # - event (the forge event instance) | |
| # - sudo_password (random password for sudo) | |
| # - db_password (random password for database user) | |
| # - callback (the callback URL) | |
| # |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Formatter\OutputFormatterStyle; | |
| class SymfonyColorsDemo extends Command | |
| { | |
| protected $signature = 'demo:symfony-colors'; |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class CustomColorAsciiLogoDemo extends Command | |
| { | |
| protected $signature = 'demo:ascii-logo'; |
| <?php | |
| namespace App\Http\Controllers\Auth; | |
| use App\Http\Controllers\Concerns\ThrottlesRequests; | |
| use App\Http\Requests\Auth\SignInRequest; | |
| use App\Http\Requests\Auth\SignUpRequest; | |
| use App\Models\User; | |
| use Illuminate\Auth\Events\Registered; | |
| use Illuminate\Http\RedirectResponse; |
| <script> | |
| import getData from './fetcher.js'; | |
| const response = getData(url); | |
| {#await $response} | |
| <Spinner /> | |
| {:then data} | |
| <code {data}> | |
| {:catch} |
| <!-- Based on Demystifying Svelte Transitions (Tan Li Hau) Svelte Summit 2020 --> | |
| <script> | |
| function customTransition(node) { | |
| let originalText = node.textContent; | |
| return { | |
| delay: 0, | |
| duration: 1000, | |
| css: (t, u) => { | |
| if (t < 0.4) return `font-weight: 500; color: maroon;`; |
| <?php | |
| namespace App\Http\Livewire\Stats; | |
| use Illuminate\Support\Facades\DB; | |
| use Livewire\Component; | |
| class DistanceByYear extends Component | |
| { | |
| public $chartId; |
| const plugin = require('tailwindcss/plugin'); | |
| const production = !process.env.ROLLUP_WATCH; | |
| module.exports = { | |
| purge: { | |
| enabled: production, | |
| content: [ | |
| './src/**/*.html', | |
| './src/**/*.svelte', | |
| ], |
| // @see https://stackoverflow.com/a/8809472 | |
| export function uuid() { // Public Domain/MIT | |
| var d = new Date().getTime();//Timestamp | |
| var d2 = (performance && performance.now && (performance.now() * 1000)) || 0;//Time in microseconds since page-load or 0 if unsupported | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |
| var r = Math.random() * 16;//random number between 0 and 16 | |
| if (d > 0) {//Use timestamp until depleted | |
| r = (d + r) % 16 | 0; | |
| d = Math.floor(d / 16); | |
| } else {//Use microseconds since page-load if supported |