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
# Building a tar file chunk-by-chunk. | |
# | |
# This is a quick bit of sample code for streaming data to a tar file, | |
# building it piece-by-piece. The tarfile is built on-the-fly and streamed | |
# back out. This is useful for web applications that need to dynamically | |
# build a tar file without swamping the server. | |
import tarfile | |
from io import BytesIO | |
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
// SubmodelResizer.cs | |
// | |
// Author: | |
// Allis Tauri <allista@gmail.com> | |
// | |
// Copyright (c) 2017 Allis Tauri | |
using UnityEngine; | |
namespace AT_Utils | |
{ |
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 System.Reflection; | |
using UnityEngine; | |
// Line drawing routine originally courtesy of Linusmartensson: | |
// http://forum.unity3d.com/threads/71979-Drawing-lines-in-the-editor | |
// | |
// Rewritten to improve performance by Yossarian King / August 2013. | |
// | |
// This version produces virtually identical results to the original (tested by drawing | |
// one over the other and observing errors of one pixel or less), but for large numbers |