Test Post

Test Post

A simple test post of adding code and gist snippets.

Hexo CheatSheet

CheatSheet

Example of directly embedding code

"Example Scala"
1
2
3
4
5
case class Person(name: String, age: Int)

object Example {
def myFunc(n: Int) = n * n
}

Add a gist

"Example Python Snippet"
1
2
3
4
5
6
7
8
9
10

def f(x):
return x * x

def g(x):
return 2 * x

# example usage
h = compose(f, g)

iPython Notebook Snippet from a Gist