Skip to content

Instantly share code, notes, and snippets.

View Gopikrishna19's full-sized avatar
🎯
Focusing

Gopikrishna Sathyamurthy Gopikrishna19

🎯
Focusing
View GitHub Profile
@Gopikrishna19
Gopikrishna19 / delete-account.md
Last active February 1, 2024 02:57
My Next Task

Deleting My Next Task Account

This is pre-registered only Service. You may delete your content from within the app. To delete your account and registration, please contact at sandalack19@gmail.com with your login email id. The account will be permanently deleted within 48 hours of receving the email.

To install Docker on Debian as root:
1) apt-get update
2) apt-get install ca-certificates curl gnupg lsb-release
3) curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
4) echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
5) apt-get update
6) apt-get install docker-ce docker-ce-cli containerd.io
@Gopikrishna19
Gopikrishna19 / csv-parser.js
Created July 22, 2022 14:31
CSV Parser - Final state machine - Javascript
const states = {
startField: 'startField',
startRow: 'startRow',
escaped: 'escaped',
nonQuoted: 'nonQuoted',
quoted: 'quoted',
};
const EOF = 'eof';
module.exports.csvParser = (content) => {
@Gopikrishna19
Gopikrishna19 / processors.md
Created February 9, 2022 18:40
processors

Processors

Name generation level power
i5 11490 11 5 490 unlocked
Ryzen 5 3500 5 3 500

celeron/pentium - browsing, text editing - 3 -> browsing, text editing, light gaming

@Gopikrishna19
Gopikrishna19 / pmt.md
Last active January 26, 2022 19:10
Payment Formula (PMT Excel Formula)

P_n=P*\frac{r(1+r)^{n}}{(1+r)^n-1}

@Gopikrishna19
Gopikrishna19 / try.js
Created April 25, 2021 15:00
try catch
const something = () => new Promise((resolve, reject) => {
setTimeout(() => reject(new Error('Rejected for some reason')), 1000);
});
const somethingElse = () => Promise.reject({});
// await something(); // top level await
const onRejected = () => console.log('Caught');
const tryThis = async (asyncFunc) => {
try {
def evaluate(
nakshatram: int,
udayadi_naligai: int,
mundaya_naligai: int,
nakshatra_iruppu: int,
should_reeval: bool,
padam: int = 1,
):
if nakshatram == 0:
return "NaksError"
@Gopikrishna19
Gopikrishna19 / .gitconfig
Last active November 11, 2020 17:51
git config
[alias]
a = !git add . && git status
ac = !git a && git commit
c = commit
ca = commit --amend
cm = commit -m
co = checkout
cob = checkout -b
cp = cherry-pick
d = diff
@Gopikrishna19
Gopikrishna19 / store-factory.js
Created March 16, 2020 03:36
seting up redux devtools
import {applyMiddleware, createStore} from 'redux';
import {State} from './state';
import {composeWithDevTools} from 'redux-devtools-extension';
import {createCheckedReducer} from 'redux-tcomb';
import reducers from './reducers';
import thunk from 'redux-thunk';
const createStore = (reducer) => {
const checkedReducers = createCheckedReducer(reducer, State);
const middlewareStoreCreator = composeWithDevTools(
@Gopikrishna19
Gopikrishna19 / README.md
Created February 26, 2019 14:37
Restore deleted branch

knowing the github reference

# GIT_PAT=
# GIT_USER=
# GIT_ORG=
# GIT_REPO=
# GIT_REMOTE=
# GIT_BRANCH=