Skip to content

Instantly share code, notes, and snippets.

@sravan464
sravan464 / side-nav-bar-style.css
Last active September 27, 2019 23:24
side-nav-bar style
@import 'https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700';
body {
font-family: 'Poppins', sans-serif;
background: #fafafa;
}
p {
font-family: 'Poppins', sans-serif;
font-size: 1.1em;
font-weight: 300;
line-height: 1.7em;
@sravan464
sravan464 / side-nav-bar.html
Created September 27, 2019 23:15
side-nav-bar
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
@sravan464
sravan464 / nestjs-nodemon-setup.txt
Last active March 19, 2024 19:36
Nestjs setup on windows with nodemon
note: if you use versions below nestjs/cli@5.8.0 => then you will get nodemon setup by default
nodemon.json
----------
{
"watch": ["src"],
"ext": "ts",
"ignore": ["src/**/*.spec.ts"],
.main {
display: -ms-grid;
display: grid;
-ms-grid-columns: 100%;
grid-template-columns: 100%;
-ms-grid-rows: 170px 600px auto;
grid-template-rows: 170px 600px auto;
grid-template-areas: "header header header header"
"content content content content"
"rest rest rest rest";
@sravan464
sravan464 / tv.component.ts
Last active June 27, 2017 16:23
tv.component.ts -> added hot key functionality
import { Component } from '@angular/core';
@Component({
selector: 'Tv2',
styleUrls: ['tv.css'],
host : {
'(window : keydown)': 'hotkeys($event)'
},
template: `
@sravan464
sravan464 / useful-links.txt
Created June 23, 2017 17:16
useful links
<button type="button" class="btn btn-primary" (click)="staticModal.show()">Static modal</button>
<div class="modal fade" bsModal #staticModal="bs-modal" [config]="{backdrop: 'static'}"
tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title pull-left">Static modal</h4>
<button type="button" class="close pull-right" aria-label="Close" (click)="staticModal.hide()">
<span aria-hidden="true">&times;</span>
@sravan464
sravan464 / app.component.ts
Created June 21, 2017 16:58
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
styles: [`
`],
template: `
<div><nav class="navbar navbar-default">
<div class="container-fluid">
@sravan464
sravan464 / app.pagenotfound.ts
Created June 21, 2017 16:56
app.pagenotfound.ts
import { Component } from '@angular/core';
@Component({
selector: 'page-not-found',
styles: [`
`],
template: `
<div class="jumbotron">
<h1 style="color: red;">404</h1>
@sravan464
sravan464 / app.module.ts
Created June 21, 2017 16:55
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AppComponent1 } from './app.component1';
import { AppComponent2 } from './app.component2';
import { AppComponent5 } from './app.component5';
import { PageNotFound } from './app.pagenotfound';
import { RouterModule } from '@angular/router';