content
stringlengths
5
1.05M
-- NODES minetest.register_node("seacobble:seacobble", { description = "Sea cobblestone", tiles = {"seacobble_seacobble.png"}, is_ground_content = true, groups = {cracky=3, stone=2}, sounds = default.node_sound_stone_defaults(), }) minetest.register_node("seacobble:seacobble_cyan", { description = "Sea cobbles...
function event_combat(e) if (e.joined == true) then e.self:Emote("into this room, screaming can be heard in the distance."); eq.depop_with_timer(); end end
kCollector = KAD_SALVAGER kRefinery = KAD_RESOURCEFUELPOD kScout = KAD_ARANEID kInterceptor = KAD_SWARMER kBomber = KAD_ASSAULTSWARMER kCarrier = KAD_CARRIER kDestroyer = KAD_GUARDIANSPIRIT kBattleCruiser = KAD_MOTHERSHIPLIGHT kRepair = KAD_ARANEID function DetermineDemandWithNoCounterInfo_Kadesh() if (sg_...
#!/usr/bin/env luajit local ok = pcall(dofile,'../fiddle.lua') if not ok then dofile'fiddle.lua' end local getch = require'getch' targetvel={0,0,0} targetvel_new={0,0,0} local servo_names={ "hipyaw", "hiproll", "hippitch", "kneepitch", "anklepitch", "ankleroll" } local selected_servo = 1 local bias_mag = ...
require('assets/scripts/object') GameSerializer = Object:new() local function fileExists(file) local f = io.open(file, "rb") if f then f:close() end return f ~= nil end -- get all lines from a file, returns an empty -- list/table if the file does not exist function GameSerializer:loadLines(file) if not fileEx...
Days: game.Players.LocalPlayer.playerstats.Days.Value = 30 Kills: game.Players.LocalPlayer.playerstats.PlayerKill.Defensive.Value = 30
-- get the relative path local thispath = select('1', ...):match(".+%.") or "" local parent = "unittests." thispath = string.sub(thispath, 1, string.len(thispath) - string.len(parent)) -- load skeletor module local Skeletor = require(thispath..'skeletor') skeletor = Skeletor() skeletor:newSkeleton('paul') -- test sk...
function resourceStart(res) if (res==getThisResource()) then setTimer(saveGuns, 15000, 0) end end addEventHandler("onClientResourceStart", getRootElement(), resourceStart) function saveGuns() local loggedin = getElementData(getLocalPlayer(), "loggedin") if (loggedin==1) then local weaponstring = "...
local schemas = require "kong.dao.schemas_validation" local validate_entity = schemas.validate_entity --require "kong.tools.ngx_stub" describe("Schemas", function() -- Ok kids, today we're gonna test a custom validation schema, -- grab a pair of glasses, this stuff can literally explode. describe("#validate_en...
--E・HERO フォレストマン function c754346950.initial_effect(c) --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(754346950,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCountLimit(1) ...
-------------------------------------------------------------------------------- returnState = {} -------------------------------------------------------------------------------- --function returnState.enter() -- return returnState.enterWith({ignoreDistance = false}) --end function returnState.enterWith(args) if type...
--alltypes.lua local ffi = require("ffi") require("bits/alltypes") --[[ ffi.cdef[[ TYPEDEF unsigned _Addr size_t; TYPEDEF unsigned _Addr uintptr_t; TYPEDEF _Addr ptrdiff_t; TYPEDEF _Addr ssize_t; TYPEDEF _Addr intptr_t; TYPEDEF _Addr regoff_t; TYPEDEF _Reg register_t; ]] ffi.cdef[[ typedef unsigned int mode_t; typed...
module(..., package.seeall) function new(x,y) local group = display.newGroup() local redBar = display.newRect(x, y, 35, 4) redBar.anchorX, redBar.anchorY = 0, 0 group:insert(redBar) redBar:setFillColor(255/255, 0/255, 0/255) local greenBar = display.newRect(x, y, 35, 4) greenBar.anchorX, greenBar.anchorY = 0...
local PLUGIN = PLUGIN; local COMMAND = Clockwork.command:New("Drink"); COMMAND.tip = "Take a drink from a water source (You need to be standing in the water)."; COMMAND.text = "<none>"; COMMAND.flags = CMD_DEFAULT; -- Called when the command has been run. function COMMAND:OnRun(player, arguments) if (player:WaterLev...
object_mobile_hologram_rancor = object_mobile_hologram_shared_rancor:new { } ObjectTemplates:addTemplate(object_mobile_hologram_rancor, "object/mobile/hologram/rancor.iff")
function gen(n) if n < 2 then return n; end local n1 = n + 1; local n2 = n + 2; return n1 + n2; end local r = gen(4); print(r);
r = math.random(#zensko_ime_nom); name = zensko_ime_nom[r];
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by heyqule. --- DateTime: 03/16/2020 1:56 PM --- local ErmConfig = require('__enemyracemanager__/lib/global_config') local ERM_UnitHelper = require('__enemyracemanager__/lib/unit_helper') local ERM_DebugHelper = require('__enemyracemanager__/lib/debu...
return{ { id = 0, name = "stand9.png", { tex = 1, src = {221, 4, 304, 4, 304, 182, 221, 182, }, screen = {896, 192, 2224, 192, 2224, 3040, 896, 3040, } }, type = "picture", }, { id = 1, name = "stand8.png", { tex = 1, src = {310, 4, 392, 4, 392, 181, 310, 181, }, screen = {912, 192, 2224, 19...
-- An iterator of files local ffi = require("ffi") local w32 = require("peettles.w32") local FileSystemItem = require("FileSystemItem"); local k32Lib = ffi.load("kernel32"); local function file_iter_gen(param, status) if status == 0 then -- close the handle if (param.RawHandle ~= INVALID_HANDLE_VALU...
object_tangible_collection_dancing_droid_01 = object_tangible_collection_shared_dancing_droid_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_dancing_droid_01, "object/tangible/collection/dancing_droid_01.iff")
local util = require "util" local core = {} local logger = log.getLogger("core") local tinsert = table.insert ---@class AccessoryConf:table Accessory configuration. --- ---@field plugin string Plugin name. ---@class PluginConf:table Plugin configuration. --- ---@field name string Plugin name. ---@class Plugin:tabl...
----------------------------------- -- Area: Norg -- NPC: Vuliaie -- Type: Tenshodo Merchant -- !pos -24.259 0.891 -19.556 252 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop"); require("scripts/globals/keyitems"); local ID = require("scripts/zones/Norg/IDs"); ---...
return function(Sunshine, entity) local hazard = entity.hazard local collider = entity.collider if hazard and collider then Sunshine:update(function() for _,hitEntity in pairs(collider.hitEntities) do if hitEntity and hitEntity.health and not hitEntity.health.invulnerable...
-- http.lua - implements fetching of documents via HTTP(S) function GET(url, headers) -- If it's just a basic HTTP GET, use the socket.http library if not headers and url:match("^http://") then local b, c, h = http.request(url) return b or "" else -- Cut URL into scheme, domain, por...
----------------------------------- -- Area: Waughroon Shrine -- Mob: Seeker -- Mission 2-3 BCNM Fight ----------------------------------- require("scripts/globals/status") ----------------------------------- function onMobInitialize(mob) mob:setMobMod(tpz.mobMod.HP_STANDBACK, 50) end function onMobDeath(mob, pl...
function getPlayerFromSerial ( serial ) assert ( type ( serial ) == "string" and #serial == 32, "getPlayerFromSerial - invalid serial" ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerSerial ( player ) == serial ) then return player end end return fa...
local Cone = {} function Cone.negotiate(header, available_values) if available_values == nil or available_values == {} then return nil end if header == nil or header == '' then return available_values[1] end header = header:gsub('%s+', '') acceptable_values = {} unaccepta...
--[[ confetteSpawn Spawns item when confette'd ]]-- -- Variables -- confette = {} confette.item = 39 -- Item to throw (6 = ball, 39 = apple) confette.defSpeed = 10 -- Speed of throw confette.height = 5 -- Height of throw confette.defAngle = 90 -- Angle of item confette.defOffset = 30 -- In front of mouse -- -- --...
return { armpeep = { acceleration = 0.21562, bankscale = 1, blocking = false, brakerate = 0.0112, buildcostenergy = 1352, buildcostmetal = 35, builder = false, buildpic = "armpeep.dds", buildtime = 2100, canfly = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, catego...
return {'fouilleren','fouillering','fouilleringsactie','fouilleringsbevoegdheid','foulard','foundation','fourieranalyse','fourierreeks','fourierreeksontwikkeling','fouriertransformatie','fourneren','fournituren','fourniturenzaak','fournituur','fourragere','fourwheeldrive','fout','foutafhandeling','foutanalyse','foutcor...
local modes, config, data, FILE_PATH = ... if data.lang ~= "en" then local tmp = FILE_PATH .. "lang_" .. data.lang .. ".luac" local fh = io.open(tmp) if fh ~= nil then io.close(fh) loadfile(tmp)(modes, config) collectgarbage() end end if data.voice ~= "en" then local fh = io.open(FILE_PATH .. data.voice .....
-- outputdir need to be defined, like: -- outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "utils" language "C++" architecture "x86_64" cppdialect "C++17" kind "StaticLib" warnings "Default" location "" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}...
--------------------------------- ----------- VIM-TEST ------------ --------------------------------- -- vim.g['test#strategy'] = 'tslime' -- vim.g.tslime_always_current_session = 1 -- vim.g.tslime_autoset_pane = 1 -- -- vim.g.tslime = { -- ['session'] = '0', -- ['window'] = 3, -- } -- vim.api.nvim_exec( -- [[ -...
local hotload = require "hotload" local dom = hotload "dom" return function(path, method, status, message) assert(type(path) == "string", "view is missing parameters") return dom{ dom["!doctype"] "html", dom.html{ dom.header{ dom.title(tostring(status or "error")), ...
--[[ Title: Explorer App Author(s): big CreateDate: 2019.01.18 ModifyDate: 2021.12.16 Desc: This is explorer app Place: Foshan use the lib: ------------------------------------------------------------ NPL.load('(gl)Mod/ExplorerApp/main.lua') local ExplorerApp = commonlib.gettable('Mod.ExplorerApp') --------------------...
function NS2Gamerules_GetUpgradedAlienDamage( target, attacker, doer, damage, armorFractionUsed, healthPerArmor, damageType, hitPoint, weapon ) if attacker:GetHasUpgrade( kTechId.Crush ) then --CragHive local spurLevel = GetSpurLevel( kTeam2Index ) if spurLevel > 0 then if target:isa("Exo") or target.GetRecei...
local BasePlugin = require "kong.plugins.base_plugin" local CtxCheckerHandler = BasePlugin:extend() CtxCheckerHandler.PRIORITY = 1000 local function get_ctx(ctx_kind) if ctx_kind == "kong.ctx.shared" then return kong.ctx.shared end if ctx_kind == "kong.ctx.plugin" then return kong.ctx.plugin end ...
---@meta --- websocket object --- https://github.com/openresty/lua-resty-websocket --- ---@class resty.websocket : table ---@field sock tcpsock ---@field fatal boolean ---@field max_payload_len number ---@field send_masked boolean resty_websocket = {} ---@param ms integer sets the timeout del...
function player_init() player_x = 10 * 8 player_y = 10 * 8 player_dir = 0 player_coins = 10 player_seeds = 0 player_movecount = 0 player_was_interact_pressed = false end function player_tick() local xm = 0 local ym = 0 if key(0) then ym = ym - 1 end if key(1) then xm = xm...
Queue = {} Queue.first = nil Queue.last = nil Queue.N = 0 Queue.node = {} Queue.node.value = nil Queue.node.next = nil function Queue:Enqueue(value) local oldLast = self.last self.last = self.node(value) if oldLast ~= nil then oldLast.next = self.last end if self.first == nil then ...
--- items --- --[[ -- keep this -- minetest.register_craftitem("beer_test:barrle_tap", { description = "Barrel Tap", inventory_image = "default_paper.png", }) ]] -- ----------------- -- beer barrle -- ----------------- minetest.register_node("beer_test:barrel", { description = "Barrel", dra...
local cmd = vim.cmd -- local hiLinks = require "settings.utils".hiLinks -- local apply_globals = require "settings.utils".apply_globals -- local highlights = require "settings.utils".highlights cmd "syntax sync fromstart" cmd "syntax enable" cmd "set termguicolors" -- inactive statuslines as thin splitlines cmd "hi!...
workspace "windows-lockscreen-extractor" architecture "x64" startproject "windows-lockscreen-extractor" configurations { "Debug", "Release", "Dist" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["Glad"] = "%{wks.location...
-- @module layout How Ido looks local layout = {} -- The default layout of Ido -- @field results_start string The decoration before the results -- @field results_selected string The decoration before the selected result -- @field results_separator string The decoration separating the results -- @field results_end stri...
-- ONES ALREADY DONE, JUST NEED PASTING IN HERE -- measure-numbers_freund.lua -- FIX ALL THINGS CATEGORY DEFS (defaults only) -- fix tempo alterations local categorydefs = finale.FCCategoryDefs() categorydefs:LoadAll() name = finale.FCString() tempoAlterationsFontInfo = finale.FCFontInfo() tempoAlterationsFontInfo...
local tickno local refl_x local refl_y local refl_w local refl_h local refl_radius local refl_radius_sq local refl_speed_x local refl_speed_y local refl_grav local refl_tap_boost local dist_travelled local hit_parts local hit_parts_delay local menuchange_delay local app_over local border_standoff l...
local PlayerData = class("PlayerData") function PlayerData:ctor(playerid, player_obj) self._playerid = playerid self._data = {} if player_obj ~= nil then fill_data_by_path(PLAYER_DATA["BASE_INFO"], self._data, player_obj) end end function PlayerData:get_playerid() return self._playerid end function PlayerData...
--- === plugins.finalcutpro.advanced.backupinterval === --- --- Change Final Cut Pro's Backup Interval. local require = require local fcp = require "cp.apple.finalcutpro" local i18n = require "cp.i18n" local plugin = { id = "finalcutpro.advanced.backupinterval", group ...
local match = require("luassert.match") local BehaviourTree = require 'lib/behaviour_tree' describe('Priority selector', function() local subject before_each(function() subject = BehaviourTree.Priority:new({}) end) describe(':initialize', function() it('should copy any attributes to the node', functio...
local ipairs = ipairs local tab_insert = table.insert local tab_new = require('resty.core.base').new_tab local balancer = require('apicast.balancer') local mapping_rules_matcher = require('apicast.mapping_rules_matcher') local UpstreamSelector = require('upstream_selector') local Request = require('request') local Rul...
lvim.plugins = { -- Themes { "sainnhe/everforest" }, -- Telescope { "nvim-telescope/telescope-fzy-native.nvim" }, { "benfowler/telescope-luasnip.nvim", after = "telescope.nvim", config = function() require("telescope").load_extension("luasnip") end, }, -- LSP { "ThePrimeagen/refactoring.nvim", ...
DEFINE_BASECLASS("ma2_proj_ppc_lvl1") AddCSLuaFile() ENT.Base = "ma2_proj_ppc_lvl1" ENT.Damage = 540 ENT.ParticleAttach = "gm_MA2_PPC_lvl3" ENT.FireSound = Sound("MA2_Weapon.PPC3") PrecacheParticleSystem("gm_MA2_PPC_lvl3")
--[[ periodictimer.lua v1.0.0 by AGD Description: Periodic timer Requirements: - EventListener Link: https://www.hiveworkshop.com/threads/323354/ ]]-- --[[ API: PeriodicTimer(number: period = 1.00) PeriodicTimer:register(function: callback [, ...]) -> self PeriodicTimer:deregister(function: cal...
-- @group UI -- @brief Draws a number of images in a batch. -- @full Draws a number of images in a batch. The subtextures of the images -- must belong to the same texture. local ImageBatch,super = ae.oo.subclass(ae.ui.Component) -- @func -- @brief Creates an image batch -- @param texture The texture. -- @re...
--[[headerData = { type = "header", name = "My Header", -- or string id or function returning a string tooltip = "My Tooltip", -- or string id or function returning a string (optional) width = "full", -- or "half" (optional) helpUrl = "https://www.esoui.com/portal.php?id=218&a=faq", -- a string...
#!/usr/bin/env lua -- function test() return true end
------------------------------------------------------------------------------ -- -- This file is part of the Corona game engine. -- For overview and more information on licensing please refer to README.md -- Home page: https://github.com/coronalabs/corona -- Contact: support@coronalabs.com -- ------------------------...
local filesystem = require("filesystem") local component = require("component") function filesystem.makeDirectory(path) if filesystem.exists(path) then return nil, "file or directory with that name already exists" end local node, rest = filesystem.findNode(path) if node.fs and rest then local success, ...
--- Embedded HTTP framework. -- @module haproxy.embed local http = {} --- RFC2616 HTTP/1.1 status codes http.status = { CONTINUE = 100, -- `100 Continue` SWITCHING_PROTOCOLS = 101, -- `101 Switching Protocols` OK = 200, -- `200 OK` CREATED ...
local M = {} local jenkins96, bin = require("casc.jenkins96"), require("casc.bin") local uint32_le, int32_le, to_bin, ssub = bin.uint32_le, bin.int32_le, bin.to_bin, string.sub local function toBinHash(h, hexLength) return #h == hexLength and to_bin(h) or h end local wow_mt = {__index={}} do local wow = wow_mt.__i...
<%- partial('../sidebar') %> <div id='content'> <div class='panel'> <div class='header'> <ul class='breadcrumb'> <li><a href='/'>主页</a><span class='divider'>/</span></li> <li class='active'><a href="/user/<%- user.loginname %>"><%- user.loginname %>的主页</a></li> </ul> </div> </di...
-- -- different roles: -- passive : manual config, will be mapped to the menu system -- keymap : current keyboard state will be pushed unto map, -- map defines SYM/key -> ledid translation -- custom : separate function, invoked from clock_pulse -- dispmap : separate function, sample-rate triggered cloc...
-- This file assumes ``autorun/webaudio.lua`` ran right before it. local Common = _G.WebAudio.Common local Modify = Common.Modify util.AddNetworkString("wa_create") -- To send to the client to create a Clientside WebAudio struct util.AddNetworkString("wa_change") -- To send to the client to modify Client WebAudio str...
-- Lua 5.1 doesn't have support for bitwise operations function testFlag(set, flag) return set % (2*flag) >= flag end function setFlag(set, flag) if set % (2*flag) >= flag then return set end return set + flag end function clearFlag(set, flag) if set % (2*flag) >= flag then return...
local Class = require '30log' context('Instances (Objects)',function() context('When a class is created', function() local Window before(function() Window = Class {size = 100} function Window:setSize(size) self.size = size end end) test('new objects can be created via Class:new...
box = class("box") function box:init(x, y) --PHYSICS STUFF self.cox = x self.coy = y self.x = x-14/16 self.y = y-12/16 self.speedy = 0 self.speedx = 0 self.width = 12/16 self.height = 12/16 self.static = false self.active = true self.category = 9 self.parent = nil self.portaloverride = true self.mask =...
--- -- Sink a signal and do nothing. This sink accepts any data type. -- -- @category Sinks -- @block NopSink -- -- @signature in:any > -- -- @usage -- local snk = radio.NopSink() -- top:connect(src, snk) local block = require('radio.core.block') local NopSink = block.factory("NopSink") function NopSink:instantiate(...
--[[ CurrentInput Useful to let the game respond to input type change. Took inspiration from Sleitnick's version of PreferredInput ]] local UserInputService = game:GetService("UserInputService") local package = script.Parent.Parent.Parent local components = package.Components local signal = requir...
function gameStates.core.load() love.graphics.setScreen('top') core = {} --create a table to hold variables for the core core.state = 0 core.image = love.graphics.newImage('img/core/core.png') --load the core img core.x = (love.graphics.getWidth() / 2) - (core.image:getWidth() / 2) --center the core core.y ...
local t = require( "taptest" ) local marry = require( "marry" ) local same = require( "same" ) local keys = { "even", "odd", "name" } local values = { 2, 3, "pierrot" } t( same( marry( keys, values ), { even=2, odd=3, name="pierrot" } ), true ) t()
local super = Class("XMLLoader", LuaObject).getSuperclass() function XMLLoader:init(xmlPath, rootContainer, controller) super.init(self) self.xmlPath = xmlPath self.rootContainer = rootContainer or nil self.controller = controller or rootContainer self.scriptEnv = {} return self end function XMLLoader:setRoot(r...
local red_envelope_reciever_swf_info = { ["fps"] = 24, ["fnum"] = 48, ["width"] = 100, ["height"] = 130, ["frames"] = { {{1,2,1,79,101,},{2,1,2,{0.9468,0,0,0.9468,13.7514,21.0866,},0,0,0,},{1,4,2,67,84,},{2,2,4,{1.1783,0,0,1.1783,10.977,19.4614,},0,0,0,},{1,5,3,34.3,34.3,},{2,3,5,{1,0,0,1,33.55,44.6,},0,5,0,},{...
local Lib = require('library') -- Run comand hooks local function runHookCmds(cmds, hook_name) if not Lib.isEmptyTable(cmds) then for _,cmd in ipairs(cmds) do Lib.logger.debug(string.format("Running %s command: %s", hook_name, cmd)) local success, result = pcall(vim.cmd, cmd) if not success the...
local K, C, L = unpack(KkthnxUI) local Module = K:GetModule("Miscellaneous") local _G = _G local wipe, select, pairs = _G.wipe, _G.select, _G.pairs local ATTACHMENTS_MAX_RECEIVE, ERR_MAIL_DELETE_ITEM_ERROR = _G.ATTACHMENTS_MAX_RECEIVE, _G.ERR_MAIL_DELETE_ITEM_ERROR local C_Mail_HasInboxMoney = _G.C_Mail.HasInboxMone...
local bytecodes = {} bytecodes.SCOPE_POLICIES = { FAIL_ON_COMPLETED = 0x01, FAIL_ON_TERMINATED = 0x02 } bytecodes.INSTRUCTIONS = { SCOPE = 0x00, RETURN = 0x01, RETRACE = 0x02, JUMP = 0x03, SET_POLICY = 0x10, CREATE = 0x20, CREATE_M = 0x21, ...
say("This is the first line!") say("This is the second!") say("And this is the last one!")
object_tangible_collection_col_force_shui_table_02 = object_tangible_collection_shared_col_force_shui_table_02:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_force_shui_table_02, "object/tangible/collection/col_force_shui_table_02.iff")
-- Tile.lua local tile = { x = 0, y = 0, name = "", layer = "middleground", } tile.__index = tile function tile:new( data ) local data = data or {} local self = setmetatable(data,tile) if map.level then if map.level[self.layer] then map.add(self) if gamestate == "Game" then --collider information ...
help([[Automake: GNU Standards-compliant Makefile generator - Homepage: http://www.gnu.org/software/automake/automake.html]]) whatis([[Description: Automake: GNU Standards-compliant Makefile generator - Homepage: http://www.gnu.org/software/automake/automake.html]]) local root = "/opt/apps/software/Automake/1.15-foss...
local cb = require("CppBuild") local print_c = require("../IO") os.chdir(_WORKING_DIR) -- Require function success: function requireSuccess(func) local status, info = pcall(func) if not status then printf("\tError: %s", info) return false end return true end -- Parse args function parseArgs() if _ACTION =...
lt.config.short_name = "Sprites Test" lt.config.design_width = 480 lt.config.design_height = 320 lt.config.world_bottom = -5 lt.config.world_top = 5 lt.config.world_left = -7.5 lt.config.world_right = 7.5
{"slots":{"0":{"name":"slot1","type":{"events":[],"methods":[]}},"1":{"name":"slot2","type":{"events":[],"methods":[]}},"2":{"name":"slot3","type":{"events":[],"methods":[]}},"3":{"name":"slot4","type":{"events":[],"methods":[]}},"4":{"name":"slot5","type":{"events":[],"methods":[]}},"5":{"name":"slot6","type":{"events...
----------------------------------------------------- --name : lib/crunch/24_variable_prefix.lua --description: crunch module, adds 'local a,b,c="hello", 123456789...' prefix on top of the file --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : none --------------------------...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2017 (All Rights Reserved) -- ============================================================= -- inmobi_helpers.lua -- ============================================================= --[[ Includes these functions: ...
----------------------------------------- -- ID: 6268 -- Komanezumi ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) end
local mtmsg = require("mtmsg") local function printf(...) print(string.format(...)) end local N = 5000 local withName = false local function printTime(title, startTime) local t = mtmsg.time() - startTime printf("%-15s %10.3f kop/sec, %6.3f msecs/op", title, N / t / 1000, t / N * 1000) end for ...
Audio = class.set() function Audio:init() self.shoot = love.audio.newSource("audio/shoot.wav", "static") self.boom1 = love.audio.newSource("audio/boom1.wav", "static") self.cityboom = love.audio.newSource("audio/cityboom.wav", "static") self.gameover = love.audio.newSource("audio/gameover.wav", "static...
Citizen.CreateThread(function() Wait(1000) if (((Plugins.PickableFruits) and not (_StartError_) and (Framework.Vorp) and not (Framework.RedEmRP))) then -------------------------------------------------------------------------------- ----------------------------------- DevDokus ----------------------------------- ...
local data = { label1 = { widget = "label", pos = {5, 3}, dim = {50, 5}, text = "Just some simple text", }, button1 = { widget = "button", pos = {5, 10}, dim = {30, 10}, text = "button 1", }, button2 = { widget = "button", pos = {45, 10}, dim = {30, 20}, text = "button 2", images = { ...
local battle_defs = require "battle/battle_defs" local BATTLE_EVENT = battle_defs.EVENT local CARD_FLAGS = battle_defs.CARD_FLAGS local ITEMS = { etb_mixed_bogberries = { name = "Mixed Bogberries", desc = "Has an unknown effect each time you eat it.", icon = "battle/seedling.tex", ...
slash = {"\", "/"} imenilac2 = math.random(3) + 2; imenilac1 = imenilac2 + math.random(5); broj1 = 2 + math.random(imenilac1 - 3); broj2 = 1 + math.random(imenilac2 - 2); brojilac1 = broj1 * imenilac2 brojilac2 = broj2 * imenilac1 imenilac = imenilac1 * imenilac2 summ = brojilac1 + brojilac2 if (summ < imenilac) ...
ui = {} for _,type in ipairs { 'Window', 'Box', 'Tree', 'VList', 'Expander', 'Stack', 'TextLine', 'WrappingTextLine', 'LeftRightTextLine', 'EntityLine', 'Inventory', } do ui[type] = require('ui.'..type) end function ui.layout() local w,h = tty.termsize() log.debug('Performing layout calculations: %dx%d', ...
name = "Hello World" width = 740 height = 480 display_width = 740*2 display_height = 480*2 manifest = "manifest.lua" -- -- This script is expected to be an asset in the manifest file. -- It's executed at the start -- main_script = "Main.lua" on_update = "update()" webserver = true
return { EmotesWheelMinSize = Vector2.new(320, 320), EmotesWheelMaxSize = Vector2.new(640, 640), ErrorFrameSize = UDim2.new(0.6, 0, 0.2, 0), ErrorFramePosition = UDim2.new(0, 0, 0.1, 0), ErrorFrameAspectRatio = 6, ErrorFrameMinSize = Vector2.new(336, 56), ErrorFrameMaxSize = Vector2.new(43...
-- parse packetlogs from wireshark (follow tcp stream, c array), and output interpretation in vegastrike protocol -- ./start.sh -packetlog packetlogs/buy.c local kFromTxtClient = "client" local kFromTxtServer = "server" function PacketLogParse (path) print("-- "..path) local packetconvert_lua = {} for line in io.l...
local cjson = require ("cjson"); local PreparedStatement = require ("Sql").PreparedStatement; local cedegjson = [[{ "number": 1092, "holder": "jose luis", "records": [{"code": "023", "name": "cuentas por pagar"},{"code": "024", "name": "cuentas por cobrar"}] }]]; local cedeg = cjson.decode (cedegjson); l...
local events = { ProcessEventsInterval = 8, GameKey = "", SecretKey = "", Build = "", _availableResourceCurrencies = {}, _availableResourceItemTypes = {}, } local store = require(script.Parent.Store) local logger = require(script.Parent.Logger) local version = require(script.Parent.Version) local validation = re...
AddRoom("BurntForestStart", { colour={r=.010,g=.010,b=.010,a=.50}, value = GROUND.FOREST, contents = { countprefabs= { firepit=1, }, distributepercent = 0.6, distributeprefabs= { evergreen = 3 + math.random(4), charcoal = 0.2, ...
--------------------------------------------------------------- -- Copyright 2020 Deviap (https://deviap.com/) -- --------------------------------------------------------------- -- Made available under the MIT License: -- -- https://github.com/deviap/sample-apps/blob/master/LICENSE -- ...