Generated: 2026-02-22
meta {
| version: '3.8' | |
| services: | |
| minio: | |
| image: minio/minio:latest | |
| container_name: minio | |
| restart: always | |
| command: server --console-address :9001 /data | |
| environment: | |
| - MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE |
| # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # | |
| # In addition, I recommend the | |
| # [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if | |
| # you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over | |
| # Terminal.app - it has significantly better color fidelity. |
| <?php | |
| function decode_session($data){ | |
| $temp = $_SESSION; | |
| session_decode($data); | |
| $out = $_SESSION; | |
| $_SESSION = $temp; | |
| return $out; | |
| } |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| # place this after nvm initialization! | |
| autoload -U add-zsh-hook | |
| load-nvmrc() { | |
| local node_version="$(nvm version)" | |
| local nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then |
| <?php | |
| function human_implode($glue = ",", $last = "y", $elements = array(), $filter = null){ | |
| if ($filter) { | |
| $elements = array_map($filter, $elements); | |
| } | |
| $str = implode("{$glue} ", $elements); | |
| /** | |
| * SELECT * FROM users LIMIT 20 | |
| limit = 10 | |
| page?=1 | |
| offset = (page - 1) * limit | |
| LIMIT offset,limit |
| function arrayPaginate(array, page_size, page_number) { | |
| --page_number; // because pages logically start with 1, but technically with 0 | |
| return array.slice(page_number * page_size, (page_number + 1) * page_size); | |
| } |