Skip to content

Instantly share code, notes, and snippets.

View dario86's full-sized avatar
🏠
Working from home

Dario La Padula dario86

🏠
Working from home
View GitHub Profile
readOnly: false
​
readOnlyDataRimessaInConsegna: true
​
readOnlyDataRitiroFermoDeposito: true
​
readOnlyDestinatario: true
​
readOnlyDestinatarioCAP: true
​
function scegli(id){
var checkedCount=0;
var uncheckCount=0;
var items = $j("." + id);
for(i=0; i<items.length; i++){
if($j(items[i]).attr('checked')=='checked'){
checkedCount++;
}else{
uncheckCount++;
$http = new Client([
'host' => '216.107.137.5',
'proxy' => [
'username' => 'dario',
'password' => '***',
'port' => 29226,
]
]);
$response = $http->get('http://www.mio-ip.it/');
protected function _initializeSchema(\Cake\Database\Schema\Table $table)
{
$table->columnType('image', 'proffer.file');
$table->columnType('logo_big', 'proffer.file');
$table->columnType('logo_active', 'proffer.file');
$table->columnType('logo_inactive', 'proffer.file');
return $table;
}
@dario86
dario86 / mysql.sql
Created February 26, 2015 10:58
sql to cakephp 3.x
SELECT id,
( SELECT COUNT(*)
FROM ads_regions
WHERE ads_regions.ad_id = ads.id
) AS "total_regions"
FROM ads