Skip to content

Instantly share code, notes, and snippets.

View zverok's full-sized avatar

Victor Shepelev zverok

View GitHub Profile
log4r:
loggers:
- name: api
outputters: [gelf, stdout]
outputters:
- name: stdout
type: StdoutOutputter
formatter:
type: PatternFormatter
pattern: '[%d #%p] %l -- : %m '
=begin
Воспользовавшись таким классом, ты можешь разделить функционал следующим образом:
MnemosyneClient просто делает
GraphTable.from_json_ld(get '...graph.jsonld', params)
SummaryTable.from_json(get '...summary.json', params)
WordsTable.from_json(get url, params)
....
GraphTable преобразует данные, и хранит их раздельно (отдельно колонки, отдельно метки, отдельно цифры), что удобно для спек;
describe 'инициализация' do
subject{MnemosyneClient.client(client_id, from, to)}
it{should be_kind_of(MnemosyneClient)}
its(:client_id){should == client_id}
its(:fromdate){should == from}
its(:todate){should == to}
end
SELECT * FROM `clients` WHERE (`id` = '395') LIMIT 1
DESCRIBE `mentions_client_395`
SELECT * FROM `mentions_client_395` WHERE (`id` = '431824') LIMIT 1
SELECT * FROM `platforms` WHERE `id` = 63225
SELECT * FROM `users` WHERE `id` = 32213390
SELECT * FROM `social_profiles` WHERE ((`subject_kind` = 'author') AND (`social_profiles`.`subject_id` = 32213390))
SELECT * FROM `social_metrics` WHERE ((`subject_kind` = 'author') AND (`social_metrics`.`subject_id` = 32213390))
SELECT * FROM `journals` WHERE `id` = 32050404
SELECT * FROM `social_profiles` WHERE ((`subject_kind` = 'journal') AND (`social_profiles`.`subject_id` = 32050404))
SELECT * FROM `social_metrics` WHERE ((`subject_kind` = 'journal') AND (`social_metrics`.`subject_id` = 32050404))
Activities & excursions, 183 вложенных — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions
Excursions, 117 вложенных — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions
Boat tours, 40 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/boat
Bus tours, 20 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/bus
Cycling tours, 10 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/cycling
Guided tours, 19 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/guided
Diverse tours, 12 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/misc
Museum tours, 4 — http://www.iamsterdam.com/en-GB/experience/what-to-do/activities-and-excursions/excursions/museums
Walking tours, 12 — http://www.
Johannesburg http://www.joburg.org.za/index.php?option=com_content&id=803&Itemid=162 и http://www.joburgtourism.com/
Cascais http://www.cascais.net
Lviv http://lviv.travel/en/index
Maribor http://maribor-pohorje.si/what-to-do.aspx
Reykjavík http://www.visitreykjavik.is/what-to-do
Gdansk http://www.gdansk.pl/en/
Zaragoza http://www.zaragoza.es/turismo/?idioma=en&seleccionar=OK
Belgrade http://www.tob.rs/en/index.php
Zagreb http://www.zagreb-touristinfo.hr/?l=e
Cardiff http://www.visitcardiff.com/
Twitter 364 3617 274
vk.com 123 1959 150
livejournal.com 0 30 1
facebook.com 2 18 1
diary.ru 0 10 0
IRC.LV - Блоги 0 2 0
Juick 0 2 0
24open.ru 0 1 0
Blogger.com 0 1 0
other 0 9 0
Accommodation > Bed & Breakfast (5)
51.4379,-3.16889; 51.45294,-3.45052; 51.4873,-3.15942; 51.40738,-3.30835; 51.50764,-3.36972
Accommodation > Campus (6)
51.48591,-3.17285; 51.49633,-3.22582; 51.49412,-3.1889; 51.49559,-3.19003; 51.47491,-3.18451; 51.47813,-3.17054
Accommodation > Caravan & Camping (1)
51.48898,-3.19665
Accommodation > Guest House (7)
51.4379,-3.16889; 51.48757,-3.19854; 51.45294,-3.45052; 51.48457,-3.19309; 51.49002,-3.15701; 51.47998,-3.18619; 51.48569,-3.19427
Accommodation > Hostel (5)
51.46476,-3.1621; 51.4782,-3.17828; 51.48335,-3.16488; 51.47847,-3.18562; 51.47901,-3.18609
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.