Skip to content

Instantly share code, notes, and snippets.

for (Object myClass : this.classes) {
myClass.myMethod();
}
<?php
class MyClass {
private $var = 'Variabile privata';
}
$getter = function() {
return $this->var;
};
<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 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
<?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)
{
"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.*",
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;
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"));
if (($percentage != 100 && $entity->get('visible') == 1) ||
($percentage == 100 && $entity->get('visible') == 0)
) {
return true;
}
var serialized = {
default : {
sectors: 'bla',
regions: 'bla',
provinces: 'bla',
professions: 'bla',
},
saved : {
sectors: 'bla',