Skip to content

Instantly share code, notes, and snippets.

View fshchudlo's full-sized avatar

Fedor Shchudlo fshchudlo

View GitHub Profile
# https://blog.mafr.de/2010/09/01/switching-displays/
xrandr --output DP-2 --primary --auto --output eDP-1 --auto --left-of DP-2
xrandr --output DP-2 --auto --output eDP-1 --off
git branch --merged | grep -v "\*" | grep -Ev "(\*|master|develop|development|qa)" | xargs -n 1 git branch -d | git remote prune origin
@fshchudlo
fshchudlo / grid.component.full.html
Created April 25, 2017 11:08
Example of full featured grid for medium post about right-angled library
<form>
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="form-group">
<label>Airport name</label>
<input type="text" class="form-control" [(ngModel)]="airportName" name="airportName" />
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="form-group">
@fshchudlo
fshchudlo / grid.component.simple.html
Created April 25, 2017 11:07
Example of simple grid for medium post about right-angled library
<table class="table table-striped" [rtList]="getData" #list="rtList">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Price in USD</th>
<th>Is Discounted</th>
</tr>
</thead>
<tbody>
@fshchudlo
fshchudlo / grid.component.complex.html
Created April 25, 2017 11:03
Example of complex grid for medium post about right-angled library
<grid-component [dataSource]="data">
<grid-column-component fieldName="Id" title="Id">
</grid-column-component>
<grid-column-component fieldName="Name" title="Name">
</grid-column-component>
<grid-column-component field="Price" title="Price" width="230">
</grid-column-component>
<grid-column-component field="IsDiscounted" title="Is Discounted" width="120">
<row-template let-dataItem>
<input type="checkbox" [checked]="dataItem.IsDiscounted" />