- $ docker pull sonarqube:7.9.4-community
- $ docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:7.9.4-community
- Log in to http://localhost:9000
- login=admin
- password=admin
- create new project
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
## BL's version for ES6 or ES2015 | |
syntax "JavaScript" "\.js$" | |
color brightgreen "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" | |
color brightgreen "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" | |
color brightgreen "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" | |
color brightgreen "\<(null|undefined|NaN|Infinity)\>" | |
color brightgreen "\<(true|false)\>" | |
color cyan "\<(break|case|catch|class|const|continue|debugger|default|delete|do|)\>" | |
color cyan "\<(else|export|extends|finally|for|function|if|import|in|instanceof|new|return)\>" |
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
# Step to Deploy Typescript Project in npm registry | |
- add .npmignore file | |
- $ tsc (on root project, Also npm i -g typescript) | |
- $ npm login | |
- $ npm publish (If error as code E404 Not Found - /$ npm config set registry http://registry.npmjs.org) | |
- Now everytime you want to publish your libraries new changes to NPM registry | |
- In package.json, should update the "ersion" | |
- $ tsc (Always transpile src/**/*.ts file in js, as ony dist folder would be published in NPM Repo) |
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
- pip3 install grip | |
- grip <file_name.md> <port> | |
- example : $ grip readme.md 8080 | |
- Ref: Using https://github.com/joeyespo/grip |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
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
sudo apt-get install preload |
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
#!/bin/bash | |
# @link https://gist.github.com/mattscilipoti/8424018 | |
# | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... |
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
Show hidden characters
{ | |
"extends": "tslint:recommended", | |
"rulesDirectory": [ | |
"codelyzer" | |
], | |
"rules": { | |
"array-type": false, | |
"arrow-parens": false, | |
"deprecation": { | |
"severity": "warn" |
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
import { Injectable } from '@angular/core'; | |
import { AngularFireDatabaseModule, AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; | |
import { AngularFireAuth } from 'angularfire2/auth'; | |
import { Router } from "@angular/router"; | |
import * as firebase from 'firebase'; | |
@Injectable() | |
export class AuthService { |
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
FUN WITH JAVASCRIPT :) | |
===========PROBLEM-1====================== | |
var foo = function foo() { | |
console.log(foo === foo); | |
}; | |
foo(); | |
Ans - | |
True <- | |
False |
NewerOlder