This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
《孤独与不努力》 | |
我们所说的孤独,有时并不是孤独,类似的表达是无助。 | |
无助又可能是社交障碍,这种障碍反映出自卑,自卑带来 | |
了社交上的怯懦,这种怯懦又会带来自己无能的感觉。 | |
无能是未能改善现状。 | |
这种无能反映出行动力的不足,不够努力而无法改善现状。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -DoutputDirectory=lib indicates the output directory. | |
# -Dmdep.useRepositoryLayout=true indicates that the directory layout should be kept during the process. | |
mvn dependency:copy-dependencies [-DoutputDirectory=lib] [-Dmdep.useRepositoryLayout=true] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF | |
by Rudyard Kipling | |
If you can keep your head when all about you | |
Are losing theirs and blaming it on you, | |
If you can trust yourself when all men doubt you | |
But make allowance for their doubting too, | |
If you can wait and not be tired by waiting, | |
Or being lied about, don't deal in lies, | |
Or being hated, don't give way to hating, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
《如果》 | |
——吉卜林 | |
如果在众人六神无主之时,你镇定自若而不是人云亦云; | |
如果被众人猜忌怀疑时,你能自信如常而不去枉加辩论; | |
如果你有梦想,又能不迷失自我; | |
如果你有神思,又不至于走火入魔; | |
如果在成功之中能不忘形于色,而在灾难之后也勇于咀嚼苦果; | |
如果看到自己追求的美好破灭为一摊零碎的瓦砾,也不说放弃; | |
如果你辛苦劳作,已是功成名就,为了新目标,你依旧冒险一搏,哪怕功名成乌有; | |
如果你跟村夫交谈而不变谦恭之态,和王侯散步而不露谄媚之颜; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="autohint"> | |
<bool>true</bool> | |
</edit> | |
<edit mode="assign" name="hinting"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Four score and seven years ago our fathers brought | |
forth on this continent, a new nation, conceived in | |
Liberty, and dedicated to the proposition that all | |
men are created equal. | |
Now we are engaged in a great civil war, testing | |
whether that nation, or any nation so conceived and | |
so dedicated, can long endure. We are met on a great | |
battle-field of that war. We have come to dedicate | |
a portion of that field, as a final resting place for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by ZHANG Hailong <zhhailon@gmail.com> | |
# | |
# This is a tool to serialize comments in specific style into the right order. | |
# For example: | |
# Before | |
# //////////////3////////////////// | |
# //////////////6////////////////// | |
# //////////////0////////////////// | |
# After | |
# //////////////0////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Created by ZHANG Hailong <zhhailon@gmail.com> | |
# Newton Iteration Method | |
# f(x) = X^2 - a = 0. Here a = 2. | |
# Xn+1 = Xn - (Xn^2 - 2) / 2Xn = Xn / 2 + 1 / Xn. | |
x0 = 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set var=0 | |
:continue | |
set /a var+=1 | |
echo %var% | |
mkdir %var% | |
cd %var% | |
touch %var%.c | |
cd .. | |
if %var% lss 175 goto continue | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
k8_dir=~/Documents/lab/k8/ | |
k8_java_dir="$k8_dir"/k8_java/ | |
dest_dir=~/src/ | |
for full_name in `ls "$k8_java_dir"`; do | |
name=${full_name%*.mht} | |
echo $name | |
dir="$dest_dir""$name" |