From eccede41edd3a6a88dea89d796de023228a80255 Mon Sep 17 00:00:00 2001 From: Dien Luong Date: Wed, 2 Jan 2019 11:21:33 -0500 Subject: [PATCH 01/44] jsdoc.md: Fixed Types table Escape the '|' in the "Multiple types" row. --- jsdoc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsdoc.md b/jsdoc.md index dae7a7a0c..fb1541e5a 100644 --- a/jsdoc.md +++ b/jsdoc.md @@ -31,7 +31,7 @@ See: | --- | --- | | `@param {string=} n` | Optional | | `@param {string} [n]` | Optional | -| `@param {(string|number)} n` | Multiple types | +| `@param {(string\|number)} n`| Multiple types | | `@param {*} n` | Any type | | `@param {...string} n` | Repeatable arguments | | `@param {string} [n="hi"]` | Optional with default | From 4f0fb36e6da2f5fbae3c88076a59e4cb8720e4dd Mon Sep 17 00:00:00 2001 From: David Winterstein <12933996+davidwinterstein@users.noreply.github.com> Date: Fri, 4 Jan 2019 14:49:58 +0100 Subject: [PATCH 02/44] regexp.md - add {,x} character class --- regexp.md | 1 + 1 file changed, 1 insertion(+) diff --git a/regexp.md b/regexp.md index 6f3313de6..853762c09 100644 --- a/regexp.md +++ b/regexp.md @@ -55,5 +55,6 @@ description: | | `a+` | Match 1 or more | | `a?` | Match 0 or 1 | | `a{5}` | Match exactly 5 | +| `a{,3}` | Match up to 3 | | `a{3,}` | Match 3 or more | | `a{1,3}` | Match between 1 and 3 | From a75bec82da3901f52b057964420f7fe06e46c882 Mon Sep 17 00:00:00 2001 From: Will Ware Date: Tue, 8 Jan 2019 12:05:23 -0500 Subject: [PATCH 03/44] "not digit" => "d" is upper case? --- regexp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexp.md b/regexp.md index 6f3313de6..dec4847a8 100644 --- a/regexp.md +++ b/regexp.md @@ -19,7 +19,7 @@ description: | | `\d` | Digit | | `\s` | Whitespace | | `\W` | Not word | -| `\d` | Not digit | +| `\D` | Not digit | | `\S` | Not whitespace | | `[abc]` | Any of a, b, or c | | `[a-e]` | Characters between `a` and `e` | From fa9f16c5ee95928cbd019107f98d89b5fc9e6c51 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 10 Jan 2019 08:33:55 -0600 Subject: [PATCH 04/44] Update jsdoc.md Add a section demonstrating how to import types from typescript libraries. --- jsdoc.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jsdoc.md b/jsdoc.md index dae7a7a0c..9fed13b50 100644 --- a/jsdoc.md +++ b/jsdoc.md @@ -2,7 +2,7 @@ title: Jsdoc category: JavaScript layout: 2017/sheet -updated: 2017-10-29 +updated: 2019-01-10 weight: -1 --- @@ -79,6 +79,18 @@ function play (song) { See: +### Importing Types +```js +/** + * @typedef {import('Foo').default} Bar + */ + +/** + * @param {Bar} x + */ +function test(x) { } +``` + ### Other keywords ```js From f2583a9960f41a04eebbf96efcd1c31a2f97d214 Mon Sep 17 00:00:00 2001 From: Shreyas Chand Date: Tue, 15 Jan 2019 22:59:49 -0800 Subject: [PATCH 05/44] Correct description of ":=" and "=" operators The description of the ":=" and "=" assignment operators were flipped. As documented in the GNU make manual (https://www.gnu.org/software/make/manual/make.html#Reading-Makefiles), the ":=" assignment operatory is the immediate assignment operation and "=" is the deferred assignment operation. This change switches the descriptions to correspond to the correct operator and augments the description to clarify the behaviour. --- makefile.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile.md b/makefile.md index 9718ba0b9..84abeaa1f 100644 --- a/makefile.md +++ b/makefile.md @@ -8,8 +8,8 @@ category: CLI ## Var assignment ```makefile -uglify = $(uglify) # assignment -compressor := $(uglify) # lazy assignment +uglify = $(uglify) # assignment (right hand side is evaluated when variable is used) +compressor := $(uglify) # immediate assignment (right hand side is evaluated at assignment) prefix ?= /usr/local # safe assignment ``` From 3b758480db34c2096b589a1afa65189690bb84d3 Mon Sep 17 00:00:00 2001 From: Yulia Kostrikova Date: Thu, 17 Jan 2019 21:45:56 +0200 Subject: [PATCH 06/44] Linux commands --- .gitignore | 1 + linux.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index bb94ff69d..810939e66 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site .jekyll-metadata /node_modules /vendor +.idea/ \ No newline at end of file diff --git a/linux.md b/linux.md index 3bb925b7c..a6a947f51 100644 --- a/linux.md +++ b/linux.md @@ -11,3 +11,6 @@ title: Linux sudo visudo username ALL=(ALL) NOPASSWD:/sbin/restart whatever + +### Answer yes in a bash script + yes | /your/command \ No newline at end of file From 11b4c983a180d9cd2eef4811dac6c0b8a1a7298f Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 20 Jan 2019 13:59:01 +0800 Subject: [PATCH 07/44] Remove trace of old sponsor code --- _includes/2017/berry-sponsor.html | 13 --- _layouts/2017/home.html | 6 -- _layouts/2017/sheet.html | 6 -- _sass/2017/base/fade.scss | 21 +---- _sass/2017/components/berry-sponsor.scss | 62 ------------- _sass/2017/style.scss | 111 +++++++++++------------ 6 files changed, 57 insertions(+), 162 deletions(-) delete mode 100644 _includes/2017/berry-sponsor.html delete mode 100644 _sass/2017/components/berry-sponsor.scss diff --git a/_includes/2017/berry-sponsor.html b/_includes/2017/berry-sponsor.html deleted file mode 100644 index 60bccf4f2..000000000 --- a/_includes/2017/berry-sponsor.html +++ /dev/null @@ -1,13 +0,0 @@ -{% assign pixel_href = 'https://codefund.io/t/l/TOKEN/pixel.png' | replace: 'TOKEN', site.data.berry.token %} -{% assign link_href = 'https://codefund.io/t/c/TOKEN/' | replace: 'TOKEN', site.data.berry.token %} - - diff --git a/_layouts/2017/home.html b/_layouts/2017/home.html index feb7b9ac8..36b3dde6e 100644 --- a/_layouts/2017/home.html +++ b/_layouts/2017/home.html @@ -31,12 +31,6 @@ {% include 2017/search-form.html live=true %} - {% if site.data.berry.enabled %} - - {% endif %} - {% if site.data.codefund.enabled %}