content
stringlengths
5
1.05M
-- -- ▀▀█ █ ▀ -- ▄▄▄ █ ▄▄▄▄ █ ▄▄ ▄▄▄ ▄ ▄▄ ▄ ▄ ▄▄▄ ▄▄▄▄▄ -- ▀ █ █ █▀ ▀█ █▀ █ ▀ █ █▀ █ ▀▄ ▄▀ █ █ █ █ -- ▄▀▀▀█ █ █ █ █ █ ▄▀▀▀█ ▀▀▀ █ █ █▄█ █ █ █ █ -- ▀▄▄▀█ ▀▄▄ ██▄█▀ █ █ ▀▄...
local pb = require"pb" local proto = require"protos.recursion" local msg = proto.A() msg.a1 = 123 msg.a2 = proto.B() msg.a2.b1 = 456 msg.a2.b2 = proto.A() msg.a2.b2.a1 = 678 local bin = assert(msg:Serialize()) local msg1 = msg:Parse(bin) assert(msg.a2.b2.a1 == msg1.a2.b2.a1) pb.print(msg1)
package("piex") set_homepage("https://github.com/google/piex") set_description("Preview Image Extractor (PIEX)") set_license("Apache-2.0") add_urls("https://github.com/google/piex.git") -- version 20201107 is buggy -- add_versions("20201107", "a1b85d566521a4a03c7c715d2851c4272da4e301") add...
object_mobile_dressed_meatlump_hideout_infiltrator = object_mobile_shared_dressed_meatlump_hideout_infiltrator:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_hideout_infiltrator, "object/mobile/dressed_meatlump_hideout_infiltrator.iff")
-- -- gh-3365: display an error in upstream on downstream failure. -- Create a gap in LSN to cause replica's failure. -- The goal here is to see same error message on both side. -- test_run = require('test_run').new() SERVERS = {'master_quorum1', 'master_quorum2'} -- Deploy a cluster. test_run:create_cluster(SERVERS) ...
return { {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, desc_get = "", name = "", init_effect = "", time = 0, color = "blue", picture = "", desc = "", stack = 1, id = 13810, icon = 13810, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onStartGame" }, arg_...
object_mobile_outbreak_undead_deathtrooper_27_m = object_mobile_shared_outbreak_undead_deathtrooper_27_m:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_undead_deathtrooper_27_m, "object/mobile/outbreak_undead_deathtrooper_27_m.iff")
#!/usr/bin/env resty require "resty.core" local lfs = require("lfs") local cjson = require("cjson") local pl_tablex = require("pl.tablex") local method_array = { "POST", "GET", "PATCH", "PUT", "DELETE", } local title_exceptions = { ["api"] = "API", ["curl"] = "cURL", ["db-less"] = "DB-less", ["dns...
local QueryResult = require("QueryResult") --[[ Global cache result. The validated components are always the same (reference in memory, except within the archetypes), in this way, you can save the result of a query in an archetype, reducing the overall execution time (since we don't need to iterate all t...
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local git_branch = 'B' local arrow_up = '↑' local arrow_down = '↓' -- get the current git branch when opening a file -- this needs to be done when opening a file (once), because the shell -- script is somewhat expensive. local branch_info = {} local function update_branch_info(file) if not file.name then return en...
print("[[Vader-workbench]:$1$] DEBUGGING STRING ==> " .. $2$) print("a**2 + b**2: " .. a**2 + b**2)
--サイレント・ソードマン LV5 function c74388797.initial_effect(c) --immune spell local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(c74388797.efilter) c:RegisterEffect(e1) --special summ...
return function() local path = require 'pl.path' local cli = require 'ddlt.modules.cli'() local ddlt = require 'ddlt.core'() local appName = ddlt.appName cli:set_name(ddlt.appName) local exit = os.exit local cliArgs, err = cli:parse(arg) if not cliArgs then io.stderr:write(err .. '\n') exit(1)...
--------------------------------------------------------------------------------------------------- -- User story: API -- Use case: SetMediaClockTimer -- Item: Happy path case, forward and back seek indicators -- -- Requirement summary: -- [SetMediaClockTimer] SUCCESS: getting SUCCESS:UI.SetMediaClockTimer() -- -- Desc...
---------------------------------------------------------------- -- RPGMoveを作成するファクトリークラスです.<br> -- @class table -- @name RPGMoveFactory ---------------------------------------------------------------- local table = require("hp/lang/table") local class = require("hp/lang/class") local RPGRandomMove = require("hp/rpg/mo...
local configuration = { -- standard luacov configuration keys and values here runreport = true, reportfile = './luacov.report.out', -- multiple settings reporter = "multiple", multiple = { reporters = {"default", "multiple.cobertura"}, cobertura = { reportfile = './cob...
game.Workspace.PlayerNameHere:remove()
local log = require("plenary.log").new { plugin = "notify", level = "debug", use_console = false, } vim.notify = function(msg, level, opts) log.info(msg, level, opts) require "notify"(msg, level, opts) end
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.74" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 1056 t.screen.height = 672 t.screen.fullscreen = false t.console ...
require 'rmsprop' function loadData(set, batchsize, num) workdir = '/net/store/nbp/projects/phasesim/src_kstandvoss/lua/autoencoder' if set == 'mnist' then train = torch.load(workdir .. '/mnist.t7/train_32x32.t7', 'ascii') test = torch.load(workdir .. '/mnist.t7/test_32x32.t7', 'ascii') elseif ...
local random = {} if type(love) == "table" and type(love.math) == "table" then random.rand = love.math.random random.randNormal = love.math.randomNormal else random.rand = math.random --TODO: Figure out how to implement this function random.randNormal(sd, mean) sd = sd or 1 mean = mean or 0 ...
-- newUI by Snazzah nUiAccent = {0.20392156862745098, 0.596078431372549, 0.8588235294117647} nUiAccentAlt = {0.1607843137254902, 0.5019607843137255, 0.7254901960784313} nUiCounterAccent = {1, 1, 1} nUiPadding = 20 function nUiColorAccent(a) a = a or 1 UiColor(nUiAccent[1], nUiAccent[2], nUiAccent[3], a) end functi...
local PopupDialogScreen = require "screens/popupdialog" local assets = { Asset("ANIM", "anim/diviningrod.zip"), Asset("SOUND", "sound/common.fsb"), Asset("ANIM", "anim/diviningrod_maxwell.zip") } local prefabs = { "diviningrodstart", } local function OnUnlock(inst, key, doer) inst.AnimState:PlayAni...
--[[-------------------------------------------------------------------------- -- -- File: UTGame.Ui.Settings.UiSettings.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 2, 2010 -- --------------------...
fx_version 'bodacious' games { 'rdr3', 'gta5' } client_scripts{ "radios.lua", "cl_radio.lua" } files{ "index.html" } ui_page "index.html"
local estring = require 'est.string' local mod = {} function mod.create(major, minor, patch) local version = { major = tonumber(major); minor = tonumber(minor); patch = tonumber(patch); rtype = {}; bmeta = {}; } return version end function mod.clone(version) local clone = { major = to...
-- Copyright 2015-2016 Mirantis, Inc. -- -- 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 agree...
local Room = class('Room') local Sound = require('modules/Sound') function Room:initialize( options ) self.tile_size = 16 self.width = game_width/self.tile_size --14 self.height = game_height/self.tile_size --12 self.minx = 1*self.tile_size self.maxx = self.width*self.tile_size - 1*self.tile_size...
-- luacheck: globals minetest rhynia include -- Migrate to Warr1024's luacheck toolsuite with linter when I figure out what a linter is. local thismod = minetest.get_current_modname() local modpath = minetest.get_modpath(thismod) local pumswitch = minetest.registered_nodes["nc_lode:block_annealed"] -- Checks if the onl...
Schema.name = "HL2 RP" Schema.author = "nebulous.cloud" Schema.description = "A schema based on Half-Life 2." -- Include netstream ix.util.Include("libs/thirdparty/sh_netstream2.lua") ix.util.Include("sh_configs.lua") ix.util.Include("sh_commands.lua") ix.util.Include("cl_schema.lua") ix.util.Include("cl_hooks.lua"...
local defunico = {} local WAIT_TYPE_SECONDS = 1 local WAIT_TYPE_UNTIL = 2 local WAIT_TYPE_WHILE = 3 local WAIT_TYPE_FRAME = 4 local WAIT_TYPE_MESSAGE = 5 local WAIT_TYPE_INPUT = 6 function defunico.init(self) self.unico_list = {} self.dt = 0.0 local unico = {} function unico.new(instance, f) local self = {} ...
local cp = { }; cp.username = nil; cp.numberOfRounds = 3; cp.gamesPerRound = 3; cp.showing = false; cp.scene = nil; --- -- Create. -- -- @param inScene The scene. -- function cp:create(inScene) cp.scene = inScene; -- Create group for the challenge popup. local dg = self.scene.resMan:newDisplayGroup("cpChalle...
-- START:note local function note(letter, octave) local notes = { C = 0, Cs = 1, D = 2, Ds = 3, E = 4, F = 5, Fs = 6, G = 7, Gs = 8, A = 9, As = 10, B = 11 } local notes_per_octave = 12 return (octave + 1) * notes_per_octave + notes[lett...
vim.opt.foldmethod = 'expr' vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' require'nvim-treesitter.configs'.setup{ ensure_installed = "maintained", highlight = { enable = true, }, autotag = { enable = true, }, }
return { textContent = [==[ Hello, World! ]==] }
id = 0 sda = 2 scl = 1 -- initialize i2c, set pin1 as sda, set pin2 as scl i2c.setup(id, sda, scl, i2c.SLOW) local HDC1000 = require "HDC1000" HDC1000.begin() function print_temp_hum() humid = HDC1000.hum() print("Humidity: " .. humid) temp = HDC1000.temp() temp = (temp * 1.8) + 32 --convert tempe...
local ZGV = _G.ZGV local tinsert,tremove,sort,min,max,floor,type,pairs,ipairs = table.insert,table.remove,table.sort,math.min,math.max,math.floor,type,pairs,ipairs local print = ZGV.print local Log = {} ZGV.Log = Log Log.entries = {} Log.size = 150 Log.loud = false -- Common functions local GetTimeStri...
--[[ SimpleGangs 1.1 Serverside Administration Console Browser window file. Handles the searching and browsing functions of the main console window. 'Search engine backend'. Also handles delete all data function. There are no user editable settings located in this file. You should follow the configuration...
------------------------------------ --- Discord Chat Roles by Badger --- ------------------------------------ roleList = Config.roleList; allowedColors = Config.allowedColors; allowedRed = Config.allowedRed; allowedEmoji = Config.allowedEmoji; sendBlockMessages = Config.sendBlockMessages; emojis = Config.emojis; --...
local LuaStack = {} LuaStack.__index = LuaStack function LuaStack:Push(x) table.insert(self._data,x) end function LuaStack:Pop() return table.remove(self._data) end function LuaStack:Peek() return self._data[#self._data] end function LuaStack:Count() return #self._data end functi...
local assets = { Asset("ANIM", "anim/gears.zip"), } local function fn(Sim) local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() MakeInventoryPhysics(inst) inst.AnimState:SetBank("gears") inst.AnimState:SetBuild("gears") inst.AnimState:PlayAnimation("idle") ...
return { position = {}, body = { size = 128 }, }
--****************************************** -- ESX_FORKLIFT, BASED ON MY ESX_BUS ** -- ** -- VERSION 0.0.0.0.0.0.0.0.0.0.0.0.1 ** -- ** -- Coded and tested in ~2 hours so: ** -- - it's quite messy ** -- - might contain glitches ** -- - no...
local ABGS = require(script:GetCustomProperty("ABGS")) local BlackScreen = script:GetCustomProperty("BlackScreen"):WaitForObject() local FadeSpeed = 0.05 function OnToggle(show) local color = BlackScreen:GetColor() if show then while color.a < 1 do color.a = color.a + FadeSpeed ...
sptbl["nsmp"] = { files = { module = "nsmp.c", header = "nsmp.h", example = "ex_nsmp.c", }, func = { create = "ut_nsmp_create", destroy = "ut_nsmp_destroy", init = "ut_nsmp_init", compute = "ut_nsmp_compute", other = { ut_nsmp_pri...
--[[ Morph Definition File Morph parameters description local morphDefs = { --beginig of morphDefs unitname = { --unit being morphed into = 'newunitname', --unit in that will morphing unit morph into time = 10, --time required to complete morph process require = 'requnitname', --unit requnitn...
require "/lib/stardust/dynitem.lua" require "/lib/stardust/playerext.lua" require "/lib/stardust/color.lua" --[[ TODO: move some of this into a clean library damage bonus from velocity ]] local burstReplace = {"fefffe", "d8d2ff", "b79bff", "8e71da"} local directives = "" local lightColor = burstReplace[2] functi...
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details print "testing debug library" -- traceback function foo(...) return debug.traceback(...) end function bar() coroutine.yield() end assert(foo():find("foo") > 0) assert(foo("hello"):find("hello") > 0)...
-- ## Information ################################################################### -- Filename: script.lua -- Project: GitHubCalendar -- Author: Brett Stevenson -- License: BSD 3-Clause -- Updated: Sept 26, 2016 -- ############################################################################### -- ## Description ###...
------------------ -- Some methods to operate over families. -- @module -- families local Cell = require "Engine.classes.Cell" local utl_fam = {} function utl_fam.declare_FamilyMobile(...) local args = {...} for i=1,#args do local name = args[i] if not _G[name] or not Simulation.families[na...
local PLUGIN = PLUGIN PLUGIN.gimps = Clockwork.kernel:NewLibrary("Gimp"); PLUGIN.gimps.stored = {}; function PLUGIN.gimps:Add(text, bShowIsGimp) self.stored[#self.stored + 1] = { text = text, bShowIsGimp = bShowIsGimp } end; PLUGIN.gimps:Add("lol admin f4 doesnt work", true); PLUGIN.gimps:Add("lolwat skirt cps...
require("brains/wargbrain") require "stategraphs/SGwarg" local assets = { Asset("ANIM", "anim/warg_actions.zip"), Asset("ANIM", "anim/warg_build.zip"), } local prefabs = { "hound", "icehound", "firehound", "monstermeat", "houndstooth", } SetSharedLootTable('warg', { {'monstermeat', 1.00}, ...
--- -- @class PANEL -- @section DButtonTTT2 local PANEL = {} --- -- @accessor boolean -- @realm client AccessorFunc(PANEL, "m_bBorder", "DrawBorder", FORCE_BOOL) --- -- @ignore function PANEL:Init() self:SetContentAlignment(5) self:SetTall(22) self:SetMouseInputEnabled(true) self:SetKeyboardInputEnabled(true) ...
print("make sure that the following items are in the following slots:") print("<item> <cnt> <slot>") print("coal 5 1") print("redstone 10 2") print("cleanstone 5 3") print("redstonetorch 2 4") print("stickypiston 4 5") print("pressureplate 4 6") print("the T...
-- -*- coding:utf-8 -*- --- ipdb. -- @module misc.ip 信息解析. -- @author:phenix3443+github@gmail.com local cjson = require("cjson.safe") local stringx = require("pl.stringx") local class = require("pl.class") local IPDB = require("misc.ipdb") local MMH = require("misc.mmdb_helper") local M = class() function M:_init(ge...
local refser = require "refser" refser.maxitems = 10 ^ 9 local function benchmark(x, title) print("Starting benchmark " .. title) collectgarbage() local memx = collectgarbage "count" local memstart = collectgarbage "count" io.write " refser.save: " local start = os.clock() local s = assert(refser.save(x...
local m = {} m.__index = m m.msg_count = 0 local network = require("common.network") local msg_define = require("common.msg_define") package.loaded["db.zone.zone_services"] = {} package.loaded["db.log.zone_services"] = {} zone_session = {} log_session = {} local role_vist = require("db.zone.role_vist") local ser_...
local _, NeP = ... local LibStub = LibStub local tremove = tremove local tinsert = tinsert local UnitHealth = UnitHealth local UnitHealthMax = UnitHealthMax local TargetUnit = TargetUnit local C_Timer = C_Timer local DiesalGUI = LibStub('DiesalGUI-1.0') local L = NeP.Locale local statusBars = {} local statusBarsUsed ...
--[[ The contents of this file are subject to the Common Public Attribution License Version 1.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://ultimate-empire-at-war.com/cpal. The License is based on the Mozilla Public License Versio...
local class = require 'me.strangepan.libs.util.v1.class' local lazy = require 'me.strangepan.libs.util.v1.lazy' local builder = lazy 'me.strangepan.libs.util.v1.builder' local mock_turtle = class.build() local NORTH = 0 local EAST = 1 local SOUTH = 2 local WEST = 3 function mock_turtle:_init() self._x = 0 self._...
fcm_blessing_of_omnissiah = { potential = { is_ai = no } allow = { is_ai = no } option = { name = "policy_fcm_option_disabled" policy_flags = { } prerequisites = { } modifier = { } AI_weight = { weight = 0 } } option = { name = "policy_fcm_blessing_of_omnissiah_tier_i" polic...
CITIZENSHEETS = { [1] = { "citizensheet/sheet_02", -- 1-1 "citizensheet/sheet_03", -- 1-2 "citizensheet/sheet_reich", -- 1-3 "citizensheet/scrubs1_sheet", -- 1-4 "citizensheet/scrubs2_sheet", -- 1-5 "citizensheet/sheet_suit", -- 1-6 "citizensheet/sheet_04", -- 1-7 "citizensheet/sheet_08", -- 1-8 "cit...
game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = "I regret learning lua for once.", Color = Color3.fromRGB(255, 10, 70), TextSize = 18, Font = Enum.Font.Ubuntu });
--倒计时组件,内置管理定时器,界面销毁时会自动移除,请放心使用 UI.Countdown = UI.Countdown or BaseClass(UI.UIComponent) --传入结束时间end_time,截至该时间前每秒都会触发传入的step_call_back回调,其回调函数的参数为剩余时间 function UI.Countdown:CountdownByEndTime( end_time, step_call_back, duration ) if not end_time or not step_call_back then print('Cat:UIComponents.lua[UI.Countdown:...
local me=Game.GetLocalPlayer() local texte=script.parent local totalPlayerCooldown =3 local playerCooldownRemaining=3 local LEFT_SHADOW = script:GetCustomProperty("LEFT_SHADOW"):WaitForObject() local RIGHT_SHADOW = script:GetCustomProperty("RIGHT_SHADOW"):WaitForObject() local propUIButton = script:GetCustomProperty("...
itow = {'blue', 'red', 'green', 'violet', 'brown', 'white', 'cyan', 'salmon', 'yellow', 'silver', 'flat', 'stroke', 'style', 'Is', 'it', 'a', '?', 'in', 'the', 'image', 'digit', 'background', 'no', 'yes', '0', '1', '2','3', '4', '5', '6', '7', '8', '9', '<START>', '<END>'} wtoi = {} for i = 1, #itow do wtoi[itow[i]] =...
--天雷星センコウ --id:Ruby QQ:917770701 function c100290036.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100290036,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetRange(LOCATION...
local utils = require('plugins/overlay/utils') -- These method draw some rectangles to show areas, useful when making HUD local function showGrid() -- Whole area gui.drawRectangle(1, 1, utils.gridValues['screenWidth'], utils.gridValues['screenHeight'], 'white') -- Right area (HUD) gui.drawRectangle( ...
acicular_defender = Creature:new { objectName = "@mob/creature_names:paralope_acicular_defender", socialGroup = "paralope", faction = "", level = 8, chanceHit = 0.27, damageMin = 70, damageMax = 75, baseXp = 235, baseHAM = 405, baseHAMmax = 495, armor = 0, resists = {0,0,0,0,0,0,0,0,-1}, meatType = "meat_h...
dofile(LockOn_Options.script_path.."command_defs.lua") dofile(LockOn_Options.script_path.."devices.lua") local gettext = require("i_18n") _ = gettext.translate cursor_mode = { CUMODE_CLICKABLE = 0, CUMODE_CLICKABLE_AND_CAMERA = 1, CUMODE_CAMERA = 2, }; clickable_mode_initial_status = cursor_mode.CUMO...
local utils = require "utils" -- check for modded locomotives and create equipment & entity for them for prototype_name, prototype in pairs(data.raw["locomotive"]) do if prototype_name ~= "locomotive" and not shared.is_a_motorcar(prototype_name) then -- use item with the same name local prototype_item = da...
--[[ ============================================================================================================ Author: Rook Date: January 29, 2015 Called when Bloodstone is cast. Denies the unit. ================================================================================================================= ]] ...
PhysImpr.Perms = PhysImpr.Perms or {} function PhysImpr.Perms.Has(ply, what) return ply:IsAdmin() or ply:IsSuperAdmin() -- ?? end
--// localization //-- -- https://wow.gamepedia.com/Localizing_an_addon local addon, ns = ... ns.L = {} local function defaultFunc(L, key) -- If this function was called, we have no localization for this key. -- We could complain loudly to allow localizers to see the error of their ways, -- but, for now, just re...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- function _M:localVars() end -- function _M:localPos() end -- function _M:didShow(UI) local sceneGroup = UI.scene.view local layer = UI.layer if layer.{{bname}} == nil then return end...
local aloopi = require 'aloopi' return function(time) local A = aloopi.class '' () { __init = function() end; } time('Creating a minimal child class', function() aloopi.class '' (A) { __init = function() end; } end) local AA = aloopi.class '' (A) { __init = function() end; } time('Creating a min...
local netloads = { ["Deck Hand"] = 10, ["Net Baiter"]= 35, ["Line Thrower"]= 50, ["Line Roler"]=70, ["Boat Captain"]=90, ["Experienced Fisherman"]=130, ["Underwater Trap Setter"]=150 } addEvent ( "NGJobs:Fisherman:onClientSellCatch", true ) addEventHandler ( "NGJobs:Fisherman:onClientSellCatch", root, function...
--[[----------------------------------------------------------------------------------------------------------------------- Provides console commands -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Console Co...
--This is a rank table --There could be multiple tables to generate spawns from local Family_Ranks_01 = { ["Minions"] = { "Thug_Family_01","Thug_Family_02","Thug_Family_03","Thug_Family_04", "Thug_Family_05","Thug_Family_06", }, ["Lieutenants"] = { "Thug_Family_Boss_01", "Thug_Famil...
-- npm install -g vim-language-server local M = {} function M.setup() require("lspconfig").vimls.setup({ cmd = { DATA .. "/lsp_servers/vim/node_modules/.bin/vim-language-server", "--stdio" }, on_attach = require("lsp").common_on_attach, root_dir = function(fname) return require(...
require "rttlib" require "rfsm" require "rfsm_rtt" require "rfsmpp" require "rfsm_timeevent" --require "rfsm_proto" tc=rtt.getTC(); --print(tc) dep = tc:getPeer("Deployer") sup = dep:getPeer("Supervisor") gettime = rtt.getTime rfsm_timeevent.set_gettime_hook(gettime) function configureHook() -- load state machi...
IEnemy = { _name = "NULL", _id = -1, _health = -1, _damage = -1, _posX = -1, _posY = -1, _attackPattern = {}, _color = {}, _currAnimName = "NULL", _animPath = "NULL" } function IEnemy:Create(newID) local b = {} setmetatable(b, self) b.__index = self return b end function IEnemy:Init() print("IN...
return {'anjerrevolutie','anjelier','anjer','anja','anjum','anje','anjo','anjuli','anjema','anjelieren','anjers','anjas','anjes','anjos','anjulis'}
AddRoom("BGNoise", { colour={r=.66,g=.66,b=.66,a=.50}, value = GROUND.GROUND_NOISE, tags = {"ExitPiece", "Chester_Eyebone"}, contents = { distributepercent = .15, -- A bit of everything, and let terrain filters handle the rest. distributeprefabs= ...
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> --------------------------------------------------- -- {{{ Grab environment local setmetatable = setmetatable local ...
local Object = require 'lib.object' -- See [luapi types documentation](lib/luapi/readme.md#types) local Point = Object:extend 'lib.object#point' Point.scale = 2 -- Class field! function Point:init(x, y) self.x = x or 0 self.y = y or 0 end function Point:resize() self.x = self.x * self.scale self.y = self.y ...
return Class{ init = function (self, name) self.name = name self.pos = Vector(0, 0) end, bbox = function (self) return self.pos.x, self.pos.y, self.pos.x + ASSETS[self.name..'-spice']:getWidth(), self.pos.y + ASSETS[self.name..'-spice']:getHeight() end, select = function (s...
require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 2,["5"] = 2,["6"] = 4,["7"] = 4,["8"] = 4,["9"] = 4,["11"] = 8,["12"] = 7,["13"] = 11,["14"] = 12,["15"] = 13,["17"] = 15,["18"] = 17,["19"] = 11,["20"] = 20,["21"] = 21,["22"] = 20,["23"] = 4,["24"] = 4}); local ____exports = {} lo...
return {'igoemenitsa','igor','igors'}
local class = require 'class' local base = require 'fsp.memory.memory' local memory = class('TransitionMemory', 'ObsMemory') function memory:__init(params) base.ObsMemory.__init(self, params) self.a = torch.LongTensor(self._capacity):zero() self.r = torch.FloatTensor(self._capacity):zero() self.t = torch.Byte...
local api = vim.api local config = require('gmni.config') local function load_to_buf(bufnr, content) api.nvim_buf_set_option(bufnr, 'modifiable', true) api.nvim_buf_set_lines(bufnr, 0, -1, false, content) api.nvim_buf_set_option(bufnr, 'modifiable', false) end local action_name_to_cmd = { enter_link = '<cmd>lua r...
local _={} _.name="Chest" _.new=function(options) local result=BaseEntity.new(options) result.x=0 result.y=0 -- wip sprite Entity.setSprite(result,"chest") result.originX=19 result.originY=19 result.isDrawable=true result.worldId=nil --result.aiEnabled=true result.canPickup=false Entity.afterCreat...
return function(conn,status,mime,opts) local sm = { [200] = "OK", [404] = "Not Found" } conn:send("HTTP/1.0 "..(sm[status] and (status.." "..sm[status]) or status).."\r\nServer: httpd/simple.lua\r\nContent-Type: "..mime.."\r\n") if opts then if opts['gzip'] then conn:send("Content-Encoding: gzi...
Common_UnitConsumeActPoint(attacker, 1); if Common_Break_Skill(attacker, _Skill) then return end Common_ChangeEp(attacker, -_Skill.skill_consume_ep) local target, all_targets = Common_GetTargets(...) Common_FireWithoutAttacker(1100331, {attacker}, {Type = 30}) Common_Sleep(attacker, 0.5) Common_ShowCfgFlagEffect(_Sk...
local package = { -- there are some things done in this function that makes the prompt work ok. -- Just giving the importer this function will not be as flexible, but -- what else would you want to do with a prompt except running it? launch = require("piglets.piggyprompt.piggyprompt").launch } return...
-- DMC save us from ridiculous design decisions function FragGrenade:bullet_hit() end
local core, smoketest = core, smoketest local path = smoketest.modpath .. "/testbox" local testbox = { positions = { preset = {x=11, y=11, z=11}, preset_top = {x=11, y=12, z=11}, buildable_to_box = {x=12, y=3, z=3}, buildable_to_box_top = {x=12, y=4, z=3}, not_buildable_to_node = {x=2, y=0, z=4}, dropspot ...
test_run = require('test_run').new() engine = test_run:get_cfg('engine') box.sql.execute('pragma sql_default_engine=\''..engine..'\'') test_run:cmd("setopt delimiter ';'") upper_lower_test = function (str) return box.sql.execute(string.format("select lower('%s'), upper('%s')", str, str)) end; -- Some pangrams --...
local ansi_decode={ [128]='\208\130',[129]='\208\131',[130]='\226\128\154',[131]='\209\147',[132]='\226\128\158',[133]='\226\128\166', [134]='\226\128\160',[135]='\226\128\161',[136]='\226\130\172',[137]='\226\128\176',[138]='\208\137',[139]='\226\128\185', [140]='\208\138',[141]='\208\140',[142]='\208\139',[143]...