Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
| let data: Record<string, any> = { initial: "something" } | |
| let key = "root.field.subField" | |
| const setNestedValue = (obj: Record<string, any>, path: string, value) => { | |
| return path.split(".") | |
| .reduce((acc, cur, index, arr) => index === arr.length - 1 ? acc[cur] = value : acc[cur] = {}, obj) | |
| } | |
| const getNestedValue = (obj: Record<string, any>, path: string, defaultValue?: any) => |
| function getSupervisorName(enteredId: string | null) { | |
| let employee, supervisor; | |
| if (null != enteredId && | |
| null != (employee = repository.findById(parseInt(enteredId))) && | |
| null != employee.supervisorId && | |
| null != (supervisor = repository.findById(employee.supervisorId))) | |
| return supervisor.name; | |
| } |
| function getSupervisorName(enteredId: string | null) { | |
| let employee, supervisor; | |
| if (null != enteredId && | |
| null != (employee = repository.findById(parseInt(enteredId))) && | |
| null != employee.supervisorId && | |
| null != (supervisor = repository.findById(employee.supervisorId))) | |
| return supervisor.name; | |
| } |
| #Option 1 | |
| set -U fish_user_paths /usr/local/bin $fish_user_paths | |
| #option 2 | |
| set PATH $PATH /usr/local/bin | |
| export PATH | |
| function ll | |
| ls -lh $argv | |
| end |
Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
| { | |
| "recommendations": [ | |
| "aaron-bond.better-comments", | |
| "adpyke.codesnap", | |
| "adrianwilczynski.alpine-js-intellisense", | |
| "ahinkle.laravel-model-snippets", | |
| "ahmadawais.shades-of-purple", | |
| "aibnuhibban.laravel-smart-command", | |
| "alefragnani.project-manager", | |
| "amiralizadeh9480.laravel-extra-intellisense", |
| #!/usr/bin/env zsh | |
| # | |
| # This script generates and writes to file another bash-script (output_script) | |
| # that implements "vscodeInstallExtensions" function which installs all | |
| # Visual Studio Code extensions that were originally installed on your machine | |
| # at the moment of generation output_script by running | |
| # "vscodeUpdateExtensionsInstallationScript" function that is implemented here below. | |
| # | |
| # # How to use | |
| # |
| <?xml version="1.0"?> | |
| <ruleset name="Laravel Standards"> | |
| <!-- | |
| The name attribute of the ruleset tag is displayed | |
| when running PHP_CodeSniffer with the -v command line | |
| argument. The description tag below is not displayed anywhere | |
| except in this file, so it can contain information for | |
| developers who may change this file in the future. | |
| --> |
| <?xml version="1.0"?> | |
| <ruleset name="PHP_CodeSniffer"> | |
| <description>PHPCS configuration file.</description> | |
| <!-- check all files in the app directory, feel free to add more files with: | |
| <file>FOLDER NAME</file> | |
| --> | |
| <file>app</file> | |
| <file>bootstrap</file> |