0%

Test

相对路径引用资源
1
2
3
{% asset_path slug %}
{% asset_img slug [title] %}
{% asset_link slug [title] %}
相对路径引用站内文章
1
{% post_link 2017-04-27-MAC快捷键 [2017-04-27-MAC快捷键] %}
[2017-04-27-MAC快捷键] [tutorial/bash/别名]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mkdir ~/bin
PATH=~/bin:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY


git config --global user.name "Your Name"
git config --global user.email "you@example.com"

repo init -u https://android.googlesource.com/platform/manifest

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

repo sync
  1. asdf
  2. asdfa
    • iuwehfu
    • askldfjwe
      1. asdfu
      2. asdofai
1
2
3
4
5
6
7
8
9
10
11
12
FileOutputStream output = new FileOutputStream("temp.dat");
for (int i = 0; i < 10; i++) {
output.write(i); //output to file
}
output.close();

FileInputStream input = new FileInputStream("temp.dat");
int value;
while ((value = input.read()) != -1){ //read values from files
System.out.print(value+" ");
}
input.close();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
* @author John Smith <john.smith@example.com>
*/
package l2f.gameserver.model;

public abstract class L2Char extends L2Object {
public static final Short ERROR = 0x0001;

public void moveTo(int x, int y, int z) {
_ai = null;
log("Should not be called");
if (1 > 5) { // wtf!?
return;
}
}
}
python代码块标题腾讯网
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys

def test():
'''
这是doc
'''
a = 'aaaa'
list = [11, 22, 33, 44]


class Test(object):
def init(self):
self.name = 'jason'

print('hello, world')

for i in [1,2,3,4,5]:
print(i+1)
1
[rectangle setX: 10 y: 10 width: 20 height: 20];
Array.map
1
array.map(callback[, thisArg])