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
for (Object myClass : this.classes) { | |
myClass.myMethod(); | |
} |
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 | |
class MyClass { | |
private $var = 'Variabile privata'; | |
} | |
$getter = function() { | |
return $this->var; | |
}; |
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
<div class="col-xs-6"> | |
<?php | |
$content = $this->fetch('heading_right'); | |
if ($content) { | |
echo $content; | |
} else { | |
if ($authUser['role_id'] == 2 && !empty($company['logo']) && !empty($company['logo_dir'])) { ?> | |
<div class="pull-right hidden-sm hidden-xs"> |
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
This is a (multiple allowed): | |
* [x] bug | |
* [ ] enhancement | |
* [ ] feature-discussion (RFC) | |
* CakePHP Version: 3.2.3 | |
* Platform and Target: nginx 1.8, php 5.6.11 | |
### What you did |
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 | |
/** | |
* Conteggia le view alla scheda aziendale | |
* | |
* Opzioni: | |
* | |
* - companies_ids: (int) ID dell'azienda da filtrare | |
* - start_date: (datetime) Data di inizio | |
* - end_date: (datetime) Data di fine | |
* - interval: (string) Intervallo (today) |
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
{ | |
"name": "cakephp/app", | |
"description": "CakePHP skeleton app", | |
"homepage": "http://cakephp.org", | |
"type": "project", | |
"license": "MIT", | |
"require": { | |
"php": ">=5.4.16", | |
"cakephp/cakephp": "~3.2", | |
"mobiledetect/mobiledetectlib": "2.*", |
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
package util; | |
import java.util.HashMap; | |
import java.util.List; | |
import opennlp.tools.util.Span; | |
import org.junit.After; | |
import org.junit.AfterClass; | |
import org.junit.Before; | |
import org.junit.BeforeClass; | |
import org.junit.Test; |
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
private HashMap<String, List<String>> finderRegex; | |
public void loadRegexExtractor() throws SQLException { | |
Connection conn = this.connectionPool.getConnection(); | |
ResultSet rs = conn.createStatement().executeQuery("select * from regex where ner='extractor'"); | |
while (rs.next()) { | |
List<String>> listaNuova = finderRegex.get(rs.getString("model")); | |
listaNuova.add(rs.getString("pattern")); | |
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
if (($percentage != 100 && $entity->get('visible') == 1) || | |
($percentage == 100 && $entity->get('visible') == 0) | |
) { | |
return 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
var serialized = { | |
default : { | |
sectors: 'bla', | |
regions: 'bla', | |
provinces: 'bla', | |
professions: 'bla', | |
}, | |
saved : { | |
sectors: 'bla', |
NewerOlder