Skip to content

Instantly share code, notes, and snippets.

View ondrakoupil's full-sized avatar

Ondřej Koupil ondrakoupil

  • Freelance web developer
  • Hradec Králové, Czech Republic
View GitHub Profile
// do conf/init.php
CallbackList::bind("htaccess", function() {
pridej_htaccess("php_value register_globals off");
});
@ondrakoupil
ondrakoupil / example.html
Created June 20, 2018 21:32
Deferred jQuery
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Deferred jquery example</title>
<!-- Instead of including jQuery and various plugins here in head and delaying rendering the page, insert only snippet from html-head.html -->
<!-- It creates a fake $() function that just catches any calls and saves them into stack for later use. -->
<!-- It also defines a $$$() function that executes any calls saved into the stack. -->
<script>
@ondrakoupil
ondrakoupil / main-error.yaml
Last active February 20, 2021 11:31
ng-openapi-gen bug - multiple references leads to an error
---
openapi: 3.0.0
info:
title: Example
description: Example of bug in ng-openapi-gen
version: 0.0.1
paths:
/hello:
get: