Skip to content

Instantly share code, notes, and snippets.

View Imomoi's full-sized avatar

Viacheslav Molokov Imomoi

View GitHub Profile
В : [0007]
Во : [0007]
Вол : [0007]
Волж : [0007]
Волжс : [0007]
Волжск : [0007]
Волжска : [0007]
Волжская : [0007]
К : [0002, 0003]
Кр : [0002, 0003]
#!/bin/sh
gem install unicorn
cp unicorn.rb /var/www/railsapp/unicorn.rb
/etc/init.d/apache2 stop
rm /etc/init.d/apache2
update-rc.d apache2 remove
cp unicorn /etc/init.d/unicorn
/etc/init.d/mongrel-cluster stop
rm /etc/init.d/mongrel_cluster
stub = Services::Exemplar.new(nil, nil)
Services::Exemplar.expects(:new).with(Reestr::ReestrHelper, kind_of(Services::OrganizationsCombiner)).returns(stub)
stub.expects(:find).returns([])
ruby ./test_query_parse.rb
=== http://yandex.ru/yandsearch?text=reno&p=0
1 -- "Renault" - официальный сайт -- www.renault.ru
2 -- «RenaMAX» - официальный дилер Renault. Продажи Рено - Logan (Логан), Megane... -- www.renamax.ru
3 -- АВТОСАЛОН RENAULT RTDService. Автомобили Рено у официального дилера в Москве... -- www.rtds.ru
4 -- Дилер Renault (Рено), продажа автомобилей Renault Clio Symbol, Kangoo, Laguna... -- www.renault-avtomir.ru
5 -- Автоцентр "Овод"- ниссан (nissan note, almera classic, teana, pathfinder... -- www.ovod.ru
6 -- Автомобили Renault Logan (Рено Логан), Laguna (Лагуна), Renault Megane... -- www.autokey.ru/renault.php
7 -- Renault: официальные дилеры Рено, купить автомобиль Рено (685 в продаже)... -- renault.carsguru.net
8 -- Запчасти Рено, продажа Рено Логан, Меган, Символ, автозапчасти Рено... -- www.elcom-juna.ru
# module VersionSupport
module VersionSupport
def self.included(base)
base.extend(VersionSupportClassMethods)
end
module VersionSupportClassMethods
def version_column
:ck_version
# Test case for VersionSupport module
require 'test_helper'
module TestModels
class Employee < ActiveRecord::Base
include VersionSupport
validates_presence_of(:last_name)
end
end
<div>
<table id="header">
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</table>
</div>
<div id="scroller" style="overflow:auto;">
<table id="data" />
<div id="scroller">
<table id="data" />
</div>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Table with vertical scroll HTML</title>
<style type="text/css">
table#header {