Skip to content

Instantly share code, notes, and snippets.

View jacricelli's full-sized avatar

Jorge Alberto Cricelli jacricelli

  • VEMO S.A
  • Zárate, Buenos Aires, Argentina
View GitHub Profile
@aramis-it
aramis-it / pagination.php
Created November 16, 2016 02:55
pagination, cakephp 3, bootstrap 4
<nav aria-label="Page navigation">
<ul class="pagination">
<?php
$this->Paginator->templates([
'prevActive' => '<li class="page-item"><a class="page-link" href="{{url}}">{{text}}</a></li>'
]);
$this->Paginator->templates([
'prevDisabled' => '<li class="page-item disabled"><a class="page-link" href="{{url}}">{{text}}</a></li>'
]);
?>
@stanlemon
stanlemon / deploy
Created March 16, 2013 19:31
A sample ./.openshift/action_hooks/deploy for Red Hat's OpenShift platform to install composer dependencies upon deployment.
#!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
export COMPOSER_HOME="$OPENSHIFT_DATA_DIR/.composer"
if [ ! -f "$OPENSHIFT_DATA_DIR/composer.phar" ]; then
curl -s https://getcomposer.org/installer | /usr/local/zend/bin/php -- --install-dir=$OPENSHIFT_DATA_DIR
@joshdick
joshdick / git_prompt.png
Last active February 12, 2024 04:16
My Git prompt for zsh.
git_prompt.png
@predominant
predominant / gist:4006133
Created November 3, 2012 05:16
Database Structure for CakePHP Workshop at PHP Matsuri 2012
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` char(36) NOT NULL,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`)
@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: