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
$.ajax({ | |
url: "https://reqres.in/api/users", | |
type: "POST", | |
data: { | |
name: "paul rudd", | |
movies: ["I Love You Man", "Role Models"] | |
}, | |
success: function(response){ | |
console.log(response); | |
} |
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
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", "https://reqres.in/api/products/3", true); | |
xhr.onload = function(){ | |
console.log(xhr.responseText); | |
}; | |
xhr.send(); |
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
{ | |
"name":"paul rudd", | |
"movies[]":[ | |
"I Love You Man", | |
"Role Models" | |
], | |
"id":"243", | |
"createdAt":"2014-10-18T12:09:05.255Z" | |
} |
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
{ | |
"data":{ | |
"id":3, | |
"name":"true red", | |
"year":2002, | |
"pantone_value":"19-1664" | |
} | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<sitemap> | |
<loc>https://stackoverflow.com/sitemap-questions-0.xml</loc> | |
</sitemap> | |
<sitemap> | |
<loc>https://stackoverflow.com/sitemap-questions-1.xml</loc> | |
</sitemap> | |
<sitemap> | |
<loc>https://stackoverflow.com/sitemap-questions-2.xml</loc> |
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
function copyStringToClipboard (str) { | |
// Create new element | |
var el = document.createElement('textarea'); | |
// Set value (string to be copied) | |
el.value = str; | |
// Set non-editable to avoid focus and move outside of view | |
el.setAttribute('readonly', ''); | |
el.style = {position: 'absolute', left: '-9999px'}; | |
document.body.appendChild(el); | |
// Select text inside element |
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
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
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
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo ufw allow in "Apache Full" | |
sudo apt-get install curl | |
sudo apt-get install mysql-server | |
mysql_secure_installation | |
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql | |
sudo systemctl restart apache2 |
OlderNewer