content
stringlengths
5
1.05M
----------------------------------------------------- -- @author Ewout Merckx - <ewoutmerckx.pro@gmail.com> ----------------------------------------------------- -- global variables amount_steps = 0 max_steps = 100 -- initialization function init() -- set the speed of the robot to zero robot.wheels.set_veloc...
local _, T = ... T.KnownSpells = { [90]={type="passive", target="friend-surround", modDamageDealt=20}, [53]={type="aura", target="all-enemies", duration=6, period=2, modDamageDealt=-20, damageATK=10}, [89]={type="aura", target=1, duration=3, damageATK=40, nore=true}, [96]={type="aura", target=1, duration=2, damage...
function prop(part, parent, collide, shap, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.Shape = shap part.CanCollide = collide part.Transparency = tran part.Reflectance = ref part.Size = Vector3.new(x,y,z) part.BrickColor = BrickColor.new(color) part.TopSurface = 0 part.Bott...
local exports = exports or {} local test = nil; test = 1; exports.test = test return exports
function Yi.time(title, f, times) times = times or 10000 collectgarbage() local startTime = os.clock() for i=0, times do f() end local endTime = os.clock() print( title, endTime - startTime ) end
--!A cross-platform build utility based on Lua -- -- 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...
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 10, "version_minor", 3, }), }, "title", "Remove Unwanted Colonists", "id", "ChoGGi_RemoveUnwantedColonists", "steam_id", "1594867237", "pops_any_uuid", "f...
require("nvim-tree").setup({ hijack_cursor = true, filesystem_watchers = { enable = true, }, view = { side = "right", preserve_window_proportions = true, }, renderer = { highlight_opened_files = "name", group_empty = true, highlight_git = true, }, })
ls_gen5_group = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "ls_one_hand_gen5_scheme", weight = 3300000}, {itemTemplate = "ls_two_hand_gen5_scheme", weight = 3300000}, {itemTemplate = "ls_polearm_gen5_scheme", weight = 3400000}, } } addLootGroupTemplate("ls...
module:set_global(); local mqtt = module:require "mqtt"; local st = require "util.stanza"; local pubsub_services = {}; local pubsub_subscribers = {}; local packet_handlers = {}; function handle_packet(session, packet) module:log("warn", "MQTT packet received! Length: %d", packet.length); for k,v in pairs(packet) d...
-- revised based on https://github.com/jarmstrong2/handwritingnet/blob/master/model_nngraph.lua require 'torch' torch.setdefaulttensortype('torch.FloatTensor') require 'nn' require 'nngraph' require 'optim' local LSTMH1 = require 'LSTMH1' local LSTMHN = require 'LSTMHN' require 'yHatMat2' require 'mixtureCriterionMat'...
-- ####################################### -- ## Project: MTA iLife ## -- ## Name: TuningGarage.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSett...
require ("lib.lclass") require ("lib.yanecos.Processor") class "BuildModeProcessor" ("Processor") function BuildModeProcessor:BuildModeProcessor (entities, events, assets) self.entities = entities self.events = events self.assets = assets self.mapOffset = { x = PlanetData.TileSize / 2, y = PlanetData.TileSiz...
require'colorizer'.setup()
function ipairs (t) local function nxt (t, i) i = i+1 local v = t[i] if v then return i, v end end return nxt, t, 0 end function pairs (t) local function nxt (t, k) k = next(t, k) return k, t[k] end return nxt, t, nil end local function getstr (s, default, index, fname) local _tp = ...
-- NoIndex: true --[[ Lokasenna_GUI - Slider class For documentation, see this class's page on the project wiki: https://github.com/jalovatt/Lokasenna_GUI/wiki/Slider Creation parameters: name, z, x, y, w, caption, min, max, defaults[, inc, dir] ]]-- if not GUI then reaper.ShowMessageBox("Couldn't...
snake_spell = { cast = function(player) local duration = 4000 if not target:hasDuration("snake_spell") then target:setDuration("snake_spell", duration) end end, while_cast_500 = function(player) local x = player.registry["snake_x"] local y = player.registry["snake_y"] if player.registry["snake_x"] ...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Config = wOS.ALCS.Config or {} local dir = "wos/advswl/conf...
require("main")
local util = require('util'); local packets = require('packets'); local spells = packets.spells; local status = packets.status; local magic = {}; local ranks = {'', 'II', 'III', 'IV', 'V', 'VI', 'VII'}; function magic:cast(spell, target) AshitaCore:GetChatManager():QueueCommand('/magic ' .. spell .. ' ' .. target,...
local SceneMgr = require "logic.scene_mgr" local UnityEngine = require "lib.unity_engine" local Input = UnityEngine.Input local x = 0 local y = 0 local function update_input() -- print( "vertical: ", Input.GetAxis("Vertical") ) -- print( "horizontal: ", Input.GetAxis("Horizontal") ) loca...
function init(virtual) if not virtual then energy.init() self.particleCooldown = 0.2 self.particleTimer = 0 self.acceptCharge = entity.configParameter("acceptCharge") or true entity.setParticleEmitterActive("charging", false) updateAnimationState() end end function die() local position...
GameListSorters["Release Date"] = function(Item1, Item2, Type) if Type == SortType.Descending then if (Item1.ReleaseDate == "" and Item2.ReleaseDate == "") or (Item1.ReleaseDate == Item2.ReleaseDate) then return string.lower(Item1.Name) > string.lower(Item2.Name) end return Item1.ReleaseDate > Item2.ReleaseDa...
Order = Order or {} --- order to fly to a specific location --- @param self --- @param x number --- @param y number --- @param config table --- @field minDistance number (default: `500`) the order is considered completed when the ship is this far from the target location --- @field ignoreEnemies boolean (default: ...
--[[-------------------------------------------------------------------- Grid Compact party and raid unit frames. Copyright (c) 2006-2009 Kyle Smith (Pastamancer) Copyright (c) 2009-2016 Phanx <addons@phanx.net> All rights reserved. See the accompanying LICENSE file for details. https://github.com/Phanx/Grid htt...
-- used for grouping, e.g. the "contents" of a button or widget composite widget classes composed of multiple widgets -- see also lib.gui.widget.lua cWidget_SpritePanel = RegisterWidgetClass("SpritePanel") function cWidget_SpritePanel:Init () local p = self._widgetbasedata.init_params local bVertexBufferDyna...
local AddonName, AddonTable = ... AddonTable.nexus = { -- Grand Magus Telestra 35617, 37134, 37135, 37139, 37138, 35604, 35605, -- Anomalus 35598, 37149, 37141, 37144, 35599, 35600, 37150, -- Ormorok the Tree-Shaper 35601, 35602, 37153, ...
local Map = IceRunner.Map local MapKit = IceRunner.MapKit local Up = IceRunner.MapTools.UpExtent local Down = IceRunner.MapTools.DownExtent local Left = IceRunner.MapTools.LeftExtent local Right = IceRunner.MapTools.RightExtent local Wall = IceRunner.Map.Wall local MapKit = IceRunner.MapTools.MapKit local Player = Map....
models = { [1] = -2007231801, [2] = 1339433404, [3] = 1694452750, [4] = 1933174915, [5] = -462817101, [6] = -469694731, [7] = -164877493, } blacklistedVehicles = { [1] = 'BMX', [2] = 'CRUISER', [3] = 'FIXTER', [4] = 'SCORCHER', [5] = 'TRIBIKE', [6] = 'TRIBIKE2', [7] = 'TRIBIKE3', [8] = 'teslax', } loca...
class("DoneNumbers").extends() -- Algorithm for detecting done blocks in a row: --- 1. Lay out blocks from the left over partial solution to get lower bound L --- 2. Lay out blocks from the right over partial solution to get upper bound R --- 3. For each block: tap matching blocks in partial solution in range [L,R] --...
----------------------------- -- global turtle functions -- ----------------------------- if not turtle then return end turtle.valid_fuel = { "minecraft:charcoal", "minecraft:coal", } turtle.DO_NOT_MINE = { "forbidden_arcanus:stella_arcanum", "minecraft:diamond_ore", "mysticalworld:amethyst_or...
local api = vim.api local cmd = vim.cmd local utils = require 'ts_context_commentstring.utils' local configs = require 'nvim-treesitter.configs' local M = {} ---A commentstring configuration that includes both single and multi-line ---comments. The fields can be anything and they will be retrievable with the ---`key...
local _0_0 = nil do local name_0_ = "conjure.client.clojure.nrepl.server" local loaded_0_ = package.loaded[name_0_] local module_0_ = nil if ("table" == type(loaded_0_)) then module_0_ = loaded_0_ else module_0_ = {} end module_0_["aniseed/module"] = name_0_ module_0_["aniseed/locals"] = (module...
WQmedia = { { id = "001", file = "001.mp3", len = 11, msg = "20th Century Fox *traeller*", cat = 9 }, { id = "002", file = "002.mp3", len = 3, msg = "200 PULS HAB ICH!", cat = 4 }, { id = "003", file = "003.mp3", len = 5, msg = "Nur Abschaum und Verkommenheit", ...
return { id = "pet_fish", price = 10000, onSale = true, }
local opt = require 'utils.opt' opt('showmode', false) vim.cmd [[ function! LightlineFilename() let filename = expand('%:t') !=# '' ? expand('%:t') : '[No Name]' let modified = &modified ? ' +' : '' return filename . modified endfunction ]] vim.g.lightline = { colorscheme = vim.g.colors_name, active = { le...
-------------------------------------------------------------------------------- -- Function......... : applyTransition -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------...
MenuActorSelector = { FirstPartyMember = function(targets) return { targets[1] } end, FirstMagicUser = function(targets) for k, v in ipairs(targets) do local summary = v.summary if summary.mActor.mId == "mage" then return { targets[k] } ...
local event = require('event') local component = require('component') local modem = component.modem local comp = {} comp.doors = {} comp.widgets = {} function comp.injectGLS(gls) comp.gls = gls end function comp.init() modem.broadcast(1,'Config','door_server') end function comp.load(conf) comp.doors = conf end...
local spine = require "spine.spine" -- Optional attachment resolver customizes where images are loaded. Eg, could use an image sheet. local attachmentResolver = spine.AttachmentResolver.new() function attachmentResolver:createImage (attachment) return display.newImage("data/" .. attachment.name .. ".png") end local...
-- @Description: Synchronized Admin Commands -- @Author: VolcanoINC, DataSynchronized -- @Date of Creation: 30th, April, 2016 local command = {} command.PermissionLevel = 0 command.Shorthand = {"cmderr"} command.Params = { "Optional:String" } command.Usage = "CommandErrors" command.Description = [[Disp...
Camera = require "libraries.hump.camera" drawHandler = {} tileset = nil local camera = nil local cShift = 100 -- default camera shift value -- hex grid modifiers local xm = 32 local ym = 50 local zm = 22 -- saved graphics local bkg = nil function drawHandler.init() tileset = {} tileset.base = parseTileset...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local roleMgr = require "manager.roleMgr" local open_config = require "game.template.open" local _M = function(role,data) if not data.content or type(data.content) ~= "string" then return 2 end ...
LoadPS('itembar_par1','ex\\systems\\act7\\itembar_par1.psi','parimg2') LoadPS('itembar_par2','ex\\systems\\act7\\itembar_par2.psi','parimg2') LoadPS('itembar_par3','ex\\systems\\act7\\itembar_par3.psi','parimg2') LoadImageFromFile('itembar','ex\\systems\\act7\\itembar.png') item_bar=Class(object) function item_bar:ini...
local function get_git_meta_folder(dir) if clink.is_dir(dir .. '/.git') then return dir .. '/.git' end local gitfile = io.open(dir .. '/.git') if not gitfile then return nil end local git_dir = gitfile:read():match('gitdir: (.*)') gitfile:close() return git_dir end local function get_g...
--- Module implementing the LuaRocks "config" command. -- Queries information about the LuaRocks configuration. local config_cmd = {} local persist = require("luarocks.persist") local cfg = require("luarocks.core.cfg") local util = require("luarocks.util") local deps = require("luarocks.deps") local dir = require("lua...
local StarterGroups = {"superadmin", "admin", "user", "noaccess"} local ContinueNewGroup local EditGroups local function RetrievePRIVS(len) FAdmin.Access.Groups = net.ReadTable() end net.Receive("FADMIN_SendGroups", RetrievePRIVS) local function addPriv(um) local group = um:ReadString() FAdmin.Access.Groups[group]...
--[[ Priority Queue implemented in lua, based on a binary heap. Copyright (C) 2017 Lucas de Morais Siqueira <lucas.morais.siqueira@gmail.com> License: zlib This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the u...
local handy = request('!.mechs.processor.handy') local opt = handy.opt local cho = handy.cho local list = handy.list local name = request('words.name') local bracket_expr = request('wrappers.bracket_expr') local syntel = request('words.syntel') local key_val = { name = 'key_val', opt( cho( bra...
object_tangible_loot_creature_loot_collections_fried_icecream_components_yavin_sweetmelon = object_tangible_loot_creature_loot_collections_fried_icecream_components_yavin_shared_sweetmelon:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_yavin_sweetmelon, "o...
-- 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 ...
-- luacheck: globals get_mod local mod = get_mod("Scoreboard") local SCOREBOARD_FIXED_ORDER = "scoreboard_fixed_order" local DAMAGE_TAKEN = "damage_taken" local DAMAGE_FF = "scoreboard_ff" local FF_SELF = "ff_self" local PLAYER_PROCS = "player_procs" --- new scoreboard categories if not StatisticsDefinitions.player....
local M = {} M.__index = M function M.new(data_dir) obj = { data_dir = data_dir } setmetatable(obj, M) return obj end function M:write(filename, content) local file, err = io.open(self.data_dir .. filename, "w") if not file then return "couldn't open file: " .. err end ...
local Libs = { } local LoLVer = "8.19" local ScrVer = 6 function Libs.PrintChat(desg) return print(desg) end function Libs.Lib_Update(data) if tonumber(data) > ScrVer then Libs.PrintChat("<font color=\"#1E90FF\"><b>[Shulepin]</b></font><font color=\"#8B0000\"><b>[HanLib]</b></font><font co...
local function question(_question) if question == nil then else term.write(question.."? [Y/n] ") end local input = string.lower(string.sub(read(),1,1)) if input == "y" or input == "j" or input == "" then return true else return false end end local function encrypt_file(...
data.raw["item"]["iron-gear-wheel"].subgroup = "dytechgears" data.raw["item"]["iron-gear-wheel"].order = "[b]iron" data.raw["item"]["copper-plate"].stack_size = 200 data.raw["item"]["iron-plate"].stack_size = 200 data.raw["item"]["steel-plate"].stack_size = 200 data.raw["item"]["copper-ore"].stack_size = 200 data.raw["...
-- emulate the command line behaviour of Lua 4.0 -- usage: lua doall.lua f1.lua f2.lua f3.lua ... for i=1,table.getn(arg) do dofile(arg[i]) end
-- off by default warn("discarded warning") warn("@on") warn("a warning") --> =Test warning: a warning warn("this", 12, 9.5) --> =Test warning: this129.5 warn("some", "@on", "other", "@off") --> =Test warning: some@onother@off warn("@off") warn("discarded") print("hello") --> =hello print(pcall(warn)) --> ~false...
--[[---------------------------------------------------------------------------- Application Name: ImageAcquisition Summary: Setup image acquisition parameters for TriSpectorP Description: This sample includes a UI for viewing heightmaps and 2D sensor data from a TriSpectorP device, as well as controls...
local _M = {} local platformName = system.getInfo( "platformName" ) ------------------------------------------------- ------------------------------------------------- local _headerColor = { 0.42, 0.42, 0.42, 0.9 } local _headerLabel = "current controllers" local _backgroundColor = { 0.8, 0.8, 0.8, 0.3 } loca...
minetest.register_tool("rangedweapons:jackhammer_r", { stack_max= 1, wield_scale = {x=2.6,y=2.6,z=1.8}, description = "", rw_next_reload = "rangedweapons:jackhammer_rr", load_sound = "rangedweapons_rifle_clip_in", range = 0, groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_jackhammer...
function init(value) center = { x = get_canvas_width() / 2, y = get_canvas_height() / 2, } end function update(value) local x = math.cos(value * 2 * math.pi) local y = math.sin(value * 2 * math.pi) set_x(center.x + get_width() * x) set_y(center.y + get_height() * y) set_rotation(value * 360 + 90) end
local Lust = require"Lust" -------------------------------------------------------------------------------------------------- -- substitutions: -------------------------------------------------------------------------------------------------- local function test(patt, model, result) local temp = Lust(patt) local ok...
-- 首先定义一个字符串 local str = "012abcd" print("str = "..str) -- 使用常规方式 print("\nafter string.byte(str,1,4)") print(string.byte(str,1,4)) -- 使用另一种表现方式 print("\nafter str:byte(1,4)") print(str:byte(1,4)) -- 使用负数索引 print("\nafter str:byte(-2,-1)") print(str:byte(-2,-1)) -- 当参数i大于j时 print("\nafter str:byte(2,1)") print(str:...
-- sample for termfx -- Gunnar Zötl <gz@tset.de>, 2014-2015 -- Released under the terms of the MIT license. See file LICENSE for details. tfx = require "termfx" tfx.init() ok, err = pcall(function() ---------- vvv draw here vvv ---------- tfx.outputmode(tfx.output.COL256) tfx.clear(tfx.color.WHITE, tfx.color.BLACK)...
return {'mantsjoe','mantsjoes','man','manachtig','management','managementadviesbureau','managementboek','managementconcept','managementconsultant','managementcontract','managementcultuur','managementcursus','managementervaring','managementfunctie','managementjargon','managementlid','managementniveau','managementonderst...
local n1 = { name = "air" } -- external air local n2 = { name = "df_trees:goblin_cap_stem"} -- below ground, don't force place these local n3 = { name = "df_trees:goblin_cap" } local n4 = { name = "df_trees:goblin_cap_gills" } local n5 = { name = "df_trees:goblin_cap_stem", force_place = true } -- walls, force place th...
----------------- --- Service configuration object. -- @classmod Service local setmetatable = setmetatable local tostring = tostring local rawget = rawget local lower = string.lower local gsub = string.gsub local select = select local http_authorization = require 'resty.http_authorization' local oauth = require('api...
--[[ --------------------------------------------------------- An Application for drag racing (c) Alastair Cormack - alastair.cormack@gmail.com Ver 1.1 - 2nd Apr 2018 - Updated to add support for native Jeti logging Ver 1.4 - 21st Jul 2019 - Build in start audio --]] collectgarbage() -----...
wait(.25)--made by yoyyo75 :3 run = game:GetService("RunService") local player = game.Players.LocalPlayer;char = player.Character;char.Archivable = true; hrp = char:findFirstChild("HumanoidRootPart");head = char:findFirstChild("Head");ra = char:findFirstChild("Right Arm");la = char:findFirstChild("Left Arm");t = char:f...
-- -- EVAL zEdit.lua TestScript change 3 6 / Takes the third item, place it at the sixth place and edit the position of items between them -- EVAL TestScript add 3 / Add an item to the third place and modify all items'position after it -- EVAL TestScript del 3 / Delete the third item and modify all items'position after...
local Skada = Skada Skada:AddLoadableModule("Player vs. Player", "mod_pvp_desc", function(L) if Skada:IsDisabled("Player vs. Player") then return end local mod = Skada:NewModule(L["Player vs. Player"], "AceEvent-3.0") local format, wipe, GetTime = string.format, wipe, GetTime local UnitGUID, UnitClass, UnitBuff, ...
return { sleep_event = { breakfast = { event = { title = "Breakfast", text = { one = function(_1) return ("Apparently, %s is preparing breakfast."):format(name(_1)) end, multiple = function(_1) ret...
---@class chiplib local chip = {} ---@alias ChipInfoType ---|'"mfg"' # Manufacturer ---|'"model"' # Model ---|'"sn"' # Serial number ---|'"hwver"' # Hardware version ---Get chip inforamtion. ---@param type ChipInfoType ---@return string function chip.getInfo(type) end return chip
luanet.load_assembly('mscorlib') luanet.load_assembly('Silence.Macro', 'Silence.Macro') LuaCommands=luanet.import_type('Silence.Macro.LuaCommands') LC=LuaCommands() function inputRecords() LC:Delay(10591175) LC:MouseMove(1105, 438) LC:Delay(20149) LC:MouseMove(1104, 438) LC:Delay(19936) LC:Mouse...
-- -- Simple resource browser / file picker, when entered, extends the -- normal menu with additional behavior as long as it is within the -- /browse/ path. -- -- Number of things to improve here, with the ideal being that all -- the visual preview / information etc. gets registered as a widget -- part of /browse/* -- ...
-- ======= Copyright (c) 2003-2012, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua/Mixins/BaseModelMixin.lua -- -- Created by Max McGuire (max@unknownworlds.com) -- and Brian Cronin (brianc@unknownworlds.com) -- -- ========= For more information, visit us at http://www.unknownworlds.com =====...
-- Copyright (c) 2018, xiedacon. local obj = { a = "a" } Object.freeze(obj) obj.a = "b" test(obj.a, "a") obj.b = "b" test(obj.b, nil) local obj = { a = { a = "a" } } Object.freeze(obj) obj.a.a = "b" test(obj.a.a, "a") obj.a.b = "b" test(obj.a.b, nil) local a = {} setmetatable(a, { __index = { a = "a" } }) test(a...
for _,player in pairs(game.players) do player.force.reset_recipes() player.force.reset_technologies() end for index, force in pairs(game.forces) do end
local computer = require("computer") local component = require("component") local event = require("event") local reactor_api = require("brgc/reactor_ctrl") local config = require("brgc/config") local turbineState = require("brgc/turbine_state") local turbineFactory = require("brgc/turbine_factory") local turbine_api ...
local Skynet = require("skynet") require("skynet.manager") local CMD = {} function CMD.test_send( s ) print('test_send: ', s) end function CMD.test_call( a, b ) print('test_call: ', a, b) Skynet.retpack({code = 200, sum = a + b}) end function CMD.test_wln( s ) print('test_wln: ', s) ...
return {'beotier','beo','beoefenaar','beoefenaarster','beoefenen','beoefening','beogen','beolien','beoogd','beoordelaar','beoordelen','beoordeling','beoordelingscijfer','beoordelingscommissie','beoordelingscriterium','beoordelingsexemplaar','beoordelingsfactor','beoordelingsfout','beoordelingsgesprek','beoordelingslijs...
if not modules then modules = { } end modules ['lang-dis'] = { version = 1.001, comment = "companion to lang-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local concat = table.co...
-- -- Please see the license file included with this distribution for -- attribution and copyright information. -- local getRollOriginal; local onHealOriginal; function onInit() getRollOriginal = ActionHeal.getRoll; ActionHeal.getRoll = getRoll; onHealOriginal = ActionHeal.onHeal; ActionHeal.onHeal = onHeal; ...
require 'charon.ActiveRecord' local Migrate = Class.new("Migrate") Migrate.help = {} Migrate.dir = "db/migrate" Migrate.output = print ------------------------------------------------------------------------------- -- RUN ------------------------------------------------------------------------------- Migrate.h...
-- heightmap_demo.lua local heightmap_demo = { Properties = { -- Property definitions } } local heightmap = require "Scripts/heightmap" function heightmap_demo:OnActivate() Debug.Log('Creating 32x32 Heightmap...') -- create 32x32 heightmap map = heightmap.create(self, 32, 32) Debug.Log('Prin...
--[[ $module Transposition An overall description of the module. --]] -- make sure the module definition is separated from the first methods's definition local transposition = {} --[[ % chromatic_transposition A description of how the code works @ first (string) Text of the first parameter @ [optional] (any) Opti...
local Loc = LibStub("AceLocale-3.0"):NewLocale("ElvUI_DmgAtPlates", "ruRU") if not Loc then return end -------------- text desc Loc["Reflected"] = "Отражено" Loc["Resisted"] = "Резист" ------------- options desc Loc["common"] = "Общие" Loc["commondesc"] = "Общие настройки" Loc["onorof"] = "Включить?" Loc["onorofdes...
if mcbPacker then --mcbPacker.ignore mcbPacker.require("s5CommunityLib/fixes/TriggerFix") mcbPacker.require("s5CommunityLib/fixes/TriggerFixCppLogicExtension") mcbPacker.require("s5CommunityLib/comfort/other/MPSyncer") mcbPacker.require("s5CommunityLib/comfort/math/GetDistance") mcbPacker.require("s5CommunityLib/comfor...
include("mobs/ai/mini-jelly_bean.lua"); include("mobs/ai/jelly_bean.lua"); include("mobs/ai/jellynut.lua"); include("mobs/ai/royal_jelly_bean.lua"); include("mobs/ai/red_jelly_bean.lua"); include("mobs/ai/butterfly.lua"); include("mobs/ai/mini-choropy.lua"); include("mobs/ai/choropy.lua"); include("mobs/ai/mother_choro...
require("common/commonGameLayer"); require("isolater/interface/regionConfigIsolater"); require("games/common2/module/logic/communityLogic"); require("isolater/interface/propIsolater"); require("games/common2/module/logic/dialogLogic"); local OnlookerUserInfo = class(CommonGameLayer,false) OnlookerUserInfo.s_c...
Locales['sv'] = { ['press_wash'] = 'tryck ~b~ENTER~s~ för att tvätta fordonet', ['press_wash_paid'] = 'tryck ~b~ENTER~s~ för att tvätta fordonet för ~g~$%s~s~', ['wash_failed'] = 'du har inte råd med en biltvätt', ['wash_successful'] = 'ditt fordon har tvättats', ['wash_successful_paid'] = 'ditt fordon har tvättat...
---- -- -- handler = {} handler["^/$"] = "index.lua" handler["^/formaction$"] = "formaction.lua"
-- print the first non-empty input line local line repeat line = io.read() until line ~= "" print(line)
return {'syrisch','syrie','syrier','syrah','syrische','syracusaan','syracusaans','syracuse','syracuser','syracusisch','syrah','syria','syriers','syracusaanse','syrahs','syrahtje','syrahs','syrias'}
local common_local = common if not (type(common) == 'table' and common.class and common.instance) then assert(common_class ~= false, 'No class commons specification available.') require('HC.class') common_local = common end local Object = require 'game.object' local Collisions = require 'game.collisions' local ...
-- Copyright (c) 2015-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local GotoHiddenH...
local status_ok, npairs = pcall(require, 'nvim-autopairs') if not status_ok then print('Could not load nvim-autopairs') return end npairs.setup({ check_ts = true, disable_filetype = { 'TelescopePrompt' }, }) local cmp_autopairs = require('nvim-autopairs.completion.cmp') local cmp_status_ok, cmp = pcal...
if nil == cc.Control then return end -- This is the DeprecatedExtensionClass DeprecatedExtensionClass = {} or DeprecatedExtensionClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end ...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Cache global variables --Lua functions local _G = _G local unpack, select = unpack, select local pairs, ipairs, type = pairs, ipairs, type --WoW API / Variables local FauxScrollFrame...