Skip to content

Instantly share code, notes, and snippets.

View AbhiAgarwal192's full-sized avatar

Abhi Agarwal AbhiAgarwal192

View GitHub Profile
@AbhiAgarwal192
AbhiAgarwal192 / ClimbingStairs.cs
Created August 28, 2020 01:59
Ways to climb stairs.
public class Solution {
int[] dp;
public int Climb(int stepsLeft){
if(stepsLeft<0){
return 0;
}
if(stepsLeft==1){
return 1;
@AbhiAgarwal192
AbhiAgarwal192 / PlusOne.cs
Created August 30, 2020 14:02
Given a non-empty array of digits representing a non-negative integer, increment one to the integer.
public class Solution {
public int[] PlusOne(int[] digits) {
int len = digits.Length;
if(len == 0){
return digits;
}
int i=len-1;
root: Deployment
location_include: includes/*.conf
@AbhiAgarwal192
AbhiAgarwal192 / headers.conf
Created April 12, 2021 09:25
headers.conf
add_header 'Access-Control-Allow-Origin' '*';
@AbhiAgarwal192
AbhiAgarwal192 / hello-world.component.html
Last active April 17, 2021 09:06
hello-world component
<p>Hello World!</p>
import { Injector, NgModule } from '@angular/core';
import { createCustomElement } from '@angular/elements';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { HelloWorldComponent } from './hello-world/hello-world.component';
@NgModule({
declarations: [
AppComponent,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Container</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
import { Component } from "react"
import './Table.css';
class TableComponent extends Component{
render(){
return(
<div>
<table>
<tr>
<th>Company</th>
module.exports = {
webpack: (config, env) => {
config.optimization.runtimeChunk = false;
config.optimization.splitChunks = {
cacheGroups: {
default: false,
},
};
config.output.filename = "static/js/[name].js";