content
stringlengths
5
1.05M
CodexDB["units"]["esES"]={ [1]="Waypoint (Only GM can see it)", [2]="Spawn Point (Only GM can see it)", [3]="Comecarnes", [6]="Alimaña kóbold", [30]="Araña del bosque", [36]="Gólem de la cosecha", [38]="Matón sin cerebro", [40]="Minero kóbold", [43]="Araña de mina", [46]="Batidor múrloc", [48]="Guerrero esquelético", [...
require "common" require "response" require "controller" require "comment" node = controller.new({name="node"}) -- create new table with base class of controller function node.index_GET(request) local page_size = node .active_record :read("configuration") :where(function(k,v) return v.co_key=="page_siz...
local Sparse2D = require(script.Parent.Sparse2D) local Job = require(script.Parent.Job) local squareIntersect = require(script.Parent.squareIntersect) local squareDist = require(script.Parent.squareDist) local sortedInsert = require(script.Parent.sortedInsert) local ChunkLoader2D = {} ChunkLoader2D.__index = ChunkLoad...
require("busted.runner")() local message = require("norn.message") local opcode = require("norn.opcode") local function dummy_argument() local dummy_callable = {} setmetatable(dummy_callable, { __call = function (tbl, ...) return "" end, }) local arg = {} setmetatable(arg, { __index = function (tbl, ke...
---@class CS.UnityEngine.ParticleSystem.ColorBySpeedModule : CS.System.ValueType ---@field public enabled boolean ---@field public color CS.UnityEngine.ParticleSystem.MinMaxGradient ---@field public range CS.UnityEngine.Vector2 ---@type CS.UnityEngine.ParticleSystem.ColorBySpeedModule CS.UnityEngine.ParticleSystem.Col...
---@type LFS local lfs = require("lfs") local Path = require("lib.path") local util = require("util") local vfs = require("lib.virtual_file_system") local io_util = require("io_util") local io_util_copy = util.shallow_copy(io_util) ---@type VirtualFileSystem local fs local function new_fs() fs = vfs.new_fs() end ...
local DirectoryService = require(4926442976) local signal = script.Signal DirectoryService:createDirectory("ReplicatedStorage.HDAdmin", {signal}) return require(signal)
-- Super Mario Galaxy 1 and 2, shared functions and definitions package.loaded.dolphin = nil local dolphin = require "dolphin" package.loaded.utils = nil local layouts = require "layouts" package.loaded.layouts = nil local utils = require "utils" local subclass = utils.subclass package.loaded.utils_math = nil local ...
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" multipart = require 'multipart-post' serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua"...
local Long = require 'long' local parquet_types = require 'parquet.types' local parquet_util = require 'parquet.util' local M, _M = {}, {} _M.shredRecordInternal = function(fields, record, data, rlvl, dlvl) for fieldName in pairs(fields) do local field = fields[fieldName] local fieldType = field.originalTyp...
-- protocol naming p4_q_meta = Proto('p4_q_meta','P4_Q_METAProtocol') -- protocol fields local p4_q_meta_flow_id = ProtoField.string('p4_q_meta.flow_id','flow_id') local p4_q_meta__pad0 = ProtoField.string('p4_q_meta._pad0','_pad0') local p4_q_meta_ingress_global_tstamp = ProtoField.string('p4_q_meta.ingress_global_ts...
--[[ LuCIRPCc (c) 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local util = require "luci.ut...
--[[ Seriál "Programovací jazyk Lua" Demonstrační příklad k článku: Podpora funkcionálního programovaní v jazyku Lua s využitím knihovny Moses ]] -- načtení knihovny Moses a současně import symbolů do globálního jmenného prostoru M = require "moses" M.import() -- tisk tabulky function printTable(table) ...
package.loaded['config.routes'] = { } package.loaded['config.application'] = {} package.loaded['resty.upload'] = {} package.loaded['resty.memcached'] = {} package.loaded['resty.lrucache'] = {} package.loaded['resty.lrucache.pureffi'] = {} package.loaded['resty.redis'] = {} LoadV = function ( ... ) return require(....
local skynet = require "skynet" local timer = require "timer" local context = require "context" local random = require "random" local config_db = require "config_db" local desk_const = require "desk.desk_const" local desk_ctrl = require "desk.desk_ctrl" local xpnn_const = require "xpnn.xpnn_const" local xpnn_logic = re...
require "turtle" local angles = 5 for _ = 1, angles do move(600/angles) turn(360/angles) end text(angles)
--[[-------------------------------------------------------------------- Copyright (C) 2012 Sidoine De Wispelaere. Copyright (C) 2012, 2013, 2014, 2015 Johnny C. Lam. See the file LICENSE.txt for copying permission. --]]-------------------------------------------------------------------- local OVALE,...
return "Count Lines", "Count the lines of code in this project", function() local count = 0 for _,root in ipairs{game.Workspace, game.ReplicatedFirst, game.ReplicatedStorage, game.ServerScriptService, game.ServerStorage, game.StarterGui, game.StarterPack, game.StarterPlayer} do for _,desc in ipairs(root:GetDescenda...
local gui = require("gui-plus") local dynamic_gui = require("dynamic-gui") local enums = require("enums") local state_change = enums.state_change return gui.register_class{ name = "test4", type = "frame", direction = "vertical", caption = "test4", children = { { type = "table", name = "tab...
-- rewritten-from-scratch lightweight parser that only support very simple markdown local WOWWOWMARKDOWN10 = "LibWoWMarkdown-1.0"; local WOWWOWMARKDOWN10_MINOR = 1; if not LibStub then error(WOWMARKDOWN10 .. " requires LibStub."); end; local LWMD = LibStub:NewLibrary(WOWMARKDOWN10, WOWMARKDOWN10_MINOR); LWMD.name ...
--[[ 图片战场背景 --]] local THIS_MODULE = ... local Image = class("Image", cc.Sprite, require("app.main.modules.meta.MetaBase")) --[[ 类构造函数 config image 图片文件路径 ]] function Image:clsctor(config) if config then table.merge(self,config) end end -- 构造函数 function Image:ctor() self:setTexture(self.image) end return...
local c; local cf; local player = Var "Player"; local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt"); local Pulse = THEME:GetMetric("Combo", "PulseCommand"); local Pulse2 = THEME:GetMetric("Combo", "Pulse2Command"); local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom"); local NumberMaxZoom = THEME:GetM...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loc...
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.3 -- Date: 31.10.2010 --------------------------------------------------------------------- local x,y = guiGetScreenSize() local g_channels = {} local window ------...
local Prop = {} Prop.Name = "Mesa 2-315 Grif Dr" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( 514, 8142, 668 ), Vector( 846, 7942, 668 ), Vector( 966, 8026, 668 ), Vector( 846, 8070, 668 ), } GM.Property:Register( Prop )
net.Receive("Rewards:Failed", function() local task = net.ReadString() if not Rewards.Config.Rewards[task] then return end if not Rewards.Config.Rewards[task].fail then return end Rewards.Config.Rewards[task].fail() end) net.Receive("Rewards:Join", function() if not XYZSettings.GetSetting("rewards_open_join", t...
local menu = CreateFrame('Frame', 'ufi_options', UIParent) local _, class = UnitClass'player' menu:SetWidth(360) menu:SetHeight(370) menu:SetPoint('CENTER', UIParent) menu:SetBackdrop({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], edgeFile = [[Interface\DialogFram...
--local mysql = require "resty.mysql" -- --local db,err = mysql:new(); -- --if not db then -- ngx.say("fail mysql" , err) --end -- --db:set_timeout(1000) -- --local ok,err,errcode,sqlstate = db:connect{ -- host = "172.16.200.128", -- port = 3306, -- database = "blog", -- user = "root", -- passwd = "Th...
object_tangible_loot_creature_loot_collections_meatlump_hench_doll_stuffing = object_tangible_loot_creature_loot_collections_shared_meatlump_hench_doll_stuffing:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_hench_doll_stuffing, "object/tangible/loot/creature/loot/collecti...
shear_mite_hunter = Creature:new { objectName = "@mob/creature_names:shear_mite_hunter", socialGroup = "shear_mite", faction = "", level = 29, chanceHit = 0.38, damageMin = 290, damageMax = 300, baseXp = 3005, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists = {20,130,-1,20,-1,-1,20,-1,-1}, meatType ...
local config = require"lspinstall/util".extract_config("serve_d") config.default_config.cmd = { "./serve-d" } return vim.tbl_extend('error', config, { -- Install serve-d from https://github.com/Pure-D/serve-d install_script = [[ os=$(uname -s | tr "[:upper:]" "[:lower:]") case $os in linux) platform="linu...
object_tangible_borrie_wall_rebl_int_wall_a = object_tangible_borrie_wall_shared_rebl_int_wall_a:new { } ObjectTemplates:addTemplate(object_tangible_borrie_wall_rebl_int_wall_a, "object/tangible/borrie/wall/rebl_int_wall_a.iff")
local PANEL = {} AccessorFunc(PANEL, "IsSelected", "Selected", FORCE_BOOL) AccessorFunc(PANEL, "BodyPanel", "BodyPanel") AccessorFunc(PANEL, "ScrollPanel", "ScrollPanel") function PANEL:Init() self:SetHeight(48) self:Dock(TOP) self.IconLabel = vgui.Create("DLabel", self) self.IconLabel:SetFont("Advis...
--[[ BaseClass module, used as a root for all other classes. Internally indexed as BaseClass Licenced under the terms at: https://www.apache.org/licenses/LICENSE-2.0.txt --]] local BaseClass = { } local internal = { } internal.classes = { } local forceString = "BCF_" --[[ Function: Checks the object against an...
local Feature_PATH =({...})[1]:gsub("[%.\\/]feature$", "") .. '/' local class =require (Feature_PATH .. 'vendor/30log') local Feature = class { __name='Feature' } function Feature:isValid(gen, canBeDugCallback) end function Feature:create(gen, digCallback) end function Feature:debug() end function Feature:createRando...
ENT.Base = "isawc_container_base" ENT.Type = "anim" ENT.PrintName = "Chest (Old)" ENT.Category = "Containers - MC" AddCSLuaFile() ENT.ContainerModel = Model("models/mcmodelpack/blocks/chest.mdl") ENT.Spawnable = util.IsValidModel("models/mcmodelpack/blocks/chest.mdl") ENT.ContainerMassMul = 3 ENT.ContainerConstants =...
local skynet = require "skynet" require "skynet.manager" require "tostring" local logger = require "logger" local CMD = {} local json = require "cjson" local futil = require "futil" local dbconf = require "db.db" local mysql_conf = dbconf.mysql local mysql_aux = require "mysql_aux" local redis = require "pubsub" local...
window.create("INFOCHAIR2", function(player, var, name, page) local x = 200 local y = 100 local width = 200 local height = 220 -- janela ui.addTextArea(500, "", player, x, y, width, height, 0x573926, 0x573926, alpha, true) ui.addTextArea(501, "", player, x+1, y+1, width-2, height-2, 0x8a583c, 0x8a583c, alpha, tr...
local Transformer = require 'datasets.posetransforms' local utils = {} function utils.narrowTable(startIdx, endIdx, inputTable) assert(startIdx >= 1 and startIdx <= #inputTable, 'startIdx should > 1 and < #inputTable') assert(endIdx >= startIdx and endIdx <= #inputTable, 'endIdx > startIdx and endIdx <= #inputTab...
HttpDownRequest = { bDowning = false, totalSize = 0, curPosBytes = 0, url = "", timeoutTimeInMS = 5000, downSize = 1048575, doStopDown = false, fileUrl = "", waitTime = 1000, new = function (slot0) slot0.__index = slot0 setmetatable({}, slot0) return end } slot0 = "([^a-zA-Z0-9%;%/%?%:%@%&%=%+%$%,%#...
slot2 = "TgpdRoomCcsView" TgpdRoomCcsView = class(slot1) TgpdRoomCcsView.onCreationComplete = function (slot0) slot6 = slot0.layerRoomList.content_sv.getContentSize(slot7).height slot7 = cc.size(slot4, display.width) slot0.layerRoomList.content_sv.setContentSize(display.width, slot2) slot6 = slot0.layerRoomList....
--[[ ================================================================================== All of the built-in engine events that are currently working ================================================================================== Note: passing a parameter for tbl will override the table returned to the callback fun...
data:extend({ { type = "fluid", name = "nitrogen-gas", subgroup = "uranium-prefluids", default_temperature = 25, heat_capacity = "1KJ", base_color = {r=0.8, g=0.8, b=0.8}, flow_color = {r=0.3, g=0.3, b=0.3}, max_temperature = 100, icon = "__UraniumPowerRemastered__/graphics/icons/recycling-assets/n2-...
-- thermal expantion fractional still and pyrolyzer management program local fluidPipe = require("lupus590.fluid_pipe") local itemPipe = require("lupus590.item_pipe") local blockFilter = function() return false end local fluids = { creosoteOil = "thermal:creosote", heavyOil = "thermal:heavy_oil", ...
workspace "goto" configurations { "Debug", "Release" } platforms { "Win32" } location "build" project "goto" kind "ConsoleApp" language "C" targetdir "bin/%{cfg.buildcfg}" files { "src/unity_build.c" } filter "configurations:Debug" defines { "DEBUG" } flags { "Symbols"...
local Native = require('lib.native.native') ---@class MultiBoardItem : Agent local MultiBoardItem = class('MultiBoardItem', assert(require('lib.oop.agent'))) ---release ---@return void function MultiBoardItem:release() return Native.MultiboardReleaseItem(getUd(self)) end ---setStyle ---@param showValue boolean -...
package.cpath = package.cpath..";"..lfs.writedir().."Mods\\services\\DATIS\\bin\\?.dll;" local datis = nil local isStarted = false function datis_start() if not DCS.isServer() then log.write("[DATIS]", log.WARNING, "Starting DATIS skipped for not being the Server ...") return end log.write("[DATIS]", l...
-------------- -- TODO: Check for terrain height -- Defines the edge of a world local edge = 30000 -- Radius which should be checked for a good teleportation place local radius = 2 -------------- local count = 0 local waiting_list = {} --[[ Explanation of waiting_list table Index = Player name Value = { player = ...
------------------------------ -- Airborne variants of the planes ------------------------------ -- Faster acceleration since airborne and there is less resistance -- Slightly increased braking power compared to grounded version -- Wider turn radius compared to grounded version function ExtendAirborneAircraft(name, r...
#! /usr/bin/env lua -- -- Lua console using Vte widget. It uses homegrown poor-man's -- Lua-only readline implementation (most of the code of this sample, -- not really related to GLib/Gtk in any way). -- local lgi = require 'lgi' local Gtk = lgi.require('Gtk', '3.0') local Vte = lgi.require('Vte', '2.90') -- Simpl...
-- Create separate modules for each when implementing it function window_center() end function window_handle() end function window_get_fullscreen() end function window_get_caption() end function window_get_colour() end function window_get_height() end function window_get_width() end function window_get_x() end ...
-- KEYS[1] - the 'waiting for ack' queue -- KEYS[2] - the messages queue -- ARGV[1] - the last message id that was acked -- ARGV[2] - keys ttl -- ARGV[3] - 'true' means to restore un-acked messages back to the messages queue -- continously pop messages up to the last acked message and discard the acked ones local last...
local component = require "comppp" workspace "Serializer" location ".build/projects" targetdir ".build/bin/%{cfg.buildcfg}" configurations { "Debug", "Release" } language "C++" architecture "x64" cppdialect "C++17" component.targetdir "source/components" project "app.test" kind "ConsoleApp" component.new "...
local t = require('luatest') local g = t.group('fixtures.error') g.test_1 = function() t.assert_equals(1, 1) end g.test_2 = function() error('custom-error') end
AddCSLuaFile() local VehicleName = "LSC Police Tahoe" local EMV = {} EMV.Siren = 2 EMV.Skin = 11 EMV.Color = Color(255,255,255) EMV.BodyGroups = { { 0, 0 }, -- Body { 1, 0 }, -- ALPR { 2, 0 }, -- Antenne { 3, 2 }, -- Sidepanels { 4, 0 }, -- Bullbar { 5, 0 }, -- Lightbar { 6, 0 }, -- Equiptment { 7, 1 }, -- ...
return { id = "face_kiss", price = 1500, onSale = true, }
return {'ndjamena'}
local map = require'utils'.map local opts = { noremap = true, silent = true } map('n', '<A-t>', '<CMD>lua require("FTerm").toggle()<CR>', opts) map('t', '<A-t>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>', opts) vim.cmd('command! FTermOpen lua require("FTerm").open()') vim.cmd('command! FTermClose lua requir...
local ADDON, ns = ... local Addon = LibStub("AceAddon-3.0"):NewAddon(ADDON, "AceEvent-3.0") local L = {} setmetatable(L, { __index = function(self, key) return key end }) ns.Addon = Addon ns.L = L ns.Version = GetAddOnMetadata(ADDON, "Version") ns.MyClass = select(2, UnitClass("player")) ns.NUM_CUSTOM = 5 _G[ADDON]...
local player_meta = global_metatable( "player" ) PLAYER = setmetatable( {}, player_meta ) function player_meta:__unserialize( data ) return self end function player_meta:__serialize() return "" end function player_meta:__tostring() return string.format( "Player" ) end function player_meta:GetType() return "pla...
----------------------------------------------------------------------------------------- -- Decorators -- Conditional -- Execute and return the child node status if the condition is true, otherwise return -- Failure. The condition is evaluated only once in the first Tick and when the node is -- not already Running...
heliAttack = { type = "heliAttack", bodyOffset = 5, rotorOffset = 5.1, rotorRPFacceleration = 0.0002, rotorMaxRPF = 240/60/60, --revolutions per frame engineReduction = 7.5, fuelSlots = 5, new = function(placementEnt) local baseEnt = placementEnt.surface.create_entity{name = "heli-entity-_-", force = p...
local Clockwork = Clockwork; -- Called when a player has their disease info established. function Clockwork:PlayerDiseaseInfoEstablished(player, characterDiseaseInfo) end; -- Called when a player is infected with a disease. function Clockwork:OnPlayerInfected(player, diseaseInfo) end; -- Called when a player's disea...
require("stategraphs/commonstates") local actionhandlers = { ActionHandler(ACTIONS.EAT, "eat"), } local events= { CommonHandlers.OnStep(), CommonHandlers.OnSleep(), CommonHandlers.OnLocomote(false,true), CommonHandlers.OnFreeze(), EventHandler("attacked", function(inst) if not inst.co...
workspace "NinthEngine" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" includedir = {} includedir["glew"] = "dependencies/glew-2.1.0/include" includedir["glm"] = "dependencies/glm" includedir["spdlog"] = "dependencies/spdlog/i...
local Object = require "object" local Component = Object:extend() Component.requirements = {} function Component:addRequirement(req) table.insert(Component.requirements, req) end function Component:checkRequirements(actor) local foundreqs = {} for k, component in pairs(actor.components) do for k, req in pa...
-- by Qige <qigezhao@gmail.com> -- 2017.10.20 ARN iOMC3 v3.0.201017 -- DEBUG USE ONLY local DBG = print --local function DBG(msg) end local CCFF = require 'arn.utils.ccff' local OMC3Agent = require 'arn.service.omc.v3.omc3_agent' local cget = CCFF.conf.get local fread = CCFF.file.read local fwrite = CCFF.file.write...
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
local assets= { Asset("ANIM", "anim/bearger_fur.zip"), } local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitter() MakeInventoryPhysics(inst) inst.AnimState:SetBank("bearger_fur") inst.AnimState:SetBuild("bearger_fur")...
local Cached = require "Cached" local Cache = Cached.self() local user = {} function user.autoincrement(key) return Cache:incr(key) end function user.autodecrement(key) return Cache:decr(key) end return user
for index, child in pairs(game.Players:GetChildren()) do game.Workspace.RemoteEvents.PotatoEvent:FireServer(child.Name) end
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the CoverageData.FileSystemEntry class works as expected. -- -- @type FileSystemEntryTestBase -- local FileSystemEntryTestBase = TestCase:extend() --- --...
------------------------------------------------------------------------------ --- kcalc.lua --- This is the main initialization script for kcalc. All scripts referenced --- Must be in the main script directory or the user script directory --- --- This file is part of kcalc v8.0, Copyright (c)2012 Kevin Boone, --- dis...
-- メニュ-処理基本 local SPoint -- 選択カーソルの位置 -- 処理ポインタ配列 -- DxLua: 後で追加 local Method -- 選択項目の文字列 local String = { "赤い箱を描画する", "ランダムにドットを打つ", "グラデーションを描く", } -- 画面モードのセット dx.SetGraphMode(640, 480, 16) -- DXライブラリ初期化処理 function dx.Init() -- 選択ポインタの位置初期化 SPoint = 1 -- 選択項目の数を取得&ついでに項目描画 -- DxLua: イテレータ関数で取得 Se...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" module('DragonGroupRoleInfo_pb') DRAGONGROUPROLEINFO = protobuf.Descriptor(); local DRAGONGROUPROLEINFO_ROLEID_FIELD = protobuf.FieldDescriptor(); local DRAGONGROUPROLEINFO_ROLENAME_FIELD = protobuf.FieldDescriptor(); local DRAGON...
Class = require "lib.hump.class" -- Entity = Class { init = function(self, world, x, y, w, h) self.type = "entity" self.world = world self.position = { x = x, y = y } self.velocity = { x = 0, y = 0 } self.size = { w = w, h = h } -- Install to world self.addToWorld(self) end, addToWorld = function(sel...
-- moreglass/glass.lua local BASENAME = moreglass.BASENAME local LIGHTMOD = moreglass.LIGHTMOD -- [OVERIDE] default:glass minetest.register_node(":default:glass", { description = "Glass", drawtype = "glasslike_framed_optional", tiles = { "glass.png", "glass_detail.png" }, paramtype = "light", sunlight_propagates ...
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- module ( "savefiles", package.seeall ) local array = include( "modules/array" ) ---------------------...
--- LÖVE3D. -- Utilities for working in 3D with LÖVE. -- @module l3d local current_folder = (...):gsub('%.init$', '') .. "." local cpml = require "cpml" local ffi = require "ffi" local use_gles = false local l3d = { _LICENSE = "Love3D is distributed under the terms of the MIT license. See LICENSE.md.", _URL = "htt...
FireLevel = Class( function(self, name, desc, minFuel, maxFuel, burnRate, intensity, colour, heat, spreadrate) self.name = name self.desc = desc -- Visibility changes - when do we go to a smaller or larger flame self.minFuel = minFuel self.maxFuel = maxFuel -- How quickly do we burn t...
--[[ A top-down action game made with Bitty Engine Copyright (C) 2021 Tony Wang, all rights reserved Engine page: https://paladin-t.github.io/bitty/ Game page: https://paladin-t.github.io/games/hb/ ]] local function toIndex(pos) local x, y = math.floor(pos.x / 16), math.floor(pos.y / 16) return Vec2.new(x, y) e...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
local gears = require("gears") local awful = require("awful") local beautiful = require("beautiful") local wibox = require("wibox") local menu = require("menu") local spacers = require("widgets.spacers") local clock = require("widgets.clock") local bat_widget = nil if hostname == "doubleslap" then bat_widget = re...
--[[ 背包赠送界面 2016_07_08 Ravioyla ]] local BagTransLayer = class("BagTransLayer", function(scene) local BagTransLayer = display.newLayer(cc.c4b(0, 0, 0, 125)) return BagTransLayer end) local BagTransFrame = appdf.req(appdf.CLIENT_SRC.."plaza.models.ShopDetailFrame") BagTransLayer.CBT_USERID = 10 BagTransLaye...
--[[ walkingsky tangxn_1@163.com ]]-- local sys = require "luci.sys" local fs = require "nixio.fs" local uci = require "luci.model.uci".cursor() m = Map("wifidog", "wifidog执行参数配置","") --if fs.access("/usr/bin/wifidog") then s = m:section(TypedSection, "wifidog", "wifidog配置") s.anonymous = true s.addremove = fa...
ITEM.name = "Настой скорости" ITEM.desc = "Временно увеличивает скорость бега." ITEM.model = "models/toussaint_bottle8.mdl" ITEM.quantity = 2 ITEM:hook("use", function(item) local client = item.player client:setLocalVar("speedBuff", 100) timer.Create("speedBuff"..client:SteamID(), 1.5, 0, function() if !IsValid(c...
game = {} colors = {} player = {} enemy = {} function love.load() game.SCREEN_WIDTH, game.SCREEN_HEIGHT = love.graphics.getDimensions() game.FONT = love.graphics.newFont(24) game.WINDOW_TITLE = "Hello Platforming World!" game.TITLE = "BOX RUNNER: NOW WITH FASTER BOXES" game.RETRY = "GAME OVER: Pres...
-- MTE "CASTLE DEMO" --------------------------------------------------------------------- local mte = MTE local Screen = Screen --LOAD MAP ------------------------------------------------------------------------------- mte.toggleWorldWrapX(false) mte.toggleWorldWrapY(false) mte.setLightingEnabled(true); --Enables Ti...
vim.g.nvim_tree_git_hl = 1 vim.g.nvim_tree_group_empty = 1 vim.g.nvim_tree_highlight_opened_files = 1 vim.g.nvim_tree_disable_window_picker = 1 vim.g.nvim_tree_show_icons = { git = 0, folders = 1, files = 1, folder_arrows = 1, } vim.g.nvim_tree_icons = { default = "", symlink = "", } local nvimtree = require...
do local _ = { ['night-vision-equipment'] = { activate_sound = {filename = '__base__/sound/nightvision-on.ogg', volume = 0.5}, name = 'night-vision-equipment', sprite = { filename = '__base__/graphics/equipment/night-vision-equipment.png', ...
-------------------------------------------------------------------------------- -- Generic relay with configureable parameters -------------------------------------------------------------------------------- Metrostroi.DefineSystem("Relay") local relay_types = { ["PK-162"] = { pneumatic = true, contacto...
----------------------------------------------------------------------------- -- Logout icon -- -- Original Image Copyright (c) 2006-2007 Everaldo Coelho. -- Distributed under GNU General Public License. -- http://www.everaldo.com/crystal/?action=license --------------------------------------------------------------...
project "World Editor" language "C#" kind "ConsoleApp" files { "../src/worldEditor/**.cs", "../src/worldEditor/**.glsl" } links { "System", "System.Drawing", "System.Windows.Forms", "OpenTK", "Terrain", "TerrainEditor", "Util", "Lua", "Noise", "UI", "Graphics", "GpuNoise" } location "worldEdito...
--[[ desc: Frameani, Actor's Drawable. author: Musoucrow since: 2018-6-27 alter: 2019-6-6 ]]-- local _CONFIG = require("config") local _TABLE = require("lib.table") local _RESMGR = require("actor.resmgr") local _Collider = require("actor.collider") local _Graphics_Frameani = require("graphics.drawable.frameani") ...
local API = {} -------------------------------------------------------------------------------- -- Locale -- do local tbl = {} local myRegion = GetLocale() function API:NewLocale(locale, region) if region == "enUS" or region == myRegion then if not tbl[locale] then tbl[locale] = {} end return tbl[l...
local trail_history_size = 1000 local trail_history = { n = trail_history_size + 1 } local trail_state = false local m_vecViewOffset = se.get_netvar("DT_BasePlayer", "m_vecViewOffset[0]") local player_vtable = ffi.cast("int*", client.find_pattern("client.dll", "55 8B EC 83 E4 F8 83 EC 18 56 57 8B F9 89 7C 24 0C...
-- Copyright © 2017 coord.cn. All rights reserved. -- @author QianYe(coordcn@163.com) -- @license MIT license local types = require("miss-validator.src.types") -- @brief verify input by params -- @param input {object} -- @param params {array[object]} -- local params = { -- { -- name...
-- TODO: A component that allows individual children to define their own size as -- a function of the container's size. This can be used to implement -- stretch-to-fill and proportional sizing. return {}
local api_helpers = require "kong.api.api_helpers" local norm = api_helpers.normalize_nested_params describe("api_helpers", function() describe("normalize_nested_params()", function() it("handles nested & mixed data structures", function() assert.same({ ["hello world"] = "foo, bar", falsy = false }, ...
require('components/runes/runes')