Skip to content

Instantly share code, notes, and snippets.

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

Mohan Upadhyay mhnpd

👨‍💻
Working
View GitHub Profile
const fs = require('fs')
const { execSync } = require('child_process')
const readline = require('readline')
const path = require('path')
// Define constants
const NODE_VERSION = '22'
const DOCKER_IMAGE_TAG = '22'
const GITHUB_ACTIONS_DIR = './.github/workflows/'
const DOCKERFILE_DIR = './'
@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]