Skip to content

Instantly share code, notes, and snippets.

View sulhome's full-sized avatar
💭

Sul Aga sulhome

💭
View GitHub Profile
@sulhome
sulhome / urban-dictionary.sh
Created August 28, 2016 23:14
search urban dictionary for definition using bash
#!/usr/bin/env bash
function command_exists () {
type "$1" &> /dev/null ;
}
function print_error() {
printf "\e[31m Error \e[0m: %s \n" "$1"
}
@sulhome
sulhome / bbc-top-news-v2.sh
Last active August 28, 2016 23:06
bbc top news using bash V2
#!/usr/bin/env bash
function command_exists () {
type "$1" &> /dev/null ;
}
function print_error() {
printf "\e[31m Error \e[0m: %s \n" "$1"
}
@sulhome
sulhome / bbc-top-news.sh
Created August 27, 2016 23:43
display most read stories on bbc from bash
#!/usr/bin/env bash
function command_exists () {
type "$1" &> /dev/null ;
}
function print_error() {
printf "\e[31m Error \e[0m: %s \n" "$1"
}