Skip to content

Instantly share code, notes, and snippets.

View masonjames's full-sized avatar

Mason James masonjames

View GitHub Profile
@masonjames
masonjames / 0_reuse_code.js
Created December 11, 2015 18:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@masonjames
masonjames / GPT4all-langchain-demo.ipynb
Created April 7, 2023 22:13 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
from pathlib import Path
import logging
import argparse
from concurrent.futures import ThreadPoolExecutor, as_completed
import pathspec
from collections import defaultdict
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@masonjames
masonjames / backlinks.sh
Created April 19, 2026 11:48 — forked from retlehs/CC.md
Backlinks for any domain via Common Crawl