This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; defsrc is necessary | |
| (defcfg | |
| log-layer-changes no | |
| process-unmapped-keys yes | |
| ) | |
| (defsrc | |
| 1 2 3 4 5 6 7 8 9 0 - = | |
| caps | |
| i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git diff --cached <branch> -- <file> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "key": "escape", | |
| "command": "workbench.action.focusActiveEditorGroup", | |
| "when": "!editorTextFocus" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "vim.normalModeKeyBindingsNonRecursive": [ | |
| { | |
| "before": ["<C-]>"], | |
| "commands": [ | |
| "editor.action.refactor" | |
| ] | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $source = [ | |
| 'a', | |
| 'b', | |
| 'c', | |
| ]; | |
| $n = 3; | |
| $repeated = array_fill(0, $n, $source); | |
| $result = call_user_func_array('array_merge', $repeated); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :%s/\/\*\*\_[^\@]*\@test\_[^\/]*\*\//#[Test]/c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| videos=( | |
| # list of videos here | |
| https://www.youtube.com/watch?v=8SMOB6k3hkM | |
| https://www.youtube.com/watch?v=IqHaGd9J42s | |
| ) | |
| for f in ${videos[@]}; do | |
| ./yt-dlp "$f" -f "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --embed-chapters --embed-thumbnail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Post { | |
| const PRIMARY_DATE_FIELD = 'created_at'; | |
| public function year(): int | |
| { | |
| return $this->{self::PRIMARY_DATE_FIELD}->format('Y'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class SUT | |
| { | |
| public function adore(string $arg): void | |
| { | |
| } | |
| public function love(string $first, string $second): void | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class RandomState | |
| { | |
| private $state = [ | |
| 'first' => false, | |
| 'second' => false, | |
| 'third' => false, | |
| ]; |
NewerOlder