Skip to content

Instantly share code, notes, and snippets.

parent.location.href = 'http://google.com';
alert('Hi from gist.github.com!')
@laughinghan
laughinghan / MathQuill_CLA.md
Last active March 15, 2016 18:05
MathQuill CLA

We're so excited you want to contribute to MathQuill, we've only gotten this far thanks to contributors like you!

Like many open source projects, before we can accept your contribution we ask that you sign a Contributor License Agreement ("CLA") to protect both you and us from legal problems.

Unlike most CLAs, ours is not written in scary legalese. Simply put, when you contribute to MathQuill, you agree:

  1. The code you wrote is your original work (you own the copyright) or you otherwise have the right to submit the work.
  2. To grant the MathQuill maintainers a nonexclusive, irrevocable license to use your submitted code in any way.
  3. You are capable of granting these rights for the contribution.

Good news! We've resumed active development and we're committed to getting things running smoothly. Find a dusty corner? Let us know! slackin.mathquill.com

@laughinghan
laughinghan / index.xhtml
Created March 18, 2016 06:02
Experimental XHTML version of MathQuill homepage, so that inline SVG will work in Safari 4.0.5
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MathQuill: Easily type math into your webapp</title>
<link rel="stylesheet" type="text/css" href="support/home.css" />
<link rel="stylesheet" type="text/css" href="lib/mathquill-0.10.0.css" />
<link rel="stylesheet" type="text/css" href="support/keys.css" />

This is an elaboration on a successful but ungainly technique to hide the blinking blue cursor in Safari on iOS 9.2.1, where I inject a newline at the beginning of a textarea that's less than one line and scroll to the top, so that the cursor is always out of view: http://jsbin.com/cohema/edit?css,js,output

It appears that I have to inject a newline, my other attempts to insert more space than the textarea is tall/wide some cause the textarea to increase in height/width until a bit of the blinking blue cursor "peeks out", even if that violates the height/width that I set:

Playing around with pronounceable random strings, a la jsbin and hastebin's bin names.

conclusions

simpler is better, just have alternating one-letter consonants and vowels for a total of 3 syllables, like kipamif, for 25 bits of entropy

digraphs worsen memorability because there's so many of them they usually dominate the word making the word much longer and harder to read, pronounce, memorize; best compromise with digraphs is 2-syllable words which still only have 25 bits and yet are slightly less memorable

scratch

Good news, OTF indeed looks better than TTF, but unfortunately it also looks better than WOFF:
Minimal diff that fixed the issue:
```diff
diff --git a/src/css/font.less b/src/css/font.less
index 06916b7..2330685 100644
--- a/src/css/font.less
+++ b/src/css/font.less
@@ -14,9 +14,9 @@
local("Symbola Regular"),