Skip to content

Instantly share code, notes, and snippets.

View jerkovicl's full-sized avatar

Luka Jerković jerkovicl

View GitHub Profile

Cmder config

Create a file named initInExternalTerminal.bat on cmder's root, containing the following:

@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder, 
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"
@jerkovicl
jerkovicl / .hyper.js
Created May 20, 2019 11:11 — forked from robertcoopercode/.hyper.js
Hyper Configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@jerkovicl
jerkovicl / ng-interfaces-classes-example.md
Last active April 23, 2019 11:04
how to use interfaces and classes in Angular
  • if you need some methods in your interfaces for some custom logic
interface IPerson {
    firstName: string;
    lastName: string;
    age: number;
    getFullName(): string;
}
class Person implements IPerson {
@jerkovicl
jerkovicl / map_example.md
Last active February 8, 2019 19:59
transpose a javascript object into a key/value array
var obj =  {
        species: 'Lemon Candy',
        occupation: 'Earl, Heir to the Candy Kingdom Throne',
        type: 'select',
        key: 'name',
        options:[]
      }

var output = Object.entries(obj).map(([filterKey, filterValue]) => ({filterKey,filterValue}));
@jerkovicl
jerkovicl / startup-tasks.txt
Created November 7, 2018 08:47 — forked from TomKearney/startup-tasks.txt
CMDER initialise with four windows
* -cur_console:d:c:\dev\projects\plutus -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50H -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s1T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"
>* -cur_console:s2T50V -cur_console:d:C:\apps\cmder -cur_console:C:C:\apps\cmder\icons\cmder.ico cmd /k "%ConEmuDir%\..\init.bat"

Pipeable operators

import {filter, map} from 'rxjs/operators';
const interval$ = interval(1000);
const new$ = interval$
    .pipe(
        filter(v => v % 2 === 0),
        map(v => v *2)
import {
Component,
Directive,
Renderer2,
ElementRef,
NgModule,
Input,
Output,
EventEmitter,
AfterContentInit,