Skip to content

Instantly share code, notes, and snippets.

View Angeart's full-sized avatar
🖥️
Game's Engineer

Angeart Angeart

🖥️
Game's Engineer
  • DeNAGamesTokyo
  • Tokyo, Japan
View GitHub Profile
@Angeart
Angeart / spline_mesh_uv.patch
Last active March 12, 2022 16:57
Spline Mesh UV Path
diff --git a/Assets/SplineMesh/Scripts/MeshProcessing/MeshBender.cs b/Assets/SplineMesh/Scripts/MeshProcessing/MeshBender.cs
index bb623b1..dbc6ef9 100644
--- a/Assets/SplineMesh/Scripts/MeshProcessing/MeshBender.cs
+++ b/Assets/SplineMesh/Scripts/MeshProcessing/MeshBender.cs
@@ -262,6 +262,7 @@ namespace SplineMesh
var uv6 = new List<Vector2>();
var uv7 = new List<Vector2>();
var uv8 = new List<Vector2>();
+ float uvStep = 1.0f / repetitionCount;
for (int i = 0; i < repetitionCount; i++)
// ==UserScript==
// @name Booth Ignore Search
// @namespace http://tampermonkey.net/
// @version 0.1.6
// @description Boothの検索結果から特定のキーワードを除外します(正規表現可能)
// @author Angeart
// @match https://booth.pm/*
// @icon https://www.google.com/s2/favicons?domain=booth.pm
// @grant none
// ==/UserScript==
@Angeart
Angeart / AutoAssignAttribute.cs
Created March 13, 2021 14:20
Unity - AutoAssignAttribute
using UnityEngine;
public class AutoAssignAttribute : PropertyAttribute
{
}
@Angeart
Angeart / Example.cs
Created February 8, 2021 16:26
StringEnum on Unity
public enum ItemCategory
{
Consumption,
Wearable,
Event,
}
// ここ必須
[Serializable]
public class ItemCategoryStringEnum : StringEnum<ItemCategory>
@Angeart
Angeart / help.lua
Created January 12, 2019 11:42 — forked from NotSoSuper/help.lua
NotSoBot Help Documentation
Complete command list of NotSoBot <439205512425504771>:
Owner: NotSoSuper <296044494812479498>
Prefix: .
* = Not Required
^ = Bot Owner Only
^^ = Server Admin Only
"/'s" in commands show aliases for the command (Ex: ".reverse/r <text>" Command can be run with .reverse or .r)
<max_messages> = The number of messages to search through
<image> = The image URL, @discord_user, the users name, discord/custom emoji, or, nothing inputted which will search through 25 messages for embeds or attachments
<image-face> = Image requires a HUMAN FACE to be included
//META{"name":"Dark_Matter","description":"A cold, dark & frosty theme","author":"Hammock (CosmicSalad)","version":"2.0.0"}*//{}
@import url(https://fonts.googleapis.com/css?family=Karla);
/*
MAIN VARS
Change these to modify dark matter's colors.
*/
:root {
--main-color: rgba(37,172,232,1);
// This file is a "Hello, world!" in C++ language for wandbox-vscode.
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <type_traits>
#include <utility>
#include <memory>
#include <vector>
#include <array>
#include <boost/core/demangle.hpp>
@Angeart
Angeart / cmake 3.11>v in aws
Last active May 31, 2018 05:35
setup devenv on aws ubuntu16.04
https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.sh
sudo mkdir /opt/cmake
sudo sh cmake-3.11.1-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
sudo update-alternatives --install /usr/bin/cmake cmake /opt/cmake/cmake-3.11.2-Linux-x86_64/bin/cmake 1 --force
@Angeart
Angeart / repeating_timer_example.cpp
Last active July 4, 2024 19:47
boost repeating_timer
#include <iostream>
#include <cstdlib>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <functional>
#include <thread>
@Angeart
Angeart / class_identity.hpp
Created May 22, 2018 09:14
add id to class by automatically resolve inheritance.
#pragma once
#include <cstdint>
#include "util/inherit.h"
namespace util {
namespace class_identity_detail {
using class_identifier_t = uint32_t;
struct identity_factory {
static class_identifier_t get_id() {
static class_identifier_t value = 0;