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
----------------------------------------------------------------------------- | |
Info file generated by Happy Version 1.19.9 from src/Parser.y | |
----------------------------------------------------------------------------- | |
state 53 contains 7 shift/reduce conflicts. | |
terminal '[' is unused | |
terminal ']' is unused | |
----------------------------------------------------------------------------- |
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
local preload = type(package) == "table" and type(package.preload) == "table" and package.preload or {} | |
local require = require | |
if type(require) ~= "function" then | |
local loading = {} | |
local loaded = {} | |
require = function(name) | |
local result = loaded[name] | |
if result ~= nil then |
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
--- Port of https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.js | |
-- to Lua | |
--- Check if ptrn is found sequentially within str | |
local function matchSimple(str, ptrn) | |
local ptrnCtr, strCtr = 1, 1 | |
local ptrnLen, strLen = #ptrn, #str | |
while ptrnCtr <= ptrnLen and strCtr <= strLen do | |
local ptrnChar = ptrn:sub(ptrnCtr, ptrnCtr):lower() |
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
local loading = {} | |
local oldRequire, preload, loaded = require, {}, { startup = loading } | |
local function require(name) | |
local result = loaded[name] | |
if result ~= nil then | |
if result == loading then | |
error("loop or previous error loading module '" .. name .. "'", 2) | |
end |
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
--[[ | |
The MIT License (MIT) | |
Copyright (c) 2015-2016 SquidDev | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
local loading = {} | |
local oldRequire, preload, loaded = require, {}, { startup = loading } | |
local function require(name) | |
local result = loaded[name] | |
if result ~= nil then | |
if result == loading then | |
error("loop or previous error loading module '" .. name .. "'", 2) | |
end |
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
{ | |
"homepage": "https://github.com/SquidDev-CC/CC-Tweaks", | |
"promos": { | |
"1.7.10-latest": "0.2.3.4", | |
"1.7.10-recommended": "0.2.3.4", | |
"1.8-latest": "0.2.3.4", | |
"1.8-recommended": "0.2.3.4" | |
}, | |
"1.7.10": { | |
"0.2.3.4": "Computronics Multiperipheral Compatability\nUpdate Patcher version fixing issue with `peripheral.getMethods.`" |
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
* { | |
animation-name: example; | |
animation-duration: 10s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
} | |
/* Standard syntax */ | |
@keyframes example { | |
0% {transform:rotate(0deg)} |
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
local parsel = setmetatable({}, {__index = _G}) | |
setfenv(assert(loadfile("lib/parsel.lua") or loadfile("../lib/parsel.lua"), "Cannot find parsel"), parsel)() | |
local textutils = assert(loadfile("lib/pprint.lua") or loadfile("../pprint.lua"), "Cannot find pprint")() | |
local a = parsel.symbol "a" | |
local abtest = (a/"b"/"test"):many() | |
local braces = abtest:between("{", "}") | |
local p = (abtest .. braces) % function(res) return { outer = res[1], inner = res[2]} end |
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
// [PackageDev] target_format: plist, ext: tmLanguage | |
{ | |
"name": "Lua Assembly", | |
"scopeName": "source.lasm", | |
"fileTypes": ["lasm"], | |
"uuid": "3507f71d-f02d-4af7-ab7d-027c8e7313de", | |
"patterns": [ | |
{ | |
"beginCaptures": { |
NewerOlder