Source: andrej 2021-02-26 13:38:56
- Have a directory for the user for shell scripts:
mkdir ~/bin
@props([ | |
'name', | |
'options' => [], | |
'label' => null, | |
'required' => null, | |
'nativeRequired' => false, | |
'width' => 'w-full', | |
'inputClass' => '', | |
'selected' => null, | |
'placeholder' => 'Select an option...', |
#!/bin/bash | |
# Configuration | |
DOWNLOAD_URL="https://download.geonames.org/export/dump/allCountries.zip" | |
DEFAULT_DOWNLOAD_DIR="$HOME/.geonames" | |
DB_NAME="${GEONAMES_DB:-central_db}" | |
TABLE_NAME="${GEONAMES_TB:-geonames}" | |
# Error handling function | |
error_exit() { |
Source: andrej 2021-02-26 13:38:56
mkdir ~/bin
<?xml version="1.0"?> | |
<ruleset name="PHP_CodeSniffer"> | |
<description>PHPCS configuration file.</description> | |
<!-- check all files in the app directory, feel free to add more files with: | |
<file>FOLDER NAME</file> | |
--> | |
<file>app</file> | |
<file>bootstrap</file> |
{ | |
"recommendations": [ | |
"aaron-bond.better-comments", | |
"adpyke.codesnap", | |
"adrianwilczynski.alpine-js-intellisense", | |
"ahinkle.laravel-model-snippets", | |
"ahmadawais.shades-of-purple", | |
"aibnuhibban.laravel-smart-command", | |
"alefragnani.project-manager", | |
"amiralizadeh9480.laravel-extra-intellisense", |
Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
#Option 1 | |
set -U fish_user_paths /usr/local/bin $fish_user_paths | |
#option 2 | |
set PATH $PATH /usr/local/bin | |
export PATH | |
function ll | |
ls -lh $argv | |
end |
<script> | |
import FormBuilder from './FormBuilder.svelte' | |
import { Form } from './Form' | |
let form = new Form({id: "Test Form", sections: []}) | |
let title ="New Section" | |
function addSection(){ | |
form= form.addSection({title: title, rows:[]}); | |
form.print() | |
} |
let days = [ | |
{ s: 'Sun', l: 'Sunday' }, | |
{ s: 'Mon', l: "Monday" }, | |
{ s: 'Tue', l: 'Tuesday' }, | |
{ s: 'Wed', l: 'Wednesday' }, | |
{ s: 'Thu', l: 'Thursday' }, | |
{ s: 'Fri', l: 'Friday' }, | |
{ s: 'Sat', l: 'Saturday' } | |
]; |
This is a 1.1kb polyfill for Module Workers.
It adds support for new Worker('..',{type:'module'})
to all modern browsers (those that support fetch).
Copy module-workers-polyfill.js
to your web directory, then load it using an import or a script tag.
It just needs to be loaded before instantiating your Worker.