- 博客(30)
- 收藏
- 关注
转载 Git: Adding and Removing Tags on GitHub
1) Delete the v1.0 tag locally: git tag -d v1.02) Delete the v1.0 tag on GitHub (which removes its download link): git push origin :v1.03) Add a new tag for the updated release: git tag -a v
2015-01-10 12:37:48 557
转载 Git: Add submodule with a specific version
Add submodule with a specific version:git submodule add git://github.com/XXXXX/xxx.yyyy.git stm32_std_libgit statusgit submodule initgit submodule updatecd stm32_std_lib/git reset --hard V3.1
2014-12-03 17:03:18 843
转载 Linux & Mac package安装命令
Linux packagesUsers on Linux can quickly install the necessary packages from repositories.Ubuntu & Debiansudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-
2014-10-31 14:51:32 994
原创 Linux SSH config设置
## config for host server A ##Host labsz HostName *** User ** Port ***
2014-07-24 14:30:49 970
转载 二维数组的动态分配及参数传递
http://blog.csdn.net/xiajun07061225/article/details/6827643
2014-05-06 21:02:00 500
原创 保存python profile的screen输出到file
script foo.txtscreen python -m profile run_rt.py
2014-04-28 16:40:53 1035
原创 Linux terminal, CMD 和 Git 中的代理设置
CMD 设置代理在 cmd 环境下设置代理可能不是很常用,但是某些情况下还是可能会用到,比如公司的电脑只能通过设置代理访问外网,而你需要在 cmd 环境下使用 gem 命令更新文件时。当然,如果你使用某些代理软件为所有通讯设置了代理,那就不需要这些设置了。为 cmd 设置代理很简单,首先打开 cmd (win + R,输入 cmd,然后按 enter 键),然后输入如下
2014-02-04 12:37:31 938
转载 Python画图
Python画图:http://yuedu.163.com/news_reader/#/~/source?id=9f1cfa88-1d49-414d-b455-4f95173b1a56_1&cid=263d9a66bee64aaca27e20459cc0130d_1
2014-01-13 20:40:15 1030
转载 LaTeX命令速查
LaTeX命令速查: http://blog.sina.com.cn/s/blog_4cfc967101013k10.html
2014-01-13 20:29:24 735
转载 linux远程复制SCP
远程上传文件夹 举例,我要将本地文件夹/home/administrator/Desktop/old/driver/test/ 远程上传到 192.168.62.10 这台机器的/root/文件夹下,使用远程端的root用户作为登陆用户scp -r /home/administrator/Desktop/old/driver/test/ [email protected]:/
2014-01-13 20:23:05 798
转载 C/C++ static analysis: CodeViz
CodeViz是《Understanding The Linux Virtual Memory Manager》的作者 Mel Gorman 写的一款分析C/C++源代码中函数调用关系的open source工具(类似的open source软件有egypt、ncc)。其基本原理是给 GCC 打个补丁,让它在编译时每个源文件时 dump 出其中函数的 call graph,然后用 Pe
2014-01-13 20:20:09 685
原创 HTML中嵌入MP3播放器
Notes for Music Player-replace song.mp3 with the url of the song you want-delete autoplay="autoplay" if you don't want the song to start when the page loads-delete loop="loop" if you only wa
2013-04-28 19:02:49 3758
转载 Ubuntu 12.04 安装中文拼音输入法 ibus
1. 执行如下命令,安装必要的组件sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 ibus-pinyin2.装好后输入下面的命令启动ibusim-switch -s ibus3.输入下面的命令让系统任务栏有ibus输入法图标i
2013-04-19 20:57:21 1270
转载 Python学习资料收集
Mac下python升级:http://wolfpaulus.com/jounal/mac/installing_python_osxPython 3:入门教程中文翻译:http://docspy3zh.readthedocs.org/en/latest/tutorial/入门教程英文原版:http://docs.python.org/3.4/tutorial/inte
2013-04-18 21:43:04 771
转载 Google Spreadsheet作为data table动态加载到Web page
主要做法是1. 把建好的Spreadsheet publish,选择publish自动更新。2. 用Google API和Javascript动态读取Google Spreadsheet的内容,其中使用到tabletop.js详情参考: 1. http://builtbybalance.com/Tabletop/2. https://github.com/jsoma/t
2013-04-18 21:31:28 1007
原创 Map of the Internet
Here is a beautiful map of the Internet, designed by Peer1 Hosting, , based on Internet topology data from the Cooperative Association for Internet Data Analysis (CAIDA).Click the link : Map of
2012-09-21 11:01:02 735
转载 Matlab画图希腊字母显示
在matlab的label,text,title里面经常要显示特殊字符,matlab的默认选项是支持tex语法的,利用tex的语法就可以实现特殊字符的显示,下面是一些常用语法,比如想要显示α,只需写上\alpha,注意这个斜线不能丢呀,希腊字母:----小写-------- ------大写------α \alpha Α β \beta
2012-03-24 21:15:35 12302
原创 OpenCirrus: An Open Cloud Computing Testbed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Click to download the slides:[PDF] OpenCirrus: An Open Cloud Computing Testbed~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Today,
2012-02-15 23:08:40 1206
转载 Matlab plot 参数设置
一、Matlab绘图中用到的直线属性包括:(1)LineStyle:线形(2)LineWidth:线宽(3)Color:颜色(4)MarkerType:标记点的形状(5)MarkerSize:标记点的大小(6)MarkerFaceColor:标记点内部的填充颜色(7)MarkerEdgeColor:标记点边缘的颜色1、线形标记
2012-02-09 21:52:17 59713 5
转载 Matlab Figure 调整大小、字号、线宽
绘图窗口菜单File | Export Setup里很方便的改变这些属性特别是Expand axes to fit figure,会更好减少空白边。设置好可以保存模板,下次调用。也可以将这个功能写到m文件中,自动执行吧 用matlab画了一张图,投稿时要缩小,缩小后字体就会过小或者发虚。解决办法% figure resizeset(gcf
2012-02-09 21:49:15 47330 3
转载 Latex 调整行距
1-改变局部行距\usepackage{setspace}\begin{document}\begin{spacing}{2.0}%%行间距变为double-space\begin{spacing}{1.0}%%行间距变为single-space\end{spacing}\end{spacing}\end{document}2-對於整份文
2012-02-07 15:23:32 52807 1
转载 户外装备配备表
个人穿着用品: 一、服装篇 1、冲锋衣裤(户外活动必备,防风、防水、透气、耐磨……); 2、抓绒衣(含WINDSTOPPER,主要是防风、保暖); 3、排汗内衣(户外运动后保持身体干燥); 4、快干衣裤(夏天出行的必备,裤管、袖管最好是可以脱卸的); 5、羽绒衣裤(冬天出行或者去
2011-12-16 00:07:12 1142
转载 Screen — A must for SSH
If you've ever used SSH to connect to a server, you 'll know its limitations: if you want to open a new window, you'll need to create a second SSH connection to the server. And if the connection break
2011-12-02 22:14:41 570
转载 十大思想实验
10.电车难题(The Trolley Problem) “电车难题”是伦理学领域最为知名的思想实验之一,其内容大致是:一个疯子把五个无辜的人绑在电车轨道上。一辆失控的电车朝他们驶来,并且片刻后就要碾压到他们。幸运的是,你可以拉一个拉杆,让电车开到另一条轨道上。但是还有一个问题,那个疯子在那另一条轨道上也绑了一个人。考虑以上状况,你应该拉拉杆吗?解读: 电车难题最早是由哲学家Phi
2011-12-02 21:53:29 660
转载 80后的苦逼
当我们读小学的时候,读大学不要钱; 我们要读大学的时候,读小学不要钱; 我们还没能工作的时候,工作也是分配的; 我们可以工作的时候,撞得头破血流才勉强找份饿不死人的工作做; 当我们不能挣钱的时候,房子是分配的; 当我们能挣钱的时候,却发现房子已经买不起了; 当我们没有进入股市的时候,傻瓜都在赚钱; 当我们兴冲冲地闯进去的时候,才发现自己成了傻
2011-12-01 00:01:05 690
转载 ★五角星坐标★
备注一下五角星坐标:=================================================================a=10;X=[a+a*sin(deg2rad(18)) 0;a*cos(deg2rad(36)) -a*cos(deg2rad(36))*cot(deg2rad(18))+a*cos(deg2rad(18));-a*cos(de
2011-11-30 23:51:46 6646
转载 理工科的表白多浪漫
经历了前世五百次的全反射,才换来今生与你的耦合交错。只是能级低的好可怜,害怕再也跃迁不到你的身边。为了得到你的case,我需要怎样的switch语句。多少次的for循环?纵使你我之间的带隙不断扩散。心儿逐渐出现本征缺陷。也不能改变我对你的依恋。你向我输入一个又一个的尖峰脉冲。不断触发着我心情的上跳和下降沿。总喜欢在光谱中苦苦寻找只属于我的那条线。经过你心的掩模板。用逻辑符号写下不朽的诗篇。从此Ve
2011-11-30 23:39:38 1912
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人