Skip to content

Instantly share code, notes, and snippets.

View ScruffyRules's full-sized avatar

ScruffyRules ScruffyRules

View GitHub Profile
package com.oresomecraft.BattleMaps.maps;
import net.minecraft.server.v1_6_R2.Enchantment;
import org.bukkit.*;
import org.bukkit.event.Listener;
import org.bukkit.inventory.*;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.potion.*;
public static List<Location> sphere(Location l, double radius){
return sphere(l, radius, 64);
}
public static List<Location> sphere(Location l, double radius, int iterations){
List<Location> list = new ArrayList<>();
for(int i = 0; i < iterations; i++){
@ScruffyRules
ScruffyRules / gitio.py
Last active March 15, 2017 15:09 — forked from dotStart/gitio.py
Provides a simple Hexchat plugin for replacing GitHub URLs with shortened links.
#
# Copyright 2015 Johannes Donath <johannesd@torchmind.com>
# and other copyright owners as documented in the project's IP log.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ScruffyRules
ScruffyRules / GlobalProfileHandler.cs
Last active February 22, 2021 12:11 — forked from MerlinVR/GlobalProfileHandler.cs
Basic global profiling scripts for Udon. Throw one of each script on a game object that has a TMP UI text somewhere in its children.
#define AVERAGE_OUTPUT
using UdonSharp;
using UnityEngine;
[DefaultExecutionOrder(1000000000)]
public class GlobalProfileHandler : UdonSharpBehaviour
{
public UnityEngine.UI.Text _timeText;
private GlobalProfileKickoff _kickoff;