This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified "vanilla" example. It uses the `isUUID()` function from the `class-validator` package. | |
import { isUUID } from 'class-validator'; | |
import { GraphQLScalarType, StringValueNode } from 'graphql'; | |
function validate(uuid: unknown): string | never { | |
if (!isUUID(uuid)) { | |
throw new Error('The given value is not a UUID string.'); | |
} | |
return uuid as string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "Tag Name: " | |
read -e TAG | |
git tag $TAG | |
git push origin --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll("img").forEach(e=>{"presentation"===e.getAttribute("role")&&(console.log(e.src),window.open(e.src))}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generujJSON(nazwaIDlisty) { | |
var listaArr = []; | |
var listaOsoby = ['','']; | |
var lista = document.getElementById(nazwaIDlisty).children[0].children; | |
for (var i = 0; i < lista.length; i++) { | |
var osoba = lista[i].innerText.split(",")[0]; | |
listaOsoby = ['m', osoba]; | |
listaArr.push(listaOsoby); | |
} | |
var jsonWykladowcy = JSON.stringify(listaArr); |