Coder Social home page Coder Social logo

haibbo / easy-tips Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tigerb/easy-tips

0.0 1.0 0.0 22.61 MB

A little Tips in my Code Career with Go&PHP 🥳🥳🥳

Home Page: http://easy-tips.tigerb.cn

PHP 57.48% Shell 0.68% Dockerfile 0.49% HTML 0.14% Go 40.95% C 0.25%

easy-tips's Introduction

《PHPer、Gopher成长之路》V1.10

「全原创系列」

记录我在成为一名PHPer、Gopher路上的学习过程

php go mysql redis patterns algorithm data-structure network docker

English Version

版权申明

  • 未经版权所有者明确授权,禁止发行本手册及其被实质上修改的版本。
  • 未经版权所有者事先授权,禁止将此作品及其衍生作品以标准(纸质)书籍形式发行。

前言

基础不牢,地动山摇,谨以此句提醒自己。

备注

状态 含义
🈳️ 当前未开始总结
🚗 总结中
🧀️ 目前仅供参考未修正和发布
总结完毕
🔧 查漏补缺修改中

目录

测试用例

PHP设计模式

运行脚本: php patterns/[文件夹名称]/test.php

例如,

测试责任链模式: 运行 php patterns/chainOfResponsibility/test.php

运行结果:

请求5850c8354b298: 令牌校验通过~
请求5850c8354b298: 请求频率校验通过~
请求5850c8354b298: 参数校验通过~
请求5850c8354b298: 签名校验通过~
请求5850c8354b298: 权限校验通过~

PHP算法

运行脚本: php algorithm/test.php [算法名称|空获取列表]

例如,

测试冒泡排序: 运行 php algorithm/test.php bubble

运行结果:

==========================冒泡排序=========================
Array
(
    [0] => 11
    [1] => 67
    [2] => 3
    [3] => 121
    [4] => 71
    [5] => 6
    [6] => 100
    [7] => 45
    [8] => 2
)
=========上为初始值==================下为排序后值=============
Array
(
    [0] => 2
    [1] => 3
    [2] => 6
    [3] => 11
    [4] => 45
    [5] => 67
    [6] => 71
    [7] => 100
    [8] => 121
)

常见redis运用实现

运行脚本: php redis/test.php [名称|空获取列表]

例如,

测试悲观锁: 运行 php redis/test.php p-lock

运行结果:

执行count加1操作~

count值为:1

纠错

如果大家发现有什么不对的地方,可以发起一个issue或者pull request,我会及时纠正,THX~

补充:发起pull request的commit message请参考文章Commit message编写指南

英文版

因为国外开发者的要求和个人的时间有限,征集大家有兴趣的可以把本项目进行英文版翻译。希望国外的developer也可以受益于这个项目~

翻译文件认领申请:TIGERB#36

赞赏

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

easy-tips's People

Contributors

tigerb avatar jealone avatar akmumu avatar cmderq avatar neetdai avatar dukeann avatar cugblbs avatar 0xaikang avatar rjustice avatar monkeywithacupcake avatar taweisuode avatar snriud avatar entimm avatar hidehalo avatar ocoo avatar yangqi93 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.