Skip to content

Instantly share code, notes, and snippets.

Ł Ξ ₮ ₿

Akshay CM akshaynexus

Ł Ξ ₮ ₿
View GitHub Profile
natedana /
Created Nov 14, 2017 — forked from moose-horizons/
Copy a repo without forking

How to copy a GitHub repo without forking

GitHub only lets you fork a repo once, if you want to make more than one copy of a project here's how you can do it. Useful for starter code.

  1. Create a new empty folder for your project and initialize git

    cd where-you-keep-your-projects
    mkdir your-project-name
primaryobjects / react-confirm.js
Created Nov 1, 2017
A simple example of a confirm alert dialog in ReactJs / React.
View react-confirm.js
<div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } />