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
//Template: | |
//<input type="text" id="from" ng-model="filter.from" ng-change="getPage(1)" limitMinTo="to" jqdatepicker /> | |
//<input type="text" id="to" ng-model="filter.to" ng-change="getPage(1)" limitMaxTo="from" jqdatepicker /> | |
.directive('jqdatepicker', function () { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: function (scope, element, attrs, ngModelCtrl) { | |
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
mogrify -path ../resized -resize '1280x1200>' -quality 90 *.jpg | |
ridimensiona | |
find . -type f -name "*.jpg" -print0 | xargs -0 mogrify -resize '1280x1200>' -quality 90 | |
ridimensiona jpg in tutte le sottocartelle | |
find . -type f -name "*.jpg" -print0 | xargs -0 mogrify -resize '1280x1200>' -quality 80 | |
ridimensiona e croppa al centro |
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
Original source: http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html | |
YXcstpoguax path/to/file | |
||||||||||| | |
`----------- the type of update being done:: | |
|||||||||| <: file is being transferred to the remote host (sent). | |
|||||||||| >: file is being transferred to the local host (received). | |
|||||||||| c: local change/creation for the item, such as: | |
|||||||||| - the creation of a directory | |
|||||||||| - the changing of a symlink, |
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
(function($){ | |
// | |
//-------------------------------------- Model : Image | |
// | |
Image = Backbone.Model.extend({ | |
defaults: { | |
'delete' : false | |
} | |
}); | |
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
<ul class="nav nav-tabs" id="myTab"> | |
<li class="active"><a href="#home">Home</a></li> | |
<li><a href="#profile">Profile</a></li> | |
<li><a href="#messages">Messages</a></li> | |
</ul> | |
<div class="tab-content"> | |
<div class="tab-pane active" id="home">...</div> | |
<div class="tab-pane" id="profile">...</div> |
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
$sql = "[INSERT QUERY HERE]"; | |
$stmt = Propel::getConnection()->prepare($sql); | |
$stmt->execute(); | |
$res = $stmt->fetchAll(PDO::FETCH_BOTH); | |
foreach($res as $row) | |
{ | |
// ... $pippo = $row['column_name'] | |
// o |
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
jQuery.ajax('http://url.com',{ | |
dataType: 'html', | |
data: jQuery('#mainform').serialize(),// or array { data1 : 'value1',... } | |
success: function(data,textStatus,jqXHR) | |
{ | |
jQuery('#container_to_update').html(data); | |
}, | |
error: function (jqXHR,textStatus,errorThrown) | |
{ | |
jQuery('#message_container').html('Si e\' verificato un errore...'); |
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
$('.typeahead').typeahead({ | |
source: function (query, process) { | |
return $.get('/typeahead', { query: query }, function (data) { | |
return process(data.options); | |
}); | |
} | |
}); |
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
jQuery(function() | |
{ | |
jQuery('body').on('hidden', '.modal', function () { | |
jQuery(this).removeData('modal'); | |
}); | |
} |
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
<div class="container"> | |
<div class="navbar"> | |
<div class="navbar-inner"> | |
<a class="brand" href="#">GE.CO.</a> | |
<ul class="nav"> | |
<li class="active"><a href="#">Gestione Pagine</a></li> | |
<li><a href="#">Utenti</a></li> | |
<li><a href="#">Gestione Sito</a></li> | |
<li><a href="#">Catalogo</a></li> | |
<li><a href="#">Area Riservata</a></li> |