For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
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
According to all known laws | |
of aviation, | |
there is no way a bee | |
should be able to fly. | |
Its wings are too small to get | |
its fat little body off the ground. |
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
#!/usr/bin/env bash | |
# NOTE: Xfce panel position scheme ------------------------------------------- | |
# (6)--(11)---(9)--(11)--(2) | |
# | | | |
# (5) (1) | |
# | | | |
# (7) (0) (3) | |
# | | |
This is not working complete code.
This is strictly a v0, scrapy, proof of concept for the first version of a personal AI Assistant working end to end in just ~322 LOC.
It's only a frame of reference for you to consume the core ideas of how to build a POC of a personal AI Assistant.
To see the high level of how this works check out the explanation video. To follow our agentic journey check out the @IndyDevDan channel.
Stay focused, keep building.
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
// 💡 Tip: need to decode with node.js? Use the @authflow-js/verify npm module | |
function decryptJWT(e) { | |
function b64(e) { | |
return decodeURIComponent(Array.prototype.map.call(atob(e), function (e) { | |
return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2) | |
}).join("")) | |
} | |
try { | |
const r = e |
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 formatMoney(n) { | |
return parseFloat(n).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1.').replace(/\.(\d+)$/,',$1'); | |
} | |
formatMoney(1234567) // 1.234.567,00 | |
formatMoney(1234567.99) // 1.234.567,99 |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.milind.word.to.pdf; | |
import com.itextpdf.text.Chunk; | |
import com.itextpdf.text.Document; | |
import com.itextpdf.text.DocumentException; |
We will need at least two nodes, Ansible, and a kubectl. That's enough to begin.
My ansible role: https://github.com/allanger/kubeadm-ansible-role
I am using Ubuntu 21.04 on all my servers so my Ansible role is written for Debian-based distros. (I will be happy if anybody adds support for other distros)
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
1210165420493905982 | |
956054319529066527 | |
956075132571508757 | |
1171196139647803513 | |
956210819325132921 | |
956164930061619230 | |
1185038257789079614 | |
956246550152118374 | |
956178931512410222 | |
1172076548791226439 |
NewerOlder