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
default_run_options[:pty] = true | |
set :use_sudo, false | |
set :user, "deploy" | |
set :application, "flats-hunter.ru" | |
set :deploy_to, "/home/deploy/#{application}" | |
# GIT | |
set :scm, :git |
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
<h1>Войти в систему</h1> | |
<% form_for @account_session, :url => account_session_path do |f| %> | |
<%= f.error_messages :header_message => 'Ошибка входа' %> | |
<%= f.label :email, "E-mail" %><br /> | |
<%= f.text_field :email %><br /> | |
<br /> | |
<%= f.label :password, "Пароль" %><br /> | |
<%= f.password_field :password %><br /> | |
<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
#include <stdio.h> | |
#define USD_RATE 36.0 | |
double usd2rur(double usd) | |
{ | |
return usd * USD_RATE; | |
} | |
double rur2usd(double rur) |
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
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int age = 20, nread, height = 100; | |
float f1 = 100; | |
double d2 = 200; | |
char fname[500]; | |
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
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int age = 20, nread, height = 100; | |
float f1 = 100; | |
double d2 = 200; | |
char fname[500]; | |
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
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
int age = 20, nread, height = 100; | |
float f1 = 100; | |
double d2 = 200; | |
char fname[500]; | |
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
def paginate_and_clear(*args) | |
will_paginate(*args) + content_tag(:div, nil, :class => :clear) | |
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
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
FILE *fp; | |
int ch; | |
long pos; | |
int i; | |
/*for (i = 0; i < argc; ++i) |
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
#include "bits.h" | |
int bitcount(unsigned n) | |
{ | |
int count = 0; | |
while (n != 0) { | |
if (n % 2 == 1) | |
count++; | |
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
ruby -e "puts '[xxxx/xxxx]'.gsub(/x/) { (48+rand(10)).chr }" |