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 adjustRgbaOpacity(color: string, opacity: number) { | |
color.replace(/[^,]+(?=\))/, opacity); | |
} | |
const rgba = 'rgba(255, 255, 255, 1)'; | |
const rgbargba = adjustRgbaOpacity(color, .5); | |
https://stackoverflow.com/a/8179549/2124039 |
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
#!/bin/bash | |
resultsFile=$PWD/results.txt | |
echo "" > $resultsFile | |
recursiveImageGen() { | |
for arg in *; do | |
if [ -d "$arg" ]; then | |
(cd -- "$arg" && recursiveImageGen) | |
fi |
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
# Logs | |
logs | |
*.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
# Directory for instrumented libs generated by jscoverage/JSCover |