2025年6月28日

鸡尾酒排序

摘要: 鸡尾酒排序 前言 笔者最近看算法文章的时候,看到一个鸡尾酒排序的算法,是冒泡排序的一种变种。记录一下,每天一个知识点。 算法概述 鸡尾酒排序(Cocktail Sort),又称双向冒泡排序(Bidirectional Bubble Sort)、摇摆排序(Shake Sort),是对传统冒泡排序的一种 阅读全文

posted @ 2025-06-28 14:20 李明卫 阅读(246) 评论(1) 推荐(0)

2016年5月7日

我的grunt 插件

摘要: "angular-ui-router": "^0.2.18", "grunt": "^0.4.5", "grunt-browser-sync": "^2.2.0", "grunt-cache-bust": "^1.3.0", "grunt-contrib-clean": "^1.0.0", "grunt-contrib-concat": "^0.5.1",. 阅读全文

posted @ 2016-05-07 17:31 李明卫 阅读(140) 评论(0) 推荐(0)

sass ruby 中文

摘要: 解决办法: 1.koala可视化编译工具, 找到安装目录里面sass-3.3.7模块下面的engine.rb文件,例如下面路径: C:\Program Files (x86)\Koala\rubygems\gems\sass-3.3.7\lib\sass 在这个文件里面engine.rb,添加一行代 阅读全文

posted @ 2016-05-07 15:03 李明卫 阅读(120) 评论(0) 推荐(0)

2016年4月26日

npm 开发常用包

摘要: { "name": "tlzyy_web", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": {}, "devDependencies": { "angular-ui-router": "^0.2.18", "grunt": " 阅读全文

posted @ 2016-04-26 11:43 李明卫 阅读(293) 评论(0) 推荐(0)

2016年4月25日

ui-router 路由重定向

摘要: http://www.tuicool.com/articles/zeiy6ff 阅读全文

posted @ 2016-04-25 09:24 李明卫 阅读(291) 评论(0) 推荐(0)

2016年4月21日

sublime text 2 snippet 设置

摘要: 2.scope 范围 ActionScript: source.actionscript.2 AppleScript: source.applescript ASP: source.asp Batch FIle: source.dosbatch C#: source.cs C++: source.c 阅读全文

posted @ 2016-04-21 10:20 李明卫 阅读(167) 评论(0) 推荐(0)

2016年4月8日

windows 定时任务

摘要: http://zzqrj.iteye.com/blog/1128920 schtasks在win7下提示错误:无法加载列资源 查看cmd 编码 chcp 如使用 936中文GBK编码的话 schtasks.exe /query 会报错 错误: 无法加载列资源。 调整 936 为 437 美国编码 则 阅读全文

posted @ 2016-04-08 13:16 李明卫 阅读(129) 评论(0) 推荐(0)

2016年4月7日

关于自定义比较函数 usort 如何使用 类中的方法

摘要: http://blog.csdn.net/qdujunjie/article/details/42081137 阅读全文

posted @ 2016-04-07 13:06 李明卫 阅读(285) 评论(0) 推荐(0)

array_map函数在PHP类中调用内部方法简介

摘要: http://www.dangkai.com/ArticlePage/Article21339.htm 阅读全文

posted @ 2016-04-07 13:03 李明卫 阅读(425) 评论(0) 推荐(0)

2016年4月3日

A effective,fast,stable log extension for PHP

摘要: http://neeke.github.io/SeasLog/ 阅读全文

posted @ 2016-04-03 22:23 李明卫 阅读(88) 评论(0) 推荐(0)

导航