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
Хранение в базе Поля на форме | |
- Мебель props: [@цвет] [@цвет] | |
@Цвет | |
- Столы props: [@тип_стола,@кол-во_ног] [@цвет, @тип_стола, @кол-во_ног] | |
@тип_стола ^ | |
@кол-во_ног унаследован от Мебель | |
- Cтол Икеа props: [@артикул] [@цвет, @тип_стола, @кол-во_ног, @артикул] |
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
<html> | |
<head> | |
function handleMessage(msgEvent) { | |
var messageName = msgEvent.name; | |
var messageData = msgEvent.message; | |
if (messageName === "playClicked") | |
_gaq.push(['_trackEvent', 'playerControls', 'PlayClicked']); | |
} | |
} |
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
var towns = ['Калининград', 'Вологда', 'Алматы', 'Дмитров', 'Архангельск', 'Тобольск', 'Краков']; | |
var variants = []; | |
function get_town(town, towns, result, index){ | |
if(!index) | |
index = 1; | |
var i; | |
var suggested_towns = []; |
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
from twisted.web import server, resource | |
from twisted.internet import reactor, threads | |
import time | |
class Simple(resource.Resource): | |
isLeaf = True | |
def render_GET(self, request): | |
d = threads.deferToThread(self.loooong_rendering, request) |
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
class Complex | |
{ | |
// DECLARE THE SPECIFIED GLOBAL FUNCTION AS A FRIEND | |
// OF THIS CLASS... | |
friend Complex operator+(double, Complex); | |
public: | |
Complex(float re, float im) | |
: myReal(re), myImag(im) |
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
<?php | |
// PHP Proxy example for Yahoo! Web services. | |
// Responds to both HTTP GET and POST requests | |
// | |
// Author: Jason Levitt | |
// December 7th, 2005 | |
// | |
// Allowed hostname (api.local and api.travel are also possible here) | |
define ('HOSTNAME', 'http://pipes.yahoo.com/pipes/pipe.run'); |
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
<?php | |
// PHP Proxy example for Yahoo! Web services. | |
// Responds to both HTTP GET and POST requests | |
// | |
// Author: Jason Levitt | |
// December 7th, 2005 | |
// | |
// Allowed hostname (api.local and api.travel are also possible here) | |
define ('HOSTNAME', 'http://pipes.yahoo.com/'); |
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
{Програма для решения СЛАУ методом Гаусса с выбором максимального главного элемента | |
Переменные: | |
i,j - вспомогательные переменные используемые как счетчики в цикле.(Индексы элементов матриц) | |
n - переменная учавствующая в формировании цикла | |
str/stlb - число строк/столбцов в РАСШИРЕННОЙ матрице | |
S - используется для накопления суммы чего-либо | |
M - максимальный главный элемент на данном шаге | |
l - вспомогательная переменная, используется в кач-ве "тарелки" при перестановке двух элементов | |
Матрицы: | |
A - расширенная матрица данная по условию задачи |
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
"1M1 Records" | |
"1st & 15th Entertainment" | |
"12 Apostles" | |
"12 Inch Records" | |
"12 T\303\263nar" | |
"12k" | |
"13th Planet Records" | |
"143 Records" | |
"1965 Records" | |
"2 Tone Records" |
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
Итак | |
Проверить логин на форум, что бы зашло, и вариант с ошибкой логина. | |
Должен попробовать зайти в кунсткамеру и получить ошибку что нет прав viewforum.php?f=68 (так как она только для админов) | |
Так как я модератор PDA то можешь поизвращаться над этой конферецией и попробовать создать топик и написать туда комментарий. (нужно проверить и что бы с пустым текстом не добавлялось тоже) | |
Это все надо выделить в разные stories которые в cucumber. | |
Объект User должен быть сделан через Factory_girl | |
Все ассерты должны быть сделаны через RSpec методы should, и тому подобное |
NewerOlder