From 7603f5879b888b35014b26a4e5af021822f0f4df Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 7 Jul 2014 10:26:04 +0800 Subject: [PATCH] Update. --- css-antialias.md | 2 -- facebook.md | 13 +++++++++++++ jekyll.md | 38 +++++++++++++++++++++++++++++++++++++- js-array.md | 14 ++++++++++---- package.md | 6 +++--- sinon.md | 14 ++++++++++++++ 6 files changed, 77 insertions(+), 10 deletions(-) create mode 100644 facebook.md diff --git a/css-antialias.md b/css-antialias.md index 62de06bab..498270d4b 100644 --- a/css-antialias.md +++ b/css-antialias.md @@ -3,8 +3,6 @@ title: CSS antialiasing layout: default --- -### On - * { text-rendering: optimizeLegibility !important; -webkit-font-smoothing: antialiased !important; diff --git a/facebook.md b/facebook.md new file mode 100644 index 000000000..30d51bbf0 --- /dev/null +++ b/facebook.md @@ -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/ diff --git a/jekyll.md b/jekyll.md index 9a6c2c94c..fdd85fda7 100644 --- a/jekyll.md +++ b/jekyll.md @@ -146,7 +146,7 @@ Markup {\% else %} {\% endif %} -### Includes +### Includes (partials) {\% include header.html %} @@ -178,6 +178,39 @@ Blogging {\% 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 ----------- @@ -195,3 +228,6 @@ Integration ### References * 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 diff --git a/js-array.md b/js-array.md index e1985405b..e55220ce0 100644 --- a/js-array.md +++ b/js-array.md @@ -21,15 +21,21 @@ layout: default ### Adding items - array.push(Z) // array == [a,b,c,d,e,Z] - array.unshift(Z) // array == [Z,a,b,c,d,e] + array.push(X) // array == [_,_,_,_,_,X] + 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.shift() //=> a array == [b,c,d,e] + array.splice(2, 1) //=> [c] array == [a,b,d,e] diff --git a/package.md b/package.md index 41d930a1f..67d0d2a2b 100644 --- a/package.md +++ b/package.md @@ -13,9 +13,9 @@ layout: default "version": "0.1.0", "engines": {"node": ">=0.8.0"}, "repository": { - "type": "git", - "url": "https://github.com/rstacruz/___.git" - }, + "type": "git", + "url": "https://github.com/rstacruz/___.git" + }, } ### Dependencies diff --git a/sinon.md b/sinon.md index 2293100e0..2f49519cd 100644 --- a/sinon.md +++ b/sinon.md @@ -57,3 +57,17 @@ title: Sinon beforeEach -> global.sinon = require('sinon').sandbox.create() afterEach -> global.sinon.restore() +### + + .args + .thisValues + .returnValues + + .getCalls + + .called + .notCalled + .callCount + .calledOnce + .calledTwice + .callThrice