Skip to content

Instantly share code, notes, and snippets.

View sarangkartikey50's full-sized avatar
😏
Do not Over'react'!

Sarang Kartikey sarangkartikey50

😏
Do not Over'react'!
View GitHub Profile

1. Register

- parse and register /sw.js
    a. Install
        - install the service worker.
    b. Installed
        - ther service worker was installed successfully and waiting for activation (some other instance service worker is installed)
@sarangkartikey50
sarangkartikey50 / vscode_shortcuts.md
Created November 8, 2019 11:37 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@sarangkartikey50
sarangkartikey50 / react-project-structure.md
Last active November 4, 2019 05:44
Project Structure for any frontend project (This project structure is typically for React).

Project Structure

Project Structure for any frontend project (This project structure is typically for React).

  • root
    • src
      • adapters
      • assets
        • img
  • styles
@sarangkartikey50
sarangkartikey50 / .js
Last active April 6, 2019 15:46
Custom console which stores all the logs, errors
console.stdlog = console.log.bind(console);
console.logs = [];
console.log = function(){
console.logs.push(Array.from(arguments));
console.stdlog.apply(console, arguments);
}
console.stderror = console.error.bind(console);
console.errors = [];
console.error = function(){
console.errors.push(Array.from(arguments));
@sarangkartikey50
sarangkartikey50 / grid.js
Created September 26, 2018 05:52
material-ui-grid-example
<Grid container>
<Grid item container spacing={32}>
<Grid item xs={12}>
<Typography variant='display2' align='center'>Heading</Typography>
</Grid>
<Grid container>
<Grid item xs={5}>
<div>
<img
style={{height: '100%', width: '250px'}}src="https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" />