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
| [ | |
| { | |
| "label":"Pacific/Midway (GMT-11:00)", | |
| "tzCode":"Pacific/Midway", | |
| "name":"(GMT-11:00) Midway", | |
| "utc":"-11:00" | |
| }, | |
| { | |
| "label":"Pacific/Niue (GMT-11:00)", | |
| "tzCode":"Pacific/Niue", |
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
| 1. Zero-shot prompting | |
| Effective on various basic tasks but not as effective for advanced tasks | |
| 2. Few-shot in-context learning | |
| Add high-quality demonstrations to steer the model better | |
| 3. Chain-of-thought (CoT) | |
| Applies chain of thoughts to elicit models to use reasoning steps before responding | |
| 4. ReAct |
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
| { | |
| "Abia": [ | |
| "Aba North", | |
| "Aba South", | |
| "Arochukwu", | |
| "Bende", | |
| "Ikwuano", | |
| "Isiala-Ngwa North", | |
| "Isiala-Ngwa South", | |
| "Isuikwato", |
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
| ANSI color codes are often used to set text and background colors in terminal output. The standard ANSI color codes for text are as follows: | |
| 30: Black | |
| 31: Red | |
| 32: Green | |
| 33: Yellow | |
| 34: Blue | |
| 35: Magenta | |
| 36: Cyan | |
| 37: White |
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
| { | |
| "/9j/": "image/jpeg", | |
| "iVBORw0KGg": "image/png", | |
| "R0lGODdh": "image/gif", | |
| "UklGR": "image/webp", | |
| "Qk0": "image/bmp", | |
| "AAAA": "image/x-icon" | |
| } |
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
| Perl and PHP Regular Expressions | |
| PHP regexes are based on the PCRE (Perl-Compatible Regular Expressions), so any regexp that works for one should be compatible with the other or any other language that makes use of the PCRE format. Here are some commonly needed regular expressions for both PHP and Perl. Each regex will be in string format and will include delimiters. | |
| All Major Credit Cards | |
| This regular expression will validate all major credit cards: American Express (Amex), Discover, Mastercard, and Visa. | |
| //All major credit cards regex | |
| '/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6011[0-9]{12}|622((12[6-9]|1[3-9][0-9])|([2-8][0-9][0-9])|(9(([0-1][0-9])|(2[0-5]))))[0-9]{10}|64[4-9][0-9]{13}|65[0-9]{14}|3(?:0[0-5]|[68][0-9])[0-9]{11}|3[47][0-9]{13})*$/' |