Assume we already configured xdebug (otherwise use google).
This code is very similar to the command executed internally by php app/console server:run
.
#!/usr/bin/env bash | |
# Search composer packages in SRC_PATH | |
# and split them into subtrees | |
# | |
# examples: | |
# bash subtree-split.sh | |
# SRC_PATH=bundles bash subtree-split.sh | |
# | |
# see: |
#!/usr/bin/env bash | |
if [[ -x $(which php) ]]; then | |
PHP_ICU_VERSION=$(php -r 'echo defined("INTL_ICU_VERSION") ? INTL_ICU_VERSION : "none";') | |
echo "PHP ICU version: $PHP_ICU_VERSION" | |
else | |
echo 'WARNING: PHP not installed' | |
PHP_ICU_VERSION=none | |
fi |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script src="life.js"></script> | |
</body> | |
</html> |
<html> | |
<head> | |
<title>Технические работы</title> | |
<meta charset='utf-8' /> | |
<style type="text/css"> | |
html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; |
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
sudo dpkg -i scala-2.11.7.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.1/sbt.deb | |
sudo dpkg -i sbt.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
<?php | |
// Run after $ php app/console doctrine:mapping:convert annotation | |
$propertyRegExp = '~( \/\*\*[^/]+?\*\/)\s+(?:private)|(?:protected) \$(\w+)\;~'; | |
$classRegExp = '~(\/\*\*[\s\S]+?\*\/)\s+(class \w+)~'; | |
$to = ''; | |
$from = ''; |
satis/ | |
web/ | |
composer.phar |
<?php | |
class SeleniumServer | |
{ | |
private $downloadUrl = 'http://selenium-release.storage.googleapis.com/2.40/selenium-server-standalone-2.40.0.jar'; | |
private $jarLocation; | |
private $process; | |
public function __constuct($location = null, $downloadUrl = null) | |
{ |