curl -o- https://gist.githubusercontent.com/Hakier/7c7a11c33d62a4502409382e8eaa8051/raw/install-google-chrome.sh | bash
wget -qO- https://gist.githubusercontent.com/Hakier/7c7a11c33d62a4502409382e8eaa8051/raw/install-google-chrome.sh | bash
#!/usr/bin/env bash | |
#setup | |
mkdir -p playground/{source,target} && cd playground | |
mkdir -p source/{a,b,c}/{d,e,f}/{g,h,i} | |
touch source/{.,a,b/{e,f},c/d/{g,h,i}}/{1,2,3,4,5} | |
#first sync | |
cd source && rsync -aR 3 a/ b/f/ c/d ../target/ --delete && cd - | |
find -type f |
class ExchangeOfficeApp { | |
static refreshSession() { | |
[...document.querySelectorAll('.button')] | |
.filter(el => el.innerText === 'Odśwież sesję') | |
.forEach(el => el.click()); | |
} | |
static preventLogoutLoop() { | |
ExchangeOfficeApp.refreshSession(); | |
setTimeout(ExchangeOfficeApp.preventLogoutLoop, 15_000); |
curl -o- https://gist.githubusercontent.com/Hakier/7c7a11c33d62a4502409382e8eaa8051/raw/install-google-chrome.sh | bash
wget -qO- https://gist.githubusercontent.com/Hakier/7c7a11c33d62a4502409382e8eaa8051/raw/install-google-chrome.sh | bash
import { Component, Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core'; | |
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { By } from '@angular/platform-browser'; | |
const showReflection: any = {}; | |
@Directive({ selector: '[appShow]' }) | |
export class UnlessDirective { | |
constructor( | |
private templateRef: TemplateRef<any>, |