Skip to content

Instantly share code, notes, and snippets.

View vladson's full-sized avatar

Vladislav Bogomolov vladson

  • London / United Kingdom
View GitHub Profile

Используя фреймворк Ruby on Rails необходимо создать веб-приложение, которое содержит следующее:

Модели:

  • Экскурсия (аттрибуты: заголовок, описание, признак публикации)
  • Категории экскурсии (n-n). Например, историческая, городская, природная, музейная и т.д.
  • Город экскурсии (1-n).

Клиентская часть:

Введение

Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.

http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html

Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.

Ruby

# Ruby fizzbuzz, functional style, no conditionals whatsoever
one_if_divisible_by = lambda{|num, x| (1-((x.to_f / num) % 1).ceil)}.curry
fizz1 = one_if_divisible_by.(3)
buzz1 = one_if_divisible_by.(5)
one_to_word = lambda{|func, word, n| word * func.(n)}.curry
one_to_n_to_s = lambda{|func, n| n.to_s * func.(n)}.curry
fizz = one_to_word.(fizz1,'Fizz')
buzz = one_to_word.(buzz1,'Buzz')
@vladson
vladson / README.md
Created December 10, 2012 05:16 — forked from JakeWharton/README.md
Maven pom for Google Play services

Maven + Google Play Services

The recently released version of Google Play Services presents itself as a library project with string and attribute resources coupled with a .jar in the libs/ folder that has been compiled against internal APIs.

While this is convenient for users of IDEs or Ant, it presents a problem for those using proper build systems (e.g., Maven, Gradle) with dependency management. Inside the .jar there are a lot of classes which reference static attributes on the com.google.android.gsm.R class. This means that