$ git commit --amend --author="[email protected]"
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
/* Padding to the hover effect without adding padding to the original element */ | |
':hover': { | |
background: gray, | |
cursor: 'pointer', | |
width: 240px, /* Can be dynamic */ | |
padding: '0 10px', | |
margin-left: -10px, | |
}, |
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
#!/usr/bin/env node | |
function helloThere(name) { | |
console.log('Hi,', name) | |
} | |
helloThere('Punith K') |
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
const _ = require('lodash') | |
const condidateProfile = { | |
experience: [ | |
{ | |
company: 'ABC', | |
startDate: 2020, | |
present: true | |
}, | |
// { |
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
import React, {useEffect} from 'react' | |
import {useSelector, useDispatch} from 'react-redux' | |
import {getAmount, changeAmount, changeCurrencyCode, getCurrencyCode} from './store' | |
const ExchangeRate = () => { | |
const amount = useSelector(getAmount) // or write inline selector, state => state.rates.amount | |
const code = useSelector(getCurrencyCode) | |
const dispatch = useDispatch() | |
const onAmountChange = e => dispatch(changeAmount(e.target.value)) // or write inline dispatch, {type: CHANGE_AMOUNT, payload: e.target.value} |
- Fisrt look at the url and make sure it has, https in it or a lock 🔒 symbol in the address bar when you click it
- If you open the link and it takes you to multiple links not the one you intended to see as it was described in the message
- If it asks for any camera or contact permission, I will not continue opening it
- If the link asks you to share the message immediately opening the link it's definitely bogus link though it may be secure one but people trying to establish their online presence through fake images like gold and money as a link image
- Most of the legitimate websites or online services will never ask you to sign up or login or share immediately. They will have a product info and info like that
- There are lot of ways to identify whether it's a fake or not, I would look at the above as basic measures for most of the people
- And to all of you browse web day in dayout, I would recommend you to use Brave browser
- It blocks lot of malicious links and ads and trackers so that you are privacy i
-
Create an application https://discord.com/developers/applications/
-
Once an app created, go to
Bot
section and add one bot with a type bot -
Once Bot created copy the
Token
which is a secret and please don't share it with anyone, needed to connect to the Bot using API -
Authorize the bot to be attached to your discord server, make sure you have created a Server in https://discord.com
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
import React, {useState} from 'react' | |
import RouteContext, {EMPTY_ROUTE} from './route-context' | |
const App = props => { | |
const [route, setRoute] = useState(EMPTY_ROUTE) | |
useEffect(() => { | |
// Logic to update the setRoute() based on the current route | |
// route object has params and query keys, update them accordingly | |
// or pass setRoute setter as vlaue to th Provider |
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
const storeContext = React.createContext() | |
const dispatchContext = React.createContext() | |
export const StroreProvider = ({childre, reducer, initialState = {}}) => { | |
const [store, dispatch] = React.useReducer(reducer, initialState) | |
return ( | |
<dispatchContext.Provider value={dispatch}> | |
<storeContext.Provider value={store}> | |
{children} |