- 博客(73)
- 收藏
- 关注
原创 shell脚本传参
写了个脚本自动生成pdf上传github受不了每次相同的commit决定使用脚本传参简单好用使用加粗方法,更复杂的可以参考下面两个详解。如何给shell脚本传参数http://jingyan.baidu.com/article/b24f6c822645b786bfe5daff.html #!/usr/bin/zsh...git commit -m $1...gi
2015-12-08 14:59:00
751
原创 廖雪峰 github 教程
之前为了写leetcode cpp pdf学会了github这次完整学习一下。7.15-7.16完成撒花http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 git-cheet-sheethttp://files.cnblogs.com/files/daijkstra/g
2015-12-08 14:58:58
4621
原创 XeTeX: “Failed to convert input string to UTF16″
http://workbench.haefelinger.it/archives/148 XeTeX allows me to hack away directly in Unicode. But what’s even more cool is that I can just use the fonts installed on my system without diving into
2015-12-08 14:58:55
994
原创 github pages
如何搭建一个独立博客——简明Github Pages与Hexo教程http://cnfeat.com/2014/05/10/2014-05-11-how-to-build-a-blog/ 利用github-pages建立个人博客http://coolshell.info/blog/2015/03/github-pages-blog.html [原]通过GitHub Page
2015-12-08 14:58:53
939
原创 远程连接自己的Ubuntu笔记本
参考连接:http://www.zhixing123.cn/ubuntu/41953.htmlhttp://sixipiaoyang.blog.163.com/blog/static/6232358820144654028830/ 一直连接失败无法服务,发现缺少ssh服务安装sshsudo apt-get install sshxmanager帮助说明http://
2015-12-08 14:58:48
532
原创 LaTeX技巧211:latex如何打印出确切时间
http://blog.sina.com.cn/s/blog_5e16f1770100grtj.html 我们在输入一篇文章或者书的标题的时候,会自动加入当天的日期,但是我们如果想把计算机的时间加入文档,该如何实现呢?解决方案:有两个宏包提供了打印输出时间的功能,The datetime package and The scrtime package,他们提供了不同的输入方案,如24小时制
2015-12-08 14:58:44
3665
原创 shell 脚本运行权限
http://www.cnblogs.com/xia520pi/archive/2014/06/30/3817109.html [root@localhost bin]#chmod +x date
2015-12-08 14:58:42
788
原创 改写历史,永久删除git库的物理文件
leetcode题解https://github.com/DaI253/leetcode-cpp,包含大量pdf历史文件,准备清理其中的历史文件,缩小项目体积。http://my.oschina.net/jfinal/blog/215624 git filter-branch --tree-filter 'rm -f *.pdf' --tag-name-filter cat -- --
2015-12-08 14:58:27
486
原创 双调排序
双调排序主要参考 http://www.cs.rutgers.edu/~venugopa/parallel_summer2012/bitonic_overview.html单机版http://blog.youkuaiyun.com/sunmenggmail/article/details/42869235cuda版http://blog.youkuaiyun.com/sunmenggmail/arti
2015-12-08 14:58:25
444
原创 Python
提示sphinx-build没有找到,说明它使用到什么东西,我们没有安装,google了一下,原来是一个python的库,于是在终端输入 sudo easy_install Sphinx,安装成功了。
2015-12-08 14:58:22
414
原创 跳跃表的实现和测试
这里的测试可以参考,但是实现不怎么样http://www.penglixun.com/tech/program/skip_list_leveldb.html实现详细讲解http://blog.youkuaiyun.com/daniel_ustc/article/details/20218489
2015-12-08 14:58:18
566
原创 二级指针的使用
leetcode这里链表都没有头结点,因此在处理只有一个节点的链表会出问题。因此需要新增头结点会非常方便操作。 ListNode dummy(-1);dummy.next = head;ListNode *prev = &dummy;// ...return dummy.next; ListNode *dummy = new ListNode(-1)
2015-12-08 14:58:11
456
原创 JavaScript教程
JavaScript教程http://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb30002015/07/04 开始2015/07/06高阶 filter 2015-7-14 代码能有多难 7.14-7.17 完成第40章https://www.gitbook.com/bo
2015-12-08 14:58:09
343
原创 如何编写一个JSON解析器
http://www.liaoxuefeng.com/article/0014211269349633dda29ee3f29413c91fa65c372585f23000
2015-12-08 14:58:06
410
原创 C文件访问
int getc(FILE *fp);int putc(int c, FILE * fp); #define getchar() getc(stdin)#define putchar() putc((c), stdout)
2015-12-08 14:58:02
394
原创 代码写的少,搞不清边界和起始
1 for(p = fmt; *p; p++) 2 { 3 if(*p != '%') 4 { 5 putchar(*p); 6 continue; 7 } 8 i = 0;// 永远指向下一个字符,因为0时也没有字符,可能最终也是没有字符
2015-12-08 14:57:59
449
原创 翻转链表
https://leetcode.com/problems/reverse-linked-list/之前没好好想下,边界检测有点复杂,今天一定搞清楚,现在开始。
2015-12-08 14:57:55
326
原创 溢出处理
https://leetcode.com/problems/rectangle-area/今天做这道题发现了溢出的问题1 int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {2 int overlap_width = max(min(C, G) - max(A, E), 0),
2015-12-08 14:57:52
475
原创 Cuda
Caffe + Ubuntu 14.04 64bit + CUDA 6.5 配置说明http://www.cnblogs.com/platero/p/3993877.html
2015-12-08 14:57:48
361
原创 C++ blog阅读记录
简单的程序诠释C++ STL算法系列文章将通过一些简单的程序实例充分展示C++中标准模板库算法http://blog.youkuaiyun.com/column/details/stlalgorithms.html简单的程序诠释C++ STL算法系列之一:for_eachhttp://blog.youkuaiyun.com/jerryjbiao/article/details/6827508
2015-12-08 14:57:43
412
原创 Remove Element
1 class Solution 2 { 3 public: 4 int removeElement(vectorint>& nums, int val) 5 { 6 int len = nums.size(); 7 int i = 0; 8 while(i len) 9
2015-12-08 14:57:34
248
原创 C++ 一些STL
1 //STL中Unique函数的作用是去除相邻重复元素 2 #include 3 #include 4 #include 5 using namespace std 6 int main() 7 { 8 int a[10] = { 7, 4, 1, 7, 4, 1, 7, 4, 1, 0 }; 9 sort(a, a + 10);//小到大
2015-12-08 14:57:29
282
原创 Two Pointers/hash/3Sum/4Sum类题目
当结果不唯一的时候,使用STL去重的最简单方式是1 std::sort(res.begin(), res.end());2 res.erase(unique(res.begin(), res.end()), res.end());STL去重 首先是2Sum题目,构建一个hash表查找数的对应下标,求两个数的和,找到剩余差去hash查找。https://leetc
2015-12-08 14:57:27
325
原创 动态规划
一款神奇的动态规划入门介绍http://www.cnblogs.com/sdjl/articles/1274312.html加深理解第二款 算法引论:一种创造性的方法 p77-p79
2015-12-08 14:57:22
290
原创 并行运行环境
SSH 公開金鑰認證(Public Key Authentication):不用打密碼登入 Linux,安全又方便http://blogger.gtwang.org/2014/05/linux-ssh-public-key-authentication.htmllinux并行安装http://blog.sciencenet.cn/blog-478347-395687.htm
2015-12-08 14:57:13
595
原创 多线程编程
2015.4.27完成 c/c++: 多线程编程基础讲解c/c++: 多线程编程基础讲解(一)http://blog.youkuaiyun.com/lzx_bupt/article/details/6910503c/c++: 多线程编程基础讲解(二)http://blog.youkuaiyun.com/lzx_bupt/article/details/6910597c/c++: 多线程编程基础讲解
2015-12-08 14:57:08
464
原创 HTML XML CSS JS 迅速学习
忽然发现自己有点基础嘛,这次系统习得。HTML 30分钟入门教程15.4.22 http://www.jb51.net/shouce/html/html.htm 15.4.22完成W3Schoolhttp://www.w3school.com.cn15.4.22 XHTML教程 http://www.w3school.com.cn/xhtml/index.as 15
2015-12-08 14:57:04
351
原创 UVa 11988 数组模拟链表
题目:在一个没有显示器的电脑上输入一个字符串,键盘坏掉了,会随机的出现home,和end按键, 字符串中'['代表home键(句首),']'代表end键(句尾),问最后输出的字符串的格式。分析:模拟屏幕操作,移动光标,模拟缓冲区输出操作。说明:数组模拟链表操作。输入:This_is_a_[Beiju]_text [[]][][]Happy_Birt
2015-12-08 14:56:59
415
原创 Sublime Text
Sublime Text全程指南http://www.cnblogs.com/figure9/p/sublime-text-complete-guide.html
2015-12-08 14:56:49
256
原创 SVN
http://www.cnblogs.com/aLittleBitCool/archive/2011/07/09/2101602.html
2015-12-08 14:56:47
292
原创 Scrapy
$ Ubuntu 14.04 LTS安装Scrapypip install scrapyhttp://scrapy.org/安装pipsudo apt-get install python-piphttp://blog.youkuaiyun.com/kingppy/article/details/13080919测试Scrapy 1 pip install scrapy
2015-12-08 14:56:42
263
原创 Ubuntu下GitHub的使用
Ubuntu下GitHub的使用参考http://www.pythoner.com/263.html0.Git安装执行如下命令安装Git,所有依赖包会自动安装:$ sudo apt-get install git1.注册GitHub,创建版本库https://help.github.com/articles/generating-ssh-keys/2.检查SSH因为GitHub会用
2015-12-08 14:56:38
467
原创 二分查找那些事
二分查找可以学习如何上下界问题非常有帮助。首先讨论统一接口的情况,便于实现其他算法的版本。这里使用两种思路去讨论算法的实现形式,第一种以“减而治之”的策略实现并从查找行为平衡度等方面对算法进行改进,第二种直接从通过规则的讨论直接讨论算法组成,各层判断。语义定义:在有序向量的区间[l,h)内查找元素v,返回秩最大者。语义定义:在有序向量的区间[l,h]内查找元素v,返回秩最大者。
2015-12-08 14:56:29
234
原创 正则表达式快速入门
一直不知道正则表达式是什么,才发现这就是我经常给文件重新命名和筛选数据时最需要的东西,之前只会使用简单转义和手工搜索呀。正则表达式快速入门http://deerchao.net/tutorials/regex/regex.htm
2015-12-08 14:56:24
218
原创 system programming 内存管理
体会C库函数的功能实现方式CS360 System Programming LabCS360 Malloc Lab参考资料CS360 System Programming Lecture NotesMemoryMalloc1Malloc2一篇很有用的详细教程A malloc Tutorial [备份地址]
2015-12-08 14:56:17
395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人