Skip to content

Instantly share code, notes, and snippets.

View vojtechjurasek's full-sized avatar

Vojtěch Jurásek vojtechjurasek

View GitHub Profile
@vojtechjurasek
vojtechjurasek / pripad.js
Last active July 31, 2023 14:47
Import Pripadu s UDF do Evolio
{
SysSourceId: '1',
SysRowState: 'INSERT',
Produkt: 'OP',
PripadDruh: 'UVER',
Mena: 'CZK',
AKVEC: 'Úvěr: Testovací karta klienta 2',
Stav: 'AKTIVNI',
Subjekty: [
{
import axios from 'axios'
import XmlParser from 'xml-parser'
const url = 'http://wwwinfo.mfcr.cz/cgi-bin/ares/darv_std.cgi'
const getUrl = (options: any) => {
options = Object.keys(options)
.map((key) => key + '=' + options[key])
.join('&')
return url + '?' + options
@vojtechjurasek
vojtechjurasek / site-border.svg
Created September 27, 2022 11:09
Site border SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
@vojtechjurasek
vojtechjurasek / gatsby-config.js
Created April 14, 2020 14:11
gatsby-config.js for Woocommerce and WordPress integration
require('dotenv').config()
module.exports = {
// ...
{
resolve: '@pasdo501/gatsby-source-woocommerce',
options: {
api: 'your-site.com',
https: true,
verbose: true,
@vojtechjurasek
vojtechjurasek / pip.min.js
Created March 8, 2019 19:58
Minified code of Picture-in-Picture in Google Chrome bookmark. Create bookmark with following code. Don't forget "javascript:" at the beginning.
javascript:if("pictureInPictureEnabled"in document&&"querySelectorAll"in document){(async function(){const a=document.querySelectorAll("video");if(0===a.length)window.alert("Sorry, no videos on the page.");else if(0<a.length){const b=a[0];try{b===document.pictureInPictureElement?await document.exitPictureInPicture():await b.requestPictureInPicture()}catch(a){console.error(a)}}})()}else"pictureInPictureEnabled"in document?document.pictureInPictureEnabled||window.alert("Picture-in-Picture not available."):window.alert("Picture-in-Picture is disabled.");
@vojtechjurasek
vojtechjurasek / pip.js
Last active March 8, 2019 19:56
Request Picture-in-Picture in Google Chrome bookmark
/* Check if pip feature is present in browser */
if (
'pictureInPictureEnabled' in document &&
'querySelectorAll' in document
) {
async function pip() {
/* Select all video elements */
const videos = document.querySelectorAll('video');
if (videos.length === 0) {

Keybase proof

I hereby claim:

  • I am vojtechjurasek on github.
  • I am vojtechjurasek (https://keybase.io/vojtechjurasek) on keybase.
  • I have a public key ASA9qheAKp9nAKa9WMVjoY0iBsjgfwqNc_CmP5nWiC0iCAo

To claim this, I am signing this object:

@vojtechjurasek
vojtechjurasek / custom-font-vendelo.css
Created February 21, 2018 16:12
Custom font on Vendelo Panama
font-family: 'Varela Round', 'Helvetica Neue', Helvetica, Arial, sans-serif;
@vojtechjurasek
vojtechjurasek / system-font-vendelo.css
Created February 21, 2018 16:06
System fonts on Vendelo Panama
font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;