#Inspection Tools with homebrew-php#
##Prerequisites##
- Homebrew is installed
##Step 1: Installing homebrew-php##
brew tap homebrew/dupesbrew tap josegonzalez/homebrew-phpbrew install PHP53(or other version of your choice)
| export type ISO6391 = | |
| | 'ab' | |
| | 'aa' | |
| | 'af' | |
| | 'ak' | |
| | 'sq' | |
| | 'am' | |
| | 'ar' | |
| | 'an' | |
| | 'hy' |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "type": "shell", | |
| "command": "yarn", | |
| "args": [ | |
| { | |
| "value": "test:unit", | |
| "quoting": "strong" |
| // type First<T extends unknown[]> = T extends { length: 0 } ? never : T[0]; | |
| // type arr1 = ['a', 'b', 'c'] | |
| // type arr2 = [3, 2, 1] | |
| // type head1 = First<arr1> // expected to be 'a' | |
| // type head2 = First<arr2> // expected to be 3 | |
| function slugify(string) { | |
| const a = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ·/_,:;' | |
| const b = 'abgdevztiklmnopjrstufqgkscczwwxjh------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
| .replace(/&/g, '-and-') // Replace & with 'and' | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word characters |
#Inspection Tools with homebrew-php#
##Prerequisites##
##Step 1: Installing homebrew-php##
brew tap homebrew/dupesbrew tap josegonzalez/homebrew-phpbrew install PHP53 (or other version of your choice)