Skip to content

Instantly share code, notes, and snippets.

View narphorium's full-sized avatar

Shawn Simister narphorium

View GitHub Profile
from bs4 import BeautifulSoup
import json
def strip_empty_lines(code):
return '\n'.join([
line for line in code.split('\n')
if line.strip() != ''])
@narphorium
narphorium / autotagger.ipynb
Created September 10, 2022 06:03
Eagle AutoTagger
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Running Stable Diffusion on an M1 Mac

Based off of instructions from Run Stable Diffusion on your M1 Mac’s GPU

  1. Make sure that you have Command Line Tools for Xcode installed:
sudo xcode-select --install
  1. Install homebrew:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@narphorium
narphorium / gist:3997537
Created November 1, 2012 23:34
Freebase mqlwrite
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="";