Skip to content

Instantly share code, notes, and snippets.

View raisiqueira's full-sized avatar
👽
learning something new!

Raí Siqueira raisiqueira

👽
learning something new!
View GitHub Profile
@Tavernari
Tavernari / git-gen-commit
Last active September 23, 2025 09:56
This script automates commit message generation using AI. It analyzes the current git diff, sends it to an Ollama model (tavernari/git-commit-message:reasoning), and formats the output neatly.
#!/usr/bin/env bash
set -u
set -o pipefail
# =======================================================
# Minimalist Colors
# =======================================================
BOLD=$'\033[1m'
RESET=$'\033[0m'
FG_RED=$'\033[31m'
@0xOsprey
0xOsprey / Prompt.txt
Created May 12, 2024 23:32
Raycast Executive Summary Prompt
Given the following text:
{browser-tab}
Please provide a summary of the writing post [title/link] in approximately 300-500 words.
The summary should cover the following:
1. Main topic/subject of the blog post.
2. Key points and important context discussed in the post.
3. Significant takeaways, insights, or conclusions drawn by the author.
4. Any relevant data, statistics, or examples cited to support the main arguments.
5. The conclusion, nuance or importance of newly introduced concepts or conclusions arrived upon by the author. The summary should be well-structured, concise, and written in a clear and objective style. Please avoid verbatim quotes from the original text unless they are particularly impactful or necessary for context. The goal is to capture the essence of the blog post in a way that someone who hasn't read it can quickly understand the key ideas and arguments presented.
@1Marc
1Marc / reactive.js
Last active October 19, 2025 15:36
Vanilla Reactive System
// Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/
let context = [];
export function untrack(fn) {
const prevContext = context;
context = [];
const res = fn();
context = prevContext;
return res;
@marvinhagemeister
marvinhagemeister / bind-plugin.ts
Last active June 8, 2025 06:48
Preact Signals `bind:value`
import { options } from "preact";
import { Signal } from "@preact/signals";
// Add `bind:value` to JSX types
declare global {
namespace preact.createElement.JSX {
interface HTMLAttributes {
"bind:value"?: Signal<string | string[] | number | undefined>;
}
}
@jordienr
jordienr / tailwind.config.ts
Created July 15, 2023 09:10
Tailwind SVG Grid Background
// Remember to install mini-svg-data-uri
// Follow me on twitter for memes @jordienr
import { type Config } from "tailwindcss";
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
const svgToDataUri = require("mini-svg-data-uri");
export default {
@lacolaco
lacolaco / 1.ngx-reactify.tsx
Last active September 15, 2025 04:33
A React component to render a standalone Angular component (Angular v14.2 is required)
import { ApplicationRef, ComponentRef, createComponent, Type } from "@angular/core";
import { createApplication } from "@angular/platform-browser";
import React, { useEffect, useRef, useState } from "react";
type AnyComponentRef = ComponentRef<unknown>;
export type ReactifyProps = {
component: Type<unknown>;
inputs?: Record<string, unknown>;
};
@souporserious
souporserious / build.mjs
Created February 24, 2022 02:48
Build script using esbuild and ts-morph to bundle library code.
import glob from 'fast-glob'
import { build } from 'esbuild'
import { Project } from 'ts-morph'
const project = new Project({
compilerOptions: {
outDir: 'dist',
emitDeclarationOnly: true,
},
tsConfigFilePath: './tsconfig.json',
@sibelius
sibelius / learning-path-web3.md
Last active September 22, 2025 06:31
Learning Path Web3
  • learn blockchain concepts
  • learn ethereum
  • learn how to use metamask
  • learn how to use hardhat (https://hardhat.org/)
  • learn how to deploy and interact with a smart contract
  • learn common smart contract standards like ERC20 (token), ERC721 (nft), ERC1155 (opensea)
  • learn ipfs
  • learn how to read blockchain explorers like https://etherscan.io/
  • learn how to use web3 and etherjs
  • learn solidity
@shanselman
shanselman / ohmyposhv3-v2.json
Last active October 4, 2025 18:27
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,