Skip to content

Instantly share code, notes, and snippets.

Dhananjay Kumar debugmodedotnet

Block or report user

Report or block debugmodedotnet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View unityresolver.cs
public class UnityResolver : IDependencyResolver
protected IUnityContainer container;
public UnityResolver(IUnityContainer container)
if (container == null)
throw new ArgumentNullException("container");
View c1.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Description;
View cdchild.js
import { Component, OnInit, Input, ChangeDetectionStrategy, OnChanges, ChangeDetectorRef } from '@angular/core';
import { Observable } from 'rxjs';
import { TouchSequence } from 'selenium-webdriver';
selector: 'app-child',
template: `
<h2>Items : {{_data.counter}} </h2>
<button (click)='0'>Refresh</button>
View tshirt2.ts
import { EventEmitter, Component, OnInit, Input, OnChanges, ChangeDetectionStrategy, SimpleChange, Output } from '@angular/core';
selector: 'app-child',
styleUrls: ['./app-child.component.css']
View tshirt1.ts
import { Component, OnInit } from '@angular/core';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
export class AppComponent implements OnInit {
View demo2.html
<div class="card text-center">
<img class="img-fluid" [src]="tshirt.fimage"/>
<div class="card-header">
<button (click)='cancel()' type="button" class="close" aria-label="Close">
<span aria-hidden="true">&times;</span>
<div class="card-body">
View demo1.html
<div class="container">
<div class="page-header">
<h1 class="text-danger text-center">Foo T-Shirt Company</h1>
<hr />
<br />
<div class="row">
View p.js
getProducts() {
return [
"productId": 1,
"productName": "Leaf Rake",
"productCode": "GDN-0011",
"releaseDate": "March 19, 2019",
"description": "Leaf rake with 48-inch wooden handle.",
"price": 19.95,
"starRating": 3.2,
View cdjs9.js
changeName = function () { = 'set by code ';
View cdjs7.js
var elements = document.querySelectorAll('[data-geek97-bind]');
var dbrepo = {};
elements.forEach((element) => {
if (element.type === 'text') {
var bindingProperty = element.getAttribute('data-geek97-bind');
element.onkeyup = () => {
dbrepo[bindingProperty] = element.value;
You can’t perform that action at this time.