composer require squizlabs/php_codesniffer
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/homestead.rb b/homestead.rb | |
index 8d77a34..3fff00d 100644 | |
--- a/homestead.rb | |
+++ b/homestead.rb | |
@@ -19,7 +19,8 @@ class Homestead | |
config.vm.hostname = settings["hostname"] ||= "homestead" | |
# Configure A Private Network IP | |
- config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10" | |
+ # config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10" |
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
CREATE USER NOME_USUARIO_AQUI IDENTIFIED BY SENHA_USUARIO_AQUI DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK; | |
GRANT CREATE SESSION TO NOME_USUARIO_AQUI; | |
GRANT CREATE TABLE TO NOME_USUARIO_AQUI; | |
ALTER USER NOME_USUARIO_AQUI QUOTA UNLIMITED ON USERS; | |
GRANT EXP_FULL_DATABASE TO NOME_USUARIO_AQUI; | |
GRANT CONNECT TO NOME_USUARIO_AQUI; | |
GRANT create session, alter session TO NOME_USUARIO_AQUI; | |
GRANT create procedure to NOME_USUARIO_AQUI; | |
GRANT execute any procedure to NOME_USUARIO_AQUI; | |
GRANT create table TO NOME_USUARIO_AQUI; |
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 | |
JHtml::_('script', 'media/jui/js/article-img-credits.js', false, false, false, false, true); |
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 | |
// Importar se for utilizar o JUserHelper | |
jimport( 'joomla.user.helper' ); | |
$userId = JUserHelper::getUserId('username'); | |
$user = JFactory::getUser($userId); |
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 | |
JLoader::register('ComponentClassNameHelper', JPATH_COMPONENT); |
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 | |
$user = JFactory::getUser(); | |
$isroot = $user->authorise('core.admin'); |
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
js = jQuery.noConflict(); | |
js(document).on('click', '.close', function () { | |
// Pausar e resetar video do YouTube | |
js(".modal iframe").attr("src", js(".modal iframe").attr("src")); | |
js('audio').each(function () { | |
this.pause(); // Pausar áudio | |
this.currentTime = 0; // Resetar tempo | |
}); |
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
.filter('parseUrl', function ($sce) { | |
var urls = /(\b(https?|ftp):\/\/[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim; | |
var emails = /(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim; | |
return function (text) { | |
if (text.match(urls)) { | |
text = text.replace(urls, '<a href="$1">$1</a>'); | |
} | |
if (text.match(emails)) { | |
text = text.replace(emails, '<a href=\"mailto:$1\">$1</a>'); |
NewerOlder