For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains 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
{"element":"section","dataset":{"state":"hello-world.view","example":"hello-word"},"shadow":{"mode":"closed","styles":"\"html { width: 100%; max-width: 100%; height: 100%; max-height: 100%; box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background-color: #fff; overflow: hidden;}*,*::before,*::after { width: fit-content; height: fit-content; min-width: auto; min-height: auto; max-width: inherit; max-height: inherit; box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: transparent;}body { background-color: inherit; color: #000; width: 100%; height: 100%; overflow: auto;}h1, h2, h3, h4, h5, h6 { font-weight: 500;}strong,b { font-weight: bold; line-height: inherit;}em,i { font-style: italic; line-height: inherit;}ul, ol { list-style: disc inside;}ul[role=list],ol[role=list] { list-style: none;}a { |
This file contains 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
application: | |
name: test-nodejs-qovery | |
project: nodejs-qovery | |
publicly_accessible: true | |
routers: | |
- name: main | |
routes: | |
- application_name: test-nodejs-qovery | |
paths: | |
- / |
This file contains 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
const crypto = require('crypto') | |
const sign = (value, secret) => { | |
return value + '.' + crypto | |
.createHmac('sha256', secret + '') | |
.update(value + '') | |
.digest('base64') | |
.replace(/\=+$/, '') | |
} |
This file contains 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
/* | |
simple example to capitalize | |
*/ | |
function capitaLize() { | |
const textbox = document.getElementById("text-box"); //textarea | |
const textresult = document.getElementById("text-result"); //result element "<pre>"; | |
if ((textbox) && (textbox.value) && (textbox.value.toString().trim().length > 0)) { | |
textresult.innerText = ""; | |
const str = textbox.value.toString().trim().toLowerCase(); //turns everything to lowercase |
This file contains 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
/* | |
based on the Apache Foundation module | |
https://github.com/apache/commons-lang/blob/7bbbdd2477305992e4d809db5288d6f62718124b/src/main/java/org/apache/commons/lang3/text/translate/EntityArrays.java | |
*/ | |
const apache = { | |
"\u00A0": " ", | |
"\u00A1": "¡", | |
"\u00A2": "¢", | |
"\u00A3": "£", | |
"\u00A4": "¤", |
This file contains 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
/* | |
css example | |
.hide { | |
display: none !important; | |
} | |
//== | |
simple HTML example | |
<div class="language"> | |
<span data-lang="pt-br">PT-BR</span> | |
<span data-lang="en">EN</span> |
This file contains 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
<?php | |
/** | |
* Name: BRL to MIOTA | |
* Description: Convert Brazilian Real (BRL) to MIOTA | |
* Author: Jamil Serviços | |
* Author URI: https://fb.com/JamilServicos/ | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
* |
This file contains 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
const data = {}; | |
data.final = [ | |
{ "id": 0, "name": "Fleming James" }, | |
{ "id": 1, "name": "Everett Johnson" }, | |
{ "id": 2, "name": "Brock Owens" } | |
]; | |
data.update = [ | |
{ "id": 0, "name": "Catherine Cooley" }, | |
{ "id": 1, "name": "Mavis Grant" }, |
This file contains 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
const doc = [ | |
{"status":"1","name":"Item5","order":0,"submenuId":"0","subid":1}, | |
{"status":"1","name":"Item1","order":2,"submenuId":"0","subid":5}, | |
{"status":"1","name":"Item2","order":1,"submenuId":"0","subid":2} | |
]; | |
/* Ascending: (order field) | |
output sort: | |
{"status":"1","name":"Item5","order":0,"submenuId":"0","subid":1}, | |
{"status":"1","name":"Item2","order":1,"submenuId":"0","subid":2}, |
NewerOlder