Skip to content

Instantly share code, notes, and snippets.

var numOnRow = 6;
var width = 750;
var height = 600;
var padding = 67
var format = d3.format("1s");
var svg;
var data = {};
var circles = [];
@eagereyes
eagereyes / gist:98826
Created April 20, 2009 23:00 — forked from AlanQuatermain/gist:98622
Finds the project name if file in subdir "Classes". Also tried to get file's creation time, but need some more Mac-specific Ruby-fu, it seems (creation time is not POSIX standard)
#!/usr/bin/ruby
require 'osx/cocoa'
require 'date'
OSX.require_framework "AddressBook"
filePath = "%%%{PBXFilePath}%%%"
fileName = File.basename(filePath)
projName = File.basename(File.dirname(filePath))