Skip to content

Instantly share code, notes, and snippets.

View Pana's full-sized avatar
🎯
Focusing

Pana Pana

🎯
Focusing
View GitHub Profile
[ 'San Francisco, CA, US', 1857 ]
[ 'Oakland, CA, US', 924 ]
[ 'London, ENG, GB', 511 ]
[ 'New York City, NY, US', 482 ]
[ 'Madison, WI, US', 444 ]
[ 'Hangzhou, CN', 439 ]
[ 'Sydney, AU', 435 ]
[ 'Copenhagen, DK', 305 ]
[ 'Melbourne, AU', 254 ]
[ 'Boston, MA, US', 254 ]
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@Pana
Pana / newProvider.js
Last active August 31, 2020 14:57 — forked from rekmarks/newProvider.js
Using the New MetaMask Inpage Provider
// Running on the page, in the browser
// This API will go live in early 2020
// It will be the only API available after a 6-week deprecation period
if (!conflux || !conflux.isConfluxPortal) {
throw new Error('Please install MetaMask.')
}
/*********************************************************/