Skip to content

Instantly share code, notes, and snippets.

View less-simple-triangle-strip.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebGPU Hello Triangles</title>
<meta name="assert" content="WebGPU correctly renders a green canvas.">
<link rel="match" href="simple-triangle-strip-expected.html">
<p>Pass if square canvas below is completely green.</p>
<canvas width="400" height="400"></canvas>
const shaderCode = `
#include <metal_stdlib>
View update.diff
diff --git a/Scripts/rollup.js b/Scripts/rollup.js
index 50cc5f5..18cc404 100644
--- a/Scripts/rollup.js
+++ b/Scripts/rollup.js
@@ -1,162 +1,163 @@
-export * from "../Source/Node.js";
-export * from "../Source/Type.js";
-export * from "../Source/ReferenceType.js";
-export * from "../Source/Value.js";
-export * from "../Source/Expression.js";
View namespace.patch
diff --git a/Source/WebCore/platform/graphics/mac/ b/Source/WebCore/platform/graphics/mac/
index 1103d37e62d..808804b2f85 100644
--- a/Source/WebCore/platform/graphics/mac/
+++ b/Source/WebCore/platform/graphics/mac/
@@ -39,8 +39,6 @@
#import "WebCoreThread.h"
-using namespace WebCore;
View Hopefully quick WebKit
View index.html
div {
width: 400px;
height: 400px;
overflow: -webkit-paged-x;
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
grorg / GoT
Last active Jul 1, 2016
Notable deaths on Game of Thrones
View GoT

Notable Deaths on Game of Thrones

As of 1 July 2016

Mostly Westeros, but a few others at the end. Note that I'm only considering the TV series here, and that I'm not trying to be super precise (i.e. there are certainly errors and omissions).

I just tried to come up with a list when I realised that all the 5 Kings were

grorg / blockerList.json
Created Aug 6, 2015
Block Taboola and Outbrain
View blockerList.json
"action": {
"type": "block"
"trigger": {
"description": "That 'content you may like' crap.",
"url-filter": "^[a-zA-Z][a-zA-Z0-9+-.]*:/+([^/]+\\.)?taboola\\.com"
grorg / gist:6732841
Last active Nov 30, 2018
Why does animating left paint more often than translateX?
View gist:6732841
As asked by John on Twitter:
"wow. Animate change to left via CSS, ~500 paint/reflow events. Animate translateX - 16!"
Answering here because it's a long response and I'm too slack to have a
NOTE: This answer is out of date. See comment below.
The easy answer is that changing left causes relayout, which triggers a repaint, while
View gist:4773372
;smilingface 😄
;smilingmouth 😃
;grinningface 😀
;happyeyes 😊
;winkingface 😉
;hearteyes 😍
;kissfaceheart 😘
;kissface 😗
;crazyface 😜
;poketongue 😝
grorg / Emoji.plist
Last active Mar 22, 2021
Use text substitution to make typing emoji easy on OS X.
View Emoji.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
Text expansion shortcuts for a bunch of emoji.
e.g. ";poo" -> 💩
Not all emoji are included, but I tried to come up with obvious names. There
are also a few in-jokes, sorry.
Cheat sheet: