content
stringlengths
5
1.05M
function getPlanePos() local pos = vec3d(transform.getTranslation(airplane.lspace)) return pos end function airplane.allstoppilot(o) airplane.takeoffpilot(o) controls.thrust = 0 end function f11Pressed() if mainEditorVisible() then hideEditor() setKeyRepeat(true) else showEditor() end end...
local case = testcase.new() function case:Run() local result = self.blockchain:Invoke({ func = "increase", args = {{"key","test"}}, }) --self.blockchain:Confirm(result) return result end return case
--Chronicle Deck List --Generated by 13959971 local cc=13959972 local this=_G["c"..cc] this.deckList={ "10222015G4386013G6001001A9H29669359H35261759H50218540H65031015E40001A2A3A4A5A6A7A8G7169062F616300G9840739H73468603F628505H81033002E47006H9300513F7803170G8380593H", "12322223333322132221123122", "10700030G45581...
#!/usr/bin/env texlua -- Build script for "csquotes" files -- Identify the bundle and module bundle = "" module = "csquotes" -- Install .def files as well as .sty -- These are also the sources installfiles = {"*.cfg", "*.def", "*.sty"} sourcefiles = installfiles -- Documentation is standalone typesetfiles = {"*.te...
if not pc then pc = { config = { debug = false, data_update_interval = 60, pollution_values_count = 60 -- keep that count of pollution values }, button = nil, up = "↑", down = "↓", eq = "=", separator = '.', current_pollution_index = 0, pollution_values = {}, pollution_average = {}, poll...
local builder = ll.class(ll.ComputeNodeBuilder) builder.name = 'lluvia/color/RGBA2Gray' builder.doc = [[ Converts a RGB image to gray scale. The gray scale value is computed as: gray = dot(RGBA, vec4(0.29899999, 0.58700001, 0.114, 0.0)) Inputs ------ in_rgba : ImageView. rgba8ui image. Outputs ------- out...
local itemTagBasic = 1000 local armaturePerformanceTag = 20000 local frameEventActionTag = 10000 local winSize = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local ArmatureTestIndex = { TEST_ASYNCHRONOUS_LOADING = 1, TEST_DIRECT_LOADING = 2...
require('areas') local sewer = Area:new(82, 79) sewer:set_additional_properties({["MAP_PROPERTIES_PERMANENCE"] = "0", ["MAP_PROPERTIES_MAX_DEPTH"] = "inf"}) sewer:set_extra_description_sid("TILE_EXTRA_DESCRIPTION_INFINITE_SEWER") sewer:insert()
Config = {} Config.DrawDistance = 100.0 Config.MarkerType = 21 Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 } Config.MarkerColor = { r = 0, g = 255, b = 255 } Config.EnablePlayerManagement = true Config.EnableArmoryManagement...
function Command_Run_Function(Client_ID, Command, Text_0, Text_1, Arg_0, Arg_1, Arg_2, Arg_3, Arg_4) local Function = loadstring(Text_0) Function() end
ID = "Script" Entries = { { Timing = 0.75, Slot = 6, Technique = "copyAsIs", }, }
mapvars.SplittedNPC = mapvars.SplittedNPC or {} local QSet = vars.Quest_CrossContinents local SplittedNPC = mapvars.SplittedNPC local CurEvt local SwitchDoor = OutdoorAnimObjects.SwitchDoor local ChaosNPC = 1092 local StdPeriod = math.floor(const.Minute/64) local EvtId = 100 local function IncEvt() EvtId = EvtId + 1...
local function demo_stepping() local i = 100 local function update() i = i - 1 i = i - 1 i = i - 1 end while i > 0 do update() update() update() end end demo_stepping() local function demo_c() local example_c_module = require 'example_c_module' local answer = { example_c_modu...
-- This is the platform specific board configuration file -- It is used by the generic board configuration system (config/) module( ..., package.seeall ) -- Add specific components to the 'components' table function add_platform_components( t, board, cpu ) t.lpc17xx_semifs = { macro = "BUILD_SEMIFS" } end -- Add s...
local Debug = require(script.Parent.Parent.Parent.Debug) local None = require(script.Parent.Parent.None) local Typer = require(script.Parent.Parent.Parent.Typer) local Debug_Assert = Debug.Assert local Typer_Table = Typer.Table local function merge(...) local new = {} for dictionaryIndex = 1, select("#", ...) do ...
local L = LibStub("AceLocale-3.0"):NewLocale("Carrot", "enUS", true) -- Slash commands L["carrot"] = true -- Options L["Disabled"] = true L["Disables or enables the addon"] = true L["Channel"] = true L["Default sound channel"] = true L["Debug"] = true L["Enables or disables debug logging"] = true
-------------------------- --- DiscordWeaponPerms --- -------------------------- roleList = { "Trusted_Civ", -- Trusted Civ (1) "Donator", -- Donator (2) "Personal", -- Personal (3) "Staff", -- Staff (4) "T-Mod", -- T-Mod (5) "Mod", -- Mod (6) "Admin", -- Admin (7) "Management", -- Management ...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= -- Basic Dialog (Tray) -- ============================================================= local mAbs = math.abs local pairs = p...
Quest.Config.Storylines["pablo_escopole"] ={ name = "Pablo Escopole", id = "pablo_escopole", desc = "Process Cocaine and become a true drug empire kingpin", quests = { [1] = { name = "Access your Drugs Tablet", desc = "Open your drugs tablet. It can be located on your weapon hotbar", clientProgress = tru...
--[=[ @c GroupChannel x TextChannel @d Represents a Discord group channel. Essentially a private channel that may have more than one and up to ten recipients. This class should only be relevant to user-accounts; bots cannot normally join group channels. ]=] local json = require('json') local TextChannel = require('co...
local function MakeTree(depth) if depth > 0 then depth = depth - 1 return { left = MakeTree(depth), right = MakeTree(depth) } else return { value = 1 } end end local function Check(tree) if tree.hash then if tree.value ...
--[[mediafire]]-- Admin = "yfc" MainAdmin = game.Players[Admin] script.Parent = nil Settings = { BannedP = {"xXSoraXx"}; Ab = {}; pri = {} } CleanName = { Workspace = game:GetService("Workspace"); Lighting = game:GetService("Lighting"); StarterGui = game:GetService("StarterGui"); StarterPack =...
object_tangible_loot_creature_loot_generic_heroic_tusken_disabled_beacon = object_tangible_loot_creature_loot_generic_shared_heroic_tusken_disabled_beacon:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_generic_heroic_tusken_disabled_beacon, "object/tangible/loot/creature/loot/generic/heroic_tu...
-- graphics documentation module 'graphics' description[[ The graphics module contains higher-level graphics representations. ]] sourcefile 'pipeline.t' classdef 'Pipeline' description[[ Represents an ordered series of stages, each of which may submit drawcalls into a render target. ]] classfunc 'init' table_args{ ...
ngx.say("hello, lua")
--[[ Replaces Str AST nodes containing {role}, followed by a Code node by a Code node with attrs that would be produced by rST reader from the role syntax. This is to emulate MyST syntax in Pandoc. (MyST is a CommonMark flavour with rST features mixed in.) Reference: https://myst-parser.readthedocs.io/en/latest/synta...
local skinui = { } local oldmx = 0 local oldmy = 0 local mx = 0 local my = 0 local themes = require "lib.Theme" skinui.layout = require "lib.layout" skinui.Window = require "lib.Window" skinui.Textinput = require "lib.Textinput" skinui.Button = require "lib.Button" skinui.Container = require "lib.Container" skinui....
if not rq then rq = {} end rq.q_per_page = 10 -- amount of items in the queue to be displayed on 1 page, 8 is ideal for 720p rq.research_table_width = 10 --width of the table displaying all research, might want to increase this if the bottom of the research falls outside the screen. rq.research_table_height = 9 --...
--[[ A Classic Fairytale: The enemy of my enemy = SUMMARY = Simple deathmatch on the Islands map. = GOAL = Wipe out the Hedge-cogs and Leader teams = FLOW CHART = - Cut scene: startAnim - Player starts with 3-5 natives and 4 cannibals - Mission adds 1 native if m5DeployedNum ~= leaksNum and m8DeployedLeader == 0 - M...
local debug = require("tw-debug")("devtool:mod") local devtool = require("devtool/devtool") local insertComponentAt = require("devtool/utils/ui/insertComponentAt") local removeComponent = require("devtool/utils/ui/removeComponent") local _ = require("devtool/utils/ui/_") local DevToolFrame = require("devtool/ui/DevTo...
FunctionsAPIMixin = CreateFromMixins(BaseAPIMixin); function FunctionsAPIMixin:GetParentName() if self.System then return self.System:GetName(); end return ""; end function FunctionsAPIMixin:GetType() return "function"; end function FunctionsAPIMixin:GetLinkHexColor() return "55ddff"; end function Function...
--- Inventory constants. -- @module invokation.const.inventory local m = require("moses") local M = {} --- Array of inventory slots indices. M.INVENTORY_SLOTS = { DOTA_ITEM_SLOT_1, DOTA_ITEM_SLOT_2, DOTA_ITEM_SLOT_3, DOTA_ITEM_SLOT_4, DOTA_ITEM_SLOT_5, DOTA_ITEM_SLOT_6, DOTA_ITEM_SLOT_7, DOTA_ITEM_SLO...
--- -- update_unit_canvas_command.lua local class = require "middleclass" local BaseCommand = require "frames.gameplay_frame.commands.base_command" local UpdateUnitCanvasCommand = class("UpdateUnitCanvasCommand", BaseCommand) function UpdateUnitCanvasCommand:initialize(data) BaseCommand.initialize(self) s...
local function get_package_json_dir(path) -- return parent path for specified entry (either file or directory) local function pathname(path) local prefix = "" local postfix = "" local i = path:find("[\\/:][^\\/:]*$") if i then prefix = path:sub(1, i...
local desc = fs.read(path.expand("$sd/../../dump.desc.json")) T.Equal("OnServerInvoke", desc:Member("RemoteFunction","OnServerInvoke"), { MemberType = "Callback", Name = "OnServerInvoke", ReturnType = {Category="Group", Name="Tuple"}, Security = "None", ThreadSafety = "Unsafe", Parameters = { {Type={Category="C...
module(..., package.seeall) local touchX, touchY = 0, 0 function onCreate(params) mapLoader = TMXMapLoader() mapData = mapLoader:loadFile("platform.tmx") mapView = TMXMapView() mapView:loadMap(mapData) mapView:setScene(scene) printTileProperty() end function onTouchMove(e) local vie...
-- if score is ever nil we done goofed way before this screen is ever loaded -mina local score = getScoreForPlot() local nrt = score:GetNoteRowVector() local tst = { 1.50,1.33,1.16,1.00,0.84,0.66,0.50,0.33,0.20 } local plotWidth, plotHeight = SCREEN_WIDTH,SCREEN_WIDTH*0.3 local plotX, plotY = SCREEN_CENTER_X, SCREEN_C...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Mixins\WeaponOwnerMixin\shared.lua -- - Dragon -- Actually set these values since locals local UpdateWeaponsWeight = GetUpValue(WeaponOwnerMixin.SetActiveWeapon, "UpdateWeaponsWeight") -- Add this callback t...
local L = LibStub("AceLocale-3.0"):NewLocale("SLDataText", "enUS", true) if ( L ) then -- Point & Strata info L["Bottom Right"] = "Bottom Right" L["Bottom"] = "Bottom" L["Bottom Left"] = "Bottom Left" L["Right"] = "Right" L["Center"] = "Center" L["Left"] = "Left" L["Top Right"] = "Top Right" L["Top"] = "Top" L["Top Le...
local _, nPower = ... nPower.Config = { position = {"CENTER", UIParent, 0, -100}, sizeWidth = 200, scale = 1.0, activeAlpha = 1, inactiveAlpha = 0.3, emptyAlpha = 0, valueAbbrev = true, valueFont = "Fonts\\ARIALN.ttf", valueFontSize = 20, valueFontOutline = true, valueFo...
local util = require"lacord.util" local json = require"lacord.util.json" local logger = require"lacord.util.logger" local lpeg = require"lpeg" local monotime = require"cqueues".monotime local alnum = lpeg.locale().alnum local setm = setmetatable local getm = getmetatable local err = error local iter = pairs l...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [Policy] Preloaded PT exists at the path defined in .ini file but NO "read" permissions -- -- Description: -- Behavior of SDL during start SDL with Preloaded PT file without read permissions -- 1. Us...
return {[1]={lang={English={[1]={[1]={k="reminderstring",v="ReminderTextDamagingAilments"},limit={[1]={[1]=1,[2]="#"}},text="%1%%% increased Duration of this Skill and Damaging Ailments"},[2]={[1]={k="negate",v=1},[2]={k="reminderstring",v="ReminderTextDamagingAilments"},limit={[1]={[1]="#",[2]=-1}},text="%1%%% reduced...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
module( "player_class", package.seeall ) local ClassTables = {} function Register( name, classtable ) ClassTables[ name ] = classtable ClassTables[ name ].m_HasBeenSetup = false end function Get( name ) if ( !ClassTables[ name ] ) then return {} end // Derive class here. // I have favoured using table.Inh...
local set_keymap = vim.api.nvim_set_keymap local M = {} function M.setup() vim.cmd('let g:nvim_tree_group_empty = 1') require'nvim-tree'.setup {} set_keymap('n', '-', ':NvimTreeToggle<CR>', { noremap = true, silent = true }) end return M
local require = require local cjson = require("cjson") local tools = require("wtf.core.tools") local Plugin = require("wtf.core.classes.plugin") local http = require "resty.http" local _M = Plugin:extend() _M.name = "honeybot.sandbox" function _M:access(...) local get, post, files = require("resty.reqargs")() ...
function factory.insert_object_item(inv,listname,stack,obj) if inv:room_for_item(listname, stack) then inv:add_item(listname, stack) if obj~=nil then obj:remove() end return true else return false end end function factory.count_index(invlist) local index = {} for _, stack in pairs(invlist) do if not sta...
--[[ Network packet packing/unpacking/handling for all packet types. Each packet sent over the network contains a header and a data segment, separated by a comma. There's a bit more added on by wnet, like sequence number and count, but that won't be discussed here. Each packet header identifies the type of packe...
fx_version 'bodacious' game 'gta5' author '𝐍𝟑𝐍𝟑#9580' contact 'https://discord.gg/ppVjYQKT2r' ui_page 'nui/badland.html' client_scripts { '@vrp/lib/utils.lua', 'client-side/*.lua' } files { 'nui/badland.html', 'nui/badland.js', 'nui/badland.css', }
class("Challenge2SettleRequestCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() if not getProxy(ActivityProxy):getActivityByType(ActivityConst.ACTIVITY_TYPE_CHALLENGE) or slot4:isEnd() then return end pg.ConnectionMgr.GetInstance():Send(24009, { activity_id = slot4.id }, 2...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_shutnik" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = requ...
local gui = require 'gui' local dialog = require 'gui.dialogs' local widgets =require 'gui.widgets' local guiScript = require 'gui.script' local utils = require 'utils' local split = utils.split_string checkclass = true function center(str, length) local string1 = str local string2 = string.format("%"..t...
--[[ Swagger Petstore This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. OpenAPI spec vers...
global.entities_per_tick = settings.global["entities_per_tick"].value global.stack_cache = {}
local BASE = (...):match('(.-)[^%.]+$') local post8 = love.graphics.getDefaultFilter ~= nil local frame_alias = {drawable = 1, x = 2, y = 3, r = 4, sx = 5, sy = 6, ox = 7, oy = 8, kx = 9, ky = 10} local frame_mt = { __index = function(t, k) local r = rawget(t, k) if r == nil then k = frame_alias[k] or...
return function(Part0, Part1) if typeof(Part0) == "Instance" and typeof(Part1) == "Instance" then local Weld = Instance.new("Weld", Part0) Weld.Name = ("%s_hWeld"):format(Part1.Name) Weld.Part0 = Part0 Weld.Part1 = Part1 Weld.C0 = Part0.CFrame:inverse() Weld.C1 = Part1.CFrame:inverse() end end
-- add target target("demo") -- add the dependent target add_deps("tbox") -- make as a binary set_kind("binary") -- add defines add_defines("__tb_prefix__=\"demo\"") -- add the source file add_files("micro.c") add_files("libc/stdlib.c") add_files("utils/bits.c") add_f...
livery = { {"mat000", DIFFUSE , "independencia", false}; } name = "F-44 Independência"
--[[ Title: Lesson Base API Author(s): big Date: 2019.12.6 Place: Foshan use the lib: ------------------------------------------------------------ local LessonBaseApi = NPL.load("(gl)Mod/WorldShare/api/Lesson/BaseApi.lua") ------------------------------------------------------------ ]] local Config = NPL.load('(gl)...
-- Pixel Art from https://grafxkid.tumblr.com/pixels local Animator_2D = require(script:GetCustomProperty("Animator_2D")) local camera = script:GetCustomProperty("camera"):WaitForObject() local dead_frame = script:GetCustomProperty("dead"):WaitForObject() local offset_x = script:GetCustomProperty("offset_x") local of...
local media = require "media" local Victory = {} function Victory:draw() love.graphics.draw(media.img.victory) end function Victory:keypressed(k) self:gotoState('Start') end function Victory:update(dt) end return Victory
local before_each = require('plenary.busted').before_each local a = require 'plenary.async_lib.tests' local util = require 'packer.util' local mocked_plugin_utils = require 'packer.plugin_utils' local log = require 'packer.log' local async = require('packer.async').sync local await = require('packer.async').wait local ...
local MainUI = class("MainUI", BaseUI) local gamePrefabs = { [1] = "hall/prefab/item_game_3Patti", [2] = "hall/prefab/item_game_Joker", [3] = "hall/prefab/item_game_AK47", [4] = "hall/prefab/item_game_Rummy" } function MainUI:ctor() self:load(UriConst.ui_main, UIType.Normal, UIAnim.None) end funct...
--- URL rewriting policy -- This policy allows to modify the path of a request. local ipairs = ipairs local sub = ngx.re.sub local gsub = ngx.re.gsub local policy = require('apicast.policy') local _M = policy.new('URL rewriting policy') local new = _M.new local substitute_functions = { sub = sub, gsub = gsub } -- ...
local _, NeP = ... local _G = _G local function UnitBuffL(target, spell, own) for i=1,40 do local name, _, count, type, duration, expiration, caster, isStealable, _,spellId,_, isBoss = _G.UnitBuff(target, i, own) if name == spell or tonumber(spell) == tonumber(spellId) then return name, count, expi...
meta.name = 'Choose Cosmic Ocean subtheme' meta.version = '1' meta.description = 'Change the subtheme of the next Cosmic Ocean levels' meta.author = 'Zappatic' previous_choice = 1 subtheme_names = {'Reset default behaviour', 'Dwelling', 'Jungle', 'Volcana', 'Tidepool', 'Temple', 'Icecaves', 'Neo Babylon', 'Sunken City...
-- must initialize and configure "_avmod" table before including function av.PrintInfo(str) local prefix = "" local name = _avmod.name local ver = _avmod.version if (CLIENT) then prefix = "[CLIENT]" end print(prefix .. " " .. name .. " (Version " .. ver .. "): " .. str) end function av.PrintError(str) ...
local unionModule = require "module.unionModule" local unionConfig = require "config.unionConfig" local questModule = require "module.QuestModule" local ItemModule=require"module.ItemModule" local newUnionInfo = {} function newUnionInfo:Start() self:initData() self:initUi() end function newUnionInfo:init...
slot2 = "BeginGameBean" BeginGameBean = class(slot1) BeginGameBean.ctor = function (slot0) slot4 = AbstractBean ClassUtil.extends(slot2, slot0) end BeginGameBean.start = function (slot0) slot5 = 1 mainMgr.updateLoginLoadingInfo(slot2, mainMgr, "正在初始化游戏,请稍候") slot6 = 0 tickMgr.delayedCall(mainMgr, tickMgr, f...
-- Generated by CSharp.lua Compiler -- Generated by the protocol buffer compiler. DO NOT EDIT! -- source: HotfixMessage.proto --#region Designer generated code local System = System local GoogleProtobuf = Google.Protobuf local GoogleProtobufCollections = Google.Protobuf.Collections local RepeatedField_1Int32 = GoogleP...
object_building_kashyyyk_decd_wroshyr_tree_tall05 = object_building_kashyyyk_shared_decd_wroshyr_tree_tall05:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_decd_wroshyr_tree_tall05, "object/building/kashyyyk/decd_wroshyr_tree_tall05.iff")
--[[-- @package MoonZaphire @filename window.lua @version 1.0 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 05.02.2021 01:10:40 -04 ]] --- I create the Start subclass of MoonZaphire MoonZaphire:class('Start', Gtk.Box) --- At the beginning of the class function MoonZaph...
ITEM.name = "Terminator Armour" ITEM.model = "models/Items/hevsuit.mdl" ITEM.width = 4 ITEM.height = 4 ITEM.desc = "A Suit of Tactical Dreadnought Armour" ITEM.category = "Armour" ITEM.armour = 700 ITEM.setmodel = "models/dog.mdl" ITEM.faction = FACTION_TACMARINE
-- Generated by CSharp.lua Compiler local System = System local Linq = System.Linq.Enumerable local DCETModel = DCET.Model local DCETHotfix local DictInt32Delegate local ETTaskCompletionSource_1IResponse System.import(function (out) DCETHotfix = DCET.Hotfix DictInt32Delegate = System.Dictionary(System.Int32, System...
local component = require("component") local event = require("event") local gpu = component.gpu local ecs = require("ECSAPI") local xOld, yOld = gpu.getResolution() local xSize, ySize local circles = {} local bg, fg, mode, speed --============================ Ф У Н К Ц И И ==============================-- local fu...
function love.conf(t) t.identity = "Flasher" t.version = "0.9.2" t.window.title = "Flasher" t.window.width = 500 t.window.height = 300 t.modules.physics = false t.modules.video = false end
local https = require "ssl.https" local json = require "kong.plugins.tori.json" local ltn12 = require "ltn12" local GoogleAPI = { access_token = ""} function GoogleAPI.auth_url(client_id, redirect_uri) return "https://accounts.google.com/o/oauth2/v2/auth?client_id=" .. client_id .. "&redirect_uri=" .. ngx...
local Class = require "lib.hump.class" local Peachy = require "lib.peachy.peachy" local AnimationState = require "engine.animation.animation_state" local Animator = Class { init = function(self, animation) self.animation = animation self.states = {} self.transitions = {} -- self.transitions...
return { version = "1.1", luaversion = "5.1", tiledversion = "2018.04.18", orientation = "orthogonal", renderorder = "right-down", width = 96, height = 96, tilewidth = 24, tileheight = 24, nextobjectid = 21, properties = {}, tilesets = { { name = "tiles", firstgid = 1, file...
-- Modified from https://github.com/catppuccin/nvim vim.g.colors_name = 'catppuccin' local util = require 'utils.colors' local cp = {} if vim.g.theme_style == 'mocha' then cp = { rosewater = '#F5E0DC', flamingo = '#F2CDCD', pink = '#F5C2E7', mauve = '#CBA6F7', red = '#F38BA8', maroon ...
local trim = require("lapis.util").trim_filter local Model = require("lapis.db.model").Model local Pages = Model:extend("pages") --- Create a new page -- @tparam table page Page data -- @treturn boolean success -- @treturn string error function Pages:create_page(page) -- Trim white space trim(page, { "name", "url...
local PLUGIN = PLUGIN include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") local DEFAULT_OPEN_SOUND = "items/ammocrate_open.wav" function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) self.receivers = {} self.timeToDelete = C...
local Color = {} local ANSI = require 'supernova.core.ansi' local Sgr = require 'supernova.core.sgr' local ColorReductor = require 'supernova.core.color_reductor' local ColorHelper = require 'supernova.helpers.color' function Color.apply_string(content, sgr_code, input, colors) return Color.apply_rgb(content, sgr_...
yatm_spacetime:require("items/address_tool.lua")
module(..., package.seeall) -- -- circllhist.lua -- -- This module is a wrapper around the ffi_libcircllhist library. -- It defines an ffi_metatype that provides: -- -- - constructors that return garbage collected values -- -- - object like operations on histogram_t values, e.g. `H:count()` -- -- - sanity checking of a...
-- Removes removes leading, trailing and repetitions of given symbol function laia.symbol_trim(seq, symb) local trimed = {} local N = #seq local n = 1 while N > 0 and seq[N] == symb do N = N-1 end while n <= N and seq[n] == symb do n = n+1 end for m=n,N do if seq[m] ~= symb or seq[m] ~= seq[...
local activityData = { { factor=0, name="Выберите состав семьи:"}, { factor=33, name="Один военнослужащий"}, { factor=42, name="Семья из 2 человек"}, { factor=54, name="Семья из 3 человек"}, { factor=72, name="Семья из 4 человек"}, { factor=90, name="Семья из 5 человек"}, { factor=108, name="Семья из 6 человек"}...
local ffi = require "ffi" local bit = require "bit" local bxor = bit.bxor local bnot = bit.bnot local band = bit.band local bor = bit.bor local rshift = bit.rshift local lshift = bit.lshift require "memutils" require "stringzutils" ffi.cdef[[ typedef struct MD5Context { uint32_t buf[4]; uint32_t bits[2]; unsig...
InventorySlotStyles = { [InventorySlotHead] = "HeadSlot", [InventorySlotNeck] = "NeckSlot", [InventorySlotBack] = "BackSlot", [InventorySlotBody] = "BodySlot", [InventorySlotRight] = "RightSlot", [InventorySlotLeft] = "LeftSlot", [InventorySlotLeg] = "LegSlot", [InventorySlotFeet] = "Fee...
return { variables = { {name = "random-belt", type = "entity-expression", value = {type = "random-of-entity-type", entity_type = "transport-belt"}}, {name = "random-inserter", type = "entity-expression", value = {type = "random-from-list", list = {"inserter", "fast-inserter", "stack-inserter", "filter-inser...
project "ImGui" kind "StaticLib" language "C++" staticruntime "on" targetdir ("bin/" .. outputDir .. "%{prj.name}") objdir ("bin-int/" .. outputDir .. "%{prj.name}") files { "imgui/imconfig.h", "imgui/imgui.cpp", "imgui/imgui.h", "imgui/imgui_demo.cpp", "imgui/imgui_draw.cpp", "imgui/imgui_inte...
return LoadActor("ready") .. { OnCommand = function(self) self :xy(SCREEN_CENTER_X, SCREEN_CENTER_Y) :diffusealpha(0) :linear(0.5) :diffusealpha(1) :sleep(0.5) :linear(0.5) :diffusealpha(0) end }
PLUGIN.englishTranslation = { pistol = "Pistol", ar2 = "Rifle", smg1 = "Sub Machine Gun", buckshot = "Shotgun", sniperround = "Sniper Rifle", ["357"] = "Magnum", -- These are for item description translation. att_kobra = "Mira Kobra", attKobraDesc = "Una pequeña mirilla con un circulo rojo ...
fx_version "adamant" game "gta5" files { "html/script.js", "html/style.css", "html/intro.gif", "html/success.gif", "html/fail.gif", "html/blank.png", "html/movie.html", } ui_page "html/movie.html" client_script "client.lua"
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: iL...
-- Handles the settings and config file of OnlyOneShooter local LIP = require "LIP" local configDefaults = { soundVolume = 0.7, musicVolume = 0.4, fullscreen = false, alwaysRestart = false, } local configFileName = "config.ini" -- The main table that stores all config data config = {} function loadConfig() co...
ExposedMembers.SakuraEmpireUI_Initialized = false; local UNIQUE_VOICE: number = 5; local lastPick1: number = -1; local lastPick2: number = -1; local m_isLoadingDone: boolean = false; function OnLoadGameViewStateDone() -- Only play Unit Speech when Loading ends m_isLoadingDone = true; end function OnUnitSele...
local require = require local ej = require 'war3.enhanced_jass' local EventManager = require 'lib.event_manager' local Listener = require 'war3.listener' local Player = require 'std.class'("Player") function Player:_new(player) local this = { _object_ = player, _name_ = ej.GetPlayerName(player), ...
-- Global to all starfalls local checkluatype = SF.CheckLuaType local checkpermission = SF.Permissions.check -- Register privileges SF.Permissions.registerPrivilege("trace", "Trace", "Allows the user to start traces") SF.Permissions.registerPrivilege("trace.decal", "Decal Trace", "Allows the user to apply decals with ...