Skip to content

Instantly share code, notes, and snippets.

View kdshop's full-sized avatar
👽

Konrad Albrecht kdshop

👽
View GitHub Profile
<div class="container">
<div class="loader"></div>
</div>
.container {
width: 350px;
height: 350px;
border-radius: 100%;
margin: 60px;
background: linear-gradient(165deg, rgba(255,255,255,1) 0%, rgb(220, 220, 220) 40%, rgb(170, 170, 170) 98%, rgb(10, 10, 10) 100%);
/**
* Required changes to @types/pdfjs-dist/index.d.ts
* Add at the start `/// <reference path="web/pdf_viewer.d.ts" />`
*/
import { PDFDocumentProxy, PDFPageProxy, PDFPageViewport, PDFRef, TextContent } from 'pdfjs-dist';
export const enum ZoomScale {
AUTO = 'auto',
PAGEHEIGHT = 'page-height',
cat > plik1 - utworzenie pliku
cat >> plik1 - dołączenie zawartości
cp -r test1/* test2 - całej zawartości
mv test1/* test2
chmod a+x skrypt.sh - prawa wykowyania sla wszystkich uzytkownikow
groupadd gr1 - utworzenie nowej grupy
groupmod –n gr_nowa gr_poprz - zmiana nazwy grupy
useradd –m –g gr1 user1 - utworzenie nowego użytk.
passwd user1 - przypisanie/zmiana hasła
@kdshop
kdshop / fromState.ts
Last active November 20, 2019 19:28
generic typesafe state projector - proxy usecase
// Instead of selector helpers like `export const getHasError = (state: AppUIState) => state.hasError;`
// use this. The typing is compatible with ngrx and gives you type hinting also (just dont forget to provide generic!)
const fromState = <T = {[key: string]: any}>() => {
return (new Proxy({}, {
get: (target: {}, p: string | number | symbol) => (state) => state[p]
})) as {[key in keyof T]: (state: T) => T[key]};
};