Skip to content

Instantly share code, notes, and snippets.

View vivekanandpv's full-sized avatar
😇
Programming is understanding - Kristen Nygaard

Vivekanand Pujar vivekanandpv

😇
Programming is understanding - Kristen Nygaard
View GitHub Profile
@vivekanandpv
vivekanandpv / Abstraction
Last active July 22, 2022 11:44
CS-Notes
public abstract class Shape {
public abstract void draw();
public abstract void paint(String color);
}
public class Square extends Shape {
@Override
public void draw() {
System.out.println("Square is drawing...");
// Fibonacci series generator
function fibonacci(n) {
var a = 0;
var b = 1;
var c = 0;
for (var i = 0; i < n; ++i) {
console.log(a);
c = a + b;
a = b;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bootstrap Learning</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
@vivekanandpv
vivekanandpv / data.ts
Created June 8, 2020 10:27
Dummy data for todo app
export interface ToDoItem {
id: number;
title: string;
description: string;
status: string;
createdOn: Date | string;
statusChangedOn: Date | string;
}
export const todoList: ToDoItem[] = [
@vivekanandpv
vivekanandpv / data
Created April 8, 2020 08:39
Data for service
employees: EmployeeModel[] = [
{
id: 1,
name: 'Anya',
email: 'adavidov0@foxnews.com',
joiningDate: new Date('2019-12-16T23:37:46Z'),
city: 'Camp Thorel',
},
{
id: 2,
let a = 100;