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
select o.created,o.last_ddl_time | |
from user_objects o | |
where o.object_name='MY_VIEW' and o.object_type='VIEW'; |
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
SELECT round(DBMS_LOB.getlength(A.FILE)/1024) KB FROM MY_TABLE A |
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 | |
$lista = array_map('unserialize', array_unique(array_map('serialize', $listaAtual))); |
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
/* By default, required field labels are rendered with the "required" class */ | |
.required:after { | |
content: "*"; | |
} |
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
select f.constraint_name, f.table_name tabela_filha, p.table_name tabela_pai | |
from user_constraints f, user_constraints p | |
where f.constraint_type = 'R' | |
and f.r_constraint_name = p.constraint_name | |
-- constraint_type (http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_1037.htm): | |
-- R -> Referential (FK) | |
-- C -> Check constraint on a table | |
-- P -> Primary Key | |
-- U -> Unique Key |
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
$ curl --data-binary @README.md -H 'Content-Type:text/plain' https://api.github.com/markdown/raw |
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 | |
try{ | |
$em = $this->getDoctrine()->getManager(); | |
$em->persist($entity); | |
$em->flush(); | |
$this->get('session')->setFlash('notice', 'Article inserted!'); | |
return $this->redirect($this->generateUrl('article_show', array('id' => $entity->getId()))); | |
}catch(\Exception $e){ |
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 | |
// src/Bundle/Form/EventListener/AddExpiresAtFieldSubscriber.php | |
class AddExpiresAtFieldSubscriber implements EventSubscriberInterface | |
{ | |
private $factory; | |
public function __construct(FormFactoryInterface $factory) | |
{ | |
$this->factory = $factory; |
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
(e.g. for email templates) | |
Just set the assets_base_urls option under framework - templating key in your app/config/config.yml: | |
framework: | |
templating: | |
assets_base_urls: http://www.something.com/web/ | |
http://symfony.com/doc/current/reference/configuration/framework.html#assets-base-urls |
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
diff --git a/composer.json b/composer.json | |
index 8f905d7..c2d7588 100644 | |
--- a/composer.json | |
+++ b/composer.json | |
@@ -6,18 +6,18 @@ | |
}, | |
"require": { | |
"php": ">=5.3.3", | |
- "symfony/symfony": "2.1.*", |