Skip to content

Instantly share code, notes, and snippets.

@jbsummoner
jbsummoner / readme.md
Created December 7, 2021 18:13
troubles with react native on mac m1

Key Pieces

@jbsummoner
jbsummoner / angular-best-practices-checklist.md
Last active October 20, 2021 15:20
checklist for angular best practices

Checklist - WIP

Here’re some set of rules that you need to follow to make your project comply with the standard Angular style guide

  • Single Responsibility Principle, check
  • Per file, the code must not exceed from 400 lines limit
  • Per function, the code must not exceed from 75 lines
  • Utilise custom prefix to prevent element name collisions with components in other apps and with native HTML elements.
  • If the values of the variables are intact, declare it with const
  • Names of properties and methods should be in lower camel case
  • Always leave one empty line between imports and module such as third party and application imports and third-party module and custom module
  • We shouldn’t name our interfaces with the starting capital I letter as we do in some programming languages.
@jbsummoner
jbsummoner / managing-mulitple-gits.md
Last active June 20, 2021 05:07
managing mulitple git accounts on one machine

Working parts

  1. private key for each account
  2. gitconfig files for each git account
  3. update .gitconfig to condtionally switch between users
  4. update ssh config file to use keys, and unique hostname for each user
  5. update usage -> git remote addresses to match users ssh config

.gitconfig

# ~/.gitconfig
@jbsummoner
jbsummoner / cloudSettings
Created September 24, 2019 01:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-24T01:38:54.942Z","extensionVersion":"v3.4.2"}