Skip to content

Instantly share code, notes, and snippets.

@baleyko
baleyko / README.md
Created February 1, 2024 21:58 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

z/rt/gcAAAEDAACAAgAAABAAAABIBgAAhQAgAAAAAAAZAAAASAAAAF9fUEFHRVpF
Uk8AAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAZAAAAKAIAAF9fVEVYVAAAAAAAAAAAAAAAAAAAAQAAAACgAAAAAAAA
AAAAAAAAAAAAoAAAAAAAAAUAAAAFAAAABgAAAAAAAABfX3RleHQAAAAAAAAAAAAA
X19URVhUAAAAAAAAAAAAAOgVAAABAAAAnHIAAAAAAADoFQAAAgAAAAAAAAAAAAAA
AAQAgAAAAAAAAAAAAAAAAF9fc3R1YnMAAAAAAAAAAABfX1RFWFQAAAAAAAAAAAAA
hIgAAAEAAADmAQAAAAAAAISIAAABAAAAAAAAAAAAAAAIBACAAAAAAAYAAAAAAAAA
X19zdHViX2hlbHBlcgAAAF9fVEVYVAAAAAAAAAAAAABsigAAAQAAADoDAAAAAAAA
bIoAAAIAAAAAAAAAAAAAAAAEAIAAAAAAAAAAAAAAAABfX2NzdHJpbmcAAAAAAAAA
X19URVhUAAAAAAAAAAAAAKaNAAABAAAA6RAAAAAAAACmjQAAAAAAAAAAAAAAAAAA
@baleyko
baleyko / test.php
Last active January 21, 2020 16:21
<?php
echo "Hello World!";
@baleyko
baleyko / main.tf
Created April 17, 2019 11:13 — forked from ian-bartholomew/main.tf
Terraform Hello World
provider "aws" {
region = "us-east-1"
}
resource "aws_security_group" "instance" {
name = "terraform-example-instance"
ingress {
from_port = "${var.server_port}"
to_port = "${var.server_port}"
@baleyko
baleyko / socat_server.sh
Created March 8, 2018 10:44 — forked from CMCDragonkai/socat_server.sh
Socat: Simple HTTP Server
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\";
echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\";
"
<?php
return load([
[
'id' => 1,
]
]);
?>
@baleyko
baleyko / 0_reuse_code.js
Created January 21, 2016 13:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@baleyko
baleyko / most_used_commands.sh
Created October 2, 2015 08:53
Calculate most used commands
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
@baleyko
baleyko / Procfile
Last active August 29, 2015 14:08 — forked from anderssvendal/Procfile
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf
fastcgi: /usr/local/sbin/php-fpm
db: /usr/local/bin/mysqld