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
isidromerayo@nikki:~/projects/Symfony2$ symfony.phar new my_project_installer_2.5 2.5.6 | |
Downloading Symfony... | |
4.74 MB/4.74 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%% | |
Preparing project... | |
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
~/projects/PHP$ php -m | |
[PHP Modules] | |
bcmath | |
bz2 | |
calendar | |
Core | |
ctype | |
curl | |
date | |
dba |
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
isidromerayo@hurhinfext16:~$ curl -LsS http://symfony.com/installer > symfony.phar | |
isidromerayo@hurhinfext16:~$ mv symfony.phar bin/ | |
isidromerayo@hurhinfext16:~$ chmod a+x bin/symfony.phar | |
isidromerayo@hurhinfext16:~$ symfony.phar | |
isidromerayo@hurhinfext16:~$ cd projects/PHP/ | |
isidromerayo@hurhinfext16:~/projects/PHP$ symfony.phar new my_project | |
Downloading Symfony... | |
4,74 MB/4,74 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100% |
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
1) Initialize | |
# Fork button github | |
# From my fork to my local | |
$ git clone https://github.com/isidromerayo/java-libs openEHR_java-libs | |
# Add original repository | |
$ git remote add upstream https://github.com/openEHR/java-libs |
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
CREATE TABLE gender ( | |
gender_cd integer NOT NULL, | |
gender_name varchar(64) NOT NULL, | |
gender_description varchar(255), | |
gender_code varchar(64) NOT NULL | |
) WITHOUT OIDS; | |
insert into gender (gender_cd, gender_name, gender_description, gender_code) values (1, 'Female', 'Female', 'F'); | |
insert into gender (gender_cd, gender_name, gender_description, gender_code) values (2, 'Male', 'Male', 'M'); | |
insert into gender (gender_cd, gender_name, gender_description, gender_code) values (3, 'Other', 'Other', 'O'); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>es.sacyl.hcuv.tutorial</groupId> | |
<artifactId>testing-your-restful-web-services</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> |
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 | |
class SimpleTestListener implements \PHPUnit_Framework_TestListener | |
{ | |
public function endTest(\PHPUnit_Framework_Test $test, $time) | |
{ | |
printf("Test '%s' terminado y ha tardado %s segundos " . PHP_EOL, | |
get_class($test) . '=>' . $test->getName(), | |
number_format($time,3) | |
); |
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 | |
$route = static::$kernel->getContainer()->get('router')->generate('hcuv_comment_create', array('blog_id' => 1)); | |
$crawler = $client->request('POST', $route); | |
$messageError = ''; // $crawler->filter('div.text_exception h1')->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
[remote "all"] | |
url = https://github.com/isidromerayo/simple_php_skeleton.git | |
url = https://bitbucket.org/isidromerayo/skeleton_php_project.git | |
# fetch = +refs/heads/*:refs/remotes/origin/* |
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
# | |
svn mkdir --parents http://host/path/to/repo/{trunk,tags,branches} \ | |
-m "Standard layout for $project" | |
git svn init -s http://host/path/to/repo/ | |
git svn fetch | |
git rebase trunk master | |
git svn dcommit |