Sync Scrollbar (Horizontal)

HTML

 

Javascript

 

lazy load app (horizontal)

 

Redis Commands

Reference:

http://redisdoc.com/list/lrange.html

Command Description
LPUSH key value [value …] 将一个或多个值 value 插入到列表 key 的表头

redis> LPUSH mylist a b c
(integer) 3

redis> LRANGE mylist 0 -1
1) “c”
2) “b”
3) “a”

LRANGE key start stop  返回列表 key 中指定区间内的元素,区间以偏移量 start 和 stop 指定。

LRANGE mylist 0 -1
取得mylist第一個到最後一個的元素

responsive file manager with laravel

Official

https://github.com/Kwaadpepper/laravel-responsivefilemanager

Thumb folder creation issue on windows:

System will try to create thumb folders with relative path and will fail to detect if the folder exists or not in
\vendor\kwaadpepper\laravel-responsivefilemanager\src\ResponsiveFileManager\utils.php

 

CodeIgniter with Zebra Session

Install

https://github.com/stefangabos/Zebra_Session

index.php

Do not use session_start();

Note: Put $session in $GLOBALS is very important or this variable wont’ be accessible in controllers and data in session will be lost after redirection and won’t be saved in database.