This file contains 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
form div.required label.control-label:after { | |
content:" * "; | |
color:red; | |
} |
This file contains 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
XP: | |
http://www.amazon.com/Test-Driven-Development-By-Example/dp/0321146530 | |
http://www.amazon.com/Extreme-Programming-Explained-Embrace-Edition/dp/0321278658/ref=pd_sim_b_3 | |
BDD: | |
story: | |
http://dannorth.net/whats-in-a-story/ | |
http://www.amazon.com/The-Cucumber-Book-Behaviour-Driven-Development/dp/1934356808 |
This file contains 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 | |
use \WebGuy; | |
class UserLoginCest | |
{ | |
public function testLoginPage(WebGuy $I) { | |
$I->amOnPage('/user/account/login'); | |
$I->seeInTitle('Войти'); | |
$I->seeLink('Забыли пароль?'); | |
$I->see('Войти'); |
This file contains 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 | |
$I = new WebGuy($scenario); | |
$I->wantTo('Test "contact" page of amyLabs site!'); | |
$I->amOnPage('/contact'); | |
// check title | |
$I->see('Наши контакты','h2'); | |
// check contact information | |
foreach ($contacts as $contact){ |
This file contains 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 | |
/** | |
* Craft by Pixel & Tonic | |
* | |
* @package Craft | |
* @author Pixel & Tonic, Inc. | |
* @copyright Copyright (c) 2013, Pixel & Tonic, Inc. | |
* @license http://buildwithcraft.com/license Craft License Agreement | |
* @link http://buildwithcraft.com |
This file contains 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
use strict; | |
use warnings; | |
use 5.010; | |
use Data::Dumper; | |
use Mojo::UserAgent; | |
use Mojo::JSON; | |
my $user = 'xomaa'; | |
my $url = "https://api.twitter.com/1/favorites.json?count=3&include_entities=1&id=$user"; | |
my $ua = Mojo::UserAgent->new; |
This file contains 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
$comment->setAttributes(array( | |
'userId' => Yii::app()->user->getId(), | |
'name' => Yii::app()->user->getState('nickName'), | |
'email' => Yii::app()->user->getState('email'), | |
)); |
This file contains 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
$comment->setAttributes(array( | |
'userId' => Yii::app()->user->getId(), | |
'name' => Yii::app()->user->getState('nickName'), | |
'email' => Yii::app()->user->getState('email'), | |
)); |
This file contains 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
n = [3, 5, 7] | |
def double_list(x): | |
n.append('!') | |
print n | |
# Don't forget to return your new list! | |
print double_list(n) |
This file contains 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
numbers = [1, 2, 3, 4] | |
double_first(numbers) | |
print numbers |
NewerOlder