Skip to content

Instantly share code, notes, and snippets.

Dinesh dinusuresh

Block or report user

Report or block dinusuresh

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 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 May 23, 2019
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 Jun 27, 2019
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

You can’t perform that action at this time.