linux下比ack速度更快的代码搜索工具the_silver_searcher

使用方式跟ack差不多 http://blog.bccn.net/%E9%9D%99%E5%A4%9C%E6%80%9D/13430 安装及使用详情:https://github.com/ggreer/the_silver_searcher
Linux | 2015-07-31 14:04 | 阅读 4353 次 | 评论 0 条

使用rsync命令同步服务器文件夹

rsync -azh /local/path user@host.com:/remote/path
Linux | 2015-07-24 20:32 | 阅读 2685 次 | 评论 0 条

rails清理assets缓存的方法

刚才development环境下 sass 中的 image_url 失效了,运行下面的命令清空缓存解决: rake assets:clobber
Ruby | 2015-07-22 15:12 | 阅读 3465 次 | 评论 0 条

ruby遍历文件夹

已经不需要自己写递归了,新版ruby直接提供了Find模块 require 'find' Find.find('./') do |path| puts path end
Ruby | 2015-07-22 10:50 | 阅读 4984 次 | 评论 0 条

几行js代码实现前端支持rails的data-remote="true"

rails的data-remote="true"很方便,链接加上这个属性点击链接即可在前端运行链接所指向的服务端返回的js代码。前端只需要下面几行代码 $(document).ready(function () { $("a[data-remote=true]").click(function(e){ e.preventDefault(); $.getScript($(this).attr('href')); }); });
WEB开发 | 2015-07-14 09:59 | 阅读 4405 次 | 评论 0 条

glot,在线运行代码的平台

很方便,以后可能用的到 https://glot.io/
默认分类 | 2015-07-05 09:22 | 阅读 4300 次 | 评论 0 条
浏览2776915次
文章归档