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
// Data type ranges and normalization functions | |
const DATA_RANGES = { | |
'int8': [-128, 127], | |
'uint8': [0, 255], | |
'int16': [-32768, 32767], | |
'uint16': [0, 65535], | |
'int32': [-2147483648, 2147483647], | |
'uint32': [0, 4294967295], | |
}; |
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
import io, struct, argparse | |
class Chunk: | |
def __init__(self, id): | |
self.id = id | |
self.children = [] | |
def process_chunk( input, size_encoding, parent_chunk, remaining_data, depth = 0 ): | |
if None != parent_chunk.id and not parent_chunk.id in [ 'aBPT', 'aLII', 'aFRM', 'aLYR', 'aVEL', 'nPAL', 'nAMS', 'aANM', 'nFMS', 'nVLS', 'nLIS', 'nLRS' ]: | |
input.seek( input.tell() + remaining_data ) |
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
class Rect: | |
def __init__(self, left, top, right, bottom): | |
self.left = left | |
self.top = top | |
self.right = right | |
self.bottom = bottom | |
def width(self): |
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; | |
#if UNITY_EDITOR | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
#endif |
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
package test; | |
public class Test { | |
static int[][] MAP_A = { | |
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0}, | |
{0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,1,1,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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ironictest | |
{ | |
class Program | |
{ |
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
// Adobe Photoshop .PSD bitmap file loader | |
// | |
// Copyright (c) 2002, Brad P. Taylor, LLC | |
// | |
// All rights reserved, unauthorized reproduction prohibited | |
// | |
// -- FILE NOTES -- | |
// | |
////////////////////////////////////////////////////////////////////// |
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
// BPTDib.h: interface for the BPTDib class. | |
// | |
// Copyright (c) 2000, Brad P. Taylor, LLC | |
// | |
// All rights reserved, unauthorized reproduction prohibited | |
// | |
// -- FILE NOTES -- | |
// | |
////////////////////////////////////////////////////////////////////// |
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
// BPTSRL.h: interface for the CBPTSRL class. | |
// | |
// Copyright (c) 2000, Brad P. Taylor, LLC | |
// | |
// All rights reserved, unauthorized reproduction prohibited | |
// | |
// -- FILE NOTES -- | |
// | |
////////////////////////////////////////////////////////////////////// |
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
// BPTLLC_Pixels.h | |
// | |
// Copyright (c) 2003, Brad P. Taylor, LLC | |
// | |
// All rights reserved, unauthorized reproduction prohibited | |
// | |
// -- FILE NOTES -- | |
// | |
// **Portablilty warning** | |
// |
NewerOlder