Skip to content

Instantly share code, notes, and snippets.

View alexeckermann's full-sized avatar

Alex Eckermann alexeckermann

View GitHub Profile
@alexeckermann
alexeckermann / README.md
Last active April 27, 2020 05:49
Experimental Typesetting Plugin for CKEditor 5

Experimental Typesetting in CK5

Context

Some of our content comes from a time before we had a stringent editor with a strict data normalisation model. So in some cases we have to deal with legacy content normalisation. In addition, there are some tools that will import content into the application that have yet to have the same strict data normalisation.

Problems

This experiment focusses on spacing with two distinct problems.

  1. Trailing non-breaking space characters in block elements. Whilst it sounds harmless it has caused printed documents (created by our application outside of CK) to unnecesarily overflow a line with a clear space causing a blank line.
@alexeckermann
alexeckermann / wwdc19.sh
Created June 4, 2019 04:31
WWDC 2019 replay video watch script
#!/bin/bash
# Execute this script to be notified when the WWDC 2019 replay video is available, maybe.
# Make sure this file is `chmod +x` to run in your Terminal.
while true
do
echo -n `date`
@alexeckermann
alexeckermann / model3.sh
Last active May 22, 2019 09:07
Australian Tesla Model 3 ordering watch
#!/bin/bash
# Execute this script to be notified when the Tesla Model 3 order page is available to Australia.
while true
do
echo -n `date`
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" https://www.tesla.com/en_AU/model3/design)
@alexeckermann
alexeckermann / mastodon_profiles_signed.txt
Created August 30, 2018 02:19
Mastodon Profiles (Signed with PGP)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mastodon Profiles
=================
@[email protected]
@[email protected]
@[email protected]
@alexeckermann
alexeckermann / iphone7.rb
Created September 12, 2016 11:07
iPhone 7 Pick Up Availability in Australia
# iPhone 6 Reservation Availability in Australia
# !! Please use responsibly. Personal use only !!
# `ruby iphone6.rb` - list all available models in all stores
# `ruby iphone6.rb R405` - list available models for a specific store, Rundle Place in this example.
require 'open-uri'
require 'json'
MODEL_NAMES = {
"MN8X2X/A" => "7 32 Black",
"MN8Y2X/A" => "7 32 Silver",
@alexeckermann
alexeckermann / SwiftLoopTest.playground
Created November 10, 2014 09:21
GCD dispatch_resume test for Swift
import Foundation
import XCPlayground
import Dispatch
class Looper {
var loopQueue : dispatch_queue_t!
var tickSource : dispatch_source_t!
init() {
@alexeckermann
alexeckermann / gist:95b4cfb6d10538ed7c62
Created October 20, 2014 04:49
Fix yo Postgres, Fix yo Yosemite
# Put this in your shell and smoke it
mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}
@alexeckermann
alexeckermann / iphone6.rb
Created October 3, 2014 01:11
iPhone 6 Reservation Availability in Australia
# iPhone 6 Reservation Availability in Australia
# !! Please use responsibly. Personal use only !!
# `ruby iphone6.rb` - list all available models in all stores
# `ruby iphone6.rb R405` - list available models for a specific store, Rundle Place in this example.
require 'open-uri'
require 'json'
MODEL_NAMES = {
"MG4A2X/A" => "iPhone 6 Space Grey 128GB",
# Better… not really. Nicer… maybe.
$search = $('#main-navbar .search')
$search.find('input').css
border: '1px solid #cccccc'
$search.find('button').hide()
$search.find('.results').html(loading)
$search.find('.active, .results').show()
@alexeckermann
alexeckermann / keybase.md
Created March 29, 2014 13:19
keybase.md

Keybase proof

I hereby claim:

  • I am alexeckermann on github.
  • I am alexeckermann (https://keybase.io/alexeckermann) on keybase.
  • I have a public key whose fingerprint is CBAA 4632 B67F B4A3 0D03 3832 6446 9476 2557 891E

To claim this, I am signing this object: