Skip to content

Instantly share code, notes, and snippets.

View kesarion's full-sized avatar

Alexandru Sfirlogea kesarion

View GitHub Profile
@kesarion
kesarion / any.component.html
Created December 18, 2017 10:04 — forked from arniebradfo/any.component.html
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>
@kesarion
kesarion / faFileType.js
Created March 1, 2017 09:48
Common file extensions mapped out to FontAwesome file classes
function faFileType (name) {
var extensions = {
"txt" : "fa-file-text-o",
"ai" : "fa-file-code-o",
"bat" : "fa-file-code-o",
"bin" : "fa-file-code-o",
"css" : "fa-file-code-o",
"dll" : "fa-file-code-o",
"exe" : "fa-file-code-o",
@kesarion
kesarion / subtitle-extract.txt
Created February 25, 2017 13:19 — forked from bmaeser/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you: