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
"Exception in thread "main" java.lang.NoClassDefFoundError: org/pentaho/di/core/exception/KettleDatabaseException | |
at java.lang.Class.getDeclaredMethods0(Native Method) | |
at java.lang.Class.privateGetDeclaredMethods(Class.java:2688) | |
at java.lang.Class.privateGetMethodRecursive(Class.java:3035) | |
at java.lang.Class.getMethod0(Class.java:3005) | |
at java.lang.Class.getMethod(Class.java:1771) | |
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) | |
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) | |
Caused by: java.lang.ClassNotFoundException: org.pentaho.di.core.exception.KettleDatabaseException | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:372) |
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 | |
$file = '/home/dllopes/www/teste.php'; | |
$ext = strrchr($file, '.'); | |
$countChar = strlen(str_replace('.', '', $ext)); | |
if($countChar == 4) print 'Extensão possui 4 caracteres além do "."'; | |
if($countChar == 3) print 'Extensão possui 3 caracteres além do "."'; |
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 | |
return [ | |
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015) | |
'AC' => [ | |
1200013 => 'Acrelândia', | |
1200054 => 'Assis Brasil', | |
1200104 => 'Brasiléia', | |
1200138 => 'Bujari', | |
1200179 => 'Capixaba', |
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
Verifying that +nandokstronet is my blockchain ID. https://onename.com/nandokstronet |
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 | |
use Silex\Application; | |
$app = new Application(); | |
/** | |
* Middlewares | |
**/ | |
$app->before(function(){ | |
//Exemplo |
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
/** http://stackoverflow.com/questions/12652234/sql-query-to-remove-special-characters **/ | |
DROP FUNCTION IF EXISTS `stripSpecialChars`; | |
DELIMITER ;; | |
CREATE FUNCTION `stripSpeciaChars`(`dirty_string` varchar(2048),allow_space TINYINT,allow_number TINYINT,allow_alphabets TINYINT,no_trim TINYINT) RETURNS varchar(2048) CHARSET utf8 DETERMINISTIC | |
BEGIN | |
/** | |
* MySQL function to remove Special characters, Non-ASCII,hidden characters leads to spaces, accents etc | |
* Downloaded from http://DevZone.co.in | |
* @param VARCHAR dirty_string : dirty string as input |
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 | |
namespace CodeExpertsApps\App\MVC; | |
use Silex\Application; | |
class View | |
{ | |
private $data = []; | |
private $view; | |
private $app; |
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 | |
$link = ''; | |
$pattern = "*.pdf"; | |
function mountLink(string $file, string $link, string $ext = '.pdf') :string | |
{ | |
return "<a href=\"{$link}{$file}\" target=\"_blank\">" . str_replace($ext, '', $file) . "</a>\n"; | |
} | |
foreach (glob($pattern) as $file) { |
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 | |
namespace AppBundle\Controller; | |
use AppBundle\Entity\Post; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
/** | |
* @Route("/posts") |
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
{% extends 'base.html.twig' %} | |
{% block stylesheets %} | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css"> | |
{% endblock %} | |
{% block body %} | |
<div class="container"> | |
<div class="col-md-12"> | |
{% for p in posts %} |