Skip to content

Instantly share code, notes, and snippets.

View vojtechjurasek's full-sized avatar

Vojtěch Jurásek vojtechjurasek

View GitHub Profile
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@vojtechjurasek
vojtechjurasek / json
Last active March 10, 2017 23:17
Test Vendelo API
{
"info": {
"version": "1",
"results": "10"
},
"results": [
{
"id": 500,
"title": {
"es": "Apartamento para vender",
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@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;
@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;

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 / 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) {
@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 / 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,
<?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>