Skip to content

Instantly share code, notes, and snippets.

View ollicle's full-sized avatar

Oliver Boermans ollicle

View GitHub Profile
@ollicle
ollicle / 11ty directory indexes
Last active January 26, 2021 01:03
11ty directory indexes
# Some files and snippets
.eleventy.js
_includes/
layouts/
main.njk
dayIndex.njk
monthIndex.njk
yearIndex.njk
src/
@ollicle
ollicle / 3001-3003-port-flip.js
Created October 30, 2020 23:13
3001-3003 port flip bookmarklet
// javascript:location.port%20=%20location.port%20===%20%273001%27%20?%20%273003%27%20:%20%273001%27;
location.port = location.port === '3001' ? '3003' : '3001';
@ollicle
ollicle / css-hidden.md
Last active September 30, 2023 12:43
A CSS hidden property

The CSS display property is overloaded

  • How the element will contribute to layout/flow: display:block/inline/flex/etc…
  • Should the element contribute to layout/flow: display:none

It would be useful to have the means to separate these concerns.

A property to handle display:none

Given this HTML:

@ollicle
ollicle / SketchSystems.spec
Last active November 4, 2018 09:33
Blot gradients
Blot gradients
White square
center tap -> Black dot
top left tap -> Top left arc
top right tap -> Top right arc
bottom left tap -> Bottom left arc
bottom right tap -> Bottom right arc
Black dot
center tap -> Black square
@ollicle
ollicle / SketchSystems.spec
Last active October 26, 2018 10:26
Blot animations
Blot animations
White square
center tap -> Black dot
top left tap -> Top left arc
top right tap -> Top right arc
bottom left tap -> Bottom left arc
bottom right tap -> Bottom right arc
Black dot
center tap -> Black square
@ollicle
ollicle / iframer.js
Last active March 10, 2017 12:03
Load the current document into a resizable iframe
(function(){
document.body.innerHTML = '';
document.head.innerHTML = '';
var i = document.createElement('iframe');
i.id='theiframe';
i.style.width = '100%';
i.style.height='100%';
i.src = '?';

Keybase proof

I hereby claim:

  • I am ollicle on github.
  • I am boermans (https://keybase.io/boermans) on keybase.
  • I have a public key ASBtIqzWCVbYkJagpWie1D0j45O9F4sDGRJPqlevCilt_Ao

To claim this, I am signing this object:

@ollicle
ollicle / README.md
Last active January 4, 2016 02:19
IE11 crasher

Prerequisites appear to be:

  • IE11 on Windows 7
  • SVG image used as a background image
  • SVG image includes a font-face declaration
  • Browser crashes on unload (refresh)