Loading

摘要: 冒泡排序法 冒泡排序是一种简单的排序算法。它重复地走访过要排序的数列,一次比较两个元素,如果它们的顺序错误就把它们交换过来。走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经排序完成。这个算法的名字由来是因为越小的元素会经由交换慢慢“浮”到数列的顶端。 function bubble_ 阅读全文
posted @ 2020-12-18 09:21 Jansang 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 一、基础 Redis(Remote dictionary Server 远程字典服务器): 是完全开源免费的,由C语言编写的,一个高性能的(key/value)分布式内存数据库,基于内存运行, 并支持持久化的Nosql数据库,也被称为" 数据结构服务器 " Redis 与其他 key - value 阅读全文
posted @ 2020-12-10 20:54 Jansang 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Compose 是用于定义和运行多容器 Docker 应用程序的工具。通过 Compose,您可以使用 YML 文件来配置应用程序需要的所有服务。然后,使用一个命令,就可以从 YML 文件配置中创建并启动所有服务。 下载安装 项目在github上面: https://github.com/docke 阅读全文
posted @ 2020-12-02 20:46 Jansang 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 安装 要求 CentOS 系统的内核版本高于 3.10,查看你当前的内核版本 uname -r 确保 yum 包更新到最新 yum update 安装依赖 yum install -y yum-utils device-mapper-persistent-data lvm2 设置yum源 yum-c 阅读全文
posted @ 2020-12-02 20:22 Jansang 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 算法实现 public function caleResult() { $data = [ ['id' => 1, 'name' => '一等奖', 'weight' => 5], ['id' => 2, 'name' => '二等奖', 'weight' => 10], ['id' => 3, ' 阅读全文
posted @ 2020-11-26 19:59 Jansang 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 一、下载Charles 地址:https://www.charlesproxy.com/latest-release/download.do 二、Charles破解 地址:https://www.zzzmode.com/mytools/charles 输入RegisterName(此名称随意,用于显 阅读全文
posted @ 2020-11-26 10:57 Jansang 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 一、下载 https://www.virtualbox.org/ http://mirrors.163.com/centos/ 二、安装步骤 系统>>主板,设置启动顺序,将光驱启动设置为第一项 安装linux 设置网络 在虚拟机窗口中输入:cd /etc/sysconfig/network-scri 阅读全文
posted @ 2020-11-26 10:49 Jansang 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 参考: https://github.com/neil3d/excel2json 说明 -e, –excel Required. 输入的Excel文件路径. -j, –json 指定输出的json文件路径. -h, –header Required. 表格中有几行是表头. -c, –encoding 阅读全文
posted @ 2020-11-25 17:11 Jansang 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.mapeditor.org/ 一、说明 需要将tiled地图导出到cocos坐标系 二、思路 tiled有个给对象翻转的功能,但是并没有该属性,只有“gid”被改掉了 { "gid": 2147483659, "height": 294, "id": 25, "nam 阅读全文
posted @ 2020-11-25 16:23 Jansang 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一、说明 为了将使用Spine v3.8导出的json导入v3.7,您需要使用JsonRollback工具。 二、使用 导出在导出设置中选中“非必要数据”的json,否则网格信息可能会丢失。 下载Skeleton Viewer:http://esotericsoftware.com/spine-sk 阅读全文
posted @ 2020-11-25 15:15 Jansang 阅读(1796) 评论(0) 推荐(0) 编辑