- 5k rows takes <1s.330MB!
- 10k rows takes <2s, 700MB!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script> | |
</head> | |
<body> | |
<h2>Naive canvas</h2> | |
<canvas id="naive" width="400" height="50"></canvas> | |
<h2>High-def Canvas</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target photoshop | |
// Mini-Script to create a folder if it doesn't already exist. | |
// This one requires editing by the end user. | |
// (c) Mike Dickson www.photoshoptools.ca | |
// Licensed under the GPL | |
// You will need to edit this location for your own uses | |
var f = new Folder("~/Desktop/sRGB Blog Images"); | |
if ( ! f.exists ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: diffpdf.sh file_1.pdf file_2.pdf | |
# requirements: | |
# - ImageMagick | |
# - Poppler's pdftoppm and pdfinfo tools (works with 0.18.4 and 0.41.0, | |
# fails with 0.42.0) | |
# (could be replaced with Ghostscript if speed is | |
# not important - see commented commands below) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["robofont", "-p", "$file"], | |
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
"selector": "source.python", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
from mojo.events import installTool, EditingTool, BaseEventTool, setActiveEventTool | |
from mojo.drawingTools import * | |
from mojo.UI import UpdateCurrentGlyphView | |
from defconAppKit.windows.baseWindow import BaseWindowController | |
import math | |
# | |
# | |
# A visualisation for RoboFont |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Open a bunch of ufos, select a bunch of interestng glyphs in a font window and run this. | |
As a nice bonus, this is also a way to reduce the scope of the the next and previous glyph hotkeys. | |
""" | |
from mojo.UI import SmartSet, AllFontWindows | |
f = CurrentFont() | |
for w in AllFontWindows(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
An interpretation of a work by Timm Ulrichs | |
see this blog post: https://letterformarchive.org/news/shaped-text | |
See other solutions in this twitter-thread: | |
https://twitter.com/MauriceMeilleur/status/1329218247594561538 | |
''' | |
# --------------- | |
# S E T T I N G S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import metricsMachine | |
from mm4.mmScripting import MetricsMachineScriptingError | |
from vanilla import FloatingWindow, List, CheckBox, PopUpButton | |
from mojo.events import addObserver, removeObserver | |
from AppKit import * | |
from mojo.UI import Message | |
class SyncMM: | |
def __init__(self): |
OlderNewer