This file contains hidden or 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 | |
set -euo pipefail | |
trap "echo 'Error: Script execution failed!'" ERR | |
# Load OpenAI key from .env | |
if [ -f .env ]; then | |
export $(egrep -v '^#' .env | xargs) | |
else |
This file contains hidden or 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
/** | |
* UPDATES: | |
* To fetch latest info, go to: Coins > Refresh info | |
* | |
* FUNCIONS: | |
* getCoinPrice(<Ticker>, $Z$1000) | |
* getCoinRank(<Ticker) | |
* getCoinMarketCap(<Ticker>) | |
* getCoinPriceChange(<Ticker>, time) time = '1h' | '1d' | '1w' | |
* getCoinVolume(<Ticker>, time) time = '1d' |
This file contains hidden or 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 | |
# rm -rf <User Space Folder> | |
remove_user_folder () | |
{ | |
rm -rf ~/$1 | |
} | |
# ln -s /home/<User Name/Dropbox/<User Space Folder> <User Space Folder> | |
sym_link_from_dropbox () |
This file contains hidden or 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
// From: Ken Wheeler | |
// @ https://twitter.com/ken_wheeler/status/867357396217323522 | |
const StyledBlockQuote = styled.blockquote`${props => props.style}`; | |
export default class BlockQuote extends Componet { | |
render() { | |
const { style, ..rest } = this.props; | |
const computed = { | |
...this.context.styles.components.blockquote, |
This file contains hidden or 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
# config/locales/en.yml | |
## see http://guides.rubyonrails.org/i18n.html for me details | |
## this alows us to translate exception details to a localized language (english in this case) | |
## this is relevant in the ExceptionController#details method | |
en: | |
exception: | |
show: | |
not_found: | |
title: "Not Found" |