content
stringlengths
5
1.05M
local background = nil local hudX = 0 local hudY = 0 local fourStartX = 0 local fiveStartX = 0 local sixStartX = 0 local sevenStartX = 0 function start(song) background = makeSprite('black','black',false) setActorAlpha(0,background) setActorX(600,background) setActorY(600,background) ...
require("util") Camera = {} function Camera:new(x, y, scaleX, scaleY, rotation) local camera = { x = x, y = y, drawX = x, drawY = y, shake = false, scaleX = scaleX, scaleY = scaleY, rotation = rotation } self.__index = self return setmeta...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {}...
return { source = { type = 'dist', location = 'https://www.sqlite.org/2016/sqlite-autoconf-3150200.tar.gz', sha1sum = '31f52169bcfeef9efb61480d0950e928ad059552' }, patches = { { 'sqlite-3.8.1-autoconf-dlopen_check.patch', 0 } }, build = { type = 'gnu',...
-- Copyright (C) 2017-2020 DBotThePony -- 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 rights -- to use, copy, modify, merge, publis...
local LevelEnum = {} LevelEnum[1] = "凡人" LevelEnum[2] = "炼气期" LevelEnum[3] = "筑基期" LevelEnum[4] = "金丹期" LevelEnum[5] = "元婴期" LevelEnum[6] = "化神期" LevelEnum[7] = "炼虚期" LevelEnum[8] = "合体期" LevelEnum[9] = "大乘期" LevelEnum[10] = "渡劫期" LevelEnum[11] = "真仙期" LevelEnum[12] = "金仙" LevelEnum[13] = "太乙玉仙" LevelEnum[14] = "大罗金仙"...
return { SYNTAXES = { plaintext = "Plain text", bash = "Bash", c = "C", cmake = "CMake", cpp = "C++", crystal = "Crystal", cs = "C#", d = "D", dart = "Dart", django = "Django Template", dockerfile = "Dockerfile", elixir ...
project "common" kind "StaticLib" files { "**.cpp", "**.h" } excludes { "utils/Event_*.*", "utils/Mutex_*.*", "utils/RWLock_*.*", "utils/Thread_*.*", "network/*.iocp.*" } includedirs { "..", "." } configuration "vs*" includedirs { "../libevent/include", "../mxml" } configuration "not vs*...
function toggleEngine(source) local vehicle = getPedOccupiedVehicle(source) if (vehicle) then
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:InitializeSuper({"cmds","commands","help"},"Administrative","Displays a list of ...
----------------------------------- -- Area: Norg -- NPC: Magephaud -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/Norg/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") require("scripts/globals/titles") ----------------------------------- function...
local console = require('vgit.core.console') local loop = require('vgit.core.loop') local CodeScene = require('vgit.ui.abstract_scenes.CodeScene') local CodeDataScene = CodeScene:extend() function CodeDataScene:new(...) return setmetatable(CodeScene:new(...), CodeDataScene) end CodeDataScene.update = loop.brakeche...
--[=[ Module for working with Region3int16 @class Region3int16Utils ]=] local require = require(script.Parent.loader).load(script) local Vector3int16Utils = require("Vector3int16Utils") local Region3int16Utils = {} function Region3int16Utils.createRegion3int16FromPositionSize(position, size) local halfSize = siz...
local F, C, L = unpack(select(2, ...)) local TOOLTIP = F:GetModule('Tooltip') local strmatch, format, tonumber, select = string.match, string.format, tonumber, select local UnitAura, GetItemCount, GetItemInfo, GetUnitName, GetCurrencyListLink = UnitAura, GetItemCount, GetItemInfo, GetUnitName, GetCurrencyListLink loca...
workspace "Solar" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Solar" location "Solar" kind "SharedLib" language "C++" targetdir("bin/" .. outputdir .. "/%{prj.name}") objdir("bin-int/" .. outputdir .. "/%{pr...
require 'nn' local DistanceRatioCriterion, parent = torch.class('nn.DistanceRatioCriterion', 'nn.Criterion') function DistanceRatioCriterion:__init() parent.__init(self) self.SoftMax = nn.SoftMax() self.MSE = nn.MSECriterion() self.Target = torch.Tensor() end function DistanceRatioCriterion:createTarg...
--!strict --[[====================================================================== Presets | Written by Devi (Devollin) | 2021 | v1.0.1 Description: Contains a list of user-defined and pre-designated flow modifiers. ========================================================================]] local presets = { ...
local Name, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(Name) local AceGUI = LibStub("AceGUI-3.0") local GUI, Options, Store, Util = Addon.GUI, Addon.Options, Addon.Store, Addon.Util local Self = GUI.Main.Items Self.frames = {} ------------------------------------------------------- -- ...
local helper = require "spec.helper" local function assert_warnings(warnings, src) assert.same(warnings, helper.get_stage_warnings("detect_unused_fields", src)) end describe("unused field detection", function() it("detects unused fields in table literals", function() assert_warnings({ {code = "31...
function start(song) -- do nothing end function setDefault(id) _G['defaultStrum'..id..'X'] = getActorX(id) end function update(elapsed) -- do nothing end function beatHit(beat) -- do nothing end function stepHit(step) if step == 432 then twoplayer = true; for i=0,3 do tweenFad...
slot0 = class("DailyLevelMediator", import("..base.ContextMediator")) slot0.ON_STAGE = "DailyLevelMediator:ON_STAGE" slot0.ON_CHALLENGE = "DailyLevelMediator:ON_CHALLENGE" slot0.ON_RESET_CHALLENGE = "DailyLevelMediator:ON_RESET_CHALLENGE" slot0.ON_CONTINUE_CHALLENGE = "DailyLevelMediator:ON_CONTINUE_CHALLENGE" slot0.ON...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Provides access to the system color lists and a wider variety of ways to represent color within Hammerspoon. -- -- Color is represented within Hammerspoon as a table containing keys which tell Hammerspoon how the color is specified. You can sp...
local lpeg = require "lpeg" local table = require "table" local string = require "string" local unpack = unpack or table.unpack local HAS_A_FORMAT = pcall(string.format, '%a' , 10) local P, C, Cs, Ct, Cp, S, R = lpeg.P, lpeg.C, lpeg.Cs, lpeg.Ct, lpeg.Cp, lpeg.S, lpeg.R local any = P(1) local empty = P(0) loca...
--[[ file:slotsEnum.lua desc:枚举 auth:Carol Luo ]] local class = require("class") local gameEnum = require("game.enum") ---@class slotsEnum:gameEnum local enum = class(gameEnum) ---构造函数 function enum:ctor() end ---摇奖 ---@return senum function enum.spin() return "spin" end ---免费 ---@return senum fu...
function run_test(minfn, count) local res for i = 1, count do res = minfn(1, 2) end assert(res==1) end local fns = { mathmin = math.min, my_min = function(x, y) if x < y then return x else return y end end } local to_test = select(1, ...) or "mathmin" local count = select(2, ...) or 50000000 p...
require('fb.luaunit') require('cunn') local TU = require('test_util') local pl = require('pl.import_into')() local OBSGD = require('fbcunn.OneBitSGD') torch.setdefaulttensortype('torch.CudaTensor') function testQuantizerOnSimpleExample() local gradient = torch.Tensor({{1}, {-1}}) local quantized, unquantizer...
local readyDegradeTipsWnd= { name="readyDegradeTipsWnd",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shadeBg",type=1,typeName="Image",time=31057625,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth...
local module = {} local network local function onPlayerAdded() end local function onPlayerRemoving(player) end local function init__exploiterCheckHeartbeat() end function module.init(Modules) network = Modules.network network:create("raisePlayerSuspicion", "BindableFunction", "OnServerInvoke", nil) game....
Quest.Config.Storylines["money_guard"] ={ name = "Money Guard", id = "money_guard", desc = "Protect the money at all costs", quests = { [1] = { name = "Become a Gruppe 6 Driver", desc = "Become a Gruppe 6 Driver from the F4 menu", func = function(ply, data) return true end }, [2] = { name =...
---[[---------------------------------------------------------------------]]--- -- __ __ _ -- -- ____ ____ / /_ ______ ___ ____ _________ / /_ (_)____ -- -- / __ \/ __ \/ / / / / __ `__ \/ __ \/ ___/ __ \/ __ \/ / ___/ -- ...
local Save = {} local SAVE_FILE = "save.data" Save.save = function(username) local saveData = username love.filesystem.write(SAVE_FILE, saveData, #saveData) end Save.isAwesome = function() if love.filesystem.exists(SAVE_FILE) then local contents = love.filesystem.read(SAVE_FILE) if conten...
/* @library : rlib @docs : https://docs.rlib.io IF YOU HAVE NOT DIRECTLY RECEIVED THESE FILES FROM THE DEVELOPER, PLEASE CONTACT THE DEVELOPER LISTED ABOVE. THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ('CCPL' OR 'LICENSE'). T...
local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService) local Promise = require(script.Parent.Parent.Parent.Promise) local Error = require(script.Parent.Parent.Error) local RunService = game:GetService("RunService") local DataStoreLayer = require(script.Parent.DataStoreLayer) local METHOD_R...
local ffi = require("ffi") if jit.os == "Linux" then local uuid = ffi.load("libuuid.so", true) -- req:uuid-dev end ffi.cdef[[ typedef unsigned char uuid_t[16]; void uuid_generate_random(uuid_t out); void uuid_generate_time(uuid_t out); void uuid_unparse(uuid_t uu, char *out); ]] local _M = { _VERSION = '0.01'...
-- Converts a string to an integer -- without using any standard library function -- Returns (base ^ exp) local function power(base, exp) if exp <= 0 or not exp then return 1 end local pow = base for i = 1, exp-1 do pow = pow * base end return pow end -- str : a string to be converted to an int -- returns...
require "specs.Cocos2d-x" require "Logger" Log.setLevel(LogLevel.Warning) local MediationAdConfig = require("mediation.AdConfig") local MediationAdFactory = require("mediation.AdFactory") local MediationService = require("mediation.Service") local MediationConfig = require("mediation.Config") local AdManager = requir...
-- TEMP FILES SHOULD NOT BE LOADED FROM HERE baseSectorTravelTime = 86400 -- 24 hours baseSectorTravelMult = 10 -- lower is faster, 100 makes sense but will feels slow unless I add more "time steps" to the timer -------------------------------------------------------------------------------- -- Squad management fun...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 66041, emitter = "BattleBulletEmitter" } }, { type = "BattleSkillAddBuff", casterAniEffect = "", target_chois...
--[[ --=====================================================================================================-- Script Name: Map List, for SAPP (PC & CE) Description: Display current/next map & mode in mapcycle.txt See config for command syntax. Known Issue: If there are duplicate map:mode configurations in mapcycle.t...
pt = require('print_table').print_r --pt(_G.package.preload) Argo = require('Argo') local t = { name = 'n1' } t = Argo.bind('userdata', t) print(t.name)
-------------------------------- -- @module EaseQuadraticActionInOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- -- @function [parent=#EaseQuadraticActionInOut] create -- @param self -- @param #cc.ActionInterval action -- @return EaseQuadraticActionInOut#EaseQuadraticActionInOut r...
return {'sajet'}
local util = require("spec.util") describe("^", function() it("pass", util.check [[ local x = 1 local y = 2 local z: number = 3 z = x ^ y ^ 0.5 ]]) it("fail", util.check_type_error([[ local x = 1 local y = 2 local z = 3 z = x ^ y ^ 0.5 ]], { { y = 4, m...
local control = nil; local gmhiddencontrol = nil; SPECIAL_MSGTYPE_SENDPLAYERDICEPOOL = "sendplayerdicepool"; function onInit() -- Register special message handler to share dicepool with other FG instances ChatManager.registerSpecialMessageHandler(SPECIAL_MSGTYPE_SENDPLAYERDICEPOOL, handleSendPlayerDicepool);...
local PLAYER = FindMetaTable("Player") function PLAYER:GetJumpLevel() return self:GetDTInt(23) end function PLAYER:SetJumpLevel(level) self:SetDTInt(23, level) end function PLAYER:GetMaxJumpLevel() return self:GetDTInt(24) end function PLAYER:SetMaxJumpLevel(level) self:SetDTInt(24, level) end func...
----------------------------------- -- Area: Castle Oztroja -- NPC: _47n -- !pos -40.811 -17.492 -140.000 151 ----------------------------------- function onTrigger(player,npc) npc:openDoor(6) end function onEventUpdate(player,csid,option) end function onEventFinish(player,csid,option) end
local initiative = param.get("initiative", "table") ui.sidebar( function () ui.sidebarHead( function () ui.link { attr = { name = "history" }, text = "" } ui.heading { level = 1, content = _"History" } end ) execute.view { module = "issue", view = "_list2", params = { for_initiative = initiati...
--~ return PlaceObj("ModDef", { --~ "title", "Persistent Transport Route", --~ "id", "ChoGGi_PersistentTransportRoute", --~ "steam_id", "1804585985", --~ "pops_any_uuid", "92513d0f-8b09-4f82-82e9-246511849a04", --~ "lua_revision", 1001569, --~ "version", 1, --~ "version_major", 0, --~ "version_minor", 1, --~ "...
-- binoculars/init.lua -- Load support for Minebase translation. local S = minetest.get_translator("binoculars") magnifiers.register_magnifier("binoculars:binoculars", { description = S("Binoculars"), recipe = { {"base_glass:obsidian", "", "base_glass:obsidian"}, {"base_ores:bronze_ingot", "base_ores:bronze_ing...
local M = {} M.description = 'Settings related to running in firenvim' M.wants = { 'target.basic', } local au = require('au') function M.config() -- classic-light -- equilibrium-gray-light -- humanoid-light -- one-light -- base16-atelier-forest-light vim.cmd [[colorscheme base16-one-light]] -- no st...
local GLayer = require("graphic.core.GLayer") local TouchLayer = class("TouchLayer",GLayer) function TouchLayer:ctor() GLayer.ctor(self) end function TouchLayer:init() GLayer.init(self) self:bindTouchHandler() self._clickIndex = 0 self._beginTime = 0 end function TouchLayer:IsRaycast...
--[[ File: tower.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me The tower class. ]]-- local Tower = Class{__includes = Unit} local pairs = pairs function Tower:init(x, y) Unit.init(self, x, y) self.body:setMass(5) self.noBuildRadius = 0 self.fireCooldown = 0.5 self.fired = nil self.curren...
vim.cmd [[ augroup configgroup autocmd! autocmd FileType xml setlocal ts=2 sts=2 sw=2 expandtab smartindent smarttab autocmd FileType gradle.build setlocal ts=2 sts=2 sw=2 expandtab smartindent smarttab autocmd FileType ruby setlocal ts=2 sts=2 sw=2 expandtab smartindent smarttab ...
-- 物品池 hitemPool = { name = {}, data = {} } ---@private hitemPool.poolName = function(poolName) return '@' .. poolName end --- 将物品添加到物品池 ---@param poolName string ---@param whichItem userdata hitemPool.insert = function(poolName, whichItem) if (poolName == nil or whichItem == nil) then return ...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] do ix.char.RegisterVar("skin", { fieldType = ix.type.number, default = 0, index = 2, category = "customization", OnValidate = function(self, value, payload) return value or 0; end, OnDisplay = funct...
local nightfox = require 'nightfox' nightfox.setup { fox = 'nightfox', transparent = true, terminal_colors = true, } nightfox.load()
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- new_basicskilldata = { ["Alchemy (Int)"] = { characteristic = "IN", description = "<p>T</p>" }, ["Astrocartography (Int)"] = { characteristic = "IN", description = "<p>T</...
return { ["vrjLua.safePrint"] = [[Function for safely printing to console/terminal through VR Juggler]], }
local ipairs = ipairs local error = error local b64 = require('ngx.base64') local ffi = require('ffi') local tab_new = require('resty.core.base').new_tab ffi.cdef [[ typedef struct bio_st BIO; typedef struct bio_method_st BIO_METHOD; BIO_METHOD *BIO_s_mem(void); BIO * BIO_new(BIO_METHOD *type); void BIO_vfree(BIO *a)...
ESX = nil local inZone = '' local collectedPlants = {} local CurrentAction = nil local CurrentActionMsg = '' local CurrentActionKey = '' local CurrentActionData = {} local isProcessing = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj ...
--- --- See LICENSE file in top directory for copyright information Object = require "ActiveLua.Object" Class = require "ActiveLua.Class" require "lunit" lunit.setprivfenv() lunit.import "assertions" lunit.import "checks" local cls = lunit.TestCase("Class/Object behavior") function cls:test_indexed() ...
-- vessels/init.lua -- Minetest 0.4 mod: vessels -- See README.txt for licensing and other information. -- Load support for MT game translation. local S = minetest.get_translator("vessels") local vessels_shelf_formspec = "size[8,7;]" .. "list[context;vessels;0,0.3;8,2;]" .. "list[current_player;main;0,2.85;8,1;]...
local lrucache = require "resty.lrucache" local url = require "socket.url" local bit = require "bit" local re_match = ngx.re.match local re_find = ngx.re.find local re_sub = ngx.re.sub local insert = table.insert local upper = string.upper local lower = string.lower local find = string.find l...
-------------------------------------------------------------------------------- -- mahjong -------------------------------------------------------------------------------- local _PACKAGE = string.gsub(...,"%.","/") or "" local INFO_MSG = tengine.INFO_MSG local DEBUG_MSG = tengine.DEBUG_MSG local ERROR_MSG = tengine.E...
if StringHelpers == nil then StringHelpers = {} end ---Check if a string is equal to another. Case-insenstive. ---@param a string ---@param b string ---@param insensitive boolean ---@return boolean local function Equals(a,b, insensitive) if insensitive == nil then insensitive = true end if a ~= nil and b ~= nil t...
-- TODO: unlockUI -- c.getSession().write(UIPacket.IntroDisableUI(false)); -- c.getSession().write(UIPacket.IntroLock(false)); -- c.getSession().write(MaplePacketCreator.enableActions());
local function try_cached_html(vr) local p = vr.phys.path if p:sub(-1) == '/' then p = p:sub(0, -2) .. '.html' else p = p .. '.html' end st, res = vr:stat(p) if st and st.is_file then -- found the file vr.phys.path = p elseif res == lighty.HANDLER_WAIT_FOR_EVENT then return lighty.HANDLER_WAIT_FOR_EVEN...
object_tangible_furniture_house_cleanup_emperor_lamp = object_tangible_furniture_house_cleanup_shared_emperor_lamp:new { } ObjectTemplates:addTemplate(object_tangible_furniture_house_cleanup_emperor_lamp, "object/tangible/furniture/house_cleanup/emperor_lamp.iff")
local _, ns = ... local oUF = ns.oUF or oUF assert(oUF, "oUF_HolyPower is unable to locate oUF install.") local _, class = UnitClass("player") if (class ~= "PALADIN") then return end -- sourced from FrameXML/Constants.lua local SPEC_PALADIN_RETRIBUTION = SPEC_PALADIN_RETRIBUTION or 3 local SPELL_POWER_HOLY_POWER = S...
t = io.read('*number', '*l') for i=1, t do n, m, s = io.read('*n', '*n', '*n', '*l') a = s + m - 1 if(a > n) then a = a % n if(a == 0) then a = n end end print(a) end
require "lizards" serial = lizards.serial_t() grid = serial:from_file("grid.xml") for i = 0, game.nplayers, 1 do file = string.format("p%02d.svg", i) print(file) lizards.output_t():svg(grid, file, 40, i) end
local helperScriptCounter = 0 function includedScript () print("print from helperScript: " .. tostring(helperScriptCounter) .. "\n") helperScriptCounter = helperScriptCounter+1 end
--[[ This module contains utility functions and data related to games --]] local g = {} local txt = require('Wikilib-strings') -- luacheck: no unused local tab = require('Wikilib-tables') -- luacheck: no unused local formUtil = require('Wikilib-forms') local genUtil = require('Wikilib-gens') local gendata = require...
local allowCountdown = false; local playDialogue = false; function OnCreate() precacheImage('flashbang'); end function onStartCountdown() -- Block the first countdown and start a timer of 0.8 seconds to play the dialogue if not allowCountdown and isStoryMode and not seenCutscene then startVideo('garc...
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Iron Ring"] = { type = "Ring", tags = { ring = true, default = true, }, implicit = "Adds 1 to 4 Physical Damage to Attacks", implicitModTypes = { { "physical_damage", "damage", "physical", "...
return require("apisix.plugins.serverless")("serverless-post-function", -2000)
local M = {} -- local ulog = require("go.utils").log M.intersects = function(row, col, sRow, sCol, eRow, eCol) -- ulog(row, col, sRow, sCol, eRow, eCol) if sRow > row or eRow < row then return false end if sRow == row and sCol > col then return false end if eRow == row and eCol < col then retu...
LSystem = SimpleClass() function LSystem:__init_self() self.subscibe = nil end function LSystem:__init() self:__init_self() end function LSystem:getSubLst() if self.subscibe then return ComponentMgr:getCompsByType(self.subscibe) end end function LSystem:onTick() local lst = self:getSubLst() ...
require('nistclock') print("nistclock version:", (nistclock.version())) days = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", } months = { "January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "October", "November", ...
local textcolor = "#FFFFFF"; if SL.Global.ActiveColorIndex > 5 then textcolor = "#1E282F"; end return LoadFont("_miso") .. { InitCommand=cmd(zoom, 0.65; diffuse,color(textcolor);); };
for i = 0, 10, 1 do print(i) end local n = 17 local sum = 0 for i = 1, n do sum = sum + i end print(sum) print("Function working = ".. tostring(sum == (n * (n + 1)) / 2)) local items = { Animal = "Elephant"; Food = "Egg"; Plant = "Flower" } for index, value in pairs(items) do print(...
local simplex_noise = require 'utils.simplex_noise'.d2 --add or use noise templates from here local noises = { ['bb_biterland'] = { {modifier = 0.001, weight = 1}, {modifier = 0.01, weight = 0.35}, {modifier = 0.1, weight = 0.015} }, ['bb_ore'] = {{modifier = 0.0042, weight = 1}, {m...
-- mod-version:2 -- lite-xl 2.0 -- Support for the Fennel programming language: https://fennel-lang.org -- Covers all the keywords up to Fennel version 0.4.0 -- Currently only covers highlighting, not indentation, delimiter -- matching, or evaluation. local syntax = require "core.syntax" syntax.add { name = "Fenne...
Widg = {} Widg.defaults = {} function fillNilTableFieldsFrom(table1, defaultTable) for key, value in pairs(defaultTable) do if table1[key] == nil then table1[key] = defaultTable[key] end end end function checkColor(c) if type(c) == "string" then if string.sub(c, 1, 1) ~= "#" then c = "#" .. c end i...
local _G = getfenv(0) local LibStub = _G.LibStub local ALOPTIONS_MAJOR, ALOPTIONS_MINOR = "ALOptions-1.0", 1 local ALOptions, oldminor = LibStub:NewLibrary(ALOPTIONS_MAJOR, ALOPTIONS_MINOR) -- I only use this in AtlasLoot at this time. The overload with newer version isnt tested.. if not ALOptions then return end -- N...
local ffi = require 'ffi' local ffi_new = ffi.new local _M = {} local str_buf_size = 4096 local str_buf if not pcall(ffi.typeof, "ContextBase") then ffi.cdef[[ typedef struct ContextBase ContextBase; ]] end if not pcall(ffi.typeof, "envoy_lua_ffi_str_t") then ffi.cdef[[ typedef struct { ...
-- If LuaRocks is installed, make sure that packages installed through it are -- found (e.g. lgi). If LuaRocks is not installed, do nothing. pcall(require, "luarocks.loader") local gears = require("gears") local awful = require("awful") require("awful.autofocus") local beautiful = require("beautiful") local menubar =...
CodexDB["units"]["deDE"]={ [1]="Wegpunkt", [2]="Spawnpunkt", [3]="Fleischfresser", [6]="Koboldgezücht", [30]="Waldspinne", [36]="Erntegolem", [38]="Schmalspurrohling", [40]="Koboldminenarbeiter", [43]="Minenspinne", [46]="Murlocfutterwühler", [48]="Skelettkrieger", [54]="Corina Stähler", [60]="Ruklar der Fallensteller"...
local array = include( "modules/array" ) local util = include( "modules/util" ) local cdefs = include( "client_defs" ) local simdefs = include("sim/simdefs") local simquery = include("sim/simquery") local inventory = include("sim/inventory") local abilityutil = include( "sim/abilities/abilityutil" ) local speechdefs = ...
local function registerCommands (_) SILE.registerCommand("color", function (options, content) local color = SILE.colorparser(options.color or "black") SILE.typesetter:pushHbox({ outputYourself = function () SILE.outputter:pushColor(color) end }) SILE.process(content) SILE.typesetter:pushHbo...
-- CONSTANTS local ChecklistItems = {} ChecklistItems["empower"] = "Empower one currency" ChecklistItems["artifact"] = "Use your Artifact Fragments to buy and upgrade Artifacts" ChecklistItems["glyph"] = "Use your Glyph Particles to buy and upgrade Glyphs" ChecklistItems["level"] = "Level up your hero" ChecklistItems[...
{{/* This command allows you to enlarge emojis. Usage: `-bigemoji <emoji>`. Recommended trigger: Regex trigger with trigger `\A(-|<@!?204255221017214977>\s*)(be|big-?emo(te|ji))(\s+|\z)(\s+|\z)` */}} {{ with reFindAllSubmatches `<(a)?:.*?:(\d+)>` .StrippedMsg }} {{ $animated := index . 0 1 }} {{ $id := index . 0 ...
return Def.ActorFrame{ --[[Def.Quad{ --fade in to gameplay screen OnCommand=cmd(FullScreen;diffuse,0,0,0,1;linear,0.4;diffusealpha,0); };]] Def.Sprite{ InitCommand=cmd(LoadFromCurrentSongBackground;Cover;diffusealpha,0.8); OnCommand=cmd(linear,.4;diffusealpha,0); }; }
local b --SimpleForm for Server Logs b = SimpleForm("amlogic_log", nil) b.title = translate("Server Logs") b.description = translate("Display the execution log of the current operation.") b.reset = false b.submit = false s = b:section(SimpleSection, "", nil) o = s:option(TextValue, "") o.template = "amlogic/other_lo...
--action event pack --H_Tokisaki_02 return { }
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
local MOUDLE_COMMENT_NAME = "// 充电参数配置 //" local comment_begin = cfg:i32("charge注释开始", 0); local charge_comment_begin_htext = module_output_comment(comment_begin, MOUDLE_COMMENT_NAME); --print(MOUDLE_COMMENT_NAME); local CHARGE_FULL_VOL = cfg:enumMap...
--[[-- This script is adpated from arc_demo.c which has the following header. Haru Free PDF Library 2.0.0 Copyright(c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp> Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provi...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) local id = 'twojstary' RegisterServerEvent('esx_worek:closest') AddEventHandler('esx_worek:closest', function() local name = GetPlayerName(najblizszy) TriggerClientEvent('esx_worek:nalozNa', najblizszy) end) RegisterServerEve...
return { id = "freezer", name = "Freezer", cost = 30000, width = 2, cookingSupplies = true, stock = 8, restockCost = 5000, integrity = 5, upkeep = 500, sprites = { { name = "base", animations = { stocked8 = { first = 0, last = 0, speed = 1, ...