Skip to content

Instantly share code, notes, and snippets.

View jamesmishra's full-sized avatar

James Mishra jamesmishra

View GitHub Profile
@jamesmishra
jamesmishra / main.py
Last active May 16, 2021 18:40
log-with-context example
import logging
import logging.config
from log_with_context import add_logging_context, Logger
logging.config.dictConfig({
"version": 1,
"disable_existing_loggers": True,
"formatters": {
"json": {"()": "json_log_formatter.JSONFormatter"},

In order to clarify the intellectual property license granted with Contributions from any person or entity, Neocrym Records Inc. ("Neocrym") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Neocrym; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Neocrym. Except for the license granted herein to Neocrym and recipients of software distributed by Neocrym, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions.

"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Neocrym. For legal entities, the entity making a Contribution and all other entities that control, are control

@jamesmishra
jamesmishra / README.md
Last active July 10, 2021 12:43
HTML boilerplate
@jamesmishra
jamesmishra / stablediffusionwalk.py
Created November 18, 2022 18:18 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4