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
| sudo apt-get install ruby rubygems | |
| sudo gem install compass | |
| cd Desktop/techup-mobile/lib/touch/resources/sass | |
| /var/lib/gems/1.8/bin/compass watch |
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 | |
| /* | |
| * This file is part of the Symfony package. | |
| * | |
| * (c) Fabien Potencier <[email protected]> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ |
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
| diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php | |
| index b29e279..3adec08 100644 | |
| --- a/phpBB/includes/db/dbal.php | |
| +++ b/phpBB/includes/db/dbal.php | |
| @@ -346,7 +346,7 @@ class dbal | |
| } | |
| else | |
| { | |
| - $values[] = $this->_sql_validate_value($var); | |
| + $values[] = $this->_sql_validate_value($var, $key); |
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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
| #!/usr/bin/env php | |
| <?php | |
| $paths = array(); | |
| if (isset($_SERVER['argv'])) | |
| { | |
| $paths = $_SERVER['argv']; | |
| array_shift($paths); | |
| if (!$paths) |
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"?> | |
| <configuration> | |
| <system.webServer> | |
| <defaultDocument> | |
| <files> | |
| <clear /> | |
| <add value="index.php" /> | |
| </files> | |
| </defaultDocument> |
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
| # You can set these variables from the command line. | |
| SPHINXOPTS = | |
| SPHINXBUILD = sphinx-build -c . | |
| PAPER = | |
| BUILDDIR = build | |
| SOURCE = source |
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 code works perfectly on two different servers (running PHP 5.3.2 and PHP 5.3.3). | |
| Unfortunately it fails on the third one (PHP 5.3.4). | |
| On very first request, just after downloading silex.phar, it produces: | |
| Fatal error: Class 'Silex\Application' not found in /home/users/abc/public_html/index.php on line 7 | |
| And any following request ends with: | |
| Fatal error: Uncaught exception 'PharException' with message '__HALT_COMPILER(); must be declared in a phar' in /home/users/abc/public_html/silex.phar:8 |
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 MyFormType extends AbstractFormType | |
| { | |
| public function configure(FormBuilder $builder, array $options) | |
| { | |
| $builder->setDataClass("MyProject\FooEntity"); | |
| $builder->add('my.sub_form'); | |
| $builder->add('text', 'name', array('max_length' => 127, 'id' => 'foo')); | |
| $builder->add('date', 'created'); |
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 | |
| header('Content-Length: 6'); | |
| echo('before'); | |
| flush(); | |
| sleep(4); | |
| echo('after'); |