Skip to content

Instantly share code, notes, and snippets.

@vbelcik
vbelcik / dropdown.directive.ts
Created May 15, 2017 07:36
Angular4 dropdown directive for bootstrap - enhanced
import { Directive, HostListener, HostBinding, OnDestroy } from '@angular/core';
@Directive({
selector: '[appDropdown]'
})
export class DropdownDirective implements OnDestroy {
private timer = null;
private isMouseInside: boolean = false;
@HostBinding('class.open') isOpen: boolean = false;
@vbelcik
vbelcik / dropdown.directive.ts
Last active May 13, 2017 10:49
Angular4 dropdown directive for bootstrap
import { Directive, HostListener, HostBinding, OnDestroy } from '@angular/core';
@Directive({
selector: '[appDropdown]'
})
export class DropdownDirective implements OnDestroy {
private timer = null;
@HostBinding('class.open') isOpen: boolean = false;
@HostListener('click') toggleOpen() {
@vbelcik
vbelcik / ExtractExeNetStrings readme.txt
Created May 8, 2016 18:05
ExtractExeNetStrings2 - simple utility (or snippet) that extracts all user strings from a .NET assembly (.exe or .dll)
This program extracts all user strings stored in a .dll or an .exe .NET Framework binary file.
The project was originaly compiled and tested with .NET Framework 4.0 and Microsoft Visual C# 2010 Express.
usage: ExtractExeNetStrings.exe <ExeOrDllFilePath>
For a documentation look at "Chapter 24 - Metadata physical layout" in the "MS Partition II.pdf" document.