Skip to content

Instantly share code, notes, and snippets.

@JVinceW
JVinceW / cmakeAndTaglib
Created April 25, 2024 08:45 — forked from phatfly/cmakeAndTaglib
compile taglib for iOS
I wanted to document the process that I went through to compile taglib for my iOS project.
At the time of this writing I used TagLib 1.9.1
1. Download taglib at: http://taglib.github.io/
2. Download ios-make at: github.com/plenluno/ios-cmake
3. The ios-make file that you need is in the toolchain directory. Copy the whole directory “toolchain” from inside the ios-make directory to taglib directory.
@JVinceW
JVinceW / pom.xml
Created April 16, 2024 02:00 — forked from timmolderez/pom.xml
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@JVinceW
JVinceW / BrideAssetConfigAuthoring.cs
Last active October 30, 2023 02:44
Medium article https://medium.com/p/73c5e7f228c9 Using SO in ECS by parsing to IComponentData
public class BrideAssetConfigAuthoring : MonoBehaviour
{
[SerializeField]
private BulletConfiguration _bulletConfiguration;
private class BrideAssetConfigBaker : Baker<BrideAssetConfigAuthoring>
{
public override void Bake(BrideAssetConfigAuthoring authoring)
{
var entity = GetEntity(TransformUsageFlags.None);
@JVinceW
JVinceW / FindMissingScriptsRecursivelyAndRemove.cs
Last active May 28, 2023 13:46
Find missing scripts recursively and remove it editor
/*
Ref: https://forum.unity.com/threads/remove-all-missing-reference-behaviours.286808/#post-3113536
https://pastebin.com/raw/DLuE2Ze9
*/
using UnityEditor;
using UnityEngine;
namespace FLGCoreEditor.Utilities
{
public class FindMissingScriptsRecursivelyAndRemove : EditorWindow
@JVinceW
JVinceW / SceneObject.cs
Created March 1, 2023 15:39 — forked from Hertzole/SceneObject.cs
Unity scene object to easily assign scenes in the inspector.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[System.Serializable]
public class SceneObject
{
[SerializeField]
private string m_SceneName;
@JVinceW
JVinceW / AppBuilder.cs
Created October 8, 2022 15:01
Simple fast build script for Unity application
using System.Collections;
using System.IO;
using UnityEditor;
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Build;
using UnityEditor.AddressableAssets.Settings;
using UnityEngine;
namespace Scripts.AppBuilder
{

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@JVinceW
JVinceW / AppManager.cs
Last active April 22, 2023 04:18
Application Main Manager
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
namespace BrkLib.Scripts.Core {
[SuppressMessage("ReSharper", "UseNullPropagation")]
/// <summary>
/// シングルトンクラス
/// </summary>
public class Singleton <T> where T : class , new()
{
private static T _instance;
//インスタンスの取得
public static T instance{
@JVinceW
JVinceW / readme.md
Created March 14, 2019 04:26 — forked from jobsamuel/readme.md
Run NodeJS as a Service on Ubuntu 14.04 LTS

Run NodeJS as a Service on Ubuntu 14.04 LTS

With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?

  • Go to /etc/init/
  • $ sudo vim yourapp.conf
  • Paste script.conf
  • $ sudo start yourapp
  • And when you wanna kill the process $ sudo stop yourapp