Skip to content

Instantly share code, notes, and snippets.

View mohammedmagdyismael's full-sized avatar
:octocat:
Focusing

Mohammed Magdy Ismael mohammedmagdyismael

:octocat:
Focusing
View GitHub Profile
# Add in ~/.bashrc or ~/.bash_profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
NO_COLOR="\[\033[00m\]"
@mohammedmagdyismael
mohammedmagdyismael / withFireBaseRemoteConfig.js
Created February 5, 2023 08:59
Google Firebase RemoteConfig + Reactjs
/* eslint-disable prefer-destructuring */
/* eslint-disable no-underscore-dangle */
import React, { useEffect } from 'react';
import { initializeApp } from 'firebase/app';
import { getValue, fetchAndActivate, getRemoteConfig } from 'firebase/remote-config';
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
<svg style="background-color:white" height="510" width="800">
<polygon points="45,200 155,134 185,200 165,250" style="fill:#ff4301;stroke:black;stroke-width:1" />
<polygon points="155,134 185,200 225,180" style="fill:#fa7d09;stroke:black;stroke-width:1" />
<polygon points="185,200 225,180 245,245" style="fill:#ff4301;stroke:black;stroke-width:1" />
<polygon points="165,250 185,200 245,245 220,390" style="fill:#ffcb74;stroke:black;stroke-width:1" />
<polygon points="220,390 245,245 270,420" style="fill:#fa7d09;stroke:black;stroke-width:1" />
<polygon points="310,210 355,335 360,395 312,425 260,395 265,335" style="fill:#ffcb74;stroke:black;stroke-width:1" />
<polygon points="310,210 250,330 265,335" style="fill:#fa7d09;stroke:black;stroke-width:1" />
<polygon points="310,210 355,335 370,330" style="fill:#fa7d09;stroke:black;stroke-width:1" />