---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
| // | |
| // NSObject+BlockObservation.h | |
| // Version 1.0 | |
| // | |
| // Andy Matuschak | |
| // andy@andymatuschak.org | |
| // Public domain because I love you. Let me know how you use it. | |
| // | |
| #import <Cocoa/Cocoa.h> |
| Adds support for loading UIImage's from PDF files. I think it's a great way to add resolution-independent graphics to your apps, and also remove the "export to bitmap" step from your workflow. Just save directly from Illustrator! | |
| What it does: | |
| - You can pass the name of a PDF file (with or without the '.pdf') to +[UIImage imageNamed:] | |
| - You can use the name of a PDF file inside Interface Builder, in your UIImageView's | |
| - Turn a multi-page PDF into an array of UIImage's... good for animation. | |
| Feedback to gists @nielsbot.com. Thanks! |
| // returns a MKCoordinateRegion that encompasses an array of MKAnnotations | |
| - (MKCoordinateRegion)regionForAnnotations:(NSArray *)annotations { | |
| CLLocationDegrees minLat = 90.0; | |
| CLLocationDegrees maxLat = -90.0; | |
| CLLocationDegrees minLon = 180.0; | |
| CLLocationDegrees maxLon = -180.0; | |
| for (id <MKAnnotation> annotation in annotations) { |
| defaults write com.barebones.bbedit Color:Background -string "rgb(0,0,0)" | |
| defaults write com.barebones.bbedit Color:CTagsIdentifier -string "rgb(57825,39937,11422)" | |
| defaults write com.barebones.bbedit Color:ColorAttributesSeparately -string 1 | |
| defaults write com.barebones.bbedit Color:Comment -string "rgb(21845,21845,21845)" | |
| defaults write com.barebones.bbedit Color:Comment:Ruby -string "rgb(34992,34992,34992)" | |
| defaults write com.barebones.bbedit Color:Foreground -string "rgb(65535,65535,65535)" | |
| defaults write com.barebones.bbedit Color:Foreground:CSS -string "rgb(56342,56342,56342)" | |
| defaults write com.barebones.bbedit Color:GuideContrast -string 7 | |
| defaults write com.barebones.bbedit Color:HTMLAnchor -string "rgb(43690,0,0)" | |
| defaults write com.barebones.bbedit Color:HTMLAttributeName -string "rgb(57528,45076,5799)" |
| #!/bin/sh | |
| # | |
| # Change the definition of CCL_DEFAULT_DIRECTORY below to refer to | |
| # your Clozure CL installation directory. The lisp will use this | |
| # environment variable to set up translations for the CCL: logical | |
| # host. | |
| # Any definition of CCL_DEFAULT_DIRECTORY already present in the | |
| # environment takes precedence over definition made below. |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BackgroundColor</key> | |
| <string>rgba(0.000000,0.000000,0.000000,1.000000)</string> | |
| <key>CommentsColor</key> | |
| <string>rgba(0.569157,0.569091,0.569188,1.000000)</string> | |
| <key>CtagsIdentifierColor</key> | |
| <string>rgba(0.6,0.0,0.4,1.0)</string> |
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
Gource is a software version control visualization tool.
Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project.
| #!/usr/sbin/dtrace -s | |
| #pragma D option quiet | |
| #pragma D option defaultargs | |
| #pragma D option switchrate=10hz | |
| /* from http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/ */ | |
| dtrace:::BEGIN | |
| { |