Update.
This commit is contained in:
parent
faeddb97b5
commit
7603f5879b
|
@ -3,8 +3,6 @@ title: CSS antialiasing
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
### On
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
text-rendering: optimizeLegibility !important;
|
text-rendering: optimizeLegibility !important;
|
||||||
-webkit-font-smoothing: antialiased !important;
|
-webkit-font-smoothing: antialiased !important;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: Facebook
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
### Share images (og:image)
|
||||||
|
|
||||||
|
* Use 1200x630 (1.9:1)
|
||||||
|
* anything less than 600x315 becomes square
|
||||||
|
|
||||||
|
### References
|
||||||
|
|
||||||
|
* https://developers.facebook.com/docs/plugins/checklist/
|
38
jekyll.md
38
jekyll.md
|
@ -146,7 +146,7 @@ Markup
|
||||||
{\% else %}
|
{\% else %}
|
||||||
{\% endif %}
|
{\% endif %}
|
||||||
|
|
||||||
### Includes
|
### Includes (partials)
|
||||||
|
|
||||||
{\% include header.html %}
|
{\% include header.html %}
|
||||||
|
|
||||||
|
@ -178,6 +178,39 @@ Blogging
|
||||||
|
|
||||||
{\% for member in site.data.members %}
|
{\% for member in site.data.members %}
|
||||||
|
|
||||||
|
Helpers and Filters
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
{\{ site.time | date_to_xmlschema }} #=> 2008-11-07T13:07:54-08:00
|
||||||
|
{\{ site.time | date_to_rfc822 }} #=> Mon, 07 Nov 2008 13:07:54 -0800
|
||||||
|
{\{ site.time | date_to_string }} #=> 07 Nov 2008
|
||||||
|
{\{ site.time | date_to_long_string }} #=> 07 November 2008
|
||||||
|
|
||||||
|
| where:"year","2014"
|
||||||
|
| group_by:"genre"
|
||||||
|
| sort
|
||||||
|
|
||||||
|
| xml_escape
|
||||||
|
| cgi_escape
|
||||||
|
| uri_escape
|
||||||
|
|
||||||
|
| array_to_sentence_string
|
||||||
|
| number_of_words
|
||||||
|
|
||||||
|
| textilize
|
||||||
|
| markdownify
|
||||||
|
| jsonify
|
||||||
|
|
||||||
|
| camelize
|
||||||
|
| capitalize
|
||||||
|
| pluralize
|
||||||
|
|
||||||
|
| date: "%Y %m %d"
|
||||||
|
| default: "xxx"
|
||||||
|
|
||||||
|
| replace: "super", "mega"
|
||||||
|
| replace_first: "super", "mega"
|
||||||
|
|
||||||
Integration
|
Integration
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
@ -195,3 +228,6 @@ Integration
|
||||||
### References
|
### References
|
||||||
|
|
||||||
* http://jekyllrb.com/docs/home/
|
* http://jekyllrb.com/docs/home/
|
||||||
|
* http://jekyllrb.com/docs/templates/
|
||||||
|
* http://docs.shopify.com/themes/liquid-basics/output
|
||||||
|
* http://docs.shopify.com/themes/liquid-basics/logic
|
||||||
|
|
14
js-array.md
14
js-array.md
|
@ -21,15 +21,21 @@ layout: default
|
||||||
|
|
||||||
### Adding items
|
### Adding items
|
||||||
|
|
||||||
array.push(Z) // array == [a,b,c,d,e,Z]
|
array.push(X) // array == [_,_,_,_,_,X]
|
||||||
array.unshift(Z) // array == [Z,a,b,c,d,e]
|
array.unshift(X) // array == [X,_,_,_,_,_]
|
||||||
|
array.splice(2, 0, X) // array == [_,_,X,_,_,_]
|
||||||
|
|
||||||
array.concat([F,G]) //=> [a,b,c,d,e,F,G]
|
array.concat([X,Y]) //=> [_,_,_,_,_,X,Y]
|
||||||
|
|
||||||
### Taking items
|
### Replace items
|
||||||
|
|
||||||
|
array.splice(2, 1, X) // array == [a,b,X,d,e]
|
||||||
|
|
||||||
|
### Removing items
|
||||||
|
|
||||||
array.pop() //=> e array == [a,b,c,d]
|
array.pop() //=> e array == [a,b,c,d]
|
||||||
array.shift() //=> a array == [b,c,d,e]
|
array.shift() //=> a array == [b,c,d,e]
|
||||||
|
array.splice(2, 1) //=> [c] array == [a,b,d,e]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
14
sinon.md
14
sinon.md
|
@ -57,3 +57,17 @@ title: Sinon
|
||||||
beforeEach -> global.sinon = require('sinon').sandbox.create()
|
beforeEach -> global.sinon = require('sinon').sandbox.create()
|
||||||
afterEach -> global.sinon.restore()
|
afterEach -> global.sinon.restore()
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
.args
|
||||||
|
.thisValues
|
||||||
|
.returnValues
|
||||||
|
|
||||||
|
.getCalls
|
||||||
|
|
||||||
|
.called
|
||||||
|
.notCalled
|
||||||
|
.callCount
|
||||||
|
.calledOnce
|
||||||
|
.calledTwice
|
||||||
|
.callThrice
|
||||||
|
|
Loading…
Reference in New Issue