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
| FROM ubuntu:24.04 | |
| # Install Prerequisites | |
| RUN apt update \ | |
| && apt upgrade -y \ | |
| && apt install -y curl | |
| # Install DotNet SDK | |
| RUN curl https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb -o packages-microsoft-prod.deb \ | |
| && dpkg -i packages-microsoft-prod.deb \ | |
| && rm packages-microsoft-prod.deb \ |
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
| #include <Arduino.h> | |
| struct State { | |
| int previous; | |
| int current; | |
| }; | |
| class Button { | |
| public: | |
| explicit Button(int); |
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
| from graphene import Connection | |
| from graphene_sqlalchemy import SQLAlchemyConnectionField | |
| from database.graphql.filters import filter_argument_for_model, Filter | |
| class SQLAlchemyFilteredConnectionField(SQLAlchemyConnectionField): | |
| def __init__(self, type, *args, **kwargs): | |
| if "filter" not in kwargs and issubclass(type, Connection): | |
| try: |
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.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace Gubbins.Editor | |
| { | |
| public class Selections | |
| { | |
| [MenuItem("Tools/Gubbins/Selections/Objects with Missing Scripts")] | |
| public static void SelectMissing() |
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 UnityEngine; | |
| namespace Gubbins.Assertions | |
| { | |
| public static class Assert | |
| { | |
| public static void AssignIfNull<T>(ref T value) where T : Object | |
| { | |
| if (value != null) return; |
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 UnityEngine; | |
| public class SingletonBehaviour<T> : MonoBehaviour where T : MonoBehaviour | |
| { | |
| protected static T s_instance = null; | |
| public static T Instance | |
| { | |
| get | |
| { | |
| if (s_instance == null) |