Skip to content

Instantly share code, notes, and snippets.

{
"Objective-J": [
{
"socratic.name": "test.j",
"Classes": [
{
"Selectors": [
{
"socratic.name": "+(void)doNothing",
"socratic.lineNumber": "7"
See: http://github.com/paulbaumgart/git-situational-awareness
size=`rsync --delete --delete-excluded -pthrv --exclude-from \
/Users/paul/.backup/exclude /Users/paul/Documents/ \
/Users/paul/Dropbox | egrep -o "total size is (.*)G" | egrep -o "[0-9\.]+"`
if [ "$size" = "" ]; then
size=0
fi
if [ `echo "$size < 1.8" | bc` = 0 ]; then
echo "`date`: WARNING: Size is running out for Dropbox backups.\
(Currently using ${size} GB.)" 1>&2
sudo bash -c "curl -o /Applications/Google\ \
Chrome.app/Contents/Resources/document.icns \
http://src.chromium.org/viewvc/chrome/trunk/src/\
chrome/app/theme/chromium/document.icns \
&& curl -o /Applications/Google\ Chrome.app/\
Contents/Resources/app.icns \
http://src.chromium.org/viewvc/chrome/trunk/src/\
chrome/app/theme/chromium/app.icns"

How to use Gmail Mailto Chrome Handler

  1. Make sure Google Chrome is your default browser. This program will probably break mailto: links if you have a different default browser.
  2. Download Gmail Mailto Chrome Handler.app, put it somewhere useful (like /Applications), and run it.
  3. Try clicking this mailto: link. If it opens a new message in Gmail, you're all done!
  4. If the mailto link didn't work as expected, open Mail.app, go to Preferences, and under the General tab, select Gmail Mailto Chrome Handler.app as your "Default email reader".

Report any problems to paul@baumgart.us, or fix them and send a pull request. :-)

exports.mapping =
{
"source.js.objj":
{
"content_children":
{
"meta.implementation.js.objj":
{
"metadata_children":
{
{
"ObjectiveJ": [
{
"socratic_name": "AppKit/_CPImageAndTextView.j"
},
{
"socratic_name": "AppKit/AppKit.j"
},
{
"socratic_name": "AppKit/CPAlert.j",
diff --git a/Views/Cappuccino/EJS/Templates/DisplayObject.ejs b/Views/Cappuccino/EJS/Templates/DisplayObject.ejs
index 733e0f4..62fadc7 100644
--- a/Views/Cappuccino/EJS/Templates/DisplayObject.ejs
+++ b/Views/Cappuccino/EJS/Templates/DisplayObject.ejs
@@ -45,7 +45,11 @@
<ul>
<% for (var i = 0; i < value.length; i++) { %>
<li>
- <%= value[i] %>
+ <% if (key === "Issues") { %>
exports.command = function (command) {
var process = exports.popen(command);
var status = process.wait();
if (status !== 0)
throw new Error("(" + status + ") " + process.stderr.read());
return process.stdout.read();
};
// Work-around for OS.command that isn't compatible with narwhal-jsc.
// This should be removed if a fix is merged into the mainline narwhal-jsc.
try
{
OS.command("");
}
catch (e)
{
OS.command = function(command)
{