diff --git a/react-router.md b/react-router.md index 9bd0689c1..4b51a0dd5 100644 --- a/react-router.md +++ b/react-router.md @@ -1,9 +1,14 @@ --- title: React-router category: React -layout: default-ad +layout: 2017/sheet --- +### About +{: .-intro} + +- + {% raw %} ### Basic diff --git a/riot.md b/riot.md index 495b35969..00e34ba04 100644 --- a/riot.md +++ b/riot.md @@ -1,10 +1,17 @@ --- title: Riot.js category: JavaScript libraries -layout: default-ad +layout: layout.md --- -## Tags +### About +{: .-intro} + +Riot is a UI library for JavaScript. + +- + +### Tags ```js /* tag-name.tag */ @@ -25,7 +32,7 @@ layout: default-ad ``` -## Expressions +### Expressions ``` {value} @@ -70,6 +77,8 @@ riot.update() // update all ## Nesting +### Nesting + ``` @@ -88,6 +97,8 @@ riot.update() // update all ## Nested HTML +### Yield + ```js ``` diff --git a/rspec-rails.md b/rspec-rails.md index e5d1d445f..ecd78325e 100644 --- a/rspec-rails.md +++ b/rspec-rails.md @@ -1,8 +1,17 @@ --- title: Rspec-rails category: Ruby +layout: 2017/sheet --- +### About +{: .-intro} + +RSpec is a Ruby library for testing. [rspec-rails](https://github.com/rspec/rspec-rails) is its Rails integration. + +- +- + ### Spec tasks rake spec:controllers diff --git a/rspec.md b/rspec.md index 415b4cc30..853791d38 100644 --- a/rspec.md +++ b/rspec.md @@ -1,8 +1,16 @@ --- title: RSpec category: Ruby +layout: 2017/sheet --- +### About +{: .-intro} + +RSpec is a Ruby library for testing. + +- + ### Invoking tests ```sh diff --git a/rst.md b/rst.md index c4f6431a8..98b9430c0 100644 --- a/rst.md +++ b/rst.md @@ -1,8 +1,16 @@ --- title: ReStructuredText category: Markup +layout: 2017/sheet --- +### About +{: .-intro} + +ReStructuredText is a markup language for writing documents. + +- + ### Comments .. @theme 2010 diff --git a/sequel.md b/sequel.md index fec9c3b46..c57b60032 100644 --- a/sequel.md +++ b/sequel.md @@ -1,8 +1,16 @@ --- title: Sequel category: Ruby libraries +layout: 2017/sheet --- +### About +{: .-intro} + +Sequel is a database toolkit for Ruby. + +- + ### Open a database require 'rubygems' diff --git a/sequelize.md b/sequelize.md index ffb52f36b..4ffb8291a 100644 --- a/sequelize.md +++ b/sequelize.md @@ -1,8 +1,16 @@ --- title: Sequelize -category: Ruby libraries +category: JavaScript libraries +layout: 2017/sheet --- +### About +{: .-intro} + +Sequelize is an ORM for JavaScript. + +- + ### API sequelize.sync().done -> ... diff --git a/sinon-chai.md b/sinon-chai.md index 2b2f9c6a3..295f3ba0d 100644 --- a/sinon-chai.md +++ b/sinon-chai.md @@ -1,11 +1,13 @@ --- title: Sinon-chai category: JavaScript libraries -layout: default-ad +layout: 2017/sheet --- - * [Sinon-chai](https://github.com/domenic/sinon-chai) +### About +{: .-intro} + * [Sinon-chai](https://github.com/domenic/sinon-chai) ### Initialization diff --git a/social-images.md b/social-images.md index b7d7fba8f..ab51d5b30 100644 --- a/social-images.md +++ b/social-images.md @@ -1,5 +1,6 @@ --- title: Social media images +layout: 2017/sheet --- ### Facebook @@ -22,4 +23,4 @@ title: Social media images ### References - * https://developers.facebook.com/docs/plugins/checklist/ + * diff --git a/spine.md b/spine.md index c448610b4..74fcfc707 100644 --- a/spine.md +++ b/spine.md @@ -1,11 +1,21 @@ --- title: Spine category: JavaScript libraries -vim: ft=python +layout: 2017/sheet +tags: [Outdated] --- ## Models +### About +{: .-intro} + +Spine is an MVC framework for JavaScript. + +- + +### Models + class User extends Spine.Model @configure "User", "name", "address" @@ -128,6 +138,8 @@ vim: ft=python ## Ajax +### Ajax + class User extends Spine.Model @extend Spine.Model.Ajax @@ -173,11 +185,3 @@ vim: ft=python photo = Photo.create(album: album) photo.album() photo.album_id - - -### See - - * http://spinejs.com/api/index - * http://spinejs.com/api/models - * http://spinejs.com/docs/ajax -* http://spinejs.com/docs/relations diff --git a/superagent.md b/superagent.md index 89a392d61..4705506de 100644 --- a/superagent.md +++ b/superagent.md @@ -2,7 +2,7 @@ title: Superagent category: JavaScript libraries updated: 2018-04-21 -prism_languages: [javascript] +layout: 2017/sheet tags: - WIP --- diff --git a/tmux.md b/tmux.md index db8664a57..044229b39 100644 --- a/tmux.md +++ b/tmux.md @@ -1,6 +1,7 @@ --- title: tmux category: CLI +layout: 2017/sheet --- ### Commands @@ -82,6 +83,8 @@ See `message-command-style` in the man page. ### Attribute/colors +| Key | Description | +| --- | --- | | `#[fg=1]` | standard color | | `#[fg=yellow]` | yellow | | `#[bold]` | bold | @@ -103,6 +106,8 @@ See `message-command-style` in the man page. ### Variables +| Key | Description | +| --- | --- | | `#(date)` | shell command | | `#I` | window index | | `#S` | session name | diff --git a/typescript.md b/typescript.md index a06fee563..d9cd501d6 100644 --- a/typescript.md +++ b/typescript.md @@ -1,11 +1,14 @@ --- title: TypeScript category: JavaScript libraries +layout: 2017/sheet --- +### About + TypeScript is just like ES2015 with type-checking. All ES2015 (classes, etc) should work. -## Basic types +### Basic types ```ts any @@ -40,7 +43,7 @@ enum Color { let c: Color = Color.Green ``` -## Declarations +### Declarations ```ts let isDone: boolean @@ -129,6 +132,8 @@ interface User { ## Type aliases +### Type aliases + ```ts type Name = string | string[] ``` diff --git a/ubuntu.md b/ubuntu.md index fb9a0d725..d2c25ff17 100644 --- a/ubuntu.md +++ b/ubuntu.md @@ -1,5 +1,6 @@ --- title: Ubuntu +layout: 2017/sheet --- ### Aptitude stuff diff --git a/umdjs.md b/umdjs.md index d052c8091..0d8e18f28 100644 --- a/umdjs.md +++ b/umdjs.md @@ -1,8 +1,13 @@ --- title: Universal JS module loader category: JavaScript libraries +layout: 2017/sheet --- +### Reference + + * + ### [With dependency](https://github.com/umdjs/umd/blob/master/amdWebGlobal.js) ~~~ js @@ -56,7 +61,3 @@ category: JavaScript libraries exports.action = function () {}; })); ~~~ - -### Reference - - * https://github.com/umdjs/umd diff --git a/underscore-string.md b/underscore-string.md index 6ee8d7e48..85b1651b2 100644 --- a/underscore-string.md +++ b/underscore-string.md @@ -1,6 +1,7 @@ --- title: Underscore-string category: JavaScript libraries +layout: 2017/sheet --- ### Usage diff --git a/unicode.md b/unicode.md index 04070f771..1939a97c5 100644 --- a/unicode.md +++ b/unicode.md @@ -1,7 +1,10 @@ --- title: Unicode symbols +layout: 2017/sheet --- +### Symbols + ✈ \u2708 airplane ❄ \u2744 snowflake ⚑ \u2691 flag diff --git a/vim-digraphs.md b/vim-digraphs.md index f3ff323b5..764d78534 100644 --- a/vim-digraphs.md +++ b/vim-digraphs.md @@ -1,6 +1,7 @@ --- title: Vim digraphs category: Vim +layout: 2017/sheet --- ### Typing digraphs in insert mode diff --git a/vim-easyalign.md b/vim-easyalign.md index daf66882b..738c9deb9 100644 --- a/vim-easyalign.md +++ b/vim-easyalign.md @@ -3,6 +3,7 @@ title: Vim Easyalign html_class: key-codes hljs_languages: [vim] category: Vim +layout: 2017/sheet --- ## Command mode diff --git a/vim-rails.md b/vim-rails.md index a82d81a3e..61daf3d7b 100644 --- a/vim-rails.md +++ b/vim-rails.md @@ -2,11 +2,16 @@ title: Vim-rails category: Vim html_class: key-codes +layout: 2017/sheet --- Alternate files --------------- +### Alternate files + +| Command | Description | +| --- | --- | | `:A` | alternate file (test) | | `:R` | related file (controller/view) | diff --git a/vimscript-functions.md b/vimscript-functions.md index 1a7c7f55c..2b2b0b823 100644 --- a/vimscript-functions.md +++ b/vimscript-functions.md @@ -1,10 +1,12 @@ --- title: Vimscript functions category: Vim +layout: 2017/sheet --- -Dictionaries ------------- +## Dictionaries and lists + +### Dictionaries ```vim let colors = { @@ -39,8 +41,7 @@ for key in keys(mydict) endfor ``` -Lists ------ +### Lists ```vim let mylist = [1, two, 3, "four"] diff --git a/vimscript-snippets.md b/vimscript-snippets.md index 97f3ed607..8e2b63e56 100644 --- a/vimscript-snippets.md +++ b/vimscript-snippets.md @@ -1,6 +1,7 @@ --- title: Vimscript snippets category: Vim +layout: 2017/sheet --- ### Bind function to key and command diff --git a/virtual-dom.md b/virtual-dom.md index ccffc51dc..402938651 100644 --- a/virtual-dom.md +++ b/virtual-dom.md @@ -1,10 +1,15 @@ --- title: Virtual-dom category: JavaScript libraries +layout: 2017/sheet --- +### About + See +### Example + ```js var h = require('virtual-dom/h') var diff = require('virtual-dom/diff') diff --git a/vows.md b/vows.md index 073b49a9d..82b269156 100644 --- a/vows.md +++ b/vows.md @@ -1,8 +1,11 @@ --- title: Vows category: JavaScript libraries +layout: 2017/sheet --- +### About vows + * [Vowsjs.org](http://vowsjs.org/) ### CoffeeScript usage diff --git a/yargs.md b/yargs.md index bd32b3257..df111be44 100644 --- a/yargs.md +++ b/yargs.md @@ -1,6 +1,7 @@ --- title: Yargs category: JavaScript libraries +layout: 2017/sheet --- ### Basic usage