How do you compare date/times in RSpec?
If you do this
expect(Time.now.to_i).to eq Time.new(2014, 4, 2).to_i
NSNumber *windowLevelIndex = [[NSUserDefaults standardUserDefaults] objectForKey:@"DesktopBackgroundLevel"]; | |
if (windowLevelIndex != nil) { | |
switch ([windowLevelIndex integerValue]) { | |
case 0: // Show behind the desktop icons, but on the desktop - ignored by Exposé | |
[window setLevel:kCGDesktopWindowLevel]; | |
[window setIgnoresMouseEvents:YES]; | |
[window orderBack:self]; | |
break; | |
case 1: // Show above the desktop icons - still ignored by Exposé | |
[window setLevel:kCGDesktopIconWindowLevel]; |
au BufNewFile,BufRead *.prawn set filetype=ruby |
$.fn.autoSizr = function () { | |
var el, elements, _i, _len, _results; | |
elements = $(this); | |
if (elements.length < 0) { | |
return; | |
} | |
_results = []; | |
for (_i = 0, _len = elements.length; _i < _len; _i++) { | |
el = elements[_i]; | |
_results.push((function(el) { |