├── CSS定位 ├── 3.png ├── cssbox3d.gif ├── CSS定位.org └── CSS定位.html ├── missfont.log ├── Generating-SSH-Keys.pdf ├── 如何快速正确安装Ruby,Rails运行环境.pdf ├── GIT分支管理是一门艺术 ├── GIT分支管理是一门艺术.pdf ├── images │ ├── 105017.png │ ├── 105026.png │ ├── 105037.png │ ├── 105048.png │ └── 105059.png ├── GIT分支管理是一门艺术.org ├── GIT分支管理是一门艺术.tex └── GIT分支管理是一门艺术.html ├── qomo-linux下载问题.org ├── 考勤系统后续改进建议.org ├── git └── rebase.org ├── How-to-shutdown-touchpad.org ├── sandbox.org ├── Ruby:Sort-an-array-of-objects-by-an-attribute.org ├── CSS元素.org ├── 如何快速正确安装Ruby,Rails运行环境.org ├── Generating-SSH-Keys.org ├── Git-Commands.org ├── 如何快速正确安装Ruby,Rails运行环境.tex ├── Generating-SSH-Keys.tex ├── Git常见问题.org ├── monitors.xml ├── Ruby:Sort-an-array-of-objects-by-an-attribute.html ├── Generating-SSH-Keys.html ├── 如何快速正确安装Ruby,Rails运行环境.html ├── Org-Mode使用.org ├── CSS元素.html └── Git常见问题.html /CSS定位/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/CSS定位/3.png -------------------------------------------------------------------------------- /missfont.log: -------------------------------------------------------------------------------- 1 | mktextfm ecrm1095 2 | mktextfm ecrm1095 3 | mktextfm ecrm1095 4 | -------------------------------------------------------------------------------- /CSS定位/cssbox3d.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/CSS定位/cssbox3d.gif -------------------------------------------------------------------------------- /Generating-SSH-Keys.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/Generating-SSH-Keys.pdf -------------------------------------------------------------------------------- /如何快速正确安装Ruby,Rails运行环境.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/如何快速正确安装Ruby,Rails运行环境.pdf -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/GIT分支管理是一门艺术.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/GIT分支管理是一门艺术.pdf -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/images/105017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/images/105017.png -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/images/105026.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/images/105026.png -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/images/105037.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/images/105037.png -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/images/105048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/images/105048.png -------------------------------------------------------------------------------- /GIT分支管理是一门艺术/images/105059.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cafe/Org/master/GIT分支管理是一门艺术/images/105059.png -------------------------------------------------------------------------------- /qomo-linux下载问题.org: -------------------------------------------------------------------------------- 1 | #+TITLE: qomo-linux下载问题 2 | #+AUTHOR: hdc 3 | #+EMAIL: huangdianchun@redflag-linux.com 4 | 5 | -------------------------------------------------------------------------------- /考勤系统后续改进建议.org: -------------------------------------------------------------------------------- 1 | #+TITLE: 考勤系统后续改进建议 2 | #+AUTHOR: HDC 3 | 4 | - 只有一条记录的时候,没有去判断是上班刷的还是下班刷的 5 | - 考虑要不要加“星期”字段 6 | - 记录数量多,可以按部门进行分组显示 7 | - 只查询某个员工的信息 8 | - 界面可以做得更漂亮些 9 | - 支持邮件功能 10 | -------------------------------------------------------------------------------- /git/rebase.org: -------------------------------------------------------------------------------- 1 | #+TITLE: git-rebase 2 | 3 | #+BEGIN_SRC bash 4 | $ git rebase develop 5 | #+END_SRC 6 | 7 | *这个时候,git做了什么呢?* 8 | 9 | - 先将 develop 分支的代码 checkout 出来,作为工作目录 10 | - 然后将 master 分支从 develop 分支创建起的所有改变的补丁,依次打上。如果补丁的过程没有问题,rebase 就搞定了 11 | - 如果补丁的时候出现了问题,就会提示你处理冲突。处理好了,可以运行 git rebase --continue 继续直到完成 12 | - 如果你不想处理,你还是有两个选择,一个是放弃 rebase 过程(运行 git rebase --abort),另一个是直接用 develop 分支来取代当前分支(git rebase --skip) 13 | 14 | 15 | * 合并 b 16 | git rebase b 17 | 18 | * 处理完冲突继续合并 19 | git rebase --continue 20 | 21 | * 跳过 22 | git rebase --skip 23 | 24 | * 取消合并 25 | git rebase --abort 26 | -------------------------------------------------------------------------------- /How-to-shutdown-touchpad.org: -------------------------------------------------------------------------------- 1 | #+TITLE: 如何关闭 2 | #+TODO: TODO INPROGRESS | DONE 3 | #+TAGS: @office(o)@home(h) @traffic(t) 4 | #+TAGS: computer(c) nocomputer(n) either(e) 5 | #+TAGS: immediately(i) wait(w) action(a) 6 | 7 | * Idea List: 8 | * Task List: 9 | * Project List: 10 | * Someday/Mabe List: 11 | * Reminder: 12 | 13 | ** TODO test[1/1] 14 | - [X] Only a test 15 | - [] It's another test 16 | - [] Third test 17 | 18 | 19 | 原文地址:[[http://forum.ubuntu.org.cn/viewtopic.php?p=391456]] 20 | 写在前面: 21 | 这种方法不是很好,我是10.04,大部分情况下都是无法关闭触摸板,偶尔可以关闭,我的笔记本比较旧了,关闭触摸板的铵键失灵了 22 | 有一种更简单的方法,我这里测试可以使用,原文地址:[[http://blog.3gcomet.com/article.asp?id=343]] 23 | 关闭笔记本触摸板: 24 | sudo rmmod psmouse 25 | 要恢复也简单: 26 | sudo modprobe psmouse 27 | 下面是另外一种方法,使用synclient,大家可以试方式。 28 | -------------------------------------------------------------------------------- /sandbox.org: -------------------------------------------------------------------------------- 1 | #+STARTUP: overview 2 | #+TAGS: { 桌面(d) 服务器(s) } 编辑器(e) 浏览器(f) 多媒体(m) 压缩(z) 3 | #+TAGS: { @Windows(w) @Linux(l) } 4 | #+TAGS: { 糟糕(1) 凑合(2) 不错(3) 很好(4) 极品(5) } 5 | #+SEQ_TODO: TODO(T) WAIT(W) | DONE(D!) CANCELED(C@) 6 | #+COLUMNS: %10ITEM %10PRIORITY %15TODO %65TAGS 7 | 8 | * *一行一行解释* 9 | - 启动时概览 10 | - 设定标签,括弧中的为标签快捷键(如果没有指定,默认为首字母)。可以设置在多行中 11 | - 花括号为标签组,组中的标签只能先一个 12 | - 设定待办状态。将项设置为|后面的状态时(DONE CANCELED),会打上 COLOSED 标志 13 | - 设定列视图 14 | 15 | #+BEGIN_EXAMPLE 16 | #+COLUMNS: %10ITEM %10PRIORITY %15TODO %65TAGS 17 | #+END_EXAMPLE 18 | - 百分数表示该列所占宽度 19 | - 优先级 20 | - 事件状态 21 | - 标签 22 | 23 | * 工作 24 | 25 | ** Emacs :桌面:编辑器:极品: 26 | 神之编辑器 27 | *** org-mode 28 | 组织你的意念 29 | 30 | ** Vim 31 | 编辑器之神 32 | 33 | ** EmEditor 34 | 35 | * 娱乐 36 | DEADLINE: <2012-06-28 四> 37 | 38 | ** Mplayer 39 | SCHEDULED: <2012-06-28 四> 40 | 全能播放器 41 | <2012-06-28 四> 42 | * 网络 43 | 44 | ** firefox 45 | 46 | ** IE 47 | 48 | ** PureFTPD 49 | 50 | * 其它 51 | 52 | ** WinRAR 53 | -------------------------------------------------------------------------------- /Ruby:Sort-an-array-of-objects-by-an-attribute.org: -------------------------------------------------------------------------------- 1 | #+TITLE: Ruby: Sort an array of objects by an attribute 2 | #+AUTHOR: HDC 3 | 4 | In this example I'll show you how easy it is to sort an array of 9this same kind of) objects by an attribute. Let's say you have an array of User objects that have the attributes 'name' and 'login\_count'. First, find all users 5 | #+BEGIN_SRC ruby 6 | @users = User.find(:all) 7 | #+END_SRC 8 | Now, we have to sort this array by 'name'. Since we don't know if any user used capitals in his name or not, we use 'downcase' to sort without case sensitivity. 9 | 10 | A small not. 'sort' returns a new array and leaves the original unchanged. You may want to just recorder the @user array. so use the 'sort!' method. The '!' indicates it's a destructive method. It will overwite the current @users arrray with the new sorting. 11 | #+BEGIN_SRC ruby 12 | @users.sort! { |a,b| a.name.downcase <=> b.name.downcase } 13 | #+END_SRC 14 | That's all! Since strings are comparable, this will sort you user objects alphabetically by name. Want to sort on longin\_count instead? 15 | #+BEGIN_SRC ruby 16 | @users.sort! { |a,b| a.login_count <=> b.login_count } 17 | #+END_SRC 18 | So, now you can easily sort any object in an array just like you want it too! 19 | -------------------------------------------------------------------------------- /CSS元素.org: -------------------------------------------------------------------------------- 1 | #+TITLE: CSS 元素 2 | #+AUTHOR: HDC 3 | #+EMAIL: pbe_sedm@126.com 4 | 5 | * :before 伪元素 6 | *定义和用法* 7 | 8 | :before 伪元素在元素之前添加内容。 9 | 这个伪元素允许创作人员在元素内容的最前面插入生成内容。默认地,这个伪元素是行内元素,不过可以使用属性 display 改变这一点。 10 | 11 | *实例* 12 | 13 | 此样式会在每个 h1 元素之前播放一段声音: 14 | #+BEGIN_SRC html 15 | h1:before 16 | { 17 | content:url(beep.wav); 18 | } 19 | #+END_SRC 20 | 21 | *
标签 22 | *定义和用法* 23 | 24 |
标签定义文档中的节(section、区段)。比如章节、页眉、页脚或文档中的其他部分。 25 | 26 | *实例* 27 | 28 | 文档中的区段,解释了 PRC: 29 | #+BEGIN_SRC html 30 |
31 |

PRC

32 |

The People's Republic of China was born in 1949...

33 |
34 | #+END_SRC 35 | 36 | *
标签 37 | *定义和用法* 38 | 39 |
标签定义独立的内容。 40 | 可能的 article 实例: 41 | - 论坛帖子 42 | - 报纸文章 43 | - 博客条目 44 | - 用户评论 45 | 46 | *实例* 47 | 48 | #+BEGIN_SRC html 49 |
50 | Safari 5 released
51 | 7 Jun 2010, Just after the announcement of the new iPhone 4 at WWDC, 52 | Apple announced the release of Safari 5 for Windows and Mac...... 53 |
54 | #+END_SRC 55 | 56 | *
标签 57 | *定义和用法* 58 |
标签定义文档的页眉(介绍信息)。 59 | *实例* 60 | 对主页的介绍: 61 | #+BEGIN_SRC html 62 |
63 |

Welcome to my homepage

64 |

My name is Donald Duck

65 |
66 | 67 |

The rest of my home page...

68 | #+END_SRC 69 | 70 | *