Skip to content

Instantly share code, notes, and snippets.

View Tattomoosa's full-sized avatar

Matt O'Tousa Tattomoosa

View GitHub Profile
@Minimally
Minimally / LayerMenu.cs
Created April 19, 2014 19:52
Unity Editor script for filtering layers via keyboard
using UnityEditor;
using UnityEngine;
public static class LayerMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
#region Layer Visibility
@sebmarkbage
sebmarkbage / ReactCanvasDrawing.js
Created July 25, 2014 19:14
Canvas Drawing Example
/** @jsx React.DOM */
var Graphic = React.createClass({
componentDidMount: function() {
var context = this.getDOMNode().getContext('2d');
this.paint(context);
},
componentDidUpdate: function() {
@Tattomoosa
Tattomoosa / DynamicRouter.vue
Last active April 28, 2018 01:17
Vue Router component that auto populates with links to every route
<!-- inspired by https://stackoverflow.com/questions/36120996/get-all-routes-in-a-vue-router/36128368 -->
<template>
<div>
<span v-for="route in routes" :key="route.name">
<router-link :to="route.path">{{ route.name }}</router-link>
</span>
</div>
</template>
<script>