Skip to content

Instantly share code, notes, and snippets.

View orahul1's full-sized avatar
:shipit:
Focusing

Rahul Raveendran orahul1

:shipit:
Focusing
View GitHub Profile
@orahul1
orahul1 / ultimate-ut-cheat-sheet.md
Created April 15, 2020 20:14 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@orahul1
orahul1 / angular-docs.md
Created April 3, 2020 20:24 — forked from kapunahelewong/angular-docs.md
Contributing to the Angular docs

Make sure you've read the Angular.io CONTRIBUTING.md before starting out.

Angular.io local setup

Follow these steps when you are setting up the repo locally for the first time and would like to view your changes in the browser as you edit.

  1. Fork angular/angular.

In terminal:

1. ng serve --host <local ip address>
2. Find local ip address by following
windows => cmd => ipconfig => IPv4 Address
mac and linux => terminal => ifconfig | grep inet => inet adderss
3. Navigate to <local ip adress>:4200 from any device on the same network.
@orahul1
orahul1 / header.interceptor.ts
Created December 18, 2019 05:05
Angular header interceptor
import { CookieService } from 'ngx-cookie-service';
import { Injectable } from '@angular/core';
import { HttpInterceptor, HttpHeaders, HttpHandler, HttpRequest, HttpEvent }
from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable()
export class HeaderInterceptor implements HttpInterceptor {
constructor( private cookieService: CookieService){
@orahul1
orahul1 / loader.interceptor.ts
Last active November 18, 2020 07:56
Angular loader interceptor
import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpInterceptor
} from '@angular/common/http';
import { finalize } from 'rxjs/operators';
import { SpinnerService } from "@accubits/spinner";
import { of } from 'rxjs';
@orahul1
orahul1 / media-query.css
Created September 25, 2019 16:41 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@orahul1
orahul1 / CountryCodes.json
Last active July 20, 2019 17:27 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@orahul1
orahul1 / index.html
Created October 13, 2018 08:57
YJxgZy
<body>
<div class="welcome_popup">
<div class="profile_pic">
<img src="https://pbs.twimg.com/profile_images/817369685192605696/iWkgUdBf_400x400.jpg">
</div>
<div class="text">
<p class="welcome"> Welcome <p>
<p class="user"> Doctor001844 </p>
</div
</div>
@orahul1
orahul1 / index.html
Last active October 13, 2018 08:53
wYqOge
<body>
<div class="welcome_popup">
<div class="profile_pic">
<img src="https://pbs.twimg.com/profile_images/817369685192605696/iWkgUdBf_400x400.jpg">
</div>
<div class="text">
<p class="welcome"> Welcome <p>
<p class="user"> Doctor001844 </p>
</div
</div>