###SUMMARY: Twitter.com "compose" text area undo granularity is seriously broken (far too coarse-grained).
###CONTEXT: OS X 10.8.5
Any Browser of:
- Chrome Version 31.0.1650.8 beta
- Safari Version 6.0.5 (8536.30.1)
- Firefox 24
| set _srcPath to ((get path to desktop) & "Backup:Pictures" as string) | |
| set _destPath to ((get path to desktop) & "Out" as string) | |
| on processDir(_parent) | |
| tell application "Finder" | |
| set _parentName to (get name of _parent as string) | |
| set _kids to (get every item of _parent whose name is not ".") | |
| if "Thumbs" is equal to _parentName then | |
| return | |
| else if "Originals" is equal to _parentName then |
| if [ $CONFIGURATION = "Debug" ]; then | |
| exit 0; | |
| fi | |
| TARGET = "$PROJECT_DIR/res/conf/XXX-Info.plist" | |
| echo $TARGET | |
| if [ ! -f "$TARGET" ]; then | |
| echo "missing file $TARGET" | |
| exit 1; | |
| fi |
| ^((?!FIND_LINES_WITHOUT_THIS_TEXT).)*$ |
| if [ $CONFIGURATION = "Debug" ]; then | |
| exit 0; | |
| fi | |
| NEW_VERSION=`svnversion -n ./ | /usr/bin/perl -pe 's/(\d+:)?(\d+)[MS]*$/$2/eg'` | |
| echo $NEW_VERSION; | |
| /usr/libexec/PListBuddy -c "Set CFBundleVersion $NEW_VERSION" "$SOURCE_ROOT/Info.plist" |
| #ifdef NDEBUG | |
| #define TDLog(fmt, ...) while (0) {} | |
| #else | |
| #define TDLog(fmt, ...) do { NSLog(fmt, ##__VA_ARGS__); } while (0) | |
| #endif |
| window.fluid.dockBadge = ''; | |
| setTimeout(updateDockBadge, 1000); | |
| setTimeout(updateDockBadge, 3000); | |
| setInterval(updateDockBadge, 5000); | |
| function updateDockBadge() { | |
| var newBadge = ''; | |
| // loop thru anchor tags | |
| var anchorEls = document.getElementsByTagName('a'); |
| @symbols = '!=' '<=' '>='; | |
| @start = expr; | |
| expr = orExpr; | |
| orExpr = andExpr orTerm*; | |
| orTerm = 'or' andExpr; | |
| andExpr = relExpr andTerm*; | |
| andTerm = 'and' relExpr; |
| NSString *s = @"$00FF_FFFF %0001_0101"; | |
| PKTokenizer *t = [PKTokenizer tokenizerWithString:s]; | |
| // add support for HLA-style hex numbers like $00FF_FFFF | |
| [t.numberState addPrefix:@"$" forRadix:16]; | |
| [t.numberState addGroupingSeparator:'_' forRadix:16]; | |
| [t setTokenizerState:t.numberState from:'$' to:'$']; | |
| // add support for HLA-style binary numbers like %0001_0101 | |
| [t.numberState addPrefix:@"%" forRadix:2]; |
| #!/usr/bin/python | |
| from Quartz.CoreGraphics import * | |
| from Quartz.ImageIO import * | |
| def write_image_to_file(ctx, path): | |
| img = CGBitmapContextCreateImage(ctx) | |
| url = CFURLCreateWithFileSystemPath(None, path, kCFURLPOSIXPathStyle, True) | |
| dest = CGImageDestinationCreateWithURL(url, "public.png", 1, None); | |
| CGImageDestinationAddImage(dest, img, None); |
###SUMMARY: Twitter.com "compose" text area undo granularity is seriously broken (far too coarse-grained).
###CONTEXT: OS X 10.8.5
Any Browser of: