This file contains hidden or 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
| // Protobuf format for Diablo 4 Loot Filters added in Season 13. | |
| syntax = "proto3"; | |
| package diablo4; | |
| // Top level message for loot filter codes. | |
| message Filter { | |
| // The name of the rule as shown in the in-game UI. | |
| string name = 2; | |
| // The list of rules in the filter. |
This file contains hidden or 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
| #!/bin/bash | |
| ######################################################################### | |
| # GitHub to Gitea Starred Repository Mirror | |
| # | |
| # This script automatically mirrors your GitHub starred repositories to | |
| # a Gitea instance. | |
| # | |
| # - Fetches all repositories starred on GitHub | |
| # - Recreate organization / owner (as org) to mirror repos into |
This file contains hidden or 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
| #if UNITY_EDITOR | |
| using System; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Little utility for opening a "Game" view in fullscreen. Will be opened on whatever Unity thinks is the "main" | |
| /// monitor at the moment. The hotkey will toggle the window; however, if for some reason this breaks, fullscreen |
This file contains hidden or 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
| local computer = require("computer") | |
| while true do | |
| local maxMem = 0 | |
| for i=1,10 do maxMem = math.max(maxMem, computer.freeMemory()) os.sleep(0) end | |
| print(maxMem) | |
| os.sleep(5) | |
| end |
This file contains hidden or 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
| --[[ This script automatically saves the global environment periodically | |
| and restores it when this script is run. Recommended usage is with | |
| the standalone Lua interpreter like this: | |
| lua -i autosave.lua | |
| It was coded for and tested with Eris (https://github.com/fnuecke/eris). | |
| This approach is quite limited and could be improved in a number of ways: | |
| - Userdata cannot be persisted automatically, so if, for example, some |
This file contains hidden or 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
| local m=component.proxy(component.list("modem")()) | |
| m.open(2412) | |
| local function respond(...) | |
| local args=table.pack(...) | |
| pcall(function() m.broadcast(2412, table.unpack(args)) end) | |
| end | |
| local function receive() | |
| while true do | |
| local evt,_,_,_,_,cmd=computer.pullSignal() | |
| if evt=="modem_message" then return load(cmd) end |
This file contains hidden or 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
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 |
This file contains hidden or 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
| local component = require("component") | |
| local controller = component.appeng_blocks_controller | |
| local modem = component.modem | |
| local items = dofile("/me/items.dat") | |
| local config = dofile("/me/level.cfg") | |
| local function sendRequest(color, count) | |
| modem.broadcast(45555, color, count) | |
| end |
This file contains hidden or 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
| --[[ This software is licensed under the M.I.T. license. | |
| Author: David Bergman | |
| Source: https://code.google.com/p/lualisp/ | |
| This is a Scheme/Lisp interpreter, written in Lua. | |
| Adjusted for Lua 5.2 and amalgamated for OpenComputers. | |
| Run it without parameters to get into interpreter mode. | |
| Alternatively pass it a file name of a lisp script. | |
| ]] |
NewerOlder