Skip to content

Instantly share code, notes, and snippets.

View luisuribe's full-sized avatar

Luis Uribe luisuribe

View GitHub Profile
@luisuribe
luisuribe / curl.md
Created October 7, 2021 19:51 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@luisuribe
luisuribe / pagination.ctp
Created November 20, 2012 22:36 — forked from slywalker/pagination.ctp
pagination element for CakePHP 1.x on twitter bootstrap
<?php
if (!isset($modules)) {
$modulus = 11;
}
if (!isset($model)) {
$models = ClassRegistry::keys();
$model = Inflector::camelize(current($models));
}
?>
<div class="pagination">
@luisuribe
luisuribe / paging.ctp
Created August 8, 2012 22:37 — forked from justinyost/paging.ctp
Paging Element for Twitter Bootstrap and CakePHP 2.0+
<?php $span = isset($span) ? $span : 8; ?>
<?php $page = isset($this->request->params['named']['page']) ? $this->request->params['named']['page'] : 1; ?>
<div class="pagination">
<ul>
<?php echo $this->Paginator->prev(
'&larr; ' . __('Previous'),
array(
'escape' => false,
'tag' => 'li'
),