Skip to content

Instantly share code, notes, and snippets.

@shadiabuhilal
shadiabuhilal / dot-env.sh
Last active July 30, 2024 11:42
Load environment variables from dotenv / .env file in Bash script
#!/bin/bash
# Specify the path to your .env file
ENV_FILE=".env"
# Function to success color text with green
successText() {
tput setaf 2
echo "$@"
tput sgr0
@shadiabuhilal
shadiabuhilal / text-formatting-in-bash.sh
Created February 2, 2024 09:58
text formatting in bash script
#!/bin/bash
# Function to format text as bold
boldText() {
tput bold
echo "$@"
tput sgr0
}
# Function to default color text as white
@shadiabuhilal
shadiabuhilal / yahoo-messenger.svg
Created August 22, 2020 06:05
yahoo-messenger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shadiabuhilal
shadiabuhilal / css-star-rating.html
Created July 22, 2017 06:25
Integrating CSS star rating into an HTML form
<style>
.txt-center {
text-align: center;
}
.hide {
display: none;
}
.clear {
float: none;
@shadiabuhilal
shadiabuhilal / equal.png
Last active July 18, 2017 22:01
spritify-logo
equal.png
@shadiabuhilal
shadiabuhilal / console-ruler.js
Created February 23, 2017 01:52
create html ruler using browser console
function createRuler(options) {
function loadScript(callback) {
var elId = 'draggabilly-script';
if (global.draggabillyScriptIsLoaded){
callback();
return;
}