Skip to content

Instantly share code, notes, and snippets.

View RobertoSilvaZ's full-sized avatar
:octocat:
Code lover

Roberto Silva Zuñiga RobertoSilvaZ

:octocat:
Code lover
View GitHub Profile

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@RobertoSilvaZ
RobertoSilvaZ / force_action_github.md
Last active March 12, 2024 23:55
Force action in github
  1. Add parameter workflow_dispatch to the .yml file project\.github\workflows\deploy-staging.yml
  on:
    push:
      branches:
        - staging
    workflow_dispatch:
@RobertoSilvaZ
RobertoSilvaZ / CounterWithFCMemo.jsx
Last active December 6, 2023 23:17
Example of memo with FC
import { memo, useState } from 'react';
const Greeting = memo(function Greeting({ name }) {
console.log("Greeting was rendered at", new Date().toLocaleTimeString());
return <h3>Hello{name && ', '}{name}!</h3>;
});
export default function MyApp() {
const [name, setName] = useState('');
const [address, setAddress] = useState('');
@RobertoSilvaZ
RobertoSilvaZ / CounterPureComponent.jsx
Last active December 6, 2023 23:17
Example of PureComponent
import { PureComponent, useState } from 'react';
class Greeting extends PureComponent {
render() {
console.log("Greeting was rendered at", new Date().toLocaleTimeString());
return <h3>Hello{this.props.name && ', '}{this.props.name}!</h3>;
}
}
export default function MyApp() {
@RobertoSilvaZ
RobertoSilvaZ / README.md
Created November 11, 2023 12:40 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@RobertoSilvaZ
RobertoSilvaZ / docker-compose.yaml
Created April 12, 2023 15:08
File to handle the build of the container for Jupyter
version: '3'
services:
jupyter:
env_file:
- .env
build:
context: .
dockerfile: Dockerfile
ports:
- '8888:8888'
@RobertoSilvaZ
RobertoSilvaZ / requirements.txt
Last active April 12, 2023 14:58
File to handle the libraries to be installed in the container for Jupyter
numpy==1.23.5
pandas==1.5.3
scikit-learn==1.2.2
jupyter==1.0.0
langchain==0.0.131
openai==0.27.4
cohere==4.1.3
huggingface_hub==0.13.3
ipywidgets==8.0.6
chromadb==0.3.20
@RobertoSilvaZ
RobertoSilvaZ / Dockerfile
Created April 12, 2023 14:53
Dockerfile to handle the container for the Jupyter
FROM python:3.9
# Install any necessary packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@RobertoSilvaZ
RobertoSilvaZ / build.js
Created April 11, 2023 18:29
Config to generate the bundle using esbuild with "env vars"
const esbuild = require('esbuild');
esbuild
.build({
entryPoints: ['./src/ts/variables.ts', './src/ts/elements.ts', './src/ts/form.ts'],
outdir: './public/js',
bundle: true,
minify: true,
sourcemap: false,
format: 'esm',
@RobertoSilvaZ
RobertoSilvaZ / build.js
Created March 28, 2023 22:38
Config to generate the bundle using esbuild
const esbuild = require('esbuild');
esbuild
.build({
entryPoints: ['./src/ts/variables.ts', './src/ts/elements.ts', './src/ts/form.ts'],
outdir: './public/js',
bundle: true,
minify: true,
sourcemap: false,
format: 'esm',