This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import turtle | |
epsilonMM = 0.001 | |
epsilonSlope = 0.0000001 | |
class Vector2(object): | |
def __init__(self, x=None, y=None): | |
if y is None: |
NewerOlder