diff options
Diffstat (limited to 'content/til')
-rw-r--r-- | content/til/_index.fr.md | 9 | ||||
-rw-r--r-- | content/til/_index.md | 7 | ||||
-rw-r--r-- | content/til/css-exfil.md | 10 | ||||
-rw-r--r-- | content/til/default_light.png | bin | 172363 -> 0 bytes | |||
-rw-r--r-- | content/til/devtool-theme.md | 13 | ||||
-rw-r--r-- | content/til/emulate_dark.png | bin | 177040 -> 0 bytes | |||
-rw-r--r-- | content/til/insert-unicode.md | 16 | ||||
-rw-r--r-- | content/til/json-output-format.fr.md | 12 | ||||
-rw-r--r-- | content/til/json-output-format.md | 15 | ||||
-rw-r--r-- | content/til/regex-unicode.md | 14 | ||||
-rw-r--r-- | content/til/vim-jp.fr.md | 14 | ||||
-rw-r--r-- | content/til/vim-jp.md | 14 | ||||
-rw-r--r-- | content/til/vim-paste-file.md | 8 |
13 files changed, 0 insertions, 132 deletions
diff --git a/content/til/_index.fr.md b/content/til/_index.fr.md deleted file mode 100644 index c331bf2..0000000 --- a/content/til/_index.fr.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: AJA -translationKey: til ---- - -(*Aujourd'hui J'ai Appris...* -- traduit de *Today I learned* en anglais. -100 points d'Internet pour ce qui peut me donner une meilleur traduction.) - -Voici les choses duquel j'apprends tous les jours. diff --git a/content/til/_index.md b/content/til/_index.md deleted file mode 100644 index 8808ccd..0000000 --- a/content/til/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: TIL -lang: en -translationKey: til ---- - -These are lists of small tricks or fun trivia I learned. diff --git a/content/til/css-exfil.md b/content/til/css-exfil.md deleted file mode 100644 index 8cb09a4..0000000 --- a/content/til/css-exfil.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "TIL: CSS can steal your data" -date: 2021-02-06T23:06:51+07:00 -translationKey: css-exfil -tags: [css, exfil, vulnerability, security] ---- - -The vulnerability is called [CSS Exfil][exfil]. - -[exfil]: https://www.mike-gualtieri.com/posts/stealing-data-with-css-attack-and-defense diff --git a/content/til/default_light.png b/content/til/default_light.png deleted file mode 100644 index bfe18fc..0000000 --- a/content/til/default_light.png +++ /dev/null Binary files differdiff --git a/content/til/devtool-theme.md b/content/til/devtool-theme.md deleted file mode 100644 index 25d6d77..0000000 --- a/content/til/devtool-theme.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -categories: [til] -title: "TIL: Devtool allows you to emulate system theme" -date: 2021-05-03T11:15:35+07:00 -tag: [css, theme] ---- - -Today I learned Firefox's devtool provides you with a tool to emulate -dark/light mode (probably Chrome does, too). It can be useful for front-end -developers when they want to design a system-based theme switch. - -![My default theme, light theme](/til/default_light.png) -![After choosing dark mode emulation](/til/emulate_dark.png) diff --git a/content/til/emulate_dark.png b/content/til/emulate_dark.png deleted file mode 100644 index a45fa1c..0000000 --- a/content/til/emulate_dark.png +++ /dev/null Binary files differdiff --git a/content/til/insert-unicode.md b/content/til/insert-unicode.md deleted file mode 100644 index 0fd6b28..0000000 --- a/content/til/insert-unicode.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: "TIL How to insert unicode in vim" -date: 2022-02-20 -lang: en -categories: [ til ] -tags: [vim, how-to, unicode] -translationKey: "vim-insert-unicode" ---- - -Today I learned how to insert unicode in Vim. It's simple: - -In insert mode, type <kbd>Ctrl+V</kbd>, then type <kbd>u</kbd>, then type the -hex unicode. - -You can also type character like escape (shown as `^[`) or carriage return -(shown as `^M`) by typing <kbd>Esc</kbd> or <kbd>Enter</kbd> respectively. diff --git a/content/til/json-output-format.fr.md b/content/til/json-output-format.fr.md deleted file mode 100644 index ae77803..0000000 --- a/content/til/json-output-format.fr.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: "AJA comment imprinter du JSON avec des couleurs" -date: 2021-04-27T17:06:51+07:00 -translationKey: json-output-format -tags: [bash, cli, json, trick] ---- - -On peut formatter du JSON avec des couleurs avec `jq` et le lire avec `less`: - -```bash -<command> | jq -C | less -r -``` diff --git a/content/til/json-output-format.md b/content/til/json-output-format.md deleted file mode 100644 index 5bbc153..0000000 --- a/content/til/json-output-format.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "TIL: Formatting JSON Output" -date: 2021-04-27T17:06:51+07:00 -translationKey: json-output-format -tags: [bash, cli, json, trick] ---- - -TIL: Syntax-highlighted JSON output - -If you have some command that return (long) JSON, you can view it formatted -with color with: - -```bash -<command> | jq -C | less -r -``` diff --git a/content/til/regex-unicode.md b/content/til/regex-unicode.md deleted file mode 100644 index f2c7b94..0000000 --- a/content/til/regex-unicode.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: "TIL How to match Unicode in RegEx" -date: 2022-02-13T16:32:53+07:00 -translationKey: regex-unicode -tags: [regex, "regular expression", unicode] ---- - -Today I learned how to match [unicode in RegEx][regex-unicode]. - -For example, unicode-encoded letters (that is, any letters from any language) -can be matched with `\p{L}`. View [an example on RegEx 101][example] - -[regex-unicode]: https://www.regular-expressions.info/unicode.html -[example]: https://regex101.com/r/N602FX/1 diff --git a/content/til/vim-jp.fr.md b/content/til/vim-jp.fr.md deleted file mode 100644 index ed86d0f..0000000 --- a/content/til/vim-jp.fr.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: "AJA que on peut écrire le japonais avec vim" -date: 2021-04-19T17:58:51+07:00 -translationKey: vim-jp -tags: [vim, japanese, useless, hiragana, katakana] ---- - -On peut écrire du Hiragana and Katakana avec vim: -Appuyer Ctrl+K puis écrire le nom du glyph en Romanji: - -- Hiragana: ^Kna → な -- Katakana: ^KNa → ナ - -Les autres caractères: <http://vimdoc.sourceforge.net/htmldoc/digraph.html#digraph-table> diff --git a/content/til/vim-jp.md b/content/til/vim-jp.md deleted file mode 100644 index 5592824..0000000 --- a/content/til/vim-jp.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: "TIL: You can type Hiragana and Katakana on vim" -date: 2021-04-19T17:58:51+07:00 -translationKey: vim-jp -tags: [vim, japanese, useless, hiragana, katakana] ---- - -You can type Hiragana and Katakana on vim: -Type Ctrl+K then type the glyph name in Romanji - -- Hiragana: ^Kna → な -- Katakana: ^KNa → ナ - -Full list: <http://vimdoc.sourceforge.net/htmldoc/digraph.html#digraph-table> diff --git a/content/til/vim-paste-file.md b/content/til/vim-paste-file.md deleted file mode 100644 index 712085e..0000000 --- a/content/til/vim-paste-file.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "TIL: Paste filename in vim" -date: 2021-04-27T23:12:29+07:00 -translationKey: vim-paste-file -tags: [vim, trick] ---- - -To paste the current file's name into itself, type Ctrl+R then %. |