Skip to content

Instantly share code, notes, and snippets.

@dalalsunil1986
dalalsunil1986 / github-oauth2-client.php
Created June 7, 2019 09:11
Simple PHP example of using Github's OAuth 2 API
<?php
define('OAUTH2_CLIENT_ID', '');
define('OAUTH2_CLIENT_SECRET', '');
$authorizeURL = 'https://github.com/login/oauth/authorize';
$tokenURL = 'https://github.com/login/oauth/access_token';
$apiURLBase = 'https://api.github.com/';
session_start();
@dalalsunil1986
dalalsunil1986 / npmcrashcourse.txt
Created March 23, 2019 06:45 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)