摘要: rt, mark{ "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working... 阅读全文
posted @ 2014-04-18 21:21 yedeying 阅读(183) 评论(0) 推荐(0) 编辑
摘要: http://nerd-is.in/2013-12/learning-vim-again-1-install-vundle/http://nerd-is.in/2013-12/learn-vim-again-2-emmet-for-vim/http://blog.csdn.net/codebistu/article/details/8257138 阅读全文
posted @ 2014-04-11 10:41 yedeying 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 今天因为需要帮一个同事的新闻内容录入为html, 每次手改不方便,所以就弄了个csv(excel)转json的c++程序,然后再利用ejs把它渲染成网页,打开渲染好的网页再保存(不能保存源文件,不然还是空的),就可以把内容弄成一个html了,此作mark,以下为程序// convert.cpp#include #include #include using namespace std;int main() { freopen("in.csv", "r", stdin); freopen("json.js", "w" 阅读全文
posted @ 2014-04-11 10:01 yedeying 阅读(2177) 评论(0) 推荐(0) 编辑
摘要: 应该习惯的css helper class.text-centeredtext-align: center;.text-righttext-align: right;.smallsmall font size from variables.less.lastmargin-right: 0;.pausemargin-bottom: baseline/2;.endmargin-bottom: 0;.normalfont-weight: normal;.boldfont-weight: bold;.italicfont-style: italic;.groupclearfix layer.right 阅读全文
posted @ 2014-04-09 14:08 yedeying 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Document upload 插件:http://odyniec.net/projects/imgareaselect/ 阅读全文
posted @ 2014-04-09 12:39 yedeying 阅读(238) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/mizzle/archive/2011/10/13/2209891.html将用户上传的图片进行裁剪再保存是现在web2.0应用中常常处理的工作,现在借助jquery的imgareaselect插件再配合PHP的GD库就可以轻松的实现这个在以前来说非常棘手的功能。我们来看看它的实现步骤:1、包含进CSS文件(imgareaselect-default.css)和 jquery.imgareaselect.js文件2、html代码(要裁剪的图片元素)3、imgAreaSelect的数据操作$('#selectbanner').imgA 阅读全文
posted @ 2014-04-09 12:01 yedeying 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: 图片上传预览代码是别人的:http://www.codefans.net/jscss/code/4325.shtml 阅读全文
posted @ 2014-04-09 11:41 yedeying 阅读(293) 评论(0) 推荐(0) 编辑
摘要: the command of vim to save as the file :w new_file_name 阅读全文
posted @ 2014-04-08 21:24 yedeying 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 因为本人的某些小强迫症,写了一个格式化并根据js函数名排序的c++程序,此作mark#include #include #include #include using namespace std;int main() { freopen("in.js", "r", stdin); freopen("out.js", "w", stdout); string str, name, content; map mp; char ch; while((ch = getchar()) != EOF) { str += ch; 阅读全文
posted @ 2014-04-08 12:19 yedeying 阅读(452) 评论(0) 推荐(0) 编辑
摘要: the way of restart: sudo /opt/lampp/lampp restartconfig root: /opt/lampp/etc/httpd.conf /opt/lampp/etc/httpd-xampp.conf in each file we should change the deny config to allowand one more thing is to change the rights of htdocs directory, with the order below: sudo chmod a+w -R /opt/lampp/htdocs... 阅读全文
posted @ 2014-04-07 22:56 yedeying 阅读(149) 评论(0) 推荐(0) 编辑