controller.prepend_view_path "app/views/{path_prepended}/"
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
<cfajaxproxy bind="javascript:updateDiv1({myForm:myName})" /> | |
<script> | |
updateDiv1 = function(data){ | |
document.getElementById('myDiv1').innerHTML = data; | |
} | |
</script> | |
<form id="myForm" action="attr-bind-js.cfm##"> | |
<label>myName</label> |
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
<cfdiv bind="url:/demo/cfdiv/files/getHTML.cfm?name={myForm2:name}&age={myForm2:age}" | |
bindOnLoad="false" | |
onBindError="onError" | |
id="mydiv1"/> |
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
<cfajaxproxy bind="cfc:demo.cfajaxproxy.files.test.getName({myForm:myName})" onSuccess="updateDiv1" onError="onError"/> | |
<script type="text/javascript"> | |
updateDiv1 = function(data, textStatus){ | |
document.getElementById('myDiv1').innerHTML = data; | |
} | |
</script> | |
<form format="html" id="myForm"> | |
<label>My Name</label><input type="text" name="myName"> | |
</form> | |
<div id="myDiv1" class="result"> </div> |
###Self Yield
Person.new do |p|
p.name = ...
end
Object pass self to the initiliaze method as block.
class Person
def initialize
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
#!upstart | |
description "Workers [resque]" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on shutdown | |
respawn | |
respawn limit 99 5 | |
console 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
-server -XX:MaxPermSize=128m -Xms2048m -Xmx2048m | |
-Dsun.rmi.dgc.client.gcInterval=3600000 | |
-Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC | |
-XX:+CMSClassUnloadingEnabled |
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
Resque::Worker.all.each {|w| w.unregister_worker} |
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
[p2,p3,p1].sort #[#<Person:0x104f09d80 @name="Andrea">, #<Person:0x104f09d30 @name="Fabio">, #<Person:0x104f09ce0 @name="Luigi">] |