Run below commands:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
sudo locale-gen "en_US.UTF-8"
Restart your computer
const LinkedList = function() { | |
this.head = null; | |
this.tail = null; | |
}; | |
LinkedList.prototype.addToTail = function(value) { | |
const newTail = { value, next: null }; | |
if (this.tail) { | |
this.tail.next = newTail; |
Run below commands:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
sudo locale-gen "en_US.UTF-8"
Restart your computer
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
Download a zip of the 64-bit Windows binary https://nodejs.org/dist/v14.16.0/node-v14.16.0-win-x64.zip
Extract to your user folder such as: C:\Users\Amit
Now create a file with name: nodev14.cmd
with below content
ECHO OFF
set PATH=%PATH%;C:\Users\Amit\node\v14\
ECHO ON
/* Works on Chrome, Edge, and Safari */
::-webkit-scrollbar {
height: 16px !important;
overflow: visible !important;
width: 5px !important;
}
::-webkit-scrollbar-thumb {
background-image: linear-gradient(315deg, #2d3436 0%, #2d3436 74%);
/* the trick is to build unique build ID on every build and add it to static files on build time.
* This way the name and URL of static files will change on every build.
*/
/* eslint-disable @typescript-eslint/no-var-requires */
// company.ts | |
import { arg, extendType, inputObjectType, intArg, list, nonNull, objectType, stringArg } from "nexus"; | |
export const CompanyInputType = inputObjectType({ | |
name: 'CompanyInputType', | |
definition(t) { | |
t.string('name') | |
t.string('contactPerson') | |
t.string('bio') |