Skip to content

Instantly share code, notes, and snippets.

View knvpk's full-sized avatar

Pavan kumar knvpk

View GitHub Profile
@knvpk
knvpk / Handler.php
Created August 2, 2015 04:24
All type of Exceptions that can be handled in laravel 5.1 Exception handler
<?php namespace App\Exceptions;
use Exception;
use Illuminate\Contracts\Validation\ValidationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
@knvpk
knvpk / controllers.js
Created October 15, 2015 17:18 — forked from jakemmarsh/controllers.js
AngularJS Service with Controller for access to Google API with Javascript Client (and RequireJS)
define(['angular', 'services'], function (angular) {
'use strict';
return angular.module('myApp.controllers', ['myApp.services'])
.controller('IndexCtrl', ['$scope', 'googleService', function ($scope, googleService) {
$scope.login = function () {
googleService.login().then(function (data) {
// do something with returned data
console.log(data.email);
@knvpk
knvpk / index.md
Created October 9, 2017 05:49
RinkebyMainAccount

0x4a190770B6a6216DDA2e3B995ABcd07435923dc1

0xe3769850FB30711508dB03DcbB00Ea9F07741d5f
@knvpk
knvpk / AppComponent.ts
Last active October 4, 2018 09:05
Generating the Nested Angular Route path with out the Bindings For Analytics Page view event.
import {Router, NavigationStart, NavigationEnd, NavigationCancel, ActivatedRoute, ActivatedRouteSnapshot} from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = environment.appName;
constructor(private _router: Router,