Content formatting update (#1965)

This commit is contained in:
Rico Sta. Cruz 2023-03-13 23:02:33 +11:00 committed by GitHub
parent ab9ab48bc5
commit 711ba22911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 126 additions and 28 deletions

View File

@ -1,9 +1,14 @@
--- ---
title: React-router title: React-router
category: React category: React
layout: default-ad layout: 2017/sheet
--- ---
### About
{: .-intro}
- <https://reactrouter.com/>
{% raw %} {% raw %}
### Basic ### Basic

17
riot.md
View File

@ -1,10 +1,17 @@
--- ---
title: Riot.js title: Riot.js
category: JavaScript libraries category: JavaScript libraries
layout: default-ad layout: layout.md
--- ---
## Tags ### About
{: .-intro}
Riot is a UI library for JavaScript.
- <https://riot.js.org/>
### Tags
```js ```js
/* tag-name.tag */ /* tag-name.tag */
@ -25,7 +32,7 @@ layout: default-ad
<script>riot.mount('tag-name', { title: 'my app', ... })</script> <script>riot.mount('tag-name', { title: 'my app', ... })</script>
``` ```
## Expressions ### Expressions
``` ```
{value} {value}
@ -70,6 +77,8 @@ riot.update() // update all
## Nesting ## Nesting
### Nesting
``` ```
<my-tag> <my-tag>
<child></child> <child></child>
@ -88,6 +97,8 @@ riot.update() // update all
## Nested HTML ## Nested HTML
### Yield
```js ```js
<yield/> <yield/>
``` ```

View File

@ -1,8 +1,17 @@
--- ---
title: Rspec-rails title: Rspec-rails
category: Ruby 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.
- <https://rspec.info/>
- <https://github.com/rspec/rspec-rails>
### Spec tasks ### Spec tasks
rake spec:controllers rake spec:controllers

View File

@ -1,8 +1,16 @@
--- ---
title: RSpec title: RSpec
category: Ruby category: Ruby
layout: 2017/sheet
--- ---
### About
{: .-intro}
RSpec is a Ruby library for testing.
- <https://rspec.info/>
### Invoking tests ### Invoking tests
```sh ```sh

8
rst.md
View File

@ -1,8 +1,16 @@
--- ---
title: ReStructuredText title: ReStructuredText
category: Markup category: Markup
layout: 2017/sheet
--- ---
### About
{: .-intro}
ReStructuredText is a markup language for writing documents.
- <https://en.wikipedia.org/wiki/ReStructuredText>
### Comments ### Comments
.. @theme 2010 .. @theme 2010

View File

@ -1,8 +1,16 @@
--- ---
title: Sequel title: Sequel
category: Ruby libraries category: Ruby libraries
layout: 2017/sheet
--- ---
### About
{: .-intro}
Sequel is a database toolkit for Ruby.
- <https://github.com/jeremyevans/sequel>
### Open a database ### Open a database
require 'rubygems' require 'rubygems'

View File

@ -1,8 +1,16 @@
--- ---
title: Sequelize title: Sequelize
category: Ruby libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### About
{: .-intro}
Sequelize is an ORM for JavaScript.
- <https://sequelize.org/>
### API ### API
sequelize.sync().done -> ... sequelize.sync().done -> ...

View File

@ -1,11 +1,13 @@
--- ---
title: Sinon-chai title: Sinon-chai
category: JavaScript libraries 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 ### Initialization

View File

@ -1,5 +1,6 @@
--- ---
title: Social media images title: Social media images
layout: 2017/sheet
--- ---
### Facebook ### Facebook
@ -22,4 +23,4 @@ title: Social media images
### References ### References
* https://developers.facebook.com/docs/plugins/checklist/ * <https://developers.facebook.com/docs/plugins/checklist/>

View File

@ -1,11 +1,21 @@
--- ---
title: Spine title: Spine
category: JavaScript libraries category: JavaScript libraries
vim: ft=python layout: 2017/sheet
tags: [Outdated]
--- ---
## Models ## Models
### About
{: .-intro}
Spine is an MVC framework for JavaScript.
- <https://spine.github.io/>
### Models
class User extends Spine.Model class User extends Spine.Model
@configure "User", "name", "address" @configure "User", "name", "address"
@ -128,6 +138,8 @@ vim: ft=python
## Ajax ## Ajax
### Ajax
class User extends Spine.Model class User extends Spine.Model
@extend Spine.Model.Ajax @extend Spine.Model.Ajax
@ -173,11 +185,3 @@ vim: ft=python
photo = Photo.create(album: album) photo = Photo.create(album: album)
photo.album() photo.album()
photo.album_id photo.album_id
### See
* http://spinejs.com/api/index
* http://spinejs.com/api/models
* http://spinejs.com/docs/ajax
* http://spinejs.com/docs/relations

View File

@ -2,7 +2,7 @@
title: Superagent title: Superagent
category: JavaScript libraries category: JavaScript libraries
updated: 2018-04-21 updated: 2018-04-21
prism_languages: [javascript] layout: 2017/sheet
tags: tags:
- WIP - WIP
--- ---

View File

@ -1,6 +1,7 @@
--- ---
title: tmux title: tmux
category: CLI category: CLI
layout: 2017/sheet
--- ---
### Commands ### Commands
@ -82,6 +83,8 @@ See `message-command-style` in the man page.
### Attribute/colors ### Attribute/colors
| Key | Description |
| --- | --- |
| `#[fg=1]` | standard color | | `#[fg=1]` | standard color |
| `#[fg=yellow]` | yellow | | `#[fg=yellow]` | yellow |
| `#[bold]` | bold | | `#[bold]` | bold |
@ -103,6 +106,8 @@ See `message-command-style` in the man page.
### Variables ### Variables
| Key | Description |
| --- | --- |
| `#(date)` | shell command | | `#(date)` | shell command |
| `#I` | window index | | `#I` | window index |
| `#S` | session name | | `#S` | session name |

View File

@ -1,11 +1,14 @@
--- ---
title: TypeScript title: TypeScript
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### About
TypeScript is just like ES2015 with type-checking. All ES2015 (classes, etc) should work. TypeScript is just like ES2015 with type-checking. All ES2015 (classes, etc) should work.
## Basic types ### Basic types
```ts ```ts
any any
@ -40,7 +43,7 @@ enum Color {
let c: Color = Color.Green let c: Color = Color.Green
``` ```
## Declarations ### Declarations
```ts ```ts
let isDone: boolean let isDone: boolean
@ -129,6 +132,8 @@ interface User {
## Type aliases ## Type aliases
### Type aliases
```ts ```ts
type Name = string | string[] type Name = string | string[]
``` ```

View File

@ -1,5 +1,6 @@
--- ---
title: Ubuntu title: Ubuntu
layout: 2017/sheet
--- ---
### Aptitude stuff ### Aptitude stuff

View File

@ -1,8 +1,13 @@
--- ---
title: Universal JS module loader title: Universal JS module loader
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### Reference
* <https://github.com/umdjs/umd>
### [With dependency](https://github.com/umdjs/umd/blob/master/amdWebGlobal.js) ### [With dependency](https://github.com/umdjs/umd/blob/master/amdWebGlobal.js)
~~~ js ~~~ js
@ -56,7 +61,3 @@ category: JavaScript libraries
exports.action = function () {}; exports.action = function () {};
})); }));
~~~ ~~~
### Reference
* https://github.com/umdjs/umd

View File

@ -1,6 +1,7 @@
--- ---
title: Underscore-string title: Underscore-string
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### Usage ### Usage

View File

@ -1,7 +1,10 @@
--- ---
title: Unicode symbols title: Unicode symbols
layout: 2017/sheet
--- ---
### Symbols
✈ \u2708 airplane ✈ \u2708 airplane
❄ \u2744 snowflake ❄ \u2744 snowflake
⚑ \u2691 flag ⚑ \u2691 flag

View File

@ -1,6 +1,7 @@
--- ---
title: Vim digraphs title: Vim digraphs
category: Vim category: Vim
layout: 2017/sheet
--- ---
### Typing digraphs in insert mode ### Typing digraphs in insert mode

View File

@ -3,6 +3,7 @@ title: Vim Easyalign
html_class: key-codes html_class: key-codes
hljs_languages: [vim] hljs_languages: [vim]
category: Vim category: Vim
layout: 2017/sheet
--- ---
## Command mode ## Command mode

View File

@ -2,11 +2,16 @@
title: Vim-rails title: Vim-rails
category: Vim category: Vim
html_class: key-codes html_class: key-codes
layout: 2017/sheet
--- ---
Alternate files Alternate files
--------------- ---------------
### Alternate files
| Command | Description |
| --- | --- |
| `:A` | alternate file (test) | | `:A` | alternate file (test) |
| `:R` | related file (controller/view) | | `:R` | related file (controller/view) |

View File

@ -1,10 +1,12 @@
--- ---
title: Vimscript functions title: Vimscript functions
category: Vim category: Vim
layout: 2017/sheet
--- ---
Dictionaries ## Dictionaries and lists
------------
### Dictionaries
```vim ```vim
let colors = { let colors = {
@ -39,8 +41,7 @@ for key in keys(mydict)
endfor endfor
``` ```
Lists ### Lists
-----
```vim ```vim
let mylist = [1, two, 3, "four"] let mylist = [1, two, 3, "four"]

View File

@ -1,6 +1,7 @@
--- ---
title: Vimscript snippets title: Vimscript snippets
category: Vim category: Vim
layout: 2017/sheet
--- ---
### Bind function to key and command ### Bind function to key and command

View File

@ -1,10 +1,15 @@
--- ---
title: Virtual-dom title: Virtual-dom
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### About
See <https://www.npmjs.com/package/virtual-dom> See <https://www.npmjs.com/package/virtual-dom>
### Example
```js ```js
var h = require('virtual-dom/h') var h = require('virtual-dom/h')
var diff = require('virtual-dom/diff') var diff = require('virtual-dom/diff')

View File

@ -1,8 +1,11 @@
--- ---
title: Vows title: Vows
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### About vows
* [Vowsjs.org](http://vowsjs.org/) * [Vowsjs.org](http://vowsjs.org/)
### CoffeeScript usage ### CoffeeScript usage

View File

@ -1,6 +1,7 @@
--- ---
title: Yargs title: Yargs
category: JavaScript libraries category: JavaScript libraries
layout: 2017/sheet
--- ---
### Basic usage ### Basic usage