Skip to content

Instantly share code, notes, and snippets.

View mhnpd's full-sized avatar
👨‍💻
Working

Mohan Upadhyay mhnpd

👨‍💻
Working
View GitHub Profile
@mhnpd
mhnpd / npm-prerelease.md
Created July 31, 2019 07:46 — forked from schmich/npm-prerelease.md
Publish a prerelease package on NPM
  • Update package.json, set version to a prerelease version, e.g. 2.0.0-rc1, 3.1.5-rc4, ...
  • Run npm pack to create package
  • Run npm publish <package>.tgz --tag next to publish the package under the next tag
  • Run npm install --save package@next to install prerelease package
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/src",
"sourceMapPathOverrides": {
"eslint.autoFixOnSave": true,
"javascript.updateImportsOnFileMove.enabled": "always",
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@mhnpd
mhnpd / .eslintrc
Last active February 9, 2019 16:06
{
"extends": ["airbnb", "prettier", "prettier/react"],
"rules": {
"env": {
"node": true,
"es6": true
},
"experimentalDecorators": true,
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"devDependencies": {
"eslint-config-airbnb": "^17.0.0",
"eslint-config-equimper": "*",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.10.0",
"prettier": "^1.14.3",
}

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]

@mhnpd
mhnpd / markdown-tutorial.md
Created February 2, 2019 13:27
Markdown Basics Tutorial

What is Markdown?

Markdown is a formatting syntax that allows you to write in plain text in any editing program, but still format your document like you would with a word processor. It was created to convert plain text into HTML for publishing on the web and happens to be super easy to write and just as easy to read even without being converted.

Markdown ensures that a writer's intended formatting never gets lost. If you've ever labored on a Word document only to have its formatting scrambled when you sent it to be published to your website or when a colleague opened it in another program, you'll appreciate the simplicity and stability of Markdown.

While you can edit Markdown files in any text editor, there are are some, like iA Writer for Macs, that are specially built to make this easy way of writing even easier.

How do I write in Markdown?

Markdown is extremely simple. In fact, it's mostly plain text, so writing a paragraph would be the same as with any text editor