content
stringlengths
5
1.05M
print('run started') -- code below print('run ended')
local globalEvent={ {name="mainStory_黑暗的阴影", condition={ { type="level_greater_than", value="主角#10", },{ type="friendCount", value="4", }, },beizhu=[[ ]],}, {name="mainStory_神秘剑客", condition={ { type="level_greater_than", value="主角#15", },{ type="friendCount", value="8", },{ type="should_finish", value="mainStor...
math.randomseed(os.clock()*100000000000) local Game = {bS, curTable} function Game:new(b) local game = { bS = b, curTable = {""} } function game.CreateBoard() local total = 1 for i = 0, game.bS-1, 1 do for ii = 0, game.bS-1, 1 do game.curTable[total] = "☐" io.write(...
GM.Name = "Machineers" GM.Author = "N/A" GM.Email = "N/A" GM.Website = "N/A" AddCSLuaFile( "weighted_random.lua" ) AddCSLuaFile( "translation.lua" ) AddCSLuaFile( "value.lua" ) AddCSLuaFile( "sh_teams.lua" ) include( "weighted_random.lua" ) include( "translation.lua" ) include( "value.lua" ) include( "sh_teams.lua" ...
local function change_order(type, name, new_order) if data.raw[type][name] then data.raw[type][name].order = new_order end end local function change_subgroup(type, item_name, new_subgroup) if data.raw[type][item_name] then data.raw[type][item_name].subgroup = new_subgroup end end local function change...
function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Conch Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'NOTE_conch'); setPropertyFromGroup('unspawnNotes', i, 'hitHealth', '0.023'); setPropertyFromGroup('unspa...
-- ================================== -- File Name : Phoenix.lua -- Author : Eroica -- Version : 3.1 -- Date : 2017.5.16 -- ================================== local Utility = require("Utility") local Phoenix = {} Phoenix.optionFireSpirit = Menu.AddOption({"Hero Specific","Phoenix"},"Auto Fire Spirit", "auto...
----------------------------------------- -- ID: 5089 -- Scroll of Gain-VIT -- Teaches the white magic Gain-VIT ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(488) end function onItemUse(target) target:addSpell(488) end
local default_tiers = require("default_tiers") local fuel_tiers_solid = settings.startup['burner-power-progression-tiers-solid'].value local fuel_tiers_fluid = settings.startup['burner-power-progression-tiers-fluid'].value local solid_fuel_factor = settings.startup['burner-power-progression-factor-solid'].value log(...
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details -- This file is based on Lua 5.x tests -- https://github.com/lua/lua/tree/master/testes -- Generate an error (i.e. throw an exception) inside a tag method which is indirectly -- called via pcall. -- Thi...
-- 范例 -- convert按照config文件指定的顺序调用 -- sheet是原始表数据 -- global中是一些全局数据,很少用到 -- ext是一些扩展信息,例如表名 -- 多张表公用一个导表程序时,会自动合并导出的结果 function convert(sheet, global, ext) print("---------------------") print(ext) for k, v in pairs(global.raw) do print(k, v) end for k, v in pairs(global.save) do pri...
object_mobile_outbreak_undead_civilian_18 = object_mobile_shared_outbreak_undead_civilian_18:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_undead_civilian_18, "object/mobile/outbreak_undead_civilian_18.iff")
Config = {} Config.DrawDistance = 100.0 Config.MaxDelivery = 5 Config.TruckPrice = 500 Config.Locale = 'en' Config.Trucks = { "burrito3" } Config.Cloakroom = { CloakRoom = { Pos = {x = 79.24, y = 111.95, z = 80.17}, Size = {x = 3.0, y = 3.0, z = 1.0}, Color = {r = 204, g = 204, b = 0}...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() end function ENT:Think() if self:Health()<1 then if (self.Ex or 0)<SysTime() then self.Ex = SysTime()+math.random(2) local effectdata = EffectData() effectdata:SetOrigin( self:GetPos()+Vector(math.ran...
--诡诞融合 local m=14010108 local cm=_G["c"..m] function cm.initial_effect(c) --fusion local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(cm.cost) e1:SetCondition(cm.con) e1:SetTarget(cm.t...
#!/usr/bin/env lua local lib=require"lib" local help=[[ ./ka.lua [OPTIONS] (c)2022 Tim Menzies, MIT license (2 clause) Data miners using/used by optimizers. Understand N items after log(N) probes, or less. -file ../../data/auto93.csv -enough .5 -p 2 -far .9 -task .* -ample 512 -help false ...
--[[ This addon raises the limit for entries in the game's dropdown menus to 40 which is especially useful for users of addons like yaCIt. Author: Chazzard ]] UIDROPDOWNMENU_MAXBUTTONS = 40 --[[ local onShow = function(this) for i=1, UIDROPDOWNMENU_MAXBUTTONS do if (not this.noResize) then getgl...
--魔女目录-虚无之页 local m=14010018 local cm=_G["c"..m] function cm.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(cm.con) e1:SetCost(cm.cost) e1...
describe("test set_current_journal()", function() -- Setup mock vim module before we require deardiary modules _G.vim = require("mock.vim") local deardiary = require("deardiary") local config = require("deardiary.config") before_each(function() deardiary.current_journal = nil end) ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2019/5/22 9:58 --- local iputils = require "resty.iputils" local function validate_ips(v, t, column) if v and type(v) == "table" then for _, ip in ipairs(v) do local _, err = iputils.parse_cidr(ip...
rori_garyn_raiders_squad_neutral_none = Lair:new { mobiles = {{"garyns_mugger",1},{"garyns_thief",1},{"garyns_pirate",1}}, spawnLimit = 12, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, mobType = "npc", buildingType = "none" } addLairTemplate("ro...
local PROJECT_DIR = (path.getabsolute("..") .. "/") local PROJECT_OBJ_DIR = path.join(PROJECT_DIR, ".obj") local PROJECT_PROJECTS_DIR = path.join(PROJECT_DIR, ".projects") local PROJECT_RUNTIME_DIR = path.join(PROJECT_DIR, ".out/") solution "Texeled" language "C++" configurations { "Debug", "Rele...
--Waveforms samples generators local waveforms = {} local channels = ... --The amount of channels --[[ Supported waveforms: -------------------- 0 Sine 1 Triangle 2 Half-Rectified Sine 3 Square 4 Pulse 5 Saw 6 Noise 7 Custom About Waveform data argument: ----------------------------- Contains custom data for the wa...
x = game:GetService("InsertService"):LoadAsset(31839260) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.acb227.Character.Head.Position) --lego
local mod = DBM:NewMod(2153, "DBM-Party-BfA", 4, 1001) local L = mod:GetLocalizedStrings() mod:SetRevision("20190416205700") mod:SetCreatureID(134056)--134828 split forms mod:SetEncounterID(2130) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 264144 264166 264560 264773"...
mountain_krevol = Creature:new { objectName = "@mob/creature_names:mountain_krevol", socialGroup = "self", faction = "", level = 15, chanceHit = 0.39, damageMin = 150, damageMax = 160, baseXp = 831, baseHAM = 2000, baseHAMmax = 2400, armor = 0, resists = {115,105,0,135,0,0,0,-1,-1}, meatType = "meat_insect...
-- Copyright 2014-2015 Greentwip. All Rights Reserved. local weapon = import("app.objects.weapons.base.weapon") local violet_bullet = class("violet_bullet", weapon) function violet_bullet:animate(cname) local fire = {name = "fire", animation = {name = cname, forever = true, delay = 0.10} } self.sp...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "US Flag" ENT.Author = "Kaptian Core" ENT.Contact = "github.com/KaptianCore" ENT.Category = "Other" ENT.Spawnable = true ENT.AdminSpawnable = true function ENT:SetupModel() sel...
require 'paths' --require 'xlua' require 'string' require 'os' --require 'sys' require 'nn' -- these actually return local variables but we will re-require them -- when needed. This is just to make sure they are loaded. require 'moses' unpack = unpack or table.unpack local dt = require 'decisiontree._env' -- c lib:...
-- Reference -- http://msdn.microsoft.com/en-us/library/windows/desktop/aa378184(v=vs.85).aspx local ffi = require("ffi"); local sspi = require("sspicli"); local error_handling = require("core_errorhandling_l1_1_1"); require("win_error"); local core_string = require("core_string_l1_1_0"); --local WinNT = require("WinN...
handbookhero_proto = { [1] = { handname = 30001, character_id = 104001, award = { {1, 18}, {4, 15}, }, }, [2] = { handname = 30002, character_id = 107001, award = { {1, 18}, {4, 15}, }, }, [3] = { handname = 30003, character_id = 107002, award = { {1, 18}, {3, 15}, }, }, [4] = { handname = 30004, character_id = 107003,...
padawan_artist_01_convo_template = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "padawan_artist_01_conv_handler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/padawan_artist_01:s_c4960c85", -- Who are you? Never mind, I think we both know ...
print ([[ This tools implements parts of the functionality of 'MagicMatch' which is described in the following paper: 'M. Smith, V. Kunin, L. Goldovsky, A.J. Enright, and C.A. Ouzounis. MagicMatch -- cross-referencing sequence identifiers across databases. Bioinformatics, 21(16):3429-3430, 2005.' It is mainly used f...
local ffi = require("ffi") ffi.cdef [[ struct upipe_mgr *upipe_amtsrc_mgr_alloc(char const *); int upipe_amtsrc_mgr_set_timeout(struct upipe_mgr *, unsigned int); ]] libupipe_amt = ffi.load("libupipe_amt.so.0", true) libupipe_amt_static = ffi.load("libupipe-amt.static.so", true)
-- COMMON GLOBAL VARIABLES THICKNESS = 40.0 -- COMMON FUNCTIONS -- enableSwapIfDMGreaterThan: If the player chooses to play a level that exceeds the given difficulty, turn on swap. function enableSwapIfDMGreaterThan(mDM) if(u_getDifficultyMult() > mDM) then e_messageAdd("difficulty > " ..mDM.. "\nswap ena...
dofile("counter.lua") BlinkDetector = { ON_THRESHOLD = 200, OFF_THRESHOLD = 100, ON = 1, OFF = 0, state = 0 } function BlinkDetector:isBlinking(value) if self.state == self.ON and value < self.OFF_THRESHOLD then self.state = self.OFF return true end if value > self.ON_T...
--- --- request times counter implemeatation --- Copyright (c) GoGo Easy Team & Jacobs Lei --- Author: Jacobs Lei --- Date: 2018/4/9 --- Time: 下午5:51 local rate_limit_utils = require("core.utils.redis_rate_limit_utils") local Object = require("core.framework.classic") local _M = Object:extend() --- -- Counter constru...
local rawmulti = angelsmods.marathon.rawmulti local time_parameter = 3 data:extend( { --BASIC { type = "recipe", name = "clowns-basic-module-board", category = "electronics-complex", subgroup = "bob-electronic-circuit-complex", order = "a", enabled = true, icons = { { icon = "__base__/graphics/...
local Object = require('core/object') local Entity = require('core/entity') local Cat = {} Object:instantiate(Cat, Entity) function Cat:new(game) self.catpath = {} table.insert(self.catpath, {x=0, y=544, orientation="right"}); table.insert(self.catpath, {x=0, y=348, orientation="right"}); table.insert(sel...
local colors = require('pjl.colors') local autocommands = {} --This function is taken from https://github.com/norcalli/nvim_utils autocommands.create_augroups = function(definitions) for group_name, definition in pairs(definitions) do api.nvim_command('augroup '..group_name) api.nvim_command('autoc...
local Report = require "gui/report" local Decomposer = require "logic/decomposer" local Sheet = {} --Populates the given input flow. The last two arguments are optional and are considered nil by default function Sheet.populate_input_flow(input_flow, textfield_text, item_input_button_value) input_flow.add{ ...
function onCreate() makeLuaSprite('BG1','BG1',-700,-300) addLuaSprite('BG1',false) setLuaSpriteScrollFactor('BG1',0.2,0.2) scaleObject('BG1',0.5,0.5) close(true) makeLuaSprite('Floor2','Floor2',-1000,-400) addLuaSprite('Floor2',false) setLuaSpriteScrollFactor('Floor2',1,1) scaleObject('Floor2',0.9,0.9) ...
EventContext = CS.FairyGUI.EventContext EventListener = CS.FairyGUI.EventListener EventDispatcher = CS.FairyGUI.EventDispatcher InputEvent = CS.FairyGUI.InputEvent NTexture = CS.FairyGUI.NTexture Container = CS.FairyGUI.Container Image = CS.FairyGUI.Image Stage = CS.FairyGUI.Stage Controller = CS.FairyGUI.Cont...
--[[ Create complicated instance hierarchies easily. Usage: new("Folder", { Name = "Container" }, { new("Part", { Name = "Foo", Size = Vector3.new(10, 10, 10) }), new("Part", { Name = "Bar", Size = Vector3.new(20, 20, 20) }) }) ]] local function new(className, properties, chil...
local playsession = { {"Gh0sTP1rate", {278043}}, {"NekoBaron", {763399}}, {"Degg", {857783}}, {"banakeg", {1108714}}, {"Silver_Eagle7", {190988}}, {"MeeperThyBeeper", {320554}}, {"Murugi", {229018}}, {"dat_miner", {244335}}, {"xcube", {633438}}, {"slowcrazy54", {2258}}, {"Nikkichu", {578626}}, {"mikeholmes"...
require('mono.metadata.class') ffi.cdef [[ typedef struct MonoDisHelper MonoDisHelper; typedef char* (*MonoDisIndenter) (MonoDisHelper *dh, MonoMethod *method, uint32_t ip_offset); typedef char* (*MonoDisTokener) (MonoDisHelper *dh, MonoMethod *method, uint32_t token); struct MonoDisHelper { const char *newline;...
local TextMenu = { activeIdx = 1, config = { -- activeColor, -- activeFont, -- idleColor, -- idleFont, items = { -- MenuItem: -- -- text -- -- action (callback fn) }, -- optional title to display above the menu items ...
--local HasUpgrade = debug.getupvaluex(GetHasSilenceUpgrade, "HasUpgrade") local function HasUpgrade(callingEntity, techId) if not callingEntity then return false end local techtree = GetTechTree(callingEntity:GetTeamNumber()) if techtree then return callingEntity:GetHasUpgrade(tech...
local facets = require("lua_schema.facets"); local error_handler = require("lua_schema.error_handler"); local nu = require("lua_schema.number_utils"); local __double_handler_class = {} __double_handler_class.type_name = 'double'; __double_handler_class.datatype = 'number'; function __double_handler_class:is_deseriali...
local wibox = require("wibox") local awful = require("awful") local gears = require("gears") local mail = {} --- Email local path_to_icons = "/usr/share/icons/Arc/actions/22/" local mail_icon = wibox.widget.imagebox() mail_icon:set_image(path_to_icons .. "/mail-mark-unread.png") -- mail_icon:set_image(awful.util.get...
Config = {} -- General configuration Config.UseOldESX = true Config.UsevSync = false Config.BlackoutDuration = 60 -- How long will the blackout last (In seconds) Config.HackingTime = 15 -- How long will hacking take (In seconds) Config.SendNotification = true Config.Soundeffect = true Config.ShowVehicleLights = true ...
function modifier_item_skadi_datadriven_on_orb_impact(keys) if keys.target.GetInvulnCount == nil then if keys.caster:IsRangedAttacker() then keys.ability:ApplyDataDrivenModifier(keys.caster, keys.target, "modifier_item_skadi_datadriven_cold_attack", { duration = keys.ColdDurationRanged }) ...
local localplayer minetest.register_on_connect(function() localplayer = minetest.localplayer end) minetest.register_globalstep(function(dtime) if localplayer then local pos = localplayer:get_pos() minetest.display_chat_message("X:"..pos.x.."\n\nY:"..pos.y.."\n\nZ:"..pos.z) minetest.display_chat_messa...
title="n(1-m)" helptext="name is like: \r\n1(1~600)\r\n2(601~1200)" function settext(n,m) str=string.format("%d(%d~%d)",n,(n-1)*m+1,n*m) return str end
local Object = require("lib.classic.main") local Stat = require("bin.Stat") local private = require("bin.instances") local inspect = require("lib.inspect.main") local StatBoundedStat = Object:extend() function StatBoundedStat:new(min, max, val, reason) min = min or 0 max = max or 0 val = val or 0 ...
local M = {} local repeat_fn function M.repeat_action() repeat_fn() end function M.mk_repeatable(fn) return function() repeat_fn = function() fn() vim.cmd('silent! call repeat#set("\\<Plug>GitsignsRepeat",-1)') end repeat_fn() end end vim.api.nvim_set_keymap( 'n', '<Plug>Gitsigns...
function isPlayerVIP ( ) return tostring ( getElementData ( localPlayer, "VIP" ) ):lower ( ) ~= "none" end function getVipLevelFromName ( l ) local levels = { ['none'] = 0, ['bronze'] = 1, ['silver'] = 2, ['gold'] = 3, ['diamond'] = 4 } return levels[l:lower()] or 0; end
function clone(object,notC)--clone函数 local lookup_table = {}--新建table用于记录 local function _copy(object)--_copy(object)函数用于实现复制 if type(object) ~= "table" then return object ---如果内容不是table 直接返回object(例如如果是数字\字符串直接返回该数字\该字符串) elseif lookup_table[object] then return lookup_table[object]--这里是用于递归滴...
local playsession = { {"NASER", {14558}}, {"MontrealCrook", {166790}}, {"Timfee", {90672}}, {"mavzor", {60187}}, {"ManuelG", {50815}} } return playsession
local Circle = require('./circle-class') local PVector = require('./pvector-class') local Mover = {} Mover.__index = Mover function Mover.new(numCircles) local m = {} setmetatable(m, Mover) m.circles = {} m.speedLimit = 60 for i = 0, numCircles do local x = love.math.random...
function Alien:UpdateAutoHeal() PROFILE("Alien:UpdateAutoHeal") if self:GetIsHealable() and ( not self.timeLastAlienAutoHeal or self.timeLastAlienAutoHeal + kAlienRegenerationTime <= Shared.GetTime() ) then local healRate = 1 local shellLevel = self:GetShellLevel() local hasRegenUpgrade...
local IAspect = require("api.IAspect") local IItemLocalizableExtra = require("mod.elona.api.aspect.IItemLocalizableExtra") local IItemThrowable = require("mod.elona.api.aspect.IItemThrowable") local IItemUseable = require("mod.elona.api.aspect.IItemUseable") local IItemInittable = require("mod.elona.api.aspect.IItemIni...
return PlaceObj("ModDef", { "title", "Prefab Safety", "version", 2, "version_major", 0, "version_minor", 2, "image", "Preview.png", "id", "ChoGGi_PrefabSafety", "steam_id", "1593125913", "pops_any_uuid", "7a951985-0bde-425d-a242-a907a566e039", "author", "ChoGGi", "lua_revision", 1001569, "code", { "Code/Sc...
--[[ -- ]] function WelcomeNPC_Died(Unit, event, player) Unit:RemoveEvents() end function WelcomeNPC(Unit, event, player) Unit:RegisterEvent("WelcomeNPC_Say",45000, 0) end function WelcomeNPC_Say(Unit, event, player) local chance = math.random(1,3) if(chance == 1) then Unit:SendChatMessage(14, 0, "Hello and Welcom...
local hook local _E if (IsAddOnLoaded("LiteBag")) then return end if (IsAddOnLoaded("Bagnon")) then return end if (IsAddOnLoaded("Inventorian")) then return end local function update(frame) if (not frame) then return end local id = frame:GetID() local name = frame:GetName() local size = frame.size for i=1, size...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseFindFriend_pb', package.seeall) local BSEFINDFRIEND = protobuf.Descriptor(); local BSEFINDFRIEND_RESULT_FIELD = protobuf.FieldDescriptor(); local BSEFINDFRIEND_MESSAGE_FIELD = protobuf.FieldDescriptor(); local BSEFINDFRIEND_USER...
--[[ intel instruction architecture disassembly Plenty of stuff to go in here. For now, just a dumping ground of ideas, bits and bobbles there are plenty of disassemblers available. LuaJIT itself even has dis_x86.lua in the 'jit' directory. So, why bother? Because I want to learn how to ...
WL2.Whisper = {} WL2.Whisper.__index = WL2.Whisper function WL2.Whisper.new(init) return setmetatable(init, WL2.Whisper) end function WL2.Whisper:toString() local receivedAt = date("%I:%M:%S", WL2.date.fromISO(self.receivedAt)) local otherPlayerName = self.otherPlayer.name local otherTokens = WL2.string.split...
--[=[ Constants for the permission system @class PermissionProviderConstants ]=] local require = require(script.Parent.loader).load(script) local Table = require("Table") return Table.readonly({ DEFAULT_REMOTE_FUNCTION_NAME = "PermissionProviderDefaultRemoteFunction"; -- types GROUP_RANK_CONFIG_TYPE = "GroupRa...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local component = require "moonpie.ui.components.component" component("section", function(props) local s = {} for i, v in ipairs(props) do s[i] = v en...
local wk = require("which-key") vim.g.mapleader = " " vim.g.maplocalleader = "," wk.setup({ key_labels = { ["<space>"] = "SPC", ["<cr>"] = "RET", ["<tab>"] = "TAB", }, icons = { breadcrumb = "", separator = "", }, }) vim.api.nvim_set_keymap("n", "<Esc>", "<Cm...
--arg[1] == path to REPORT.lua --arg[2] == path to MODBUILDER if gVerbose == nil then dofile(arg[2]..[[LoadHelpers.lua]]) end --.\MODBUILDER\ pv(">>> In ReportFailedScript.lua") gfilePATH = arg[1] --to use by LoadHelpers.Report() THIS = "In ReportFailedScript: " local ModScriptFailed = ParseTextFileIntoTable(arg[...
--[[ The MIT License (MIT) Copyright (c) 2014 Regan Daniel Laitila 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, modif...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local stringstream = require("string_stream") -- -- Parse UEFI variables db and dbx that contain signatures, certificat...
#!/usr/bin/env lua5.3 -- version 1.2 -- github.com/luagram local luagram_function, function_core, update_functions, luagram_timer = {}, {}, {}, {} local luagram = { logo = [[ _ _ _ _ ____ ____ _ __ __ | | | | | | / \ / ___|| _ \ / \ | \/ | | | | | | | / _ \ | | _ | |_) |...
-- TÖVE Demo: renderers. -- (C) 2018 Bernhard Liebl, MIT license. local tove = require "tove" require "assets/tovedemo" local flow local function load(svg) local function newGraphics() return tove.newGraphics(svg, 750) end -- just some glue code for presentation. flow = tovedemo.newCoverFlow(0.5) for i, mode...
-- init file VIICrusadeMassMailer_Debugging = true if VIICrusadeMassMailer_Debugging then print('VIICrusadeMassMailer DEBUG: VIICrusadeMassMailer init file executed') end
local image = ThemePrefs.Get("VisualTheme") local game = GAMESTATE:GetCurrentGame():GetName() if game ~= "dance" and game ~= "pump" then game = "techno" end -- - - - - - - - - - - - - - - - - - - - - -- Constants defining UI element positions depending on horizontal or vertical mode. local logos_x = (IsVert...
function love.conf(t) t.title = "In Your Face City Trains" t.author = "Simon Larsen" t.identity = "iyfct" t.window.width = 900 t.window.height = 300 t.modules.joystick = false t.modules.audio = true t.modules.keyboard = true t.modules.event = true t.modules.image = true t.modules.grap...
#!lua -- https://github.com/premake/premake-4.x/wiki/Scripting-With-Premake solution "crossword-editor" configurations { "debug", "debugnocurses", "release" } --buildoptions { "-std=c++11" } defines { "GCC_C_LANGUAGE_STANDARD=c11" } --cleancommands { "rm -rf editor obj data.bin" } configuration "debug" ...
function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end position:sendMagicEffect(CONST_ME_TELEPORT) local sacrificeItem, destination = Tile(Position(32816, 31601, 9)):getItemById(2319) if not sacrificeItem then destination = Position(3...
function trunc(x) return x>=0 and math.floor(x) or math.ceil(x) end function exp0 (a, e) local o = 1 for i = 1, e do o = o * a end return o end function e (t, n) for i = 1, 8 do if n >= t[i + 1] * i then n = n - t[i + 1] * i else local nombre = exp0(10, i - 1) + trun...
local ls = require "lovesnow" local debugchannel = require "lovesnow.debugchannel" local CMD = {} local channel function CMD.start(address, fd) assert(channel == nil, "start more than once") ls.error(string.format("Attach to :%08x", address)) local handle channel, handle = debugchannel.create() local ok, err = ...
require 'amd' local little_endian_factors = {1, 256, 65536, 4294967296} local big_endian_factors = {4294967296, 65536, 256, 1} local ASYNC_MESSAGE_TYPE = 34 local REQUEST_MESSAGE_TYPE = 35 local REPLY_MESSAGE_TYPE = 36 -- local HEADER_SIZE_1 = 0x18 local HEADER_SIZE_1 = 4 local HEADER_SIZE_2 = 0x04 local MESSAGE...
-------------------------------------------------------------------------------- -- game.lua - Defines a game which(for now) manages the game logic for a single player game -------------------------------------------------------------------------------- -- TODO: clean this up! require "source/utilities/vector" require...
--- Operating System library --- ffi.cdef[[ long os_execute(const char *cmd); void os_sleep(unsigned long msec); unsigned long os_gettime(); bool os_setenv(const char *name, const char *val); const char *os_getenv(const char *name); bool os_setcwd(const char *dir); const char *os_getcwd(char *dest, size_t size); ]] -...
local Ans = select(2, ...); local CraftingData = Ans.Data.Crafting; local Utils = Ans.Utils; local Draggable = Utils.Draggable; local Config = Ans.Config; local Sources = Ans.Sources; local Tasker = Ans.Tasker; local EventManager = Ans.EventManager; local CraftingHook = {}; local CraftIDCache = {}; local Logger = Ans.L...
QuestieLocale.locale['esES'] = { -- Config Windows ['OPTIONS_TAB'] = "Opciones", ['QUESTIE_HEADER'] = "Opciones de Questie", ['ENABLE_QUESTIE'] = "Habilitar Iconos", ['ENABLE_QUESTIE_DESC'] = "Habilitar iconos de Questie", ['ENABLE_ICON'] = "Habilitar icono del minimapa", ['ENABLE_ICON_D...
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- AWK LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. l...
-- // Dependencies local CIELUV = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Universal/ESP/CIELUV.lua"))() -- // Services local Workspace = game:GetService("Workspace") -- // Vars local CurrentCamera = Workspace.CurrentCamera -- // Utilities local Utilities = {} do -- // ...
-- System rendering functions base config script -- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS -- YOU KNOW WHAT YOU'RE DOING, but reading this file over -- is a good way to get to know how DSB works. -- If you want to override these functions, you should -- do so in your own dungeon's startup.lua inste...
--[[ MIT License Copyright (c) 2022 Michael Wiesendanger 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, mod...
local ConfigFilePath=love.filesystem.getSourceBaseDirectory().."/Config.ini" Config={ Width=1280, Height=720, X=0, Y=0, FullScreen=false, FullScreenType="desktop", VSync=1, } Config.import=function() if(not exists(ConfigFilePath))then return 0 end local file=io.open(ConfigFilePath,"r") io...
local utils = require 'utils' local function create_grid(lines) local grid = {} for y, line in ipairs(lines) do grid[y] = {} line:gsub(".", function(num) table.insert(grid[y], tonumber(num)) end) end return grid end local function low_points(grid) local risk_level = 0 local coords = {} ...
local util = require "recipe.util" local M = {} local has_dap, dap = pcall(require, "dap") local has_setup = false function M.setup() if not has_dap then return end local config = require "recipe.config" if has_setup then return end has_setup = true for k, v in pairs(config.options.adapters) do da...
include("shared.lua") function ENT:Draw() self.BaseClass.Draw(self) self.Entity:DrawModel() end
warning = {} function warning:draw() local width, height = love.graphics:getWidth(),love.graphics:getHeight() love.graphics.printf([[Thanks for trying out the preview of Possession 2! Please keep in mind that the game is still in development and the full version of the game will feature many more levels, creatures ...
local _2afile_2a = "fnl/snap/producer/vim/help.fnl" local snap = require("snap") local tbl = snap.get("common.tbl") local read_file = snap.get("preview.read-file") local function _1_() local tags_set = {} local tag_files local function _2_(...) return vim.fn.globpath(vim.o.runtimepath, "doc/tags", 1, 1, ...) ...
#import output elevatorControl #import output floorIndicator local requests = {} function onElevatorCallEvent(fromFloor, direction) --Finnish Later function onCrash(id) local computer for v in {peripheral.find("computer")} do if v.getID() == id then computer = v break ...
--[[ author by soniceryd Date:2016/08/04 Desc:deafult controller ]]-- local default = {} function default.index() ngx.exit(ngx.HTTP_NOT_FOUND) end return default