Skip to content

Instantly share code, notes, and snippets.

import math
import turtle
epsilonMM = 0.001
epsilonSlope = 0.0000001
class Vector2(object):
def __init__(self, x=None, y=None):
if y is None:
module mojo_top (
input clk, // 50MHz clock
input rst_n, // reset button (active low)
output led [8], // 8 user controllable LEDs
input cclk, // configuration clock, AVR ready when high
output spi_miso, // AVR SPI MISO
input spi_ss, // AVR SPI Slave Select
input spi_mosi, // AVR SPI MOSI
input spi_sck, // AVR SPI Clock
output spi_channel [4], // AVR general purpose pins (used by default to select ADC channel)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VoxelPlay;
using UnityEngine;
namespace VE.Generators
{
[CreateAssetMenu(menuName = "Voxel Play/Terrain Generators/Vox Engines Terrain Generator", fileName = "VETerrainGenerator", order = 101)]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;
namespace Fake.ShowCSharpThings
{
public class DemoClass : MonoBehaviour // inheriting monobehaviour so that we can add a menu item
using Mel.Math;
using System.Collections.Generic;
using UnityEngine.Assertions;
namespace Mel.Storage
{
public struct FlatArray3D<T>
{
IntVector3 _size;
public IntVector3 size { get { return _size; } }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RaceCarMove : MonoBehaviour {
Rigidbody rb;
public float fAccel = 15f;
public float lrAccel = 3f;
public float turnSpeed = .5f;
// CppScratchPad.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <vector>
using namespace std;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public struct MinMaxF
{
public float min, max, _curr;
public float curr {
Shader "Unlit/SliderBar"
{
Properties
{
_MainTex ("Use any fully opaque image. Doesn't effect look.", 2D) = "white" {}
_SlugTex ("Slug Texture", 2D) = "white" {}
_XRepeats ("_XRepeats", Range(1, 50) ) = 10.0
_MainColor ("_Color", Color) = (1.0, 1.0, 1.0, 1.0)
_EmptyColor ("_EmptyColor", Color) = (0.0, 0.0, 0.0, 0.0)
_Value ("_Value", Range(0,1)) = .4
How to run a Blender add-on from the command line.
WHY: its easier than re-zipping, and restarting blender everytime you want to
test a change to an add-on you're developing
In short: run blender from the command line and
use an option to get it to run a python script
that registers and invokes your add-on.
Here's the command that will do it in the end (explanation below):