Skip to content

Instantly share code, notes, and snippets.


Dinesh dinusuresh

View GitHub Profile
View pwc training
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2).
// Please visit for additional examples on implementing slots, dialog management,
// session persistence, api calls, and more.
const Alexa = require('ask-sdk-core');
const data = [
'A year on Mercury is just 88 days long.',
'Despite being farther from the Sun, Venus experiences higher temperatures than Mercury.',
'On Mars, the Sun appears about half the size as it does on Earth.',
'Jupiter has the shortest day of all the planets.',
'The Sun is an almost perfect sphere.',
View inputNumberValidator.ts
import { Directive, HostListener, ElementRef, OnInit } from '@angular/core';
@Directive({ selector: '[InputValidator]' })
export class InputValidatorDirective implements OnInit {
el: any;
constructor(private elementRef: ElementRef) {
this.el = this.elementRef.nativeElement;
anonymous / config.json
Created Apr 18, 2017
Bootstrap Customizer Config
View config.json
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#363b59, 6.5%)",
"@brand-success": "#f58020",
dancancro / alt-filestructure
Last active May 3, 2019
An ngrx project file structure with fewer unique file names. All unique words are in directory names.
View alt-filestructure
├── app
│   ├── module.ts
│   ├── page.css
│   ├── page.html
│   ├── page.spec.ts
│   ├── page.ts
│   ├── routing.ts
│   ├── core
│   │   ├── about
ChrisTimperley /
Last active Apr 27, 2020
Installs Docker on Elementary OS 0.4 (Loki)
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo rm -f /etc/apt/sources.list.d/docker.list
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -u -cs) \
sudo apt-get update
sudo apt-get purge lxc-docker
JamesMGreene /
Last active Jan 22, 2021
A comparison of using `git flow` commands versus raw `git` commands.


gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository