Skip to content

Instantly share code, notes, and snippets.

View be9's full-sized avatar

Oleg Dashevskii be9

View GitHub Profile
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
<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 />
@be9
be9 / main.c
Created February 10, 2009 12:29
#include <stdio.h>
#define USD_RATE 36.0
double usd2rur(double usd)
{
return usd * USD_RATE;
}
double rur2usd(double rur)
@be9
be9 / main2.c
Created February 17, 2009 12:32
#include <stdio.h>
#include <string.h>
int main()
{
int age = 20, nread, height = 100;
float f1 = 100;
double d2 = 200;
char fname[500];
@be9
be9 / main2.c
Created February 17, 2009 12:33
#include <stdio.h>
#include <string.h>
int main()
{
int age = 20, nread, height = 100;
float f1 = 100;
double d2 = 200;
char fname[500];
@be9
be9 / main2.c
Created February 17, 2009 12:33
#include <stdio.h>
#include <string.h>
int main()
{
int age = 20, nread, height = 100;
float f1 = 100;
double d2 = 200;
char fname[500];
def paginate_and_clear(*args)
will_paginate(*args) + content_tag(:div, nil, :class => :clear)
end
#include <stdio.h>
int main(int argc, char **argv)
{
FILE *fp;
int ch;
long pos;
int i;
/*for (i = 0; i < argc; ++i)
#include "bits.h"
int bitcount(unsigned n)
{
int count = 0;
while (n != 0) {
if (n % 2 == 1)
count++;
ruby -e "puts '[xxxx/xxxx]'.gsub(/x/) { (48+rand(10)).chr }"