- version 3.6
Check those constraints:
$this->anything()
| public class DateTools { | |
| private final static TimeZone GMT = TimeZone.getTimeZone("GMT"); | |
| private static final SimpleDateFormat YEAR_FORMAT = new SimpleDateFormat("yyyy", Locale.US); | |
| private static final SimpleDateFormat MONTH_FORMAT = new SimpleDateFormat("yyyyMM", Locale.US); | |
| private static final SimpleDateFormat DAY_FORMAT = new SimpleDateFormat("yyyyMMdd", Locale.US); | |
| private static final SimpleDateFormat HOUR_FORMAT = new SimpleDateFormat("yyyyMMddHH", Locale.US); | |
| private static final SimpleDateFormat MINUTE_FORMAT = new SimpleDateFormat("yyyyMMddHHmm", Locale.US); | |
| private static final SimpleDateFormat SECOND_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss", Locale.US); |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |
| # setup vagrant | |
| gem install vagrant | |
| vagrant box add lucid32 http://files.vagrantup.com/lucid32.box | |
| mkdir my_vagrant_test | |
| cd my_vagrant_test | |
| vagrant init lucid32 | |
| vim Vagrantfile | |
| vagrant up | |
| vagrant ssh |
| #!/bin/sh | |
| # | |
| # Runs during git flow release start | |
| # | |
| # Positional arguments: | |
| # $1 Version | |
| # | |
| # Return VERSION - When VERSION is returned empty gitflow | |
| # will stop as the version is necessary | |
| # |
| import SimpleHTTPServer | |
| class CORSHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def send_head(self): | |
| """Common code for GET and HEAD commands. | |
| This sends the response code and MIME headers. | |
| Return value is either a file object (which has to be copied | |
| to the outputfile by the caller unless the command was HEAD, | |
| and must be closed by the caller under all circumstances), or |
| class CacheBaseHandler(tornado.web.RequestHandler): | |
| def prepare(self): | |
| cached = self.application.db.cache.find_one({"slug": self.request.path}) | |
| if cached is not None: | |
| self.write(cached["content"]) | |
| self.finish() | |
| def render_string(self, template_name, **kwargs): | |
| html_generated = \ |
| <?php | |
| /* | |
| +------------------------------------------------------------------------+ | |
| | Phalcon Framework | | |
| +------------------------------------------------------------------------+ | |
| | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) | | |
| +------------------------------------------------------------------------+ | |
| | This source file is subject to the New BSD License that is bundled | | |
| | with this package in the file docs/LICENSE.txt. | |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Zend Framework (http://framework.zend.com/) | |
| * | |
| * @link http://github.com/zendframework/zf2 for the canonical source repository | |
| * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
| * @license http://framework.zend.com/license/new-bsd New BSD License | |
| */ |