Skip to content

Instantly share code, notes, and snippets.

View SamWolski's full-sized avatar

Sam Wolski SamWolski

  • Université de Sherbrooke
  • Canada
View GitHub Profile
@daimahou
daimahou / CompanionObjectAuthoring.cs
Last active July 27, 2026 01:35
Simple implementation of hybrid game objects - entity in unity ECS
// Spawns a game object and link it to the entity this component is attached to.
// The linked game object will have the local transform of the entity copied to its transform automatically by the system
// Any additional monobehaviour can be made accessible from the ECS world by implementing the ICompanionComponent interface
//
// Note: Game Object / Entity destruction is not handled in this gist
public class CompanionObjectAuthoring : MonoBehaviour {
[SerializeField] GameObject prefab;
class Baker : Baker<CompanionObjectAuthoring> {
public override void Bake(CompanionObjectAuthoring authoring) {
@shanto268
shanto268 / install_qiskit_metal_m1_mac.md
Last active October 14, 2024 16:16
Installing qiskit-metal on a M1 Mac (Apple Silicon)

There was no one resource avaiable online that walks through the process of installing qiskit-metal on a M1 Mac (Apple Silicon).

Hoping this helps others.

  1. Create a fresh conda environment with python 3.10 or 3.11 and configure it to emulate x86
CONDA_SUBDIR=osx-64 conda create -n <env_name> python=3.11
conda activate <env_name>
conda config --env --set subdir osx-64