content
stringlengths
5
1.05M
local function init (_, _) if not SILE.languageSupport.languages["x-spaces-are-nodes"] then local xsan = pl.class(SILE.nodeMakers.unicode) function xsan:makeGlue (item) self:addToken(" ", item) self:makeToken() end SILE.nodeMakers["x-spaces-are-nodes"] = xsan SILE.languageSupport.lang...
---@class CharacterSoundEmitter : zombie.characters.CharacterSoundEmitter ---@field currentPriority float ---@field vocals FMODSoundEmitter ---@field footsteps FMODSoundEmitter ---@field extra FMODSoundEmitter CharacterSoundEmitter = {} ---@public ---@param arg0 float ---@param arg1 float ---@param arg2 float ---@retu...
hook.Add('NBC_PlayerDisconnectedBypass', 'BGN_CancelNPCRemover', function(npc) return bgNPC:GetActor(npc) ~= nil end)
require("deepcore/std/plugintargets") require("deepcore/statemachine/DeepCoreStateMachine") return { target = PluginTargets.always(), init = function(self, ctx) local dsl_init = require("deepcore/statemachine/dsl/init") return DeepCoreStateMachine.from_script("eawx-plugins/galactic/statemachine...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local AmmoTypes = ACF.Classes.AmmoTypes SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false function SWEP:Initialize() local UserData = self.Primary.UserData local AmmoType = AmmoTypes[UserData.Type] local BulletData if SERVER then ...
CS1 = settings.startup["crafting-speed-1"].value CS2 = settings.startup["crafting-speed-2"].value CS3 = settings.startup["crafting-speed-3"].value CS4 = settings.startup["crafting-speed-4"].value CS5 = settings.startup["crafting-speed-5"].value data:extend( { { type = "technology", name = "c...
local ui = require "tek.ui".checkVersion(112) local DrawHook = ui.require("drawhook", 3) local Region = ui.loadLibrary("region", 9) local unpack = unpack local newregion = Region.new local Border = DrawHook.module("tek.ui.class.border", "tek.ui.class.drawhook") Border._VERSION = "Border 7.5" function Border.new(clas...
--- -- Wait for a preamble -- local block = require('radio.core.block') local types = require('radio.types') function table.slice(tbl, first, last, step) local sliced = {} for i = first or 1, last or #tbl, step or 1 do sliced[#sliced+1] = tbl[i] end return sliced end local WaitForPreambleBlock = block...
data:extend( { { type = "item", name = "synthetic-wood", icon = "__Engineersvsenvironmentalist__/graphics/icons/materials/synthetic-wood.png", flags = {"goes-to-main-inventory"}, fuel_category = "chemical", fuel_value = "1MJ", subgroup = "plastics", order = "d[synthetic-wood]", stack_s...
local Data = require "nvim-lsp-installer.data" local Result = require "nvim-lsp-installer.core.result" local lazy = Data.lazy local M = {} local uname = vim.loop.os_uname() ---@alias Platform ---| '"win"' ---| '"unix"' ---| '"linux"' ---| '"mac"' local arch_aliases = { ["x86_64"] = "x64", ["i386"] = "x86", ...
RaidWarningFrame:ClearAllPoints() RaidWarningFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 260) RaidWarningFrame:SetScale(1.1) RaidWarningFrameSlot2:ClearAllPoints() RaidWarningFrameSlot2:SetPoint("TOP", RaidWarningFrameSlot1, "BOTTOM", 0, -3) RaidBossEmoteFrameSlot2:ClearAllPoints() RaidBossEmoteFrameSlot2:SetPoin...
local m = require("./msgpack") local util = require("./util") function clear() global["entcache"] = {} global["entcache"]["send"] = false global["entcache"]["coal"] = {} global["entcache"]["copper-ore"] = {} global["entcache"]["crude-oil"] = {} global["entcache"]["enemy-base"] = {} global["...
data:extend( { { type = "item", name = "original-ultimate-underground-belt", icon = "__UltimateBelts__/graphics/icons/ultimate-belts/ultimate-underground-belt.png", icon_size = 32, subgroup = "belt", order = "b[underground-belt]-h[ultimate-underground-belt]", place_result = "origi...
Config = {} Config.EnableBlips = true Config.EnableJerryCans = true Config.EnableBuyableJerryCans = true -- Coming soon, currently useless Config.VehicleFailure = 5 -- At what fuel-percentage should the engine stop functioning properly? (Defualt: 10)
-- ############### -- gpu version -- This version has batch processing and function to select different gradient learning method -- include confusion matrix -- The training data can be also obtained in https://github.com/hpenedones/luacnn -- ############### require "torch" require "nn" require "math" require "optim" ...
pg = pg or {} pg.enemy_data_statistics_19 = { [390] = { cannon = 0, name = "谢菲尔德(μ兵装)", type = 2, speed_growth = 0, battle_unit_type = 49, air = 0, air_growth = 0, durability = 99999, friendly_cld = 0, armor = 0, id = 390, bubble_fx = "", dodge_growth = 0, icon = "xiefeierde_idol", star =...
hp = 500 attack = 550 defense = 400 speed = 80 mdefense = 400 luck = 120 strength = ELEMENT_NONE weakness = ELEMENT_NONE function initId(id) myId = id end function start() end function get_action(step) return COMBAT_ATTACKING, 1, getWeakestPlayer() end function die() end
NDefines.NGame.START_DATE = "617.1.1.12" NDefines.NGame.END_DATE = "627.1.1.1"
script_name = "Directional blur" script_description = "blur in specific direction using \\xshad and \\yshad" script_author = "dark_star90" script_version = "1.2" submenu="_darkis crappy scripts" --todo: add \a1 \a3 support for borders --[[ You can set the direction with \xshad and/or \yshad and the number of i...
---@class TemporaryEffects @ local TemporaryEffects = {} -------------------- -- Functions -------------------- --- Adds the effect of a collectible to the player, without actually giving him the assosiated item. --- --- + bug --- > This function does only work for some collectibles, but not all. For example, it d...
require("colors." .. O.colorscheme).setup() local c = require("colors." .. O.colorscheme).colors local cmd = vim.cmd cmd("hi StatusLineAccent guifg=" .. c.bg .. " guibg=" .. c.accent or c.magenta) cmd("hi StatusLineInsertAccent guifg=" .. c.bg .. " guibg=" .. c.red) cmd("hi StatusLineVisualAccent guifg=" .. c.bg .. " ...
-- @namespace foundation.com.ByteBuf local ByteDecoder = assert(foundation.com.ByteDecoder) local bit = assert(foundation.com.bit, "expected bit module") local ByteBuf = {} local ic -- @class Base ByteBuf.Base = foundation.com.Class:extends("ByteBuf.Base") do ic = ByteBuf.Base.instance_class -- -- Writer functi...
-- Custom commands vim.cmd([[ command! -range Embrace <line1>,<line2>s/\v(_|\^)\s*([^{}_\^ \$]+)/\1{\2}/g command! -nargs=1 -range=% Sed <line1>,<line2>s/<args>//g command! -nargs=1 -range=% Grab <line1>,<line2>g/<args>/yank Z " Switch window to buffer already open "TODO autocomplete something for zotref command! -nar...
local types = { { value = "test", description = "Adding missing tests or correcting existing tests", }, { value = "style", description = "Changes that do not affect the meaning of the code", }, { value = "revert", description = "Reverts a previous comm...
local skynet = require "skynet.manager" local redis = require "skynet.db.redis" local bewater = require "bw.bewater" local db local M = {} return function(conf) skynet.start(function() db = redis.connect(conf) skynet.dispatch("lua", function(_, _, cmd, ...) bewater.ret(db[cmd](...
local function makeassetlist() return { Asset("ANIM", "anim/teleportato_parts.zip"), Asset("ANIM", "anim/teleportato_parts_build.zip"), Asset("ANIM", "anim/teleportato_adventure_parts_build.zip"), } end local function makefn(name, frame) local function fn(Sim) local inst = CreateEntity() local tr...
-- This is used to get a stringyfied representation of the game chip codes. CHIP_CODE_REVERSE = { [0]="A", [1]="B", [2]="C", [3]="D", [4]="E", [5]="F", [6]="G", [7]="H", [8]="I", [9]="J", [10]="K", [11]="L", [12]="M", [13]="N", [14]="O", [15]="P", [...
-- base_rails/init.lua -- support for Minebase translation. local S = minetest.get_translator("base_rails") carts.register_rail("base_rails:rail", { description = S("Rail"), recipe = { {"base_ores:steel_ingot", "group:wood", "base_ores:steel_ingot"}, {"base_ores:steel_ingot", "", "base_ores:steel_ingot"}, {"b...
function getVectorLength(x, y) return math.sqrt((math.pow(x, 2) + math.pow(y, 2))) end function normalizeVector(x, y) local length = getVectorLength(x, y) if lenght > 0 then return x / length, y / length end return x, y end function getVectorAngleRad(x, y) ret...
local mod = {} function mod.checkType(...) local dinfo = debug.getinfo(2, "n") local len = select('#', ...) for i = 1, len, 2 do local validType = tostring(select(i, ...)) local typeList = split(validType, "|") local curentType = type(select(i + 1, ...)) if #typeList > 1 then ...
local lifetime = 0.5 local growtime = 0.1 local numswirls = 20 local colors = { {100,0,150}, {0,0,0}, {150,0,150}, {0,0,0}, {50,0,150}, {0,0,0}, {50,0,100}, {0,0,0}, {20,0,50}, } local swirls = { "panicritual/particles/fade/fade_swirl_wave_8", "panicritual/particles/fade/fade_swirl_wave_7", "panicritual/p...
require "scripts.library.class" require "scripts.common" EventListener = class(); function get_mem_addr (object) local str = tostring(object) local index = str:find(' ') return index and str:sub( index + 1) or str end function EventListener:ListenEvent(bus,event,id) if type(bus)=='string' then ...
--* damage/healing/interrupt meter Allez local E, C, L, _ = select(2, shCore()):unpack() if C.main._dpsMeter ~= true then return end local _G = _G local select = select local unpack = unpack local type = type local band = bit.band local tinsert = table.insert local CreateFrame = CreateFrame local Uni...
--[[ A little limited in explicit invoke base class method: you need to use ClassName.MethodName(self, ...) to call base methods !!! 注意: 显式调用基类方法时的限制:必须使用 ClassName.__super.MethodName(self, ...) 这种形式来调用基类的方法 !!!必须使用 重要的事情说三遍 ClassName.__super.MethodName(self, ...) ClassName.__super.MethodN...
input = ({4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3}) mainPlayerID = 0 oppponentID = 1 twoPlayers = true turns = 0 local function split(source, delimiters) local elements = {} local pattern = '([^'..delimiters..']+)' string.gsub(source, pattern, function(value) elements[#elements + 1] = v...
local LOG="[Api] " local PORT=80 print(LOG.."Init") sv = net.createServer(net.TCP, 30) -- -- HTTP parser ( https://github.com/nodemcu/nodemcu-firmware/issues/105 ) -- local buf = "" local method, url local cnt_len = 0 local body_len = 0 local HTTP_100 = "HTTP/1.1 100 Continue\r\n" local HTTP_200 = "HTTP/1.1 200 OK...
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{ env=env, implicitVars=true, fixVariableNames=true, MathJax={ title='Faraday tensor', useCommaDerivative=true, -- this had latex errors when I was using a ...
return function() local ReplicatedStorage = game:GetService("ReplicatedStorage") local fake = require(ReplicatedStorage:WaitForChild("fitumi"):WaitForChild("functions"):WaitForChild("fake")) local internalsSymbol = require(ReplicatedStorage:WaitForChild("fitumi"):WaitForChild("internal"):WaitForChild("internalsS...
#!/usr/bin/env th -- Copyright (c) 2017, The OctNet authors -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- no...
local field = {} local field_p = {} local FIELD_W, FIELD_H = 15, 9 local COLOR_GREEN = "\27[0;32m" local COLOR_RED = "\27[0;31m" local COLOR_RESET = "\27[0;m" local COLOR_GRAY = "\27[1;35m" local ANIM_PAUSE = 200 local cursor = -1 local sign = "D" local done = false local player = 0 local preview = true for x = 0,FIEL...
function eventFileLoaded(id, data) -- print(table.tostring(leaderboard.leaders)) if id == leaderboard.FILE_ID or id == tostring(leaderboard.FILE_ID) then print("[STATS] Leaderboard data loaded!") if not (leaderboard.leaderboardData == data) then leaderboard.leaderboardData = data leaderboard.leaders = leade...
local lore = {} function lore:new(y) local neu = y or {} setmetatable(neu, self) self.__index = self return neu end function lore:spawn(r, t) local neu = self:new() assert(t, 'No template to spawn from') neu.template = t neu._name = t.name or '' neu._description = t.description or '' ...
local TestGlobalTemplate = {} local TestGlobalTemplate__mt = { TestInt = 7, TestStringArrays = { "哈", "哈哈", "哈哈1" }, TestString1 = 1.1111111111111112e+131, TestString = "哈\\哈\n哈", TestFloat = 6.5, TestDouble = 7.852, TestBool = true, TestIntArrays = { }, TestFloatArrays = { 1.2, ...
local _tonumber = tonumber local clientRoomName = KEYS[1] local sessionId = KEYS[2] local rawParams = ARGV[1] local params = rawParams and cjson.decode(rawParams) or false if(not params) then --assume opt out of all matches end local currentTime = _tonumber(redis.call('get', 'serverTime')) if(not current...
Wait(0, function() local trg = CreateTrigger() EnumDestructablesInRect(GetPlayableMapRect(), nil, function() TriggerRegisterDeathEvent(trg, GetEnumDestructable()) end ) TriggerAddCondition(trg, Condition...
local crypto_scalarmult_base_sig = [[ int %s(unsigned char *q, const unsigned char *n) ]] local crypto_scalarmult_sig = [[ int %s(unsigned char *q, const unsigned char *n, const unsigned char *p) ]] local signatures = { ['crypto_scalarmult_base'] = crypto_scalarmult_base_sig, ['crypto_scalarmult'] = ...
function love.conf(t) t.identity="CelesteTAS" t.version="11.0" t.window.title="CelesteTAS" t.window.width=580 t.window.height=540 t.window.resizable=true t.console=true end
local o = vim.opt -- Appearance o.cmdheight = 1 o.colorcolumn = '80' o.cursorline = true -- o.foldmethod = 'marker' o.number = true o.relativenumber = true o.ruler = false -- My statusline take care of that o.showmode = false o.signcolumn = 'yes' o.termguicolors = true o.wrap = false -- Backups o.backup = false o.writ...
-- lave/load stockpile settings with a GUI local helpstr = [====[ gui/stockpiles ============== An in-game interface for `stocksettings`, to load and save stockpile settings from the :kbd:`q` menu. Usage: :gui/stockpiles -save: to save the current stockpile :gui/stockpiles -load: to load s...
EditorExecuteInOtherMission = EditorExecuteInOtherMission or class(MissionScriptEditor) EditorExecuteInOtherMission.SKIP_SCRIPT_CHECK = true function EditorExecuteInOtherMission:create_element(...) EditorExecuteInOtherMission.super.create_element(self, ...) self._element.class = "ElementExecuteInOtherMission" end
RegisterServerEvent('cnr:robbery_send_lock') -- Lock/Unlock Robbery Event RegisterServerEvent('cnr:robbery_take') -- The cash won from the robbery RegisterServerEvent('cnr:robbery_dropped') -- Converts all robberies to cash RegisterServerEvent('cnr:client_loaded') -- Called when the char enters Register...
--[[ --=====================================================================================================-- Script Name: Stun Grenades, for SAPP (PC & CE) Description: Make frags behave like Stun Grenades Copyright (c) 2019, Jericho Crosby <jericho.crosby227@gmail.com> * Notice: You can use this document subject to...
local K, C, L = unpack(select(2, ...)) if C.Announcements.SaySapped ~= true then return end local _G = _G -- Wow API local SendChatMessage = _G.SendChatMessage local SaySapped = CreateFrame("Frame") SaySapped:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") SaySapped:SetScript("OnEvent", function(self, _, ...) local _...
--[[ monk https://github.com/IS2511/monk Main executable of monk Author: IS2511 ]]-- local monk = require("monk") local parg = require("parg") -- TODO: parg input, register
marker1 = createMarker(0,0,0,"corona",1,0,0,0,0) marker2 = createMarker(0,0,0,"corona",1,0,0,0,0) marker3 = createMarker(0,0,0,"corona",1,0,0,0,0) cameraPosition = createObject(8558, 0,0,0,0,0,0,true) x1,y1,z1=0,0,0 x2,y2,z2=0,0,0 x3,y3,z3=0,0,0 outputEditTimeBox=5000 setElementAlpha(cameraPosition, 0) gui = 0 a,b,c,ca...
player_manager.AddValidModel( "PMC6_05", "models/player/PMC_6/PMC__05.mdl" ) list.Set( "PlayerOptionsModel", "PMC6_05", "models/player/PMC_6/PMC__05.mdl" )
local tab = {} tab.name = "TAB_PRESETS" tab.id = 3 tab.text = "PRESETS" tab.switchToKey = "gm_showspare1" tab.deletingPresets = false tab.deletePos = nil if CLIENT then tab.callback = function(self) CustomizableWeaponry.preset.updateList(self) tab.deletingPresets = false tab.deletePos = nil end function tab:...
NotificationName = {} --global NotificationName.SHOW_SCENE = "SHOW_SCENE" NotificationName.POPUP_WINDOW = "POPUP_WINDOW" --testfu NotificationName.INCREASE_CLICK = "INCREASE_CLICK" --editor check --统一在这里检测有没有重复定义的通知名称 --没有把通知名称用模块分开,也是为了避免重复字符串的出现 local function checkDuplicateName() local mapV = {} for k, ...
local g, env = vim.g, vim.env g.loaded_perl_provider = 0 g.loaded_ruby_provider = 0 g.python2_host_prog = env.PYENV_ROOT .. "/versions/neovim2/bin/python" g.python3_host_prog = env.PYENV_ROOT .. "/versions/neovim3/bin/python"
-- -- Author: zhong -- Date: 2016-07-07 18:09:11 -- --玩家列表 local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun") local ClipText = appdf.req(appdf.EXTERNAL_SRC .. "ClipText") local PopupInfoHead = appdf.req(appdf.EXTERNAL_SRC .. "PopupInfoHead") local UserItem = appdf.req(appdf.GAME_SRC.."yule.oxbattle.sr...
local Packages = script.Parent.Parent.Parent.Packages local Roact = require(Packages.Roact) local Hooks = require(Packages.Hooks) local StudioTheme = require(Packages.StudioTheme) local Layout = require(script.Parent.Parent.Layout) local Icon = require(script.Parent.Parent.Icon) local e = Roact.createElement export...
local L = LibStub("AceLocale-3.0"):NewLocale("GiveMeAShot", "enUS", true) -- Put the language in this locale here L["Language"] = "English" -------------------------------------------------- -- General -------------------------------------------------- L["Addon_Title"] = "Give me a shot!" L["Addon_Title_Short"] = "G...
local playsession = { {"Chevalier1200", {1092}}, {"Lestibornes", {84245}}, {"WillyMF1", {10301}}, {"rocifier", {9300}} } return playsession
local Player = FindMetaTable("Player") if SERVER then function Player:GodEnable() if hook.Call("GodEnable", GAMEMODE, self) then return end self:SetNWBool("HasGodMode", true) self:AddFlags(FL_GODMODE) end function Player:GodDisable() if hook.Call("GodDisable", GAMEMODE, self) then return end self:SetNW...
Draw = {} drawings = include("rc505/lib/drawings") function Draw.drawing(name,x,y,i) local drawing = drawings[name] if drawing == nil then print("no name "..name) do return end end if i~= nil then drawing = drawings[name][i] end for _,p in ipairs(drawing) do screen.level(p[3]) screen.pixel(p[1]+x,p...
CircularCountdown = {} local rad = math.rad local sin = math.sin local cos = math.cos local abs = math.abs CircularCountdown.newCircularCountdown = function(radius, second, callback) local _ring = display.newGroup() local _ticks = {} local _timer = second local _label local _thandle ...
--[[ Falling - Based on Tetris by Alexey Pajitnov This version written by Gopher, at the request of Dan200, for ComputerCraft v1.6. No particular rights are reserved. --]] local function colorass(c, bw) return term.isColor() and c or bw end local block_s1 = { { { 1, 0, 0, 0 }, { 1, 1, 0, 0 }, ...
local activeMap = nil local activePath = nil local monW, monH = term.getSize() local oldPlayerData = nil local LX, LY, HX, HY = 1, 1, monW, monH local function setTile(value, x, y) if x > 1 and x < activeMap.data.width and y > 1 and y < activeMap.data.height then activeMap.map[y][x] = value end end ...
str="[in brackets]" print(string.sub(str,2,-2)) --in brackets print(string.sub(str,2,-1)) print(string.upper(str)) --char a=97 print(string.char(a)) print(string.char(a+1)) --byte print(string.byte("abc",1,3)) print(string.byte("abc",1,-1)) --format print(string.format("my name is %s","wangliang")) print(string.for...
AddCSLuaFile() SWEP.HoldType = "grenade" if CLIENT then SWEP.PrintName = "grenade_smoke" SWEP.Slot = 3 SWEP.Icon = "vgui/ttt/icon_nades" SWEP.IconLetter = "Q" end SWEP.Base = "weapon_tttbasegrenade" SWEP.Spawnable = true SWEP.WeaponID = AMMO_SMOKE SWEP.Kind = WEAPON_NADE SWEP.UseHands = true ...
local origial_ids = {} function onStart(target, buff) add_buff_parameter(target, buff, 1) for i = 1, 3, 1 do if buff.cfg_property[i] then local skill = SkillGetInfo(target, i) origial_ids[i] = skill.id SkillChangeId(target, i, buff.cfg_property[i]) end end end function onPostTick(target, buff) if buff...
-- if we're in Casual mode, don't let players save screenshots at all if SL.Global.GameMode == "Casual" then return end -- The code here is only half of what's needed for this screen's ScreenShot animation. -- -- The texture that is loaded into this Sprite actor is created via an -- ActorFrameTexture in ./BGAnimations...
--------------------------------------------------------------------------------------------------- -- Common RC related actions module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/ac...
local http = require "resty.http" local cjson = require "cjson.safe" local spawn = ngx.thread.spawn local wait = ngx.thread.wait local ngx_log = ngx.log local ERR = ngx.ERR local INFO = ngx.INFO local ngx_sleep = ngx.sleep local timer_at = ngx.timer.at local encode_base64 = ngx.encode_base64 local fmod = math.fmod lo...
function load_map(path) -- load the tilemap. map = assets.load_tilemap(path) -- grab some handles to layers loaded in the map. layers.background = map.get_layer(0) layers.tiles = map.get_layer(1) layers.collision = map.get_layer(2) layers.jewels = map.get_layer(3) layers.enemies = map.get_layer(4) layers.en...
--[[ Copyright (c) 2021 LeonAirRC 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, distribut...
inventory = { stone=32, dirt=0, clay=0, quarry=1 } function Behavior:Update() local stone = CS.FindGameObject("Stone"):GetComponent("ModelRenderer") local stoneText = CS.FindGameObject("StoneCount"):GetComponent("TextRenderer") local dirt = CS.FindGameObject("Dirt"):GetComponent("ModelRenderer") lo...
fx_version 'cerulean' games { 'gta5' } lua54 'yes' author 'Force#3883' description '' client_scripts { 'config.lua', 'client/*' } server_scripts { 'config.lua', 'server/*' }
---------------------------- ----- SxOrbWalk Loader ----- ---------------------------- function OnLoad() if not FileExist(LIB_PATH.."SxOrbWalk.lua") then LuaSocket = require("socket") ScriptSocket = LuaSocket.connect("sx-bol.eu", 80) ScriptSocket:send("GET /BoL/TCPUpdater/GetScript.php?script=raw.githubuserconte...
-- @feature allows big electric poles and substations to fast-replace each other -- data.lua if mods["base"] then data.raw["electric-pole"]["big-electric-pole"].fast_replaceable_group = "rail-power" data.raw["electric-pole"]["substation"].fast_replaceable_group = "rail-power" end
--[[ TTT -> Roles library -> Traitor Role (Shared) by Tassilo (https://github.com/TASSIA710) --]] local ROLE = {} ROLE.HudText = TTT.Lang.HUD_Role_Traitor ROLE.HudColor = Color(195, 0, 0) ROLE.BuyMenu = function() if not CLIENT then return end TTT.Derma.ShowTraitorShop() end ROLE.RevealOnStart = false ROLE.Rev...
-- -- ULID -- https://github.com/ulid/spec -- -- @namespace foundation.com.ULID local integer_le_encode = assert(foundation.com.integer_le_encode) local integer_be_encode = assert(foundation.com.integer_be_encode) local integer_hex_be_encode = assert(foundation.com.integer_hex_be_encode) local list_crawford_base32_le_...
-- This file is for use with Corona(R) SDK -- -- This file is automatically generated with PhysicsEdtior (http://physicseditor.de). Do not edit -- -- Usage example: -- local scaleFactor = 1.0 -- local physicsData = (require "shapedefs").physicsData(scaleFactor) -- local shape = display.newImage("objectname.png") ...
local rwmutex = {} local _Mutex = {} local _mtMutex = {__index = _Mutex} function rwmutex.NewRWMutex(mutexpath) local mutexPointer mutexPointer = base.NewRWMutex() local ret = setmetatable({}, _mtMutex) ret.mutexPointer = mutexPointer return ret end function _Mutex.Lock(self) return base.RWMu...
local present1, gl = pcall(require, "galaxyline") if not present1 then print("galxyline not found") return end local gls = gl.section gl.short_line_list = { "LuaTree", "vista", "dbui", "startify", "term", "nerdtree", "fugitive", "fugitiveblame", "plug", } -- VistaPlugin = extension.vista_nearest local co...
-- This file is full of hacky s**t -- Most awsome hack in the history of lua -- TODO: This might be replaced by a lua script for more "cross platform combability" :P local stdin_name = os.tmpname () print ("stdin_name: '" .. stdin_name .. "'") cmd = io.popen ("lua ./read.lua " .. stdin_name, "r") _G.stdin = io.open...
--[[ Big Number Formatting ]] local bnf = {} bnf.precision = 2 bnf.symbols = {} function bnf.attach(symbol,digits) bnf.symbols[digits] = symbol end function bnf.detach(digits) bnf.symbols[digits] = nil end function bnf.flatFormat(number,decimals) decimals = decimals or 0 return string.format("%." .. decimals .....
local csi = require('luabox.util').csi local success, uv = pcall(require, 'luv') if not success then success, uv = pcall(require, 'uv') end assert(success, uv) --- The Console, storing the stdin and stdout as well as some functions to control them ---@class Console ---@field public rawMode number The number to s...
--[[ module:ProxyImage author:DylanYang time:2021-02-11 15:20:55 ]] local RealImage = require("patterns.structural.proxy.RealImage") local super = require("patterns.structural.proxy.Image") local _M = Class("ProxyImage", super) local public = _M.public _M.realImage = nil _M.fileName = nil function _M:cto...
local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRPclient = Tunnel.getInterface("vRP","vrp_KoRadio") vRP = Proxy.getInterface("vRP") local permesso = { ['Megafono'] = 'police.megafono', ['Menu'] = 'police.menu', ['Placcaggio'] = 'police.placcaggio' } local it...
local Match = require "atlas.match" local Request = require "atlas.request" local Response = require "atlas.response" local Router = require "atlas.router" local FULL, PARTIAL = Match.FULL, Match.PARTIAL -- Atlas application local Application = {} Application.__index = Application local function _init(_, routes) lo...
return function(thread,args) thread:import("lib/stdlib","stdlib") thread:import("lib/parser","parser") local program=args[1] thread.libraries["stdlib"].root_functions.table.remove(args,1) thread.cela:execute(program,args,thread,thread.current_directory,thread.text_buffer,1) end
-- luacheck: ignore -- File Licence: You can copy and distribute this file regardless of the mod's general licence. This licence exception does not affect other files of this mod. local collision_mask_util_extended = {} -- see collision_mask_util_extended_extended.lua for full instructions. --[[ -- Example usage loca...
---@meta ---#DES 'io' ---@class iolib ---#DES 'io.stdin' ---@field stdin file* ---#DES 'io.stdout' ---@field stdout file* ---#DES 'io.stderr' ---@field stderr file* io = {} ---@alias openmode ---|>'"r"' # ---#DESTAIL 'openmode.r' ---| '"w"' # ---#DESTAIL 'openmode.w' ---| '"a"' # ---#DESTAIL 'openmode.a' ---| ...
local locoRecipe = { type = "recipe", name = "SteamTrains-locomotive", energy_required = 4, enabled = false, ingredients = { {"steam-engine", 4}, {"storage-tank", 1}, {"electronic-circuit", 10}, {"steel-plate", 30} }, result = "SteamTrains-locomotive" } data:extend(...
-- Copyright 2019-2020 Xingwang Liao <kuoruan@gmail.com> -- Licensed to the public under the MIT License. local uci = require "luci.model.uci".cursor() local fs = require "nixio.fs" local sys = require "luci.sys" local nwm = require "luci.model.network".init() local v2ray = require "luci.model.v2ray" local m, s, o l...
-- Borrowed this from Factorio yatm.fluids.fluid_registry.register("yatm_fluids", "petroleum_gas", { description = "Petroleum Gas", groups = { gas = 1, petroleum_gas = 1, explosive = 1, combustable = 1, }, tiles = { source = "yatm_petroleum_gas_source.png", flowing = "yatm_petroleum_ga...
--[[ LibPlayerSpells-1.0 - Additional information about player spells. (c) 2013-2018 Adirelle (adirelle@gmail.com) This file is part of LibPlayerSpells-1.0. LibPlayerSpells-1.0 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softwar...
-------------------------------- -- @module ParticleGalaxy -- @extend ParticleSystemQuad -- @parent_module cc ---@class cc.ParticleGalaxy:cc.ParticleSystemQuad local ParticleGalaxy = {} cc.ParticleGalaxy = ParticleGalaxy -------------------------------- --- ---@return boolean function ParticleGalaxy:init() end ---...
local C = {} local cjson = require "cjson" local Util = require "sora.util" function C.new(o, req) o = o or {} o.req = req local Controller = require "controllers.user.base" local parent = Controller:new() setmetatable( o, { __index = parent } ) return o end function C:exists(params) ngx.header["Cont...