autohotkey configuration

dvorak+emacs

#z::Run www.autohotkey.com

^!n::
IfWinExist Untitled - Notepad
	WinActivate
else
	Run Notepad
return

Read more

overview

#赋值
number = 42
opposite = true

#条件
number = -42 if opposite

#函数
square = (x) -> x*x

#数组
list = [1, 2, 3, 4, 5]

#对象
math =
  root:   Math.sqrt
  square: square
  cube: (x) -> x * square x

#Splats:
race = (winner, runners...) ->
  print winner,runners

#存在性
alert "I knew it!" if elvis?

# 数组 推导(comprehensions):
cubes = (math.cube num for num in list)

Read more

格式说明:

< > html

[] 属性

. class

排版

<h1>..<h6>
<small>
<p>
<small> <strong> <em>
.text-left .text-right .text-center

.text-muted .text-primary .text-success
.text-info .text-warning .text-danger

<abbr> [title] .initialism

<adree>

<blokcquote> <small>  .pull-right .blockquote-reverse

<ul> <ol> .list-unstyled .list-inline
<dt> <dd> .dl-horizontal

更多排版类:
	.small
	.text-justify
	.text-lowercase
	.text-uppercase
	.text-capitalize

	<pre> .pre-scrolllable

Read more

Basic:Arguments

Overview

velocity默认选项:

$element.velocity({width:"500px",
	               property2:value2
			      },
				  {
				     queue: "",
					 begin: undefined,
					 progress: underfined,
					 complete: underfined,
					 display: undefined,
					 visibility: undefined,
					 loop: false,
					 mobileHA: true,
                  }
	             );

$.Velocity.defaults修改默认设置

Single Object

$element
  .velocity({
	  properties:{opacity:1},
	  options:{duration:500}
		  });

Read more

配置

Drafts: –drafts

Getting Started

Ouick-start guide

install and get a boilerplate

    ~ $ gem install jekyll
	// to install in this directory instead of a new directory name
	// jekyll new .
	~ $ jekyll new myblog
	~ $ cd myblog
	~/myblog $ jekyll se

Directory structure

	|_config.yml
	|_drafts
	|    begin-with-the-crazy-ideas.textile
	|    on-simplicity-in-technology.markdown
	|_includes
	|    footer.html
	|    header.html
	|_layouts
	|    default.html
	|    post.html
	|_posts
	|    2007-10-29-why-every-programmer-should-play-nethack.textile
	|    2009-04-26-barcamp-boston-4-roundup.textile
	|_data
	|    members.yml
	|_site
		 index.html

Read more