This file contains 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
$config['sess_driver'] = 'files'; | |
$config['sess_cookie_name'] = 'ci_session'; | |
$config['sess_expiration'] = 0; | |
$config['sess_save_path'] = BASEPATH . 'cache/session/'; | |
$config['sess_match_ip'] = FALSE; | |
$config['sess_time_to_update'] = 0; | |
$config['sess_regenerate_destroy'] = FALSE; |
This file contains 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
// in php >= 5.4 | |
echo json_encode($myarr,JSON_UNESCAPED_UNICODE); | |
// in php <= 5.3 | |
header('Content-Type: application/json; charset=utf-8'); | |
function jsonRemoveUnicodeSequences($array) { | |
return preg_replace("/\\\\\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))", json_encode($array)); | |
} |
This file contains 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
// put this code in first of config.php file in application/config | |
function __autoload($classname) { | |
if (strpos($classname, 'CI_') !== 0) { | |
$file = APPPATH . 'core/' . $classname . '.php'; | |
@include_once($file); | |
} | |
} |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
$config['num_links'] = 2; | |
$config['use_page_numbers'] = TRUE; | |
$config['full_tag_open'] = '<ul class="pagination">'; | |
$config['full_tag_close'] = '</ul>'; | |
$config['first_tag_open'] = '<li>'; | |
$config['first_tag_close'] = '</li>'; | |
$config['last_tag_open'] = '<li>'; |
This file contains 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 handle($request, Closure $next) | |
{ | |
$domains = ['http://localhost:8080']; | |
if(isset($request->server()['HTTP_ORIGIN'])){ | |
$origin = $request->server()['HTTP_ORIGIN']; | |
if(in_array($origin, $domains)){ | |
header('Access-Control-Allow-Origin: '. $origin); | |
header('Access-Control-Allow-Headers: Origin, Content-type, Authorization'); | |
} |
This file contains 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: MkDocs Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
This file contains 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 | |
function clean_url($url, $params) | |
{ | |
$pieces = parse_url($url); | |
if (!$pieces['query']) { | |
return $url; | |
} | |
$query = []; |
This file contains 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
https://www.lennysnewsletter.com/p/what-jury-duty-taught-me-about-product | |
https://huryn.substack.com/p/are-you-tracking-the-right-metrics | |
https://huryn.substack.com/p/3-ways-to-create-10x-better-product | |
https://huryn.substack.com/p/business-outcomes-vs-product-outcomes | |
https://huryn.substack.com/p/what-exactly-is-product-discovery | |
https://huryn.substack.com/p/how-to-become-a-technology-literate | |
https://huryn.substack.com/p/5-knowledge-areas-you-have-to-master | |
https://huryn.substack.com/p/i-spent-over-16000-hours-working | |
https://huryn.substack.com/p/pm-is-not-the-ceo-of-the-product | |
https://huryn.substack.com/p/time-to-value-how-do-product-led |