most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| CGPoint CGPointFlipped(CGPoint point, CGRect bounds) { | |
| return CGPointMake(point.x, CGRectGetMaxY(bounds)-point.y); | |
| } | |
| CGRect CGRectFlipped(CGRect rect, CGRect bounds) { | |
| return CGRectMake(CGRectGetMinX(rect), | |
| CGRectGetMaxY(bounds)-CGRectGetMaxY(rect), | |
| CGRectGetWidth(rect), | |
| CGRectGetHeight(rect)); | |
| } |
| <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> |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |