Skip to content

Instantly share code, notes, and snippets.

View sletix's full-sized avatar
💭
^^

Oleg Artamonov sletix

💭
^^
View GitHub Profile
if(val==0){
x="<div style='position:absolute;margin-left:25px;top:293px;'><a id='no1' href='#' class='bed_font_green' onclick='callNeedle(this,1);'>1</a></div>"+
"<div style='position:absolute;margin-left:42px;top:271px;'><a id='no2' href='#' class='bed_font' onclick='callNeedle(this,2);'>2</a></div>"+
"<div style='position:absolute;margin-left:68px;top:262px;'><a id='no3' href='#' class='bed_font' onclick='callNeedle(this,3);'>3</a></div>"+
if (hot == true)
{
hottubs = "1";
}
else
{
hottubs = "";
}
if (pool == true)
if (result == 'index.html#' || result == 'index.html' || result == '' || result == '#') {
if (favStatus == 0) {
//To display the details of merchant layer
var moredisplay = '<table width="100%"><tr><td width="45%" valign="top"><a href="#" onclick="details(\'hotel_details\');">' +
'<div id="detailstrance" align="left"><table width="92%" ' +
'border="0" cellspacing="0" cellpadding="0">' +
'<tr><td width="100%" class="sidebarfavorites1">' + morehotel_name + '</td></tr>' +
'<tr><td colspan="5"><table width="67%" border="0" cellspacing="0" cellpadding="0">' +
'<tr><td height="14" width="67%"><div id="layer1" style="background:url(images/main_page/star2.jpg); height:14px;">' + morelayerstars(morerating) +
'</div></td></tr></table></td></tr><tr>' +
for(var count=1;count<=5;count++){
if(count==v){
if(count==5){
s="+";
}
x=x+""+"<a href=# onclick='getSlideValue3("+(count)+");return false;' style=text-decoration:none;><font color=#A7E750>"+count+s+"</font></a>&nbsp;&nbsp;";}
else{
if(count==5){
s="+";
}
@sletix
sletix / gist:239812
Created November 20, 2009 21:46
Penrake demo
<form action="" method="post" id="simple_form">
<p><input type="text" alt="Type login" /></p>
<p><input type="password" alt="Type password" /></p>
</form>
<script type="text/javascript">
$('#simple_form input').penrake();
</script>
@sletix
sletix / gist:239834
Created November 20, 2009 22:19
Penrake demo
<form action="" method="post" id="simple_callback_form">
<p><input type="text" id="name"/></p>
<p><input type="text" id="email"/></p>
</form>
<script type="text/javascript">
$('#name').penrake({value:"Name"});
$('#email').penrake({value:"Email",active:"green"});
</script>
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog $named $network $time
# Required-Stop: $remote_fs $syslog $named $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start nginx at boot time
# Description: Enable service provided by nginx.
### END INIT INFO
#user nobody;
worker_processes 4;
pid logs/nginx.pid;
events {
worker_connections 4096;
}
desc 'Deploy application'
task :deploy do
system("ssh %user%@%server_host% 'cd %path/to/app% && git pull && sudo rake gems:install RAILS_ENV=production && rake db:migrate RAILS_ENV=production && touch tmp/restart.txt'")
puts "Deploy completed"
end
#!/bin/sh
### BEGIN INIT INFO
# Provides: god
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: God
### END INIT INFO