Skip to content

Instantly share code, notes, and snippets.

View martinnov92's full-sized avatar
🎯
Focusing

Martin Novák martinnov92

🎯
Focusing
View GitHub Profile
  1. Open Automator.app
  2. Create new Quick Action
  3. Select Run AppleScript
  4. Add this:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
	set inputVolume to 100
	display notification "Volume set to 100" with title "✅ Microphone is on"
@martinnov92
martinnov92 / ukazka.json
Last active December 3, 2017 09:51 — forked from pufinek/ukazka.json
{
"test": {
"title": "Martin - ukázka",
"description": "Státní maturita 2010.",
"cermat": true,
"tasks": [
{
"title": "Martin S04",
"taskText": "&&\\images\\tasks\\S02T05P03\\S02T05P03.jpg&&",
"question": "Odpoved Ano / Ne",
@martinnov92
martinnov92 / what-forces-layout.md
Created November 15, 2017 10:42 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()