Skip to content

Instantly share code, notes, and snippets.

View matniedoba's full-sized avatar

matniedoba

View GitHub Profile
@matniedoba
matniedoba / .gitignore
Created December 19, 2023 15:14
Gitignore for Unity, based on GitHub's Unity .gitignore
# This .gitignore file should be placed at the root of your Unity project directory
# The original version comes from https://github.com/github/gitignore/blob/main/Unity.gitignore
# It has been modified to allow Unity projects to be placed in subfolders of your Git repository.
# If you have folders named "obj", "library" or "temp", they will always be ignored wherever they are in the project.
# If you want to avoid this, remove the "**" and replace it with the real folder name.
**/[Ll]ibrary/
**/[Tt]emp/
**/[Oo]bj/
// Put this into your Assets folder
// The best place is to put it in a Scripts/ Editor Scripts folder
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
public class NotifyForLockedFiles : UnityEditor.AssetModificationProcessor
{
@matniedoba
matniedoba / texture_from_prompt.yaml
Created October 21, 2022 14:10
Stable Diffusion texture generator YAML
# Anchorpoint Markup Language
# Predefined Variables: e.g. ${path}
# Environment Variables: e.g. ${MY_VARIABLE}
# Full documentation: https://docs.anchorpoint.app/Actions/Reference
version: 1.0
action:
name: Texture from Prompt
version: 1
# Import the modules
# With this you can get information from Anchorpoint e.g. which file is selected or in which folder the command is executed.
import anchorpoint as ap
# With this you can control the attribute system of Anchorpoint
import apsync as aps
# The replicate module to control machine learning models in the cloud
import replicate
# A module for downloading images from server and the os module for file operations.
import requests, os
@matniedoba
matniedoba / texture_from_prompt.py
Created October 21, 2022 14:08
Stable Diffusion texture generator using Replicate
# Import the modules
# With this you can get information from Anchorpoint e.g. which file is selected or in which folder the command is executed.
import anchorpoint as ap
# With this you can control the attribute system of Anchorpoint
import apsync as aps
# The replicate module to control machine learning models in the cloud
import replicate
# A module for downloading images from server and the os module for file operations.
import requests, os