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
{ | |
"name": "real34/agist", | |
"description": "Sample composer file to proving hosting micropackages on Gists works", | |
"license": "MIT", | |
"autoload": { | |
"classmap": ["."] | |
} | |
} |
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
## | |
# APC recipe | |
# => convenience rules for dealing with APC in applications | |
## | |
_cset(:apc_webroot) { "" } | |
namespace :apc do | |
desc <<-DESC | |
Create a temporary PHP file to clear APC cache, call it (using curl) and removes it |
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
// usage: log('inside coolFunc', this, arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}}; | |
// make it safe to use console.log always | |
(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}}) | |
(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}()); | |
// place any jQuery/helper plugins in here, instead of separate, slower script files. |
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 | |
/** | |
* Action Helper | |
* Allows to generate simple CRUD links for a given object and customize its rendering | |
* It only works for default baked urls | |
* | |
* Usage: | |
* <code> | |
* $this->Actions->setActionsOptions($order['Order']['id'], true); | |
* echo $this->Actions->view(); |
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
## | |
# HTTP Authentification deployment Recipe | |
# => Add htaccess password protection when deploying, with the correct htpassword file for the passed users | |
## | |
_cset (:http_auth_users) {[ | |
["admin", "password"] | |
]} | |
_cset (:http_auth_path) { "" } # Path of the directory to add http auth, from the release root | |
namespace :httpAuth do |
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
## | |
# CakePHP2.x deployment recipe | |
# TODO Implement a way to revert migrations given the map.php files of a previous release | |
# TODO Make a difference between tmp files and others | |
# TODO Give a way to the application to define its own custom directories | |
## | |
_cset (:app_symlinks) { [ | |
"/webroot/cache_css", "/webroot/cache_js", | |
"/tmp" | |
] } |
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 | |
App::import('Core', 'Controller'); | |
App::import('Component', 'Email'); | |
/** | |
* Task permitting to use the Email component from a shell | |
* @see http://bakery.cakephp.org/articles/view/emailcomponent-in-a-cake-shell | |
*/ | |
class EmailTask extends Shell { | |
/** | |
* Controller class |
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
/** | |
* Class allowing to call a method only after a specific delay if no other call was made | |
* It is useful to prevent triggering the same callback multiple times quickly. For instance | |
* ajax calls on keyup. It introduces a delay before triggering the callback | |
* | |
* Usage: | |
* var refreshResults = new DelayedCall(1000, function() { alert('Mouse not moved for 1 second'); }) | |
* $('body').mousemove(function() { refreshResults.trigger(); }) | |
* | |
* @param delay Inactivity delay in millisecond before triggering the callback |
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
## | |
# CakePHP deployment recipe | |
# TODO Implement a way to revert migrations given the map.php files of a previous release | |
# TODO Make a difference between tmp files and others | |
# TODO Give a way to the application to define its own custom directories | |
## | |
_cset (:app_symlinks) { [ | |
"/webroot/cache_css", "/webroot/cache_js", | |
"/tmp" | |
] } |
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
Gmap Locations Configuration | Configuration de Gmap Locations | |
---|---|---|
Google Map API key | Clé d'API Google Map | |
You can get it here http://code.google.com/apis/maps/signup.html. eg.ABQIAAAA8Y84y7AfnkshoyWtI5fyShQikMkOUW3vCdojO3o0Jxipwb7AThTTtKgn8GKXuPGojAtR759m5cLSww | Vous pouvez en obtenir une ici http://code.google.com/apis/maps/signup.html. ex:ABQIAAAA8Y84y7AfnkshoyWtI5fyShQikMkOUW3vCdojO3o0Jxipwb7AThTTtKgn8GKXuPGojAtR759m5cLSww | |
Search Configuration | Configuration de la Recherche | |
Show Search block | Afficher le bloc de Recherche | |
Show Search Radius Circle | Afficher le Cercle du Rayon de Recherche | |
in search mode shows colored circle for searched radius on map | lors du mode de recherche afficher un cercle de couleur pour le rayon recherché sur la carte | |
Search Circle Radius Color | Couleur du Cercle du Rayon de Recherche | |
Front End Title | Titre Front End | |
You can leave it blank if not need | Laissez vide si vous n'en n'avez pas besoin |