Skip to content

Instantly share code, notes, and snippets.

@shagunmistry
shagunmistry / file_organizer.py
Created November 26, 2024 04:07
AI Files Organizer
import os
import shutil
from pathlib import Path
from typing import List, Dict
import mimetypes
from datetime import datetime
import logging
import anthropic
import asyncio
from getpass import getpass
@david-diviny-nousgroup
david-diviny-nousgroup / llm-diagram
Created November 17, 2024 23:24
Generate a Mermaid.js diagram using LLM with elmer package to explain code
library(elmer)
library(tidyverse)
library(DiagrammeR)
library(glue)
code <- "starwars %>%
group_by(species) %>%
summarise(
n = n(),
mass = mean(mass, na.rm = TRUE)
@dylanpieper
dylanpieper / app.R
Last active November 29, 2024 02:32
Compare Sequential and Parallel Chats Using Elmer
library(shiny)
library(furrr)
library(elmer)
library(text2vec)
library(tm)
library(bslib)
library(waiter)
# Set your API keys upfront
Sys.setenv(OPENAI_API_KEY = "")
@jeroen
jeroen / devtest.png
Last active November 8, 2024 21:53
Proposal for development tests
devtest.png
@jimbrig
jimbrig / jq-cheetsheet.md
Created September 21, 2024 00:05 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@ruvnet
ruvnet / registry-optimizer.md
Created September 16, 2024 11:32
Ai powered windows 11 registry optimization
@ShaunLawrie
ShaunLawrie / ChatTTY.ps1
Last active September 15, 2024 22:57
ChatTTY - A wireframe of a chat app in PwshSpectreConsole
#Requires -Modules @{ ModuleName = 'PwshSpectreConsole'; RequiredVersion = '2.1.1' }
Set-SpectreColors -AccentColor DeepPink1
# Build root layout scaffolding for:
# .--------------------------------.
# | Title | <- Update-TitleComponent will render the title
# |--------------------------------|
# | | <- Update-MessageListComponent will display the list of messages here
# | |
@thierrymoudiki
thierrymoudiki / Makefile
Last active January 14, 2025 08:33
R package workflow (assuming you're on macOS or Linux). You can chain commands `make check&&make install`. See also https://thierrymoudiki.github.io/blog/2024/08/30/r/makefile-r-pkg2.
.PHONY: build buildsite check clean cleanvars coverage docs getwd initialize install installcranpkg installgithubpkg installedpkgs load removepkg render setwd start test usegit
.DEFAULT_GOAL := help
# The directory where R files are stored
R_DIR = ./R
define BROWSER_PYSCRIPT
import os, webbrowser, sys
from urllib.request import pathname2url
@zadjii-msft
zadjii-msft / README.md
Last active April 14, 2025 09:42
Warp Workflows for the Windows Terminal

Add all the Warp Workflows to Windows Terminal

With a combination of features all available in Windows Terminal 1.22, you can now add all your favorite Warp Workflows directly to the Windows Terminal.

image image

This works by adding the workflows to your settings via a "settings fragment". You can then open a menu with all these workflows with the openSuggestions action.

@jimbrig
jimbrig / chrome_flags.updated.js
Created August 15, 2024 19:59 — forked from kkeybbs/chrome_flags.updated.js
Backup chrome flags to json and restore the backup on another machine.
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1
/*
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
*/
function saveFile(filename, data) {