jq is useful to slice, filter, map and transform structured json data.
brew install jq
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 |
library(elmer) | |
library(tidyverse) | |
library(DiagrammeR) | |
library(glue) | |
code <- "starwars %>% | |
group_by(species) %>% | |
summarise( | |
n = n(), | |
mass = mean(mass, na.rm = TRUE) |
library(shiny) | |
library(furrr) | |
library(elmer) | |
library(text2vec) | |
library(tm) | |
library(bslib) | |
library(waiter) | |
# Set your API keys upfront | |
Sys.setenv(OPENAI_API_KEY = "") |
This guide provides a comprehensive PowerShell script that allows you to backup, restore, analyze, and optimize your Windows Registry. Additionally, it integrates the OpenAI GPT-4 API to provide AI-powered analysis of your registry settings.
#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 | |
# | | |
.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 |
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.
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.
// 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) { |