For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { final } from './final.ts'; | |
import { frozen } from './frozen.ts'; | |
@final | |
@frozen | |
export class Example { | |
} | |
export class ExampleSub extends Example { | |
} |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Source: andrej 2021-02-26 13:38:56
- Have a directory for the user for shell scripts:
mkdir ~/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plupload from "plupload"; | |
export let alert = ( | |
message = "Success", | |
details = [], | |
type = "default", | |
duration = 5000, | |
position = "bottom-center", | |
autoDismiss = true | |
) => ({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@props(['message' => 'THis is a demo msg', 'type' => 'danger', 'duration' => 5000, 'position' => 'bottom-center', 'autoDismiss' => true]) | |
<div x-data="alert('{{ $message }}', '{{ $type }}', '{{ $duration }}', '{{ $position }}', '{{ $autoDismiss }}')" x-on:click="dismissAlert" x-id="['alert']" | |
:class="{ | |
'text-light-area-color dark:text-light-area-color-dark bg-dark-area-color dark:bg-dark-area-color-dark': type === | |
'basic', | |
'text-white bg-red-500': type === | |
'danger', | |
'text-white bg-green-500': type === | |
'success', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RydMike LINTER Preferences v1.2.9 | |
# | |
# All original source credit and thanks to @rydmike (https://gist.github.com/rydmike) | |
# for his Gist here: | |
# https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c | |
# | |
# Include `all_lint_rules.dart` file, which lists all available lint rules as | |
# enabled. | |
# Source: https://dart-lang.github.io/linter/lints/options/options.html | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my_vendor_name/my_package", | |
"description": "My Package Description", | |
"license": "GPL-3.0", | |
"autoload": { | |
"classmap": [ // search these directories for classes | |
"lib/" | |
] | |
}, | |
"repositories": { |
NewerOlder