Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@greatestview
greatestview / no-normalize.css
Last active November 24, 2022 14:11
No need for bloated normalize.css with modern browser engines. This is more than sufficient.
html,
body {
height: 100%;
width: 100%;
}
html {
word-break: break-word;
}
/**
* @author Kim-Christian Meyer <kim.meyer@palasthotel.de>
* @modified 2015-06-15
* @see https://forums.adobe.com/message/4385273#4385273
*/
try {
app.generalPreferences.customMonitorPpi = 72;
app.generalPreferences.useCustomMonitorResolution = true;
// undo via
@greatestview
greatestview / react-vs-php.php
Last active May 3, 2020 13:57
Thoughts about how React components could be implemented in PHP
<script>
import React from 'react';
function Teaser(props) {
return (
<div class="teaser">
<h2>{props.title}</h2>
<p>{props.text}</p>
</div>
);
@greatestview
greatestview / ph-blokr-detection.js
Last active March 21, 2016 11:39
Adblocker Detection
/**
* @author Kim-Christian Meyer <kim.meyer@palasthotel.de>
* @see https://www.christianheilmann.com/2015/12/25/detecting-adblock-without-an-extra-http-overhead/
*/
;"use strict";
(function() {
window.addEventListener('load', function() {
var test = document.getElementById('ad12345');
if (test.offsetHeight === 0) {