tangentfoxy / gifs Goto Github PK
View Code? Open in Web Editor NEW(ON HOLD) Virtual file system for ComputerCraft computers. Allows accessing multiple disks as one big disk.
(ON HOLD) Virtual file system for ComputerCraft computers. Allows accessing multiple disks as one big disk.
lume.uuid
? Use that for identifying files and disks, instead of the numbering system I was using? Maybe that should be optional. Numbers saves disk space, hashes keep things from conflicting. IDK.YAY FEATURE CREEP! :D
Until I can figure out how to process events properly, every method in the API should first call a method to check if a drive has been plugged in, or a drive removed (or if the tree exists). If a drive has been removed, the whole directory tree needs to be rebuilt (add a function to make this unneeded if possible! call a function before removing a drive to remove its entries). If a drive has been added, its contents need to be added to the tree. Note that removing or adding a drive also needs to re-calculate free space of the system.
Note that free space and used space are not stored. Instead, when a disk is loaded, they are calculated and saved temporarily for each disk (as well as a master free/used space). The file size of the index for each disk is part of this calculation, plus 1024 bytes assumed for expansion of the index file.
{"abc", "abd", "bed"}
), else return empty table""
or "/"
), in which case, true (see API docs for CC)getName
basically)nil
if the raw path can't be found (or if the file is a GIFS composite file when I create that concept..note that such files need to be allowed to be used in the rest of the API, therefore, some care should be made in each fn involving files to recognize and change how they behave)function lume.uuid()
local fn = function(x)
local r = math_random(16) - 1
r = (x == "x") and (r + 1) or (r % 4) + 9
return ("0123456789abcdef"):sub(r, r)
end
return (("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"):gsub("[xy]", fn))
end
from lume
+saves disk space for unmodified copies :)
-requires more overheard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.