Claude Code v2.1.12
Removes all system tools from the context window. Not very useful on its own, but it's a good starting point when developing Subagents. This helps to reclaim up to ~17k tokens (~8.5%) from the context window.
> /context
Last updated
April 7, 2025
git clone git@github.com:disler/aider-mcp-server.gituv:| import { parse } from "https://deno.land/std/flags/mod.ts"; | |
| function greet(name?: string): void { | |
| if (!name) { | |
| console.log('Hello, World!'); | |
| } else { | |
| console.log(`Hello, ${name}!`); | |
| } | |
| } |
I hereby claim:
To claim this, I am signing this object:
| module.exports = { | |
| create: function () { | |
| var display = [ | |
| { name: "chips", price: 0.75, quantity: 5 }, | |
| { name: "soda", price: 1.50, quantity: 0 }, | |
| { name: "candy", price: 1.00, quantity: 5 } | |
| ]; | |
| var vendingMachine = { | |
| "restock": function (itemIndex) { |
Basic authentication is one of the simplest authentication strategies because it doesn't require cookies, sessions, or even a login form! Instead, it uses HTTP headers which means credentials are transmitted on each request.
You will need to install passport and passport-http. The passport-http module is what allows you set up the Basic Authentication Scheme, in addition to a couple other authentication strategies.
$ npm install express passport passport-http --saveUsing your existing Pixel Painter project, we're going to upgrade it to use Express (if it isn't already).
In addition, intialize the project with sequelize, to create the folders: config, migrations, and models.
Now that we know a little bit about creating migrations, let's use Sequelize to create a couple migration files.
sequelize model:create to create model and migration files for a Drawing table.Drawing table is that it must have a data column, with the data type json.Just like how we use Git to version control source code, we use migrations to manage the state of our database schemas.
Imagine you're working on project with another developer, and you're both tasked with creating a specific part of an event planning application. Let's say you are in charge of creating the Users and your friend is going to create the Events.
Let's say you and your friend divided the work in a way so that neither of you will have to to use each other's code to finish your tasks. While you're working on your part of the application, you only really need to touch the Users table when you are working with the database.
Make sure that the project you are in is a node project (it has a package.json) and you have already installed and initialized sequelize (npm install --save sequelize, sequelize init). Also make sure that your config.json file has the correct credentials to connect to your database.
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo