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
def search(query, path = "**/*", output = "log.txt") | |
entry = query; entrySource = entry.source; #sndCase = entrySource.include?(".snd") | |
logfile = File.open(output, "w") | |
logfile << "== REREFERNCES OF \"#{entrySource}\" ==\n\n" | |
findsSize = 0; matchesOffsets = {}; filenames = [] | |
Dir.glob(path) { |f| | |
( File.directory?(f) or f == File.basename(__FILE__) ) and next | |
string = IO.binread(f); stringSize = string.size | |
refsSize = 0; lastOffset = 0; matchesOffsets.clear | |
while lastOffset < stringSize |
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
require "chunky_png" | |
class Dir | |
def self.each_valid_file(path = "**/*") | |
glob(path) { |f| | |
File.directory?(f) or f == File.basename(__FILE__) or yield f | |
} | |
end | |
def self.exist_or_make(name) | |
File.exist?(name) or mkdir(name) |
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.IO; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlotColiData : MonoBehaviour | |
{ | |
[SerializeField] | |
TextAsset asset; |