title | description | tags | ||||
---|---|---|---|---|---|---|
How to Create a Private “Fork” of a Public GitHub Repo |
Step-by-step guide to clone a public repo into a private repository in your organization while still pulling in upstream changes. |
|
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
/** | |
* App Module | |
* @module /app.js | |
* | |
* @author Steve Griffith <steve@home.org> | |
* @version 0.1.2 | |
* @description The init method is exported and once called will add the click event | |
* listener to start the api fetch and then build the display of the products | |
* | |
* See [Getting Started]{@tutorial overview} to learn how to use app.js. |
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
// FIRESTORE RULES | |
rules_version = '2'; | |
service cloud.firestore { | |
match /databases/{database}/documents { | |
// Listings | |
match /listings/{listing} { | |
allow read; | |
allow create: if request.auth != null && request.resource.data.imgUrls.size() < 7; | |
allow delete: if resource.data.userRef == request.auth.uid; |
- Create Firebase Project
- Create "web" app within firebase to get config values"
- Install firebase in your project "npm i firebase
- Create a config file in your project
- Add authentication for email/password and Google
- Create a user from Firebase
- Enable Firestore
- Add rules for firestore
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
function debugAccess(obj, prop, debugGet){ | |
var origValue = obj[prop]; | |
Object.defineProperty(obj, prop, { | |
get: function () { | |
if ( debugGet ) | |
debugger; | |
return origValue; | |
}, |
The package linked to from here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
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
// https://piccalil.li/blog/a-modern-css-reset | |
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default margin */ |
You're using create-react-app but you need to do some customizations to the webpack configs while you wait for the CRA team to implement/have a solution for whatever it is you need.
BUT - you do not want to eject as you want to keep up to date with any changes in CRA and possibly eventually move away from your customizationed webpack config and go back to using the mainline.
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
; c = case sensitive | |
; c1 = ignore the case that was typed, always use the same case for output | |
; * = immediate change (no need for space, period, or enter) | |
; ? = triggered even when the character typed immediately before it is alphanumeric | |
; r = raw output | |
;------------------------------------------------------------------------------ | |
; CHANGELOG: | |
; | |
; 2011-03-21 and after: See readme.md |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
NewerOlder