Skip to content

Instantly share code, notes, and snippets.

View toddparker's full-sized avatar

Todd Parker toddparker

View GitHub Profile
<!-- Paste thsi code right before the end of the body tag in your template -->
<style>
.gs-web-image-box, .gs-promotion-image-box {
float: right !important;
}
.gs-web-image-box .gs-image, .gs-promotion-image-box .gs-promotion-image {
max-width: 180px !important;
max-height: 180px !important;
@toddparker
toddparker / critical.md
Created January 5, 2018 19:11
Rough edit

tldr;

Due to recently disclosed security vulnerabilities for nearly all computers [1,2], if you are using the critical css technique [3] on your website, you should disable the document.cookie read by setting your cookies to be SameSite [4] and HttpOnly [5] on the server, as recommended in [6]. Otherwise sensitive data (such as session keys) may be exposed to malicious third parties.

Meltdown and Spectre Vulnerabilities

Two days ago a group of security researchers disclosed two security flaws, dubbed Meltdown and Spectre, that allow processor exploits to steal passwords and other sensitive user data from almost any device made in the past 20 years. [1,2].

@toddparker
toddparker / critcal
Last active January 5, 2018 19:10
Rough re-org
## tldr;
Due to recently disclosed security vulnerabilities for nearly all computers [1,2], if you are using the critical css technique [3] on your website, you should disable the `document.cookie`
read by setting your cookies to be `SameSite` [4] and `HttpOnly` [5] on the server, as recommended in [6]. Otherwise sensitive data (such as session keys) may be exposed to malicious third
parties.
## Meltdown and Spectre Vulnerabilities
Two days ago a group of security researchers disclosed two security flaws, dubbed Meltdown and Spectre, that allow processor exploits to steal passwords and other sensitive user data from
almost any device made in the past 20 years. [1,2].
@toddparker
toddparker / gist:32fc9647ecc56ef2b38a
Created July 16, 2014 21:27
Something in the CSS breaks JSBin so it won't save milestones
<html>
<head>
<title>Select styles with CSS only</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* Some basic page styles */
body {
background-color: #fff;
font-family: helvetica, sans-serif;
margin: 4% 10%
@toddparker
toddparker / jQm 1.1.1
Created June 26, 2012 22:41
Key changes 1.1.1
<h2>Key Changes</h2>
<a href="https://github.com/jquery/jquery-mobile/commit/8e570e3f94846d6e01e3bf03da284db3c402979b">Slow tap response when clicking items in large listview on mobile devices</a> (<a href="https://github.com/jquery/jquery-mobile/issues/4340">Issue #4340</a>) - Slow response times and crashing when clicking on a list item (or any navigation element) far down a long page was due to the browser trying to animate a really massively tall page from the scroll position to the top of the screen. The scroll position, not total screen height, is the determining factor for performance so we added another condition to say that if you're either coming FROM or going TO a page where the scroll position is 3x the height of the device's screen, skip the transition (set it to none). This scroll position breakpoint is configurable via the new <code>getMaxScrollForTransition</code> function.
<a href="https://github.com/jquery/jquery-mobile/commit/f164821cd7fa64ea582728f524a927a621402507">White flash/flicker w
@toddparker
toddparker / 1.0.1 CDN links
Created January 26, 2012 19:17
From the blog post