This is a default import:

// B.js
import A from './A'

It only works if A has the default export:

// A.js
export default 42

In this case it doesn’t matter what name you assign to it when importing:

// B.js
import A from './A'
import MyA from './A'
import Something from './A'

Because it will always resolve to whatever is the default export of A.

This is a named import called A:

import { A } from './A'

It only works if A contains a named export called A:

export const A = 42

In this case the name…

Deep Learning GPU Powered Machine Setup with Ubuntu

In this article, I try to provide simple instructions. But the challenge is every computer has different hardware and software configurations and people want things differently. There are no universal instructions. Google your problems extensively when needed. It is un-avoidable.

I will provide a brief introduction about my system at work. System specifications are as follows:

RAM — 16 GB
Processor — Intel® Core™ i5–7400 CPU @ 3.00GHz × 4
Graphics — GeForce GTX 1060 6GB/PCIe/SSE2
OS type — 64-bit
DISK space — 256 GB

My daily routine work involves lot much of training and testing of various AI models…

JWT authentication is becoming very popular these days. JWT is a type of token-based authentication. For every single request from a client to the server, a token is passed for authentication. It supports the stateless API calls.


We can summarise above picture into following points

- A client sends username/password combination to the server

- The server validates the authentication

- If authentication is successful, the server creates a JWT token else establishes an error response

- On successful authentication, the client gets JWT token in the response body

- Client stores that token in local storage or session storage.

The Performance interface provides access to performance-related information for the current page.

Returns a DOMHighResTimeStamp;
//The time, given in milliseconds, should be accurate to 5 μs (microseconds), with the fractional part of the number indicating fractions of a millisecond.


Creates a timestamp in the browser’s performance entry buffer with the given name.

Syntax: performance.mark(name);


Creates a named timestamp in the browser’s performance entry buffer between two specified marks (known as the start mark and end mark, respectively).

Syntax: performance.measure(name, startMark, endMark);


Removes the given mark from the browser’s performance entry buffer.


Removes the given measure…

  1. .3gp (video/3gpp, audio/3gpp)
  2. .3g2 (video/3gpp2, audio/3gpp2)
  3. .7z (application/x-7z-compressed)
  4. .aac (audio/aac)
  5. .abw (application/x-abiword)
  6. .arc (application/x-freearc)
  7. .avi (video/x-msvideo)
  8. .azw (application/
  9. .bin (application/octet-stream)
  10. .bmp (image/bmp)
  11. .bz (application/x-bzip)
  12. .bz2 (application/x-bzip2)
  13. .csh (application/x-csh)
  14. .css (text/css)
  15. .csv (text/csv)
  16. .doc (application/msword)
  17. .docx (application/vnd.openxmlformats officedocument.wordprocessingml.document)
  18. .eot (application/
  19. .epub (application/epub+zip)
  20. .gif (image/gif)
  21. .htm/.html (text/html)
  22. .ico (image/
  23. .ics (text/calendar)
  24. .jar (application/java-archive)
  25. .jpg/.jpeg (image/jpeg)
  26. .js (text/javascript)
  27. .json (application/json)
  28. .mid/.midi (audio/midi, audio/x-midi)
  29. .mjs (text/javascript)
  30. .mp3 (audio/mpeg)
  31. .mpeg (video/mpeg)
  32. .mpkg (application/
  33. .odp (application/vnd.oasis.opendocument.presentation)
  34. .ods (application/vnd.oasis.opendocument.spreadsheet)
  35. .odt (application/vnd.oasis.opendocument.text)
  36. .oga (audio/ogg)
  37. .ogv (video/ogg)
  38. .ogx (application/ogg)
  39. .otf (font/otf)
  40. .png (image/png)
  41. .pdf (application/pdf)
  42. .ppt (application/
  43. .pptx (application/vnd.openxmlformats-officedocument.presentationml.presentation)
  44. .rar (application/x-rar-compressed)
  45. .rtf (application/rtf)
  46. .sh (application/x-sh)
  47. .svg (image/svg+xml)
  48. .swf (application/x-shockwave-flash)
  49. .tar (application/x-tar)
  50. .tif/.tiff (image/tiff)
  51. .ttf (font/ttf)
  52. .txt (text/plain)
  53. .vsd (application/vnd.visio)
  54. .wav (audio/wav)
  55. .weba (audio/webm)
  56. .webm (video/webm)
  57. .webp (image/webm)
  58. .woff (font/woff)
  59. .woff2 (font/woff2)
  60. .xhtml (application/xhtml+xml)
  61. .xls (application/
  62. .xlsx (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
  63. .xml (application/xml, text/xml)
  64. .xul (application/vnd.mozilla.xul+xml)
  65. .zip (application/zip)

Technical : Field of study that gives computers the ability to learn without being explicitly programmed.

Functional : A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E

Layman : Machine learning allows computers to learn and infer from data.

Machine learning algorithms:

  1. Supervised learning
  2. Unsupervised learning
  3. Reinforcement learning

Supervised learning

Supervised learning is a learning in which we teach or train the machine using data which is well labeled that means some data is already tagged with correct answer.


Overview: 10 Days of JavaScript

This series focuses on learning and practicing JavaScript. Each challenge comes with a tutorial article, and you can view these articles by clicking either the Topics tab along the top or the article icon in the right-hand menu.

Day 0: Hello, World!

A greeting function is provided for you in the editor below. It has one parameter, . Perform the following tasks to complete this challenge:

  1. Use console.log() to print Hello, World! on a new line in the console, which is also known as stdout or standard output. The code for this portion of the task is already provided in the editor.
  2. Use console.log()

Scope From Functions

The most common answer to those questions is that JavaScript has function-based scope. That is, each function you declare creates a bubble for itself, but no other structures create their own scope bubbles. As we’ll see in just a little bit, this is not quite true.

But first, let’s explore function scope and its implications.

Consider this code:

function foo(a) {
var b = 2;
// some code function bar() {
// ...
// more code var c = 3;

In this snippet, the scope bubble for foo(..) includes identifiers a, b, c and bar. It doesn't matter…


  1. Functionality Unchanged
  2. Performance improvement
  3. Maintainability better
  4. Understandability
  5. Code deletion & Unused Code

Template literals

const firstName = ‘everyone’;

console.log(`Welcome ${firstName} to ES6 & ES& Refactor!`)


var classes = ‘header’
classes += (isLargeScreen() ? ‘’ : item.isCollapsed ?
‘ icon-expander’ : ‘ icon-collapser’);


const classes = `header ${ isLargeScreen() ? ‘’ : (item.isCollapsed ? ‘icon-expander’ : ‘icon-collapser’) }`;

Objects sugar syntax


const x = 50

const y = 60

const obj = { x:x, z:y}


const x = 50

const y = 60

const obj = { x, z:y}


  1. Default parameters
  2. Rest
  3. Spread
  4. Array and Objects

Default Parameters

const [a=4,b=5] = [50];

// values

a = 50


Prasanna Brabourame

AI Engineer | Blockchain | Technology Evangelist | Open Source Enthusiast | Researcher | Full Stack Developer | Learner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store