content
stringlengths
5
1.05M
local skynet = require "skynet" skynet.start(function() skynet.error("Service First Test") end)
CHECK [[nil]] { type = "nil", start = 0, finish = 3, } CHECK [[ nil]] { type = "nil", start = 3, finish = 6, }
--@ commons firstrun -- Terrain following module TerrainCheckPoints = {} CurrentMaxVerticalSpeed = 1 -- Pre-calculate check points for terrain following function TerrainCheck_FirstRun(I) local MaxDim = I:GetConstructMaxDimensions() local MinDim = I:GetConstructMinDimensions() local Dimensions = MaxDim - MinDi...
require "user.user"
require "/scripts/util.lua" require "/scripts/vec2.lua" function initStances() self.stances = config.getParameter("stances") self.fireOffset = config.getParameter("fireOffset", {0, 0}) self.fireAngleOffset = util.toRadians(config.getParameter("fireAngleOffset", 0)) self.aimAngle = 0 if root.hasTech("stard...
local fmt = string.format local view = {} -- 获取顶部栏 function view.get_headers (db) return db:query([[ SELECT id, name, url FROM cfadmin_headers WHERE active = '1' ORDER BY `id`]]) end -- 获取菜单栏 function view.get_menus (db, permission) return db:query([[SELECT id, parent, name, url, icon, create_at, update_at FROM c...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; Clockwork.config:ShareKey("use_opens_entity_menus");...
play = class{__include = base} function play:init() --getting crown and castle class self.crown = crown() self.castle = castle() --getting stars self.stars = star() end function play:update(dt) --updating crown for movement self.crown:update(dt) --updating stars self.sta...
-- Copyright (C) 2018 Jérôme Leclercq -- This file is part of the "Not a Bot" application -- For conditions of distribution and use, see copyright notice in LICENSE local emojiTable = require("./data_emoji.lua") local emojiByName = {} for _, emojiData in pairs(emojiTable) do for _, name in pairs(emojiData.names) do ...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.Category = "Buildings" ENT.BaseHealth = 20 ENT.Cost = 100 ENT.Limit = 3 ENT.Owner = nil ENT.Model = "models/props_lab/reciever_cart.mdl" ENT.PrintName = "Ammo Dispenser" ENT.Author = "Erigitic" ENT.Purpose = "Give Ammo" ENT.Instructions = "Place and use"...
return{ name = "ironcrepe", }
object_intangible_beast_bm_spined_puc = object_intangible_beast_shared_bm_spined_puc:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_spined_puc, "object/intangible/beast/bm_spined_puc.iff")
EasyDestroy.UI.ItemWindowFrame = EasyDestroyItems EasyDestroy.UI.ItemWindow = EasyDestroyItemsFrame local ItemWindow = EasyDestroy.UI.ItemWindow ItemWindow.name = "EasyDestroy.UI.ItemWindow" local initialized = false local protected = {} function ItemWindow.__init() if initialized then return end EasyDestro...
#!/usr/bin/env luajit local c_prog_tbl = {[[ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <stdio.h> ]], [[ int main(int argc, char *argv[]) { ]],} -- Insert the constants we wish to know local c_constants = { AF_INET=true, AF_UNIX = tru...
atCore = {} atCore.File = {} -- File Helpers atCore.File.GetFiles = function(path) files = {} for dir in io.popen([[dir "]] .. path .. [[" /b]]):lines() do files[#files + 1] = dir end return files end atCore.File.GetDirectories = function(path) files = {} for dir in io.popen([[dir "]...
-- Statuses local statuses = {} statuses[0x00] = {english = 'Idle'} statuses[0x01] = {english = 'Engaged'} statuses[0x02] = {english = 'Dead'} statuses[0x03] = {english = 'Engaged dead'} statuses[0x04] = {english = 'Event'} statuses[0x05] = {english = 'Chocobo'} statuses[0x21] = {english = 'Resting'} statuses[0x22] = ...
-- Dialogue for NPC "npc_lloyd3" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_lloyd3", "talked")) then DL:setRoot(1) elseif (DL:isQuestState("ininas_abduction", "void")) then DL:setRoot(4) else DL:setRoot(10) end if (not DL:isConditionFulfilled("npc_lloyd3", "talked")) then ...
Test = require('connecttest') require('cardinalities') local events = require('events') local mobile_session = require('mobile_session') local mobile = require('mobile_connection') local tcp = require('tcp_connection') local file_connection = require('file_connection') -----------------------------------------------...
-- Author: Sixin Zhang (sixin.zhang@ens.fr) local nn = require 'nn' local tools = require 'scatwave.tools' local opSubDC, parent = torch.class('nn.opSubDC', 'nn.Module') -- sub mean in fft domain -- hat y = hat x at non-zero freq -- hat y = 0 at zero freq of hat x -- for each channel function opSubDC:__init(mbdim) ...
local Plugins = {} function ASS_NewLogLevel( ID, NAME ) _G[ID] = NAME end function ASS_FindPlugin(NAME) for _,plugin in pairs(Plugins) do if (plugin.Name == NAME) then return plugin end end return nil end function ASS_AllPlugins(f) local t = {} for _, plugin in pairs(Plugins) do if (!f || (f && f...
local msgpack = require('msgpack') local server = require('test.luatest_helpers.server') local socket = require('socket') local uri = require('uri') local t = require('luatest') local g = t.group() g.before_all(function() g.server = server:new({alias = 'master'}) g.server:start() end) g.after_all(function() ...
--> Settings local Settings = _G.FPS_Settings or { Graphics = false, Lighting = false, Texture = false, Terrain = false, Effects = false } --> Variables local sethiddenproperty = sethiddenproperty or set_hidden_property or set_hidden_prop local Lighting = game:GetService("Lighting") local Terrain = workspace.Terr...
---------------------------------------------------------------------------------------------------- -- This is a singleton class that manages MOAIDeck. -- -- @author Makoto -- @release V3.0.0 ---------------------------------------------------------------------------------------------------- -- import local class = r...
-- Started: 2020-08-15 -- Started for far2l: 2022-01-23 -- Author: Shmuel Zeigerman -- Far plugin: any LuaFAR plugin local F = far.Flags local VK = win.GetVirtualKeys() local band, bor = bit.band, bit.bor local IND_TYPE, IND_X1, IND_Y1, IND_X2, IND_Y2, IND_VALUE, IND...
ITEM.name = "Combat Knife" ITEM.base = "base_wep" ITEM.uniqueID = "hl2_m_knife" ITEM.category = nut.lang.Get("weapons_melee") ITEM.class = "hl2_m_knife" ITEM.type = "melee" ITEM.model = Model( "models/warz/melee/knife.mdl" ) ITEM.desc = "A Combat Knife"
return function() local TopBar = script.Parent.Parent local Actions = TopBar.Actions local UpdateChatMessages = require(Actions.UpdateChatMessages) local UpdateChatVisible = require(Actions.UpdateChatVisible) local SetCanChat = require(Actions.SetCanChat) local Chat = require(script.Parent.Chat) local function ...
class "job.captain" ("job") local cap = job.captain cap.title = "Captain" cap.total_positions = 1 cap.spawn_positions = 1 -- how many players can spawn in as this job? --[[ TODO change this value on map-load. Create a `player_spawn` entity which mutates this. ]] cap.supervisorsStr = "Apollox offi...
local root = "/icore/eg/" package.path = root .. "mod/?.lua;" .. root .. "mod/?/init.lua;" .. root .. "expand/?.lua;" .. root .. "business/?.lua;" package.cpath = "../build/?.so" local ua = require "ua" local inspect = require "inspect" c = ua.Client() c:connect("opc.tcp://127.0.0.1:16664") w1 = ua.types.WriteValue() ...
--[[ 3p8_ow_villager Uses: overworld representation of a truck that moves to a position to transfer resources. Todo: maybe give it a small gun to shoot nearby enemies. consider having upgrades for it. on death, have the store buy another? respawn it. have truck store what it is carrying in an ar...
--[[ Unittest This program acts as a unittest by testing all of draft's shapes and linkers. --]] -- load draft local Draft = require('draft') local draft = Draft() function love.draw() -- getters and setters love.graphics.setColor{255, 255, 255} local y = 100 draft:setMode('fill') love.graphics.print("The c...
local M = {} function M:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function M:say(what) ngx.status = 200 ngx.print(what) end return M
local require = require local core = require("apisix.core") local pkg_loaded = package.loaded local sort_tab = table.sort local pcall = pcall local ipairs = ipairs local pairs = pairs local type = type local local_plugins = core.table.new(32, 0) local ngx ...
----------------------------------- -- Area: Labyrinth of Onzozo -- NM: Ubume -- Involved in Quest: Yomi Okuri ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onMobDeath(mob, player, isKiller) if player:getQuestStatus(OUTLANDS, tpz.quest.id.outla...
-- add main game constants and required libraries require 'lib/class' require 'code/utils' require 'code/constants' -- add required class files require 'code/Text' require 'code/Paddle' require 'code/Ball' require 'code/Brick' require 'code/LevelGenerator' -- add game state machine files require 'code/StateMachine' r...
return function() local CopyFactory = require(script.Parent.Parent.CopyFactory) local LUA_MAX_STACK_SIZE = 2 ^ 14 -- removing 5 iterations because TestLoader implementation local NESTED_ITER = LUA_MAX_STACK_SIZE / 4 - 5 --> 4091 local ITER = NESTED_ITER local Copy beforeEach(function() Copy = CopyFactory() ...
local microtest = {} setmetatable(microtest, microtest) function microtest.__call(_, fn, ...) local prev = { context = microtest._current, -- only stored to ensure consistency c = _G.c, t = _G.t } _G.c = microtest.context _G.t = microtest.test local function done(...) mic...
object_tangible_loot_creature_loot_kashyyyk_loot_snake_eye = object_tangible_loot_creature_loot_kashyyyk_loot_shared_snake_eye:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_snake_eye, "object/tangible/loot/creature_loot/kashyyyk_loot/snake_eye.iff")
return function (t, item) for i, value in ipairs(t) do if value == item then return i end end return nil end
fx_version 'adamant' game 'gta5' author 'Ahmad Habibie Nazri | CURL#7153' description 'Auto Revive System ketika ems tidak ada di kota' client_scripts { 'config.lua', 'client.lua', } server_scripts { '@mysql-async/lib/MySQL.lua', 'config.lua', 'server.lua', }
loader.SetEnableThreading(0) loader.SetGrainSize(40) loader.SetNumberofRigs(70) loader.SetCounter(5)
-- Combine stacks into a new list local function compress_list(list) local items = {} local new_list = {} for i, stack in pairs(list or {}) do if not stack:is_empty() then if stack:get_stack_max() == 1 then table.insert(new_list, stack) else items[stack:get_name()] = (items[stack:get_name()] or 0) ...
--- Octree implementation -- @classmod Octree -- Original by Quenty, Optimized by howmanysmall local OctreeNode = require(script.OctreeNode) local OctreeRegionUtils = require(script.OctreeRegionUtils) local EPSILON = 1e-9 local SQRT_3_OVER_2 = math.sqrt(3) / 2 local SUB_REGION_POSITION_OFFSET = { {0.25, 0.25, -0.25...
_addon.name = 'Job Init' _addon.author = 'Lili' _addon.version = '0.0.2' _addon.commands = {'jobinit','ji'} require('logger') files = require('files') --[[ Syntax //ji addbind|removebind <job> <shortcut> <commands> ]] -- first run if not windower.file_exists(windower.addon_path .. 'data/default.txt') then lo...
local checkpoint = nil local models = {} local dicts = {} local opt = {} local phraseTable local function declareOpts(cmd) cmd:option('-model', '', [[Path to model .t7 file]]) -- beam search options cmd:text("") cmd:text("**Beam Search options**") cmd:text("") cmd:option('-beam_size', 5,[[Beam size]]) ...
for i = 0, 5 do print(i) end print("end")
return function() local Root = script.Parent.Parent local CorePackages = game:GetService("CorePackages") local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps) local Rodux = PurchasePromptDeps.Rodux local PromptState = require(Root.Enums.PromptState) local Reducer = require(Root.Reducers.Reducer) l...
if(GetRealmName() == "Skeram")then WP_Database = { ["Notitancow"] = "ST:839/99%SB:907/99%SM:1127/99%", ["Gathund"] = "ST:871/99%SB:928/99%SM:1076/99%", ["Lacia"] = "ST:920/99%SB:894/99%SM:1138/99%", ["Evilorcx"] = "ST:868/99%SB:917/99%AM:1200/100%", ["Axos"] = "ST:852/99%SB:898/99%SM:1181/99%", ["Aechh"] = "ST:859/99%S...
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "", init_effect = "", time = 0, color = "red", picture = "", desc = "", stack = 1, id = 14790, icon = 14790, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onStartGame" }, arg_l...
function fillGroups(players) local grid = {{{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"}}, -- group 1 {{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"}}, -- group 2 {{"Empty","Empty"},{"Empty","Empty"},{"Empty","Empty"},{"Empty",...
require "camera" require "particlesystem" local camera = camera:new() local universe = nil -- VERY SENSITIVE TO COMPUTATIONS, DON'T OVERDO IT!!! local delta_time_ratio = 20 local time_ratio = delta_time_ratio * 180 * 24 local function setup_solar_system() -- Convert every object from solar system to our ...
local Platform = {} Platform.__index = Platform function Platform.create(def, game) local platform = {} setmetatable(platform, Platform) return platform end function Platform:update(dt) end function Platform:draw() end return Platform
RegisterNetEvent('mythic_phone:client:ReceiveNewTweet') AddEventHandler('mythic_phone:client:ReceiveNewTweet', function(tweet) local myname = CharData:GetData('firstName') .. '_' .. CharData:GetData('lastName') if tweet.author ~= myname then SendNUIMessage({ action = 'ReceiveNewTweet', ...
-- Copyright (C) 2017-2020 DBotThePony -- 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, publis...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local Actions = require(common:WaitForChild("Actions")) return { id = "coins500000", name = "500k Coins", desc = ( "Gives 500,000 coins." ), productId = 838295492, on...
return { name = "render", version = "0.0.0", private = true, dependencies = { "luvit/require", "luvit/pretty-print", "creationix/hoedown", }, files = { "*.lua", "sample.md", } }
lure.rom.layout = {} -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: lure.rom.layout.doBlockChildLayouts = function(pRomNode) local self = pRomNode if self.hasChildNodes() then --[[we create a reference list only because using node.childNodes.length can change depending on if t...
pfUI:RegisterModule("targettargettarget", "vanilla:tbc", function () -- do not go further on disabled UFs if C.unitframes.disable == "1" then return end pfUI.uf.targettargettarget = pfUI.uf:CreateUnitFrame("TargetTargetTarget", nil, C.unitframes.tttarget, .2) pfUI.uf.targettargettarget:UpdateFrameSize() pfUI...
local path = "libs/" local blunt = require(path .. "blunt") local rubble = require(path .. "rubble") local stager = require(path .. "stager") return { blunt = blunt, rubble = rubble, stager = stager }
--[[--------------------- This script makes an iso year-week-day calendar Syntax: mkisocal.lua year1 year2 year3 .. yearn > file arg: year1 .. yearn - the year(s) of the calendar to generate file - the name of the file to write the generated text calendar --]]--------------------- local date = require"da...
local ffi = require "ffi" local C = ffi.C local ffi_gc = ffi.gc local ffi_cast = ffi.cast require "resty.openssl.include.pem" require "resty.openssl.include.x509v3" require "resty.openssl.include.x509.csr" require "resty.openssl.include.asn1" local stack_macro = require "resty.openssl.include.stack" local stack_lib = ...
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details print('testing userdata') -- int64 is a userdata type defined in C++ -- equality assert(int64(1) == int64(1)) assert(int64(1) ~= int64(2)) -- relational assert(not (int64(1) < int64(1))) assert(int64(...
function onCreate() -- background shit makeLuaSprite('space', 'space', -836.05, -351.95); scaleLuaSprite('space', 1, 1); setLuaSpriteScrollFactor('space', 0.9, 0.9); addLuaSprite('space', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as thi...
local debugmode = settings.startup["momo-is-debug-mode"].value local factor = settings.startup["momo-evo-reduce-factor"].value require("control-function") script.on_event(defines.events.on_player_created, function(event) if debugmode then for _, player in pairs(game.players) do player.color = {r = 0...
local M = {} M.unmapKeys = function () -- unmap keys lvim.keys.normal_mode["<leader>c"] = false -- close buffer: <c-b> lvim.builtin.which_key.mappings["c"] = {} lvim.keys.normal_mode["<leader>w"] = false -- save: <c-q> lvim.builtin.which_key.mappings["w"] = {} lvim.keys.normal_mode["y"] = false lvim.ke...
return function(utf8) local ffi = require("ffi") if ffi.os == "Windows" then os.setlocale(utf8.config.locale or "english_us.65001", "ctype") ffi.cdef[[ short towupper(short c); short towlower(short c); ]] else os.setlocale(utf8.config.locale or "C.UTF-8", "ctype") ffi.cdef[[ ...
-- local mono = require('monolua').init( 'mono-2.0-boehm.dll', 'test', "C:/Program Files (x86)/Mono/lib", "C:/Program Files (x86)/Mono/etc") local assembly = mono.Assembly(mono.lib.corlib_assembly) local Console = assembly:getClass('System', 'Console') Console:invokeStaticMethod(':WriteL...
NewShipType = StartShipConfig() NewShipType.displayedName="$10006" NewShipType.sobDescription="$10007" NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 400) NewShipType.regentime=0 NewShipType.minRegenTime=0 NewShipType.sideArmourDamage=1.0 NewShipType.rearArmourDamage=1.0 setTacticsMults(NewShipType, "MAXSP...
-- -- Support for the world events to spawn. -- Miscreated.Properties.WorldEvent.fMaxTime = 900 Miscreated.Properties.WorldEvent.fMinTime = 1200 SpawnWorldEvent = function(self) --Log(">> Miscreated:SpawnWorldEvent") local className = "UFOCrash" local rnd = random(1, 16) if rnd >= 1 and rnd <= 4 then classNam...
local RootDirectory = "../" workspace "MandelbrotSet" location(RootDirectory) entrypoint "wWinMainCRTStartup" configurations { "Debug", "Release", } platforms { "x64", } filter "configurations:Debug" defines "APP_DEBUG" project "MandelbrotSet" kind "ConsoleApp" language "C++" cppdialect "C...
require "util.class" require "util.ecs" local cps = require "system.ui.cursor" local wss = require "system.ui.widgets" --local ws = require "system.ui.widget" class"uiSystem" function uiSystem:uiSystem() subsystem = {} end local UISystem = ecs.processingSystem(uiSystem()) local isUI = ecs.requireAll("ui") fu...
--[[ State Table: stop - LuaEntity, ltn stop we're tracking depot - boolean, marks the ltn stop as a depot ]] -- tnp_state_ltnstop_destroy() -- Destroys all state for ltn stops function tnp_state_ltnstop_destroy() global.ltnstop_data = {} end -- tnp_state_ltnstop_get() -...
local PANEL = {} PANEL.SetBody = { [TEAM_COP] = function(self) self:SetModel(LocalPlayer():GetModel()) self.Entity:SetSkin(LocalPlayer():GetSkin()) end, [TEAM_POLICECHIEF] = function(self) self:SetModel(LocalPlayer():GetModel()) self.Entity:SetSkin(LocalPlayer():GetSkin()) end, [TEAM_SWAT]...
slot0 = class("MetaRepairEffect", import("..BaseVO")) slot0.bindConfigTable = function (slot0) return pg.ship_meta_repair_effect end slot0.Ctor = function (slot0, slot1) slot0.id = slot1.id slot0.configId = slot0.id slot0.progress = slot1.progress slot0.attrs = {} for slot5, slot6 in ipairs(slot0:getConfig("ef...
local eg=dofiled("lib/eg").all local oo=dofiled("lib/misc").oo local add=dofiled("cols/col").add local Sym=dofiled("cols/sym") eg {sym1=function(s) s=Sym.new() for _,v in pairs {"a","a","a","a","b","b","c"} do add(s,v) end assert(s.seen.a == 4) assert(s.n == 7) assert(s.mode == "a") end}
--[[ module: CareTaker author: DylanYang time: 2021-02-20 17:52:27 idea: The Caretaker is responsible for storing the list of Memento objects from and providing the specified Memento object. advance: This class abstracts out an interface class. ]] local Memento = require("patterns.behavioral...
--[[ Attempts to enable Steam Rich Presence for Vermintide 1. This mod was ported from https://github.com/danreeves/vermintide-2-mods/tree/master/steam-rich-presence to QoL Original Author: raindish, Zaphio ]] -- -- local mod = get_mod("steam_rich_presence") local mod_name = "SteamRichPresence" local function lob...
return {'yaounde'}
local EQUIPMENT = script:FindAncestorByType("Equipment") function Tick() local myplayer = EQUIPMENT.owner if myplayer and myplayer.isGrounded then local pos = myplayer:GetWorldPosition() local hit = World.Raycast(pos,pos - Vector3.New(0,0,10000000000),{ ignorePlayers = true}) if h...
local Server = {} _G.CodesOtaku = { FrameworkServer = Server } local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerScriptService = game:GetService("ServerScriptService") local function Find(object, objectName, objectType, parentName) if not object then error(string.format("[FRAMEWORK]: the ...
local coli = {} function coli.checkCollision(a, b) --With locals it's common usage to use underscores instead of camelCasing local a_left = a.x local a_right = a.x + a.width local a_top = a.y local a_bottom = a.y + a.height local b_left = b.x local b_right = b.x + b.width local b_top = ...
--[[ ------------------------------------ Description: HPC DropPUonDeath, Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby ----------------------------------- ]]-- players = { } EQUIPMENT = { } EQUIPMENT_TAGS = { } KILL_LOCATION = { } kills = { } EQUIPME...
local component = require("component") local seriz = require("serialization") local event = require("event") local fs = require("filesystem") local piclib = require("image") local function split(inp, sep) if sep == nil then sep = "%s" end local t={} for str in string.gma...
plantcreeper = class:new() function plantcreeper:init(x, y, r) --path self.cox = x self.coy = y self.r = {unpack(r)} table.remove(self.r, 1) table.remove(self.r, 1) self.path = {{self.cox, self.coy}} self.sleeping = false self.x = x-28/16 self.y = y-20/16 self.speedy = 0 self.speedx = 0 self.width = 24...
plugin { id = "org.programmershigh.navigation", name = "Navigation", apiVersion = "2.1", author = "Kenji Nishishiro", email = "marvel@programmershigh.org", url = "https://github.com/marvelph/MartaPlugins" } action { id = "change.current.pane.left", name = "Change Current Pane to Left", ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 10:44 PM --- function loadMovieList() --GETMOVIELIST reads the fixed movie list in movie.txt and returns a --cell array of the words -- movieList = GETMOVIELIST() reads the fixed movie list in movi...
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Louxiard -- !pos -93 -4 49 80 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) if (player:getQuestStatus(CRYSTAL_WAR,tpz.quest.id.crystalWar.GIFTS...
local pairs = pairs local ipairs = ipairs local lor = require("lor.index") local users = require("app.config.config").users local authRouter = lor:Router() authRouter:get("/login", function(req, res, next) res:render("login") end) authRouter:post("/login", function(req, res, next) local username = req.body.us...
_io = {} function _io:init( ) self._postTable = {} print("IO Library has been initialised"); end function _io:readFile(file) if not self:file_exists(file) then return {} end lines = {} for line in io.lines(file) do lines[#lines + 1] = line end return lines end function _io:updateFiles( ) end functi...
library 'Attributes' local stored = Attributes.stored or {} local types = Attributes.types or {} Attributes.stored = stored Attributes.types = types function Attributes.get_stored() return stored end function Attributes.get_id_list() local atts_table = {} for k, v in pairs(stored) do table.insert(atts_tab...
local M = {} function M.isRepo() -- just run rev-parse to see if it's a git repo return os.execute("git rev-parse --git-dir > /dev/null 2>&1") == 0 end function M.getBranch() if not M.isRepo() then return nil end local headfile = io.open '.git/HEAD' if not headfile then return nil end local inf = headfi...
local PANEL = {} function PANEL:Paint(w, h) Theme.hook('PaintTabInventoryBackground', self, w, h) end function PANEL:get_menu_size() return ScrW() * 0.66, ScrH() * 0.66 end function PANEL:on_close() if IsValid(self.player_model) then self.player_model:safe_remove() end if IsValid(self.hotbar) then ...
-- キープアライブ用のパラメータ local max_idle_timeout = 10000 -- 利用されていないキープアライブ接続のタイムアウト(ミリ秒) local pool_size = 50 -- コネクションプールのサイズ -- データストア(memcached、Redis、MySQL)との接続をキープアライブ local ok, err = datastore:set_keepalive(max_idle_timeout, pool_size) if not ok then ngx.say("キープアライブ失敗: ", err) end
-- THIS FILE IS INCREDIBLY BROKEN AND HAS MANY PROBLEMS -- Now known as Waveform supportedOrientations( ANY ) function setup() displayMode( FULLSCREEN ) physics.gravity( 0, -2000 ) --sound("Project:C", 1, 1, 0, true) -- change this m = mesh() water = {} touches = {} ...
uart.setup(1,115200,8,0,1) uart.set_buffer(1,65536) --local f=io.open("/mmc/tmp/esp.log","w") if arg[1]=="reset" then print("Reseting ESP") pio.port.setdir(pio.OUTPUT,pio.PB) pio.port.setval(0,pio.PB) -- wifi_en to low tmr.delay(nil,10000) -- 10ms pio.port.setdir(pio.INPUT,pio.PB) print(pio.port.getval(pio....
object_tangible_loot_creature_loot_kashyyyk_loot_orange_potion = object_tangible_loot_creature_loot_kashyyyk_loot_shared_orange_potion:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_orange_potion, "object/tangible/loot/creature_loot/kashyyyk_loot/orange_potion.iff")
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
-- 尽量不要在返回值中使用table local function testRetTable() print("---------------test testRetTable---------------") local function func1() return 1, 2 end local function func2() return { a = 1, b = 2 } end local count = 20000000 local t1 = os.time() ...
local ffi = require("ffi") local function octal(value) return tonumber(value, 8); end ffi.cdef[[ int printf(const char *__restrict, ...); int open(const char *, int, ...); extern char *strerror (int __errnum); ]] local exports = { -- Constants O_NONBLOCK = octal('04000'); O_RDONLY = 00; O_WRONLY = 01; O_...
-- Copyright (C) 2017 by chrono local proto = { _VERSION = '0.01' } -- below are configs proto.version = '0.01' proto.max_count = 100 proto.time_out = 300 -- above are configs return proto
local symbol = {} _G.LV_SYMBOL_AUDIO = "\xef\x80\x81"-- 61441, 0xF001 _G.LV_SYMBOL_VIDEO = "\xef\x80\x88"-- 61448, 0xF008 _G.LV_SYMBOL_LIST = "\xef\x80\x8b"-- 61451, 0xF00B _G.LV_SYMBOL_OK = "\xef\x80\x8c"-- 61452, 0xF00C _G.LV_SYMBOL_CLOSE = "...