This file contains 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
"terminal.integrated.profiles.windows": { | |
"MINGW64 / MSYS2": { | |
"path": "C:/msys64/msys2_shell.cmd", | |
"args": [ | |
"-defterm", | |
"-here", | |
"-no-start", | |
"-mingw64" | |
], | |
}, |
This file contains 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
import os # stash our key in the env | |
import openai # pip install openai | |
import typer # pip install "typer[all]" | |
from rich import print # pip install rich | |
from rich.table import Table | |
""" | |
Reference: | |
- OpenAI Module: https://github.com/openai/openai-python | |
- ChatGPT API Docs: https://platform.openai.com/docs/api-reference/chat |
I hereby claim:
- I am edwardbeckett on github.
- I am edwardjbeckett (https://keybase.io/edwardjbeckett) on keybase.
- I have a public key ASAXVWG9KztnvJd1MmNrMBp7wuOfl9DX3Loj8QaY3nwClwo
To claim this, I am signing this object:
This file contains 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
From: https://www.reddit.com/r/programming/comments/8jjq33/11_best_programming_fonts/dz0xxs5/ | |
------ | |
o0O s5S z2Z !|l1Iij {([|})] .,;: ``''"" | |
a@#* vVuUwW <>;^°=-~ öÖüÜäÄßµ \/\/ | |
the quick brown fox jumps over the lazy dog | |
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | |
0123456789 &-+@ for (int i=0; i<j; ++i) { } |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
This file contains 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
/* | |
* Copyright (c) 2013, Arno Moonen <info@arnom.nl> | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies | |
* of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
This file contains 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
// https://web.archive.org/web/20141119215047/http://jsperf.com/javascript-quicksort-comparisons | |
// based on work from Vladimir Yaroslavskiy: https://web.archive.org/web/20151002230717/http://iaroslavski.narod.ru/quicksort/DualPivotQuicksort.pdf | |
var dualPivotQuicksort = (function (Math, toString, undefined) { | |
'use strict'; | |
function swap(arr, i, j) { | |
var temp = arr[i]; | |
arr[i] = arr[j]; | |
arr[j] = temp; | |
} | |
function dualPivotQuicksort(arr, comp, left, right, div) { |
This file contains 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
public class LogicalOperators { | |
/* | |
* TRUTH LOGIC | |
* | |
* X & Y | |
* (AND) | |
* | |
* AND is Only True IF BOTH OPERANDS ARE TRUE | |
* --------------------------------- |
NewerOlder