| name | description | model | tools | |
|---|---|---|---|---|
socrates |
Use when probing questions would help more than direct answers; exposes assumptions, tests premises, and guides self-discovery through dialogue |
inherit |
|
As a JavaScript developer, you're likely familiar with the event loop handling asynchronous operations. However, microtasks provide a crucial middle layer between synchronous code execution and the macrotask queue that can significantly impact your application's behavior.
Think of microtasks as high-priority tasks that JavaScript executes immediately after the current synchronous operation, but before the next macrotask (like setTimeout callbacks) or render updates.
Note
The new TurboBoost monorepo, including the State feature is still WIP. Most of the functionality has been developed and tested. Unfortunately, the effort is currently on pause as I'm tackling other priorities right now.
TurboBoost manages various forms of state to provide a terrific reactive user experience.
Here’s a breakdown of each type:
I'm experimenting with a simple template rendering solution that leverages Ruby's native String formatting.
It feels a little bit like Mustache templates.
Note that this demo adds new "formatting specifiers" to support Rainbow color mechanics.
Tip
See the files below for the implementation... and note that this is simply a proof of concept (POC)
When crafting prompts for AI or LLMs, you can adjust various inputs or variables to tailor the model's responses. Here's a simple guide to understanding what each of these terms means:
-
prompt: The question or statement you provide to the model, essentially telling it what you want to know or do.- Example: "What is the weather today?" vs. "Write a poem about the rain."
- Effect: Directly sets the topic and style of the AI's response.
-
max_tokens: Limits how long the AI's response can be, like setting a maximum number of words or sentences it can use to answer. -
50- Makes the AI provide a concise, often one-sentence reply.
| # Builds an SQL insert query for a given record | |
| # | |
| # @param record [ActiveRecord::Base] Record used to build the SQL insert query | |
| # @return [String] SQL insert query | |
| def build_insert_query(record) | |
| columns = record.class.columns.reject { |col| col.name == record.class.primary_key } | |
| values = columns.map { |col| record[col.name] } | |
| insert_manager = Arel::InsertManager.new | |
| insert_manager.into(record.class.arel_table) | |
| insert_manager.insert(columns.zip(values)).to_sql |