Skip to content

Instantly share code, notes, and snippets.

View Bryan-b's full-sized avatar
🦾
I am Techfaithful

Bryan Ebeh Bryan-b

🦾
I am Techfaithful
View GitHub Profile
@Bryan-b
Bryan-b / timezone.json
Created July 16, 2024 23:11
All region timezone data
[
{
"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",
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
@Bryan-b
Bryan-b / nigerian-states.json
Last active March 16, 2024 19:38 — forked from chrisidakwo/nigerian-states.json
All 36 states in Nigeria, and their local government areas - including the Federal Capital Territory and its area councils
{
"Abia": [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala-Ngwa North",
"Isiala-Ngwa South",
"Isuikwato",
@Bryan-b
Bryan-b / ANSI_color.txt
Created October 24, 2023 12:51
ANSI color codes for bash
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
@Bryan-b
Bryan-b / base64_mime_type.json
Created October 20, 2023 09:12
Mime type from base64 image
{
"/9j/": "image/jpeg",
"iVBORw0KGg": "image/png",
"R0lGODdh": "image/gif",
"UklGR": "image/webp",
"Qk0": "image/bmp",
"AAAA": "image/x-icon"
}
@Bryan-b
Bryan-b / regex.txt
Created August 5, 2019 03:31 — forked from nerdsrescueme/regex.txt
Common Regex
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})*$/'