Mailhog Requires Go 1.4+ to run so we will install GO language in system.
1. Postman Download Link
Extract .tar.gz Files using Linux Command Line ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user->assignRole('admin'); | |
$user->getAllPermissions(); | |
// Adding permissions to a user | |
$user->givePermissionTo('edit articles'); | |
// Adding permissions via a role |
1. PhpStorm Download Link
Extract .tar.gz Files using Linux Command Line ...
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:vue/vue3-recommended', | |
'prettier' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Type check | |
* */ | |
const Assertion = { | |
isFunction(x) { | |
return Object.prototype.toString.call(x) === '[object Function]' | |
}, | |
isString(x) { | |
return Object.prototype.toString.call(x) === '[object String]' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////// | |
////--------CoreJS | |
// alert('hello JS') | |
// confirm('Are you Ready ?') // true/false | |
// prompt('what is your best strenth ?') // input | |
// document.write('DOC EDITED BY JS') | |
///////////////// | |
////-------- SomeDefinations | |
// Loops – Most programming languages allow to work with loops, which help in executing one or more statements up to a desired number of times. Find the "for" and "while" loop syntax in this section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const winston = require('winston'); | |
const { format } = require('winston'); | |
const appRoot = require('app-root-path'); | |
const config = require('./config'); | |
const printf = (info) => { | |
if (typeof info.message === 'object') { | |
// eslint-disable-next-line no-param-reassign | |
info.message = JSON.stringify(info.message, null, 3); | |
} |
NewerOlder