Skip to content

Instantly share code, notes, and snippets.

View tsabunkar's full-sized avatar
💻
Clean Code is Chimera

Sabunkar Tejas Shailesh tsabunkar

💻
Clean Code is Chimera
View GitHub Profile
@tsabunkar
tsabunkar / chat_nodejs_style.css
Last active June 10, 2018 14:37
StyleSheet for chat application(which is written in nodejs)
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
font-size: .95rem;
}
ul, li {
@tsabunkar
tsabunkar / googleapi_sigin_webapplication.html
Created June 15, 2018 11:38
GoogleAPI Sigin - Its only for webapplication (frontend) which has been generated using OAuth client ID.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="google-signin-client_id" content="306552833988-0pnfe2jga10fb1orkpa8gu08pm3bl14p.apps.googleusercontent.com">
<title>Home Page</title>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
@tsabunkar
tsabunkar / Angular-cli.md
Created June 19, 2018 13:10 — forked from cortesben/Angular-cli.md
Bash commands and Angular CLI commands

#Angular-cli oh shit!

https://cli.angular.io/reference.pdf

Commands Description
ng help returns all commands with flags they can take as a param
ng new [project-name] create a brand new angular project with live server BANG!
ng init grabs name from folder that already exist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SO Tags</title>
</head>

OpenAPI Specification

Version 3.0.2

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 RFC2119 RFC8174 when, and only when, they appear in all capitals, as shown here.

This document is licensed under The Apache License, Version 2.0.

Introduction

int[] Array = {30, 20, 10, 40, 60, 50};
for(int k = 0; k < Array.length; k++) {
int holder = Array[k];
int j = k;
while(j > 0 && holder < Array[j - 1]) {
Array[j] = Array[j-1];
j = j - 1;
Array[j] = holder;
}
}
FUN WITH JAVASCRIPT :)
===========PROBLEM-1======================
var foo = function foo() {
console.log(foo === foo);
};
foo();
Ans -
True <-
False
@tsabunkar
tsabunkar / auth.guard.ts
Last active May 19, 2019 18:43
Angular Fire : Authenticate Guard Service
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 {
@tsabunkar
tsabunkar / tslint.json
Created June 4, 2019 10:09
TSLint Rules for Angular
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
@tsabunkar
tsabunkar / pre-push.sh
Created March 25, 2020 13:09 — forked from vlucas/pre-push.sh
Prevent Pushes Directly to Master
#!/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...