- http://tools.ietf.org/html/rfc5988
- https://developer.github.com/v3/#pagination
- https://gist.github.com/niallo/3109252
function parse_link_header(header) {
<?php | |
/** | |
* CodeIgniter 4 - Header Link Pagination | |
* | |
* Usage: | |
* | |
* $this->response->setHeader('Link', $pager->links('default', 'header_link')) | |
* | |
* @author Natan Felles <[email protected]> | |
* @link https://gist.github.com/natanfelles/9f4ccf4d10dd0dbf72599b26bd11ec0a |
/* | |
* parse_link_header() | |
* | |
* Parse the Github Link HTTP header used for pageination | |
* http://developer.github.com/v3/#pagination | |
*/ | |
function parse_link_header(header) { | |
if (header.length == 0) { | |
throw new Error("input must not be of zero length"); | |
} |
function parse_link_header(header) {
#!/usr/bin/env php | |
<?php | |
/* | |
* Filter to fill the IP gaps in a MaxMind GeoLite tables. | |
* | |
* For every missing range in the file it puts a dummy one. | |
*/ | |
$types = [ | |
'asnum' => [0, 0, 1, "%s,%s,\"-\"\n"], | |
'blocks' => [2, 0, 1, "\"%s\",\"%s\",\"1\"\n"], |
/** | |
* Sublime Markdown Popups Styles for Theme - One Dark | |
* | |
* @author Natan Felles <[email protected]> | |
*/ | |
body { | |
background-color: #2f343f; | |
color: #abb2bf; | |
font-size: 0.9rem; | |
} |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^domain.tld$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.domain.tld$ | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule (.*) /public/$1 [L] |
People
![]() :bowtie: |
๐ :smile: |
๐ :laughing: |
---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |