A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
#!/bin/bash | |
# | |
# A script that takes a Twitter data archive, which is produced as a | |
# set of JavaScript files (different from the regular archive, which | |
# is CSV and HTML), and converts the `tweet.js` file, which contains | |
# all of the tweets, into tractable JSON, one tweet per line. It then | |
# inserts /that/ into a SQLite3 database, and extracts a simple | |
# relational table of tweets from the JSON. Finally, it runs datasette | |
# on the resulting database to allow you to explore. |
Moved to a proprer repositoy, TSWS is a real boy now! | |
https://github.com/dfletcher/tsws | |
PRs welcomed. |
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
import sys | |
import requests | |
import json | |
import calendar | |
from datetime import datetime, timedelta | |
# This script will download, then delete the non-external files older than 14 days. | |
_token = "" # administrator token, from https://api.slack.com/web | |
_project = "" # project name, from http://[project].slack.com |
before_script: | |
- npm install -g http-server | |
- npm install -g pa11y | |
- npm install -g pa11y-reporter-ci | |
script: | |
- nohup http-server -p 8080 >/dev/null 2>&1 & | |
- pa11y localhost:8080/index.html -r ci -s WCAG2AAA |
INITIALISATION | |
============== | |
load wp-config.php | |
set up default constants | |
load wp-content/advanced-cache.php if it exists | |
load wp-content/db.php if it exists | |
connect to mysql, select db | |
load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
load wp-content/sunrise.php if it exists (multisite only) |
#!/bin/bash | |
# | |
# _ _ __ | |
# __ _ __ _ _ __| |__ (_)/ _|_ _ | |
# / _` |/ _` | '__| '_ \| | |_| | | | | |
#| (_| | (_| | | | |_) | | _| |_| | | |
# \__, |\__,_|_| |_.__/|_|_| \__, | | |
# |___/ |___/ | |
# | |
# |