This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<quotes> | |
<quote> | |
<id>1</id> | |
<authorName>Н. Фоменко</authorName> | |
<text>порой мне кажется, что я | |
делаю какое-то дерьмо, | |
но когда я вижу, что делают | |
другие, то я чувствую себя | |
гением</text> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<quotes> | |
<quote> | |
<authorName>Н. Фоменко</authorName> | |
<text>порой мне кажется, что я | |
делаю какое-то дерьмо, | |
но когда я вижу, что делают | |
другие, то я чувствую себя | |
гением</text> | |
</quote> |
This file contains hidden or 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
if (rect.Contains(Position)) // position - это координаты подростка | |
{ | |
if (Position.Y < (rect.y + rect.height) && Math.Abs(Position.X -rect.x) < 30) | |
Velocity.X *= -1; | |
else if (Position.X > rect.x && Math.Abs(Position.Y - (rect.y + rect.height)) < 30) | |
Velocity.Y *= -1; | |
} |
This file contains hidden or 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 look_and_say(number, iterate) | |
number = number.to_s | |
iterate.times do | |
puts number | |
number = number.gsub(/(.)\1*/) {|s| "#{s.size}#{s[0]}"} | |
end | |
end |
This file contains hidden or 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 sequence(first_number, amount) | |
num = first_number.to_s.split(%r{\D*}) | |
itteration = 0 | |
while itteration < amount | |
string="" | |
count = 0 | |
num.each do |f| | |
a ||= f | |
if (a == f) | |
count++ |
This file contains hidden or 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
Feature: does not create circle_invite for invited user and patricia | |
In order to fix bug | |
As an user | |
I want to fix this bug | |
Background: | |
Given I am logged in as "regular" user "Voznyak" | |
Given Patricia in my circle | |
Given "Jackie Chan", was invited by me, and he in my circle | |
This file contains hidden or 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
Современная мода и виктимность | |
Я хочу немного поговорить о современной моде. Вообще мода – это форма стандартизованного поведения, когда человек подгоняется под стандарт. Мода имеет разные задачи. Одна из ее функций – это психологическая разрядка. Но мода – это также способ привлечения к себе внимания. | |
Какую опасность представляет современная мода? Какая скрытая ловушка здесь есть? Многие девушки стараются одеваться модно, пытаясь быть на уровне, стремясь быть похожими на моделей с обложек журналов. И они не всегда понимают, почему на улице с ними начинают происходить нежелательные и неприятные события. Дело в том, что есть несколько стилей оформления своей внешности. Одним из них является стиль женщины-вампира. Такие женщины пытаются одеться так, чтобы максимально сразить мужчин, наповал. Если вы вспомните фильм «Девчата», там девушка Тося мечтательно говорила о том, чтобы «мужчины падали к ее ногам штабелями». | |
Так вот такие женщины заставляют мужчин падать обессиленными после одного взгляда на них. Вся совр |
This file contains hidden or 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
ilya@ubuntu:~$ sudo fdisk -l | |
[sudo] password for ilya: | |
Диск /dev/sda: 500.1 Гб, 500107862016 байт | |
255 головок, 63 секторов/треков, 60801 цилиндров, всего 976773168 секторов | |
Units = секторы of 1 * 512 = 512 bytes | |
Размер сектора (логического/физического): 512 байт / 512 байт | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Идентификатор диска: 0xd2ab8da7 |
NewerOlder