🚴♂️
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
| #pragma once | |
| #include "util/types.hpp" | |
| #include "util/std.hpp" | |
| #include "util/ndarray.hpp" | |
| #include "util/collections.hpp" | |
| #include "util/rand.hpp" | |
| #include "util/hash.hpp" | |
| #include "util/assert.hpp" | |
| #include "util/bitset.hpp" |
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
| # Docker-in-Docker Gitlab runners setup taken from: | |
| # https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca | |
| dind: | |
| restart: always | |
| privileged: true | |
| volumes: | |
| - /var/lib/docker | |
| image: docker:17.09.0-ce-dind | |
| command: | |
| - --storage-driver=overlay2 |
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 UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| namespace SmartEditors | |
| { | |
| [InitializeOnLoad] | |
| public class PlayFromScene : Editor | |
| { | |
| [MenuItem("Tools/Editor/Play From Scene/Set Main Scene", false, 0)] |
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; | |
| using System.Collections; | |
| // Script taken from https://www.reddit.com/r/Unity3D/wiki/screenshots | |
| public class PauseFreeCamera : MonoBehaviour { | |
| float turnSpeed = 2.0f; // Speed of camera turning when mouse moves in along an axis | |
| float panSpeed = 1.0f; // Speed of the camera when being panned | |
| float zoomSpeed = 1.0f; // Speed of the camera going back and forth |
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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| public static class PivotUtilities | |
| { | |
| [MenuItem("GameObject/Pivot/Create Pivot", false, 0)] | |
| static void CreatePivotObject() | |
| { |
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
| import * as React from 'react'; | |
| import { Component } from 'react'; | |
| export default function HOCBaseRender<Props, State, ComponentState>( | |
| Comp: new() => Component<Props & State, ComponentState>) { | |
| return class HOCBase extends Component<Props, State> { | |
| render() { | |
| return <Comp {...this.props} {...this.state}/>; | |
| } | |
| } |
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
| var Singleton = { | |
| _threads : [], | |
| process: function (name, callback) { | |
| var evt = this._threads[name]; | |
| if (evt == null) { | |
| evt = this._threads[name] = { name : name }; | |
| } | |
| if (evt.running) { | |
| evt.que = true; | |
| return; |
NewerOlder