Skip to content

Instantly share code, notes, and snippets.

nuxt:build Building... +0ms
[AXIOS] Base URL: https://now-staging.hl.com/ , Browser: https://now-staging.hl.com/
nuxt:build App root: /Users/aslam/Work/hl-student-web +0ms
nuxt:build Generating /Users/aslam/Work/hl-student-web/.nuxt files... +0ms
nuxt:build Generating files... +5ms
nuxt:build Generating routes... +17ms
nuxt:build Building files... +26ms
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module.rules[2].use should be one of these:
non-empty string | function | object { loader?, options?, query? } | function | [non-empty string | function | object { loader?, options?, query? }]
{
"name": "hl-student-web",
"version": "1.0.0",
"description": "Web Client",
"author": "Syed Aslam",
"engines": {
"node": "6.11.0",
"npm": ">=3.10.10",
"yarn": ">=0.27.5"
},
module.exports = {
/*
** Router config
*/
router: {
middleware: ['namespace', 'check-auth']
},
/*
** Headers of the page
*/
@aslam
aslam / ceasar_cipher.rb
Created November 16, 2018 11:07
A simple implementation of Caesar's Cipher.
puts "Welcome!"
puts "Please enter the phrase you wish to encrypt: "
phrase = gets.chomp
puts "Enter factor: "
factor = gets.chomp.to_i
ALPHABETS = {
'lower' => [nil, ('a'..'z').to_a].flatten,
'upper' => [nil, ('A'..'Z').to_a].flatten
}
# Implement a method #substrings that takes a word as the first argument and then
# an array of valid substrings (your dictionary) as the second argument.
# It should return a hash listing each substring (case insensitive) that was found
# in the original string and how many times it was found.
```
> substrings("Howdy partner, sit down! How's it going?", dictionary)
=> { "down" => 1, "how" => 2, "howdy" => 1,"go" => 1, "going" => 1, "it" => 2, "i" => 3, "own" => 1,"part" => 1,"partner" => 1,"sit" => 1 }
```
dictionary = ["below","down","go","going","horn","how","howdy","it","i","low","own","part","partner","sit"]
@aslam
aslam / .vimrc
Created November 2, 2021 18:08 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory, ...
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com