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
# we have | |
admin.resources :meals do |meal| | |
meal.resources :preparation_steps | |
meal.resources :preparation_tools, :collection => {:associate => :post}, | |
:member => {:disassociate => :delete} | |
end | |
# i've added a "sort" method to the preparation_steps controller, and need | |
# to access /admin/meals/:meal_id/preparation_steps/:preparation_step_id/sort |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'daemon-spawn' | |
RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | |
class DelayedJobWorker < DaemonSpawn::Base | |
def start(args) | |
ENV['RAILS_ENV'] ||= args.first || 'development' | |
Dir.chdir RAILS_ROOT |
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
# run as daemon if they asked for it | |
if options[:detatch] | |
FileUtils.mkdir_p(File.join(RAILS_ROOT, 'tmp', 'pids')) | |
Process.daemon | |
pid = "#{RAILS_ROOT}/tmp/pids/vms_server.pid" | |
File.open(pid, 'w'){ |f| f.write(Process.pid) } | |
at_exit { File.delete(pid) if File.exist?(pid) } | |
end |
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
<!-- old element --> | |
<item locID="hp1_Games_Game_Media">Game Media</item> | |
<!-- target element --> | |
<item locID="hp1_Games_Game_Media"><![CDATA[Game Media]]></item> | |
<!-- | |
below is the find and replace used with textmate | |
match the key and it's content |
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
ng-mp:hartmann-wheels[master*]$ cap deploy setup | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
*** Defaulting to `development' | |
* executing `development' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
updating the cached checkout on all servers |
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
<h2>Transaction in Progress</h2> | |
<div class="two-cols"> | |
<div class="left-col"> | |
<div class="helpbox"> | |
<h4>Help</h4> | |
<p> | |
<a target="_blank" href="<%= Config.GetValue("BOXOFFICE_HELP")%>">Box Office Help</a><br /> |
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
<!-- add jquery to your project --> | |
<!-- add this to the head --> | |
<script type="text/javascript" src="/PATH/TO/jquery.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function(){ | |
$("chbx_notifyRecipientByEmail").click(function () { | |
$("pnl_RecipientEmailAndMessage").slideToggle("slow"); | |
}); | |
}); | |
</script> |
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
//<![CDATA[ | |
// define checkbox array | |
// [element_id, hide shipping div on load?] | |
var checkboxes = new Array( | |
new Array('uc_delivery_rpt_orders_ctl00_rbl_deliveryMethods_0', true), | |
new Array('uc_delivery_rpt_orders_ctl00_rbl_deliveryMethods_1', false), | |
new Array('uc_delivery_rpt_orders_ctl00_rbl_deliveryMethods_2', true) | |
); |
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
/* @override | |
http://localhost:3000/stylesheets/screen.css | |
http://pc-jonathann/stylesheets/screen.css | |
http://localhost/stylesheets/screen.css | |
*/ | |
.ui-tabs .ui-tabs-hide { | |
display: none; | |
} |
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
JHM Lightweight Flywheel and Clutch Combo for 04 and up B6/B7 S4 | |
[JHM-V8S4LWCB] $1,600.00 $1,475.00 | |
Click to enlarge | |
FLYWHEEL IS PROUDLY MADE LOCALLY HERE IN THE USA | |
NOTE: JH Motorsports has seen many B6 S4 flywheels fall apart in some cases causing major damage to the transmission. This is why JHM built all its clutch and flywheel products around the new and updated B7 style flywheel and pressure plate. This way we can update all B6 owners to B7 spec components. Our complete kits fit ALL B6/B7 S4 4.2l V8s, we basically take the guesswork out of updating your B6 to B7 specs. | |
In typical JHM style here are 2 videos of some of the abuse we have put this clutch and flywheel combo through during our R&D process with our in house 2005 B6 S4. | |
JHM burnouts and abuse with our B6 S4 VIDEO -->HERE> |
OlderNewer