This file contains 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
[Serializable] | |
public class EchoSphere2 { | |
public enum ShaderPackingMode { Texture, Property }; | |
public ShaderPackingMode CurrentPackingMode = ShaderPackingMode.Texture; | |
This file contains 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
#ifndef __MATRIXNN_H__ | |
#define __MATRIXNN_H__ | |
#include "thread_helpers.hpp" | |
#include <cstdio> | |
#include <cstring> | |
#include <random> | |
#include <vector> | |
class MatrixNN{ |
This file contains 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; | |
/// <summary> | |
/// Helper class that represents a parameterized vertex | |
/// </summary> | |
public class Vector3Param { | |
///bernstein polynomial packing |
This file contains 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
#! /usr/bin/env python | |
''' | |
Simple example demonstrating how to take a screenshot | |
''' | |
import time | |
import sys | |
import os | |
import argparse | |
#OpenGL |
This file contains 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; | |
/// <summary> | |
/// Coroutine tracker. | |
/// | |
/// Custom handler for coroutines that tracks when they start and stop... | |
/// Uses Singleton class from: http://wiki.unity3d.com/index.php/Singleton | |
/// </summary> |
This file contains 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
# ***** BEGIN LICENSE BLOCK ***** | |
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
# | |
# The contents of this file are subject to the Mozilla Public License Version | |
# 1.1 (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# http://www.mozilla.org/MPL/ | |
# | |
# Software distributed under the License is distributed on an "AS IS" basis, | |
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import mesh_pb2 as pobj | |
def dump_mesh(mesh): | |
""" Dump mesh data up to, at most, 10 vertices | |
and 10 faces. | |
The 10 vert/face limit is simply to limit |
This file contains 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
try: | |
from tabulate import tabulate as tb | |
tabulated_style = True | |
except Exception as ex: | |
tabulated_style = False | |
# Replace these maxes with *your* maxes | |
actual_max = { | |
"benchpress":305, |
This file contains 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
license: gpl-3.0 |
This file contains 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
# requires https://github.com/Rapptz/discord.py | |
# this snippet was scripted against discord.py v0.16.8 @ commit 7b806667cda6dc26b6a99d73473dcff5c2dd4044 | |
import discord | |
import asyncio | |
import re | |
from types import ModuleType | |
sandbox = ModuleType('sandboxed_modules') |
OlderNewer