This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
window.Album = Backbone.Model.extend({ | |
isFirstTrack: function(index) { | |
return index == 0; | |
}, | |
isLastTrack: function(index) { | |
return index >= this.get('tracks').length - 1; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=DATE(LEFT(B2,4),MID(B2,5,2),RIGHT(B2,2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub formatChartInFimsStyle() | |
Dim myChart As Chart | |
Set myChart = ActiveChart | |
' Set width and height | |
myChart.ChartArea.Height = 158 | |
myChart.ChartArea.Width = 230 | |
myChart.ChartArea.Format.Line.Visible = msoFalse | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'win32ole' | |
require 'pathname' | |
require 'chronic' | |
excel = WIN32OLE.new('Excel.Application') | |
excel.visible = false | |
# Print header line | |
header = %w(Date Subprime_1yr Subprime_2yr Subprime_3yr Subprime_5yr Subprime_7+yr Prime_03-04_15yrPT Prime_03-04_30yrPT Prime_03-04_5/1PT Prime_03-04_10/1PT Prime_06-07_15yrPT Prime_06-07_30yrPT Prime_06-07_5/1PT Prime_06-07_10/1PT) | |
puts header.join(",").gsub("_", " ") |
NewerOlder