Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
| // Based on idea: https://twitter.com/pkhuong/status/1287510400372748290 | |
| use hashbrown::raw::RawTable; | |
| pub struct ScopeMap<K, V> { | |
| last_scope_id: ScopeId, | |
| scopes: Vec<ScopeId>, // values are zeroed instead of popped to save a check in get() / is_fresh() | |
| current_scope: ScopeDepth, // index of innermost valid scope | |
| values: RawTable<Entry<K, V>>, | |
| shadowed: Vec<Shadowed<K, V>>, |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD.csv.
One of the many reasons I love working with Ruby is it has a rich vocabulary that allows you to accomplish your goals with a minimal amount of code. If there isn't a method that does exactly what you want, it's usually possible to build an elegant solution yourself.
Let's take the example of simulating the rolling of a die.
We can represent a die as an array of its faces.
die = [*?⚀..?⚅]
# => ["⚀", "⚁", "⚂", "⚃", "⚄", "⚅"]| #include <algorithm> | |
| template <class Iterator> | |
| inline void BubbleSort(Iterator begin, Iterator end) { | |
| for (Iterator i = begin; i != end; ++i) | |
| for (Iterator j = begin; j < i; ++j) | |
| if (*i < *j) | |
| std::iter_swap(i, j); | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // A streaming byte oriented JSON parser. Feed it a single byte at a time and | |
| // it will emit complete objects as it comes across them. Whitespace within and | |
| // between objects is ignored. This means it can parse newline delimited JSON. | |
| function jsonMachine(emit, next) { | |
| next = next || $value; | |
| return $value; | |
| function $value(byte) { | |
| if (!byte) return; | |
| if (byte === 0x09 || byte === 0x0a || byte === 0x0d || byte === 0x20) { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000