Based off of instructions from Run Stable Diffusion on your M1 Mac’s GPU
- Make sure that you have Command Line Tools for Xcode installed:
sudo xcode-select --install
- Install homebrew:
| --- | |
| description: Use this when you are writing new Cursor rules or updating existing rules | |
| globs: .cursor/rules/*.mdc | |
| alwaysApply: false | |
| --- | |
| Search the web for documenation, tutorials and style guides to help inform the rules. | |
| All new MDC rules MUST be created in the `.cursor/rules` directory | |
| Each rule MUST be in a separate file | |
| Rule files MUST use the `.mdc` extension |
| from bs4 import BeautifulSoup | |
| import json | |
| def strip_empty_lines(code): | |
| return '\n'.join([ | |
| line for line in code.split('\n') | |
| if line.strip() != '']) |
Based off of instructions from Run Stable Diffusion on your M1 Mac’s GPU
sudo xcode-select --install
| from pprint import pprint | |
| from oauth2client.file import Storage | |
| from oauth2client.client import OAuth2WebServerFlow | |
| from oauth2client.tools import run | |
| import json | |
| from urllib import urlencode | |
| import httplib2 | |
| DEVELOPER_KEY=""; |