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
{ | |
"time": 1529411499, | |
"status": "success", | |
"result": { | |
"config": { | |
// | |
"image_generator_url": { | |
"resize_w" : "http://app.castellodelnero.com/phpthumbsup/w/[width]/src/[src]", | |
"resize_h" : "http://app.castellodelnero.com/phpthumbsup/h/[height]/src/[src]", |
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
{ | |
"time": 1529411499, | |
"status": "success", | |
"result": { | |
"config": { | |
"future": null | |
}, | |
"content": { |
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
public function add() { | |
// .... | |
$parentCategories = $this->StoreProductCategories->ParentStoreCategories->find('treeList', [ | |
// Current output: | |
// | |
// Root Category | |
// ↳ Shoes (level 1) | |
// ↳↳ Nike (level 2) | |
// |
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
#!/bin/sh | |
# Crea nuovo virtual host | |
# Autore: Chialastri Mirko <chialastri.mirko@gmail.com> | |
# Configuration | |
VHOST_BASE="/Users/Hiryu/Apps" | |
APACHE_VHOST_ROOT="/etc/apache2" | |
# End Configuration | |
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
alias apache_start="sudo apachectl start" | |
alias apache_stop="sudo apachectl stop" | |
alias apache_restart="sudo apachectl restart" | |
alias apache_config="sudo $EDITOR /usr/local/etc/apache2/2.4/httpd.conf" | |
alias apache_config_check="sudo apachectl -t" | |
alias apache_vhost="sudo $EDITOR /etc/apache2/extra/httpd-vhosts.conf" | |
alias apache_php_fm_config="sudo $EDITOR /etc/apache2/other/fastcgi_factory.conf" | |
# WebServer | |
alias conf_httpd="sudo $EDITOR /usr/local/etc/apache2/2.4/httpd.conf" |
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 | |
/** | |
* Facebook albums | |
* | |
* @example FacebookGallery::albums(PAGE_ID, ACCESS_TOKEN, CACHE_DURATION) | |
*/ | |
Class FacebookGallery { | |
const FB_ALBUM_MAX_JSON_DEPTH = 1000; | |
const FB_ALBUM_TMP = './tmp/cache/facebook'; |