This file contains hidden or 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
@page.search('a[@href]').each do |e| | |
puts "Link: #{e}\n" | |
e["href"] = "http://www.test.com" | |
end | |
render :text => @page.content |
This file contains hidden or 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
strlwr(szArg); | |
for (int count=0;szArg[count];count+=2,out++) | |
{ | |
if (((szArg[count]<'0' || szArg[count]>'9') && (szArg[count]<'a' || szArg[count]>'f')) || ((szArg[count+1]<'0' || szArg[count+1]>'9') && (szArg[count+1]<'a' || szArg[count+1]>'f'))) | |
break; | |
if (szArg[count]>='0' && szArg[count]<='9') CurByte=szArg[count]-0x30; | |
else if (szArg[count]>='a' && szArg[count]<='f') CurByte=szArg[count]-87; |
This file contains hidden or 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
- display_description ||= nil | |
- display_arrows ||= nil | |
- hide_button ||= nil | |
%div{:class => listing.live ? 'default' : 'blue'} | |
- rounded_box do | |
.listing_container | |
- if @is_current_user | |
.listing_admin | |
.regular_controls |
This file contains hidden or 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
Processing BaseController#update_statusbar (for 98.251.108.29 at 2010-02-24 22:50:40) [POST] | |
Parameters: {"action"=>"update_statusbar", "authenticity_token"=>"ahbOXK0yj/S8i6OqHdi9FC+Fre/F5TE7KHUEHWR8lio=", "controller"=>"base"} | |
Completed in 9ms (View: 2, DB: 8) | 200 OK [http://www.vipwithme.com/application/update_statusbar] | |
Processing BaseController#update_statusbar (for 98.251.108.29 at 2010-02-24 22:50:45) [POST] | |
Parameters: {"action"=>"update_statusbar", "authenticity_token"=>"ahbOXK0yj/S8i6OqHdi9FC+Fre/F5TE7KHUEHWR8lio=", "controller"=>"base"} | |
Completed in 9ms (View: 2, DB: 8) | 200 OK [http://www.vipwithme.com/application/update_statusbar] |
This file contains hidden or 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
def new | |
@user = User.new( {:birthday => Date.parse((Time.now - 25.years).to_s) }.merge(params[:user] || {}) ) | |
@inviter_id = params[:id] | |
@inviter_code = params[:code] | |
if params[:listing] | |
begin | |
@listing = Listing.find(params[:listing]) | |
rescue | |
end | |
end |
This file contains hidden or 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
User.rb | |
def to_super | |
if self.class != User | |
super_obj = self.class.superclass.new | |
instance_variables.each { |var| | |
begin | |
instance_eval "super_obj.#{var[1..-1]} = #{var}" | |
rescue NoMethodError | |
end |
This file contains hidden or 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
var makesList = '1|Acura,2|Alfa Romeo,3|AM General,4|AMC,5|Ariel,6|Aston Martin,7|Asuna,8|Audi,9|Austin,10|Austin-Healey,11|Bedford,12|Bentley,13|BMW,14|Bugatti,15|Buick,16|Cadillac,17|Checker,18|Chevrolet,19|Chrysler,20|Citroen,21|Continental,22|Dacia,23|Daewoo,24|Daihatsu,25|Daimler,26|Datsun,27|DeLorean,28|DeSoto,29|DeTomaso,30|Diasio,31|Dodge,32|Duesenberg,33|Eagle,34|Eunos,35|Excalibur,36|Factory Five,37|Ferrari,38|Fiat,39|Ford,40|Frazer,41|Freightliner,42|Fusion,43|Gatsby,44|Geo,45|Gillet,46|GMC,47|Graber,48|GTM,49|Heinkel,50|Hillman,51|Holden,52|Honda,53|Hudson,54|Hummer,55|Hyundai,56|IHC,57|Infiniti,59|Innocenti,60|International,61|Iso,62|Isuzu,63|Jaguar,64|Jeep,65|Jensen,66|Kaiser,67|Kia,68|Lada,69|Lamborghini,70|Lancia,71|Land Rover,72|Lexus,73|Lincoln,74|Lotus,75|Mack,76|Maserati,77|Matra,78|Maybach,79|Mazda,80|MCC,81|McLaren,82|Mercedes-Benz,83|Mercury,84|Merkur,85|MG,86|MINI,87|Mitsubishi,88|Mongoose,89|Morgan,90|Morris,91|Mosler,92|Muntz,93|Nash,94|Nissan,95|Noble,96|NSU,97|Oldsmobile,98|Opel,9 |
This file contains hidden or 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
C:\Users\sprite\Documents\mycargallery>ruby script/console | |
Loading development environment (Rails 2.3.4) | |
>> make = Make.find_by_name('Lamborghini') | |
=> #<Make id: 68, name: "Lamborghini", created_at: "2010-03-04 17:42:48", updated_at: "2010-03-04 17:42:48"> | |
>> make.models | |
=> [#<Model id: 848, make_id: 68, name: "Countach", created_at: "2010-03-04 17:42:48", updated_at: "2010-03-04 17:42:48">, #<Model id: 849, make_id: 68, name: "Diablo", created_at: | |
"2010-03-04 17:42:48", updated_at: "2010-03-04 17:42:48">, #<Model id: 850, make_id: 68, name: "Gallardo", created_at: "2010-03-04 17:42:48", updated_at: "2010-03-04 17:42:48">, # | |
<Model id: 851, make_id: 68, name: "Jalpa", created_at: "2010-03-04 17:42:48", updated_at: "2010-03-04 17:42:48">, #<Model id: 852, make_id: 68, name: "LM Series", created_at: "201 | |
0-03-04 17:42:49", updated_at: "2010-03-04 17:42:49">, #<Model id: 853, make_id: 68, name: "Murcielago", created_at: "2010-03-04 17:42:49", updated_at: "2010-03-04 17:42:49">] |
This file contains hidden or 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
makes = " makesList = '1|Acura,2|Alfa Romeo,3|AM General,4|AMC,5|Ariel,6|Aston Martin,7|Asuna,8|Audi,9|Austin,10|Austin-Healey,11|Bedford,12|Bentley,13|BMW,14|Bugatti,15|Buick,16|Cadillac,17|Checker,18|Chevrolet,19|Chrysler,20|Citroen,21|Continental,22|Dacia,23|Daewoo,24|Daihatsu,25|Daimler,26|Datsun,27|DeLorean,28|DeSoto,29|DeTomaso,30|Diasio,31|Dodge,32|Duesenberg,33|Eagle,34|Eunos,35|Excalibur,36|Factory Five,37|Ferrari,38|Fiat,39|Ford,40|Frazer,41|Freightliner,42|Fusion,43|Gatsby,44|Geo,45|Gillet,46|GMC,47|Graber,48|GTM,49|Heinkel,50|Hillman,51|Holden,52|Honda,53|Hudson,54|Hummer,55|Hyundai,56|IHC,57|Infiniti,59|Innocenti,60|International,61|Iso,62|Isuzu,63|Jaguar,64|Jeep,65|Jensen,66|Kaiser,67|Kia,68|Lada,69|Lamborghini,70|Lancia,71|Land Rover,72|Lexus,73|Lincoln,74|Lotus,75|Mack,76|Maserati,77|Matra,78|Maybach,79|Mazda,80|MCC,81|McLaren,82|Mercedes-Benz,83|Mercury,84|Merkur,85|MG,86|MINI,87|Mitsubishi,88|Mongoose,89|Morgan,90|Morris,91|Mosler,92|Muntz,93|Nash,94|Nissan,95|Noble,96|NSU,97|Oldsmobile,98|O |
This file contains hidden or 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
[img]http://hphotos-snc3.fbcdn.net/hs401.snc3/24340_1357805418533_1033419095_1076278_3587736_n.jpg[/img] | |
[img]http://hphotos-snc1.fbcdn.net/hs272.snc1/9922_523218235136_83503321_30848467_5027877_n.jpg[/img] | |
[img]http://hphotos-snc1.fbcdn.net/hs252.snc1/9922_523218240126_83503321_30848468_5821279_n.jpg[/img] | |
[img]http://hphotos-snc1.fbcdn.net/hs252.snc1/9922_523218245116_83503321_30848469_5787614_n.jpg[/img] | |
[img]http://hphotos-snc1.fbcdn.net/hs272.snc1/9922_523218250106_83503321_30848470_2281471_n.jpg[/img] | |
Modifications: | |
-[url="http://www.heffnersperformance.com/1050ttg.htm"]Heffner Performance 1050TTG (Twin Turbo)[/url] | |
-Verde Ithaca Calipers | |
-3M Clear Bra |