Skip to content

Instantly share code, notes, and snippets.

View VaLeXaR's full-sized avatar

Valentyn Riaboshtan VaLeXaR

View GitHub Profile
@VaLeXaR
VaLeXaR / tpl.html
Last active February 19, 2020 18:31 — forked from alexzuza/with-loading.pipe.ts
With loading pipe long living stream #tags: Angular
<h2 class="title">Products</h2>
<div class="search-bar">
<input (input)="searchStream$.next($event.target.value)">
</div>
<div class="results">
<h3>Built-in solution</h3>
<div *ngIf="obs$ | async as obs">
<ng-template [ngIf]="obs.type === 'finish'">
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@soderlind
soderlind / add-lang-to-customizer-previewer.php
Last active July 5, 2017 07:42
Polylang: Set WordPress Customizer preview url
<?php
add_action( 'customize_controls_enqueue_scripts', 'add_lang_to_customizer_previewer' );
/**
* If Polylang activated, set the preview url
*
* @author soderlind
* @version 1.0.0
*/
function add_lang_to_customizer_previewer() {