A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
import cp from "node:child_process"; | |
import fse from "fs-extra"; | |
import fetch from "node-fetch"; | |
import glob from "fast-glob"; | |
const files = await glob("*.json"); | |
for (const file of files) { | |
// Pipe through `tail -1` to get original commit, set encoding to "utf-8" instead of default "buffer". |
// Modified from Jeremy Keith’s lovely bookmarklet: https://adactio.com/journal/16523 | |
javascript:(function(){open('https://googlechrome.github.io/lighthouse/viewer/?psiurl='+escape(document.location)+'&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa', 'test__lighthouse')})(); |
function logger(strings,...values) { | |
var str = ""; | |
for (let i = 0; i < strings.length; i++) { | |
if (i > 0) { | |
if (values[i-1] && typeof values[i-1] == "object") { | |
if (values[i-1] instanceof Error) { | |
if (values[i-1].stack) { | |
str += values[i-1].stack; | |
continue; | |
} |
// paste in your console | |
speechSynthesis.onvoiceschanged = function() { | |
var msg = new SpeechSynthesisUtterance(); | |
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
msg.text = Object.keys(window).join(' '); | |
this.speak(msg); | |
}; |
"use strict"; | |
var _ = SM.import('lodash'); | |
var DOM = SM.import('sm-dom'); | |
var Uri = SM.import('sm-uri'); | |
// WebKit (as of version 538.35.8) fires a useless popstate event after every | |
// page load, even when the page wasn't popped off the HTML5 history stack. We | |
// only want to handle popstate events that result from a page actually being | |
// popped off the HTML5 history stack, so we need a way to differentiate between |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
https://twitter.com/deafferret/status/373530616655917057 | |
Mind. Blown. | |
Did you know when rebasing in git it even correctly patches files that were MOVED in the base branch? I... | |
Wow. | |
<3 git | |
Here, let me show you: | |
List of features that are supported by Opera 12 but not by Opera 15 due to the switch to Blink/Chromium:
xhr.responseType = 'json'
Link
HTTP headerLink
HTTP header for stylesheets specificallyEnter
when an element with tabindex
has focus should trigger a clickdata:
URIs should be handled correctlyfoo.svg
is an SVG file that contains text looks terrible](https://code.google.com/p/chromium/issues/detail?id=33<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- | |
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: https://gist.github.com/grorg/4773372 |