jq is useful to slice, filter, map and transform structured json data.
brew install jq
| # train_grpo.py | |
| import re | |
| import torch | |
| from datasets import load_dataset, Dataset | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| from peft import LoraConfig | |
| from trl import GRPOConfig, GRPOTrainer | |
| # Load and prep dataset |
| #!/usr/bin/env sh | |
| # LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4 | |
| # FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394 | |
| # 1) No longer has a hard-coded COMMIT | |
| # 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking | |
| # HOW TO INSTALL: | |
| # 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings | |
| # 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable |
| # Useful for scenarios where you need to have a snapshot of private repo issues exported offline | |
| # | |
| # 1. Download and install the GH CLI https://github.com/cli/cli | |
| # 2. Save this script | |
| # 3. Start a PowerShell CLI and navigate to the folder with the script | |
| # 4. Run ".\Export-GitHub-Issues.ps1" "RepoOwner/Name" "Label" | |
| # 5. It will prompt you to do a device login to your GitHub account to authorize GH CLI | |
| # 6. It will download the issues and comments tagged with the label specified | |
| # in the repo specified (as long as it is readable by your account) | |
| # 7. It will download any images in the issue body or comments |

InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)
_InkscapeBatchConvert.bat| /********************************************************** | |
| DESCRIPTION | |
| This sample gets files specified by the user from the | |
| selected folder and batch processes them and saves them | |
| as SVGs in the user desired destination with the same |
This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.
MultiExporter.js into /Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/ScriptsWe are going to edit cursors settings to point to the microsoft extensions marketplace.
project.json file depending on your platform and open it.
/Applications/Cursor.app/Contents/Resources/app/product.jsonC:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json/usr/lib/code/product.jsonextensionsGallery in the json document.| You are a world-class Staff Engineer in React, Typescript, Next.js and Tailwind CSS. Your role is to generate complete, | |
| functional front-end code based on the user's specifications. Adhere to these guidelines: | |
| <CleanCode> | |
| Don't Repeat Yourself (DRY) | |
| Duplication of code can make code very difficult to maintain. Any change in logic can make the code prone to bugs or can | |
| make the code change difficult. This can be fixed by doing code reuse (DRY Principle). | |
| The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation |
| Get-Command # Retrieves a list of all the commands available to PowerShell | |
| # (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
| Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
| Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
| Get-Help # Get all help topics | |
| Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
| Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
| Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |