Skip to content

Instantly share code, notes, and snippets.

View coderberry's full-sized avatar

Eric Berry coderberry

View GitHub Profile
<html>
<head>
<title>{{title}}</title>
...
<link media="all" href={{css}}" type="text/css" rel="stylesheet">
#header {
padding: 0;
margin: 0;
background: url(/images/design-suite/Common/Header.gif) top left no-repeat;
width: 900px;
height: 150px;
}
#header {
padding: 0;
margin: 0;
background: url({{assets_path}}Header.gif) top left no-repeat;
width: 900px;
height: 150px;
}
<div class="landing_header">{{banner_image}}</div>
<div class="deluxe_price"><img src="{{image_path}}DeluxePrice-89.gif" name="DeluxePrice89" id="DeluxePrice89" height="105" width="480"></div>
<div class="deluxe_image"><img src="{{image_path}}DeluxeImage.gif" height="220" width="230"></div>
<div class="deluxe_package_includes">Deluxe Package includes:</div>
<div class="deluxe_price">{{deluxe_promo_image}}</div>
<div class="deluxe_image"><img src="{{image_path}}DeluxeImage.gif" height="220" width="230"></div>
<div class="deluxe_package_includes">Deluxe Package includes:</div>
class SoxEncoder
attr_accessor :input_files, :output_file, :command_line
def initialize
@input_files = []
end
def input_file=(filename)
@input_files << filename
require 'sox_encoder'
module Paperclip
class Audio < Processor
attr_accessor :convert_options
def initialize file, options = {}, attachment = nil
super
eric-berrys-macbook:voiceverify berry$ ./script/console
Loading development environment (Rails 2.3.2)
>> t = Paperclip::Audio
=> Paperclip::Audio
>> t = Paperclip::Audio.new(File.open("/Users/berry/Desktop/01.wav"))
=> #<Paperclip::Audio:0x2a7126c @attachment=nil, @convert_options=nil, @file=#<File:/Users/berry/Desktop/01.wav>, @basename="01", @options={}, @format="mp3", @current_format=".wav">
>> t.make
MADE IT HERE!!!!!!
sox /Users/berry/Desktop/01.wav /var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3
=> #<File:/var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3>