git config --global rerere.enabled true
git pull origin main git rebase main
@comment now fix conflicts manually only once, since git rerere will record your chosen conflict resolutions
git push -f
package Hangman; | |
import java.util.Scanner; | |
import java.util.Random; | |
public class Built { | |
public static void main(String[] args){ | |
Scanner scanner = new Scanner(System.in); | |
Random random = new Random(); | |
import React, { useReducer } from 'react'; | |
const initialState = { | |
loading: false, | |
count: 0, | |
}; | |
const reducer = (state, action) => { | |
switch (action.type) { | |
case 'increment': { |
import React, { Component } from 'react'; | |
import axios from 'axios'; | |
class Example extends Component { | |
signal = axios.CancelToken.source(); | |
state = { | |
isLoading: false, | |
user: {}, | |
} |
// BE does the feature flags for users for A/B testing | |
<FeatureFlag isEnabled={flagValue}> | |
// Content for a specific feature flag | |
</FeatureFlag> | |
const FeatureFlag = ({ isEnabled, children }) => { | |
return isEnabled ? children : null; | |
} |
before(() => { | |
cy.clearInfo(); | |
cy.login(); | |
}); | |
after(() => { | |
cy.contains('Logout').click(); | |
cy.contains('Login'); | |
}); | |
beforeEach(() => { |
const path = require('path') | |
const libPath = path.join(require.resolve('./my-library/another'), '..') | |
// console.log('libPath :: ', libPath) | |
const anotherPath = path.join(libPath, 'another') | |
const another = require(anotherPath) | |
// console.log('anotherPath ::', anotherPath) | |
// console.log('another ::', another) |
const fs = require('fs'); | |
const puppeteer = require('puppeteer'); | |
// Build paths | |
const { buildPathHtml, buildPathPdf } = require('./buildPaths'); | |
const printPdf = async () => { | |
console.log('Starting: Generating PDF Process, Kindly wait ..'); | |
/** Launch a headleass browser */ | |
const browser = await puppeteer.launch(); | |
/* 1- Ccreate a newPage() object. It is created in default browser context. */ |
// ignore this line, this is just here | |
// to clear console, everytime I hit "Run with JS" | |
console.clear(); | |
// Comment out each example one by one & play with | |
// it, happy coding :) | |
// @example NOT* a closure example | |
// function person() { | |
// let name = 'adeel'; |