content stringlengths 5 1.05M |
|---|
-- Draw debug shapes of the collision system.
local s = function(dt)
if not E.collision then
return
end
for _, v in ipairs(E.collision) do
local arr = {}
for _, w in ipairs(v.collision.polygon) do
local x = core.rotate_point(w, v.position.rotation)
arr[#arr + ... |
-----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Silke
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets_[S]/IDs")
require("scripts/globals/shop")
-----------------------------------
function onTrade(player, npc, trade)
end
function o... |
#!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all co... |
local EnemyBean=Class("EnemyBean")
function EnemyBean:init(addMaxSpeed)
local winHeight = love.graphics.getHeight()
local winWidth = love.graphics.getWidth()
self.id = self:getRandomNum(1,5)
self.img = love.graphics.newImage("res/"..tostring(self.id)..".png")
self.width = self.img:getWidth()
self.height = self.i... |
--Attach to a light for a basic flicker.
local min = script:GetCustomProperty("Min")
local max = script:GetCustomProperty("Max")
local speed1 = script:GetCustomProperty("FlickerSpeed1")
local speed2 = script:GetCustomProperty("FlickerSpeed2")
local flickerType = script:GetCustomProperty("FlickerType")
originalIntensi... |
slot0 = class("FourthInvitePage", import("...base.BaseActivityPage"))
slot0.OnInit = function (slot0)
slot0.icons = {
slot0:findTF("AD/bg/npc1"),
slot0:findTF("AD/bg/npc2"),
slot0:findTF("AD/bg/npc3"),
slot0:findTF("AD/bg/npc4"),
slot0:findTF("AD/bg/npc5"),
slot0:findTF("AD/bg/npc6"),
slot0:findTF("AD/b... |
local scope_analysis = {}
local ast = require "pallene.ast"
local ast_iterator = require "pallene.ast_iterator"
local builtins = require "pallene.builtins"
local location = require "pallene.location"
local symtab = require "pallene.symtab"
local bind_names = ast_iterator.new()
-- Implement the lexical scoping for a ... |
System_messge = "GodMode ON"
managers.player:player_unit():character_damage():set_invulnerable(true)
managers.chatmanager:feed_system_message(ChatManager.GLOBAL, System_messge)
|
slot0 = class("NavalAcademyScene", import("..base.BaseUI"))
slot0.STATE_ACADEMY = "STATE_ACADEMY"
slot0.STATE_COURSE = "STATE_COURSE"
slot0.STATE_RESOURCE = "STATE_RESOURCE"
slot0.STATE_MERCHANT = "STATE_MERCHANT"
slot0.COURSE_COUNT = 5
slot0.ICON_COUNT = 3
slot0.MAX_SLOT = 3
slot1 = 5
slot0.WARP_TO_TACTIC = "WARP_TO_T... |
function max_prime_factor( i )
local divide = function( i, div ) while 0 ~= i % div do div = div + 1 end return div, i / div end
local factorize = function( i ) while 1 < i do div, i = divide( i, 2 ); coroutine.yield( div ) end end
local generate = coroutine.create( factorize )
local iterate = function(... |
local Actor = require "actor"
local Vector2 = require "vector"
local Tiles = require "tiles"
local Condition = require "condition"
local Gloop = Actor:extend()
Gloop.char = Tiles["gloop"]
Gloop.name = "gloop"
Gloop.color = {90 / 230, 161 / 230, 74 / 230}
local Explode = Condition:extend()
Explode.range = 1
Explode.d... |
object_tangible_loot_mustafar_must_painting_01 = object_tangible_loot_mustafar_shared_must_painting_01:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_mustafar_must_painting_01, "object/tangible/loot/mustafar/must_painting_01.iff")
|
local luasnip = require('luasnip')
luasnip.config.set_config({
region_check_events = 'InsertEnter',
delete_check_events = 'InsertLeave'
})
require('luasnip.loaders.from_vscode').load()
|
-- function reference
local type = type
local pairs = pairs
local setmetatable = setmetatable
-- include
local newTable = require("toolkit.common").newTable
-- const
local defaultTableLen = 5
local defaultSkip = true
-- optimize: original object reflection and function copy
local function filter(wrapper, originalObjec... |
--Inspired by Zoey's flashlight.
--This SWEP started out as a small modification of Devilsson2010's FlashlightV2.
--Eventually, I completely rewrote the weapon, recreating the function of
--Zoey's now defunct Zombie Master flashlight.
AddCSLuaFile ()
if ( SERVER ) then
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SW... |
local M = {}
function M.setup()
vim.cmd([[
hi default NotifyERRORBorder guifg=#8A1F1F
hi default NotifyWARNBorder guifg=#79491D
hi default NotifyINFOBorder guifg=#4F6752
hi default NotifyDEBUGBorder guifg=#8B8B8B
hi default NotifyTRACEBorder guifg=#4F3552
hi default NotifyERRORIcon guifg=#F70... |
-- Settings here
igen_pregenerate_defaults = true -- Does this mod automatically produce a series of item generators for default?
igen_log_item_movements = false -- Does this mod log any item transactions to or from a item generator? (Can produce more content in logs)
igen_log_item_generation = false -- Does this mod ... |
-- main
local l_main_x = 33
g_main_x = 44
local t = {1, "xx", _G}
g = {123, "yy", t}
for i = 1, 10 do
l_main_x = l_main_x + 1
g_main_x = g_main_x - 1
end
local function f2(z)
z = z + 1
return z
end
function f1(x, ...)
local y = x
local ta = {...} -- vararg expansion
x = "Hello " .. x .. " " .. l_main... |
---
--- __init__.lua
---
--- Copyright (C) 2018-2019 Xrysnow. All rights reserved.
---
for _, n in ipairs({ 'math', 'math_const', 'math_types' }) do
require('math.' .. n)
end
math.Vec2 = require('math.vec2')
math.Vec3 = require('math.vec3')
math.Vec4 = require('math.vec4')
math.Mat4 = require('math.mat4')
math.Qu... |
-- AFTR Binding Table
--
-- A binding table is a collection of softwires (tunnels). One endpoint
-- of the softwire is in the AFTR and the other is in the B4. A
-- softwire provisions an IPv4 address (or a part of an IPv4 address) to
-- a customer behind a B4. The B4 arranges for all IPv4 traffic to be
-- encapsulat... |
local Base = cc.import(".Base")
local Talent = cc.class("Talent", Base)
local Table = cc.import("#Table", ...)
function Talent:ctor()
Talent.super.ctor(self, Table.Talent)
end
return Talent
|
meta= {
name = "Spawn Hooks",
description = "Examples for how to hook entity spawns.",
author = "Malacath"
}
-- Glitch player and monster animations
set_post_entity_spawn(function(entity)
set_post_statemachine(entity.uid, function(movable)
if math.random(0, 10) == 0 then
movable.ani... |
--------------------------------
-- @module TransitionSplitCols
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
-- Returns the action that will be performed.<br>
-- return The action that will be performed.
-- @function [parent=#TransitionSplitCols] action
-- @pa... |
return PlaceObj('ModDef', {
'title', "Recoloured Dome Bonus Icons",
'description', "This mod changes the colours of the Vista and Research dome bonus map icons to more distinctive colours. I've often found that the Vista and Research Icons were too similar to the Rare Metals and Water Icons respectively at a quick gl... |
-- Modules
local composer = require "composer"
local fonts = require "modules.fonts"
local musicAndSound = require "modules.musicAndSound"
local widget = require "widget"
local sensitivity
local function changeScene(e)
composer.gotoScene(e.target.scene)
return true
end
--[[
Adjusts the touch sensitiviy.... |
-- Called OnToggleOn (instead of OnSpellStart so it can be used while stunned)
function AtroposEndStrongDispel(event)
local caster = event.caster
local ability = event.ability
ability:ToggleAbility()
SuperStrongDispel(caster, true, false)
-- If needed remove modifier_custom_terror_buff
-- Sound on caster
ca... |
--- slip/telescope/pickers
-- Defines Telescope pickers to interact with Slip
|
local vim = vim
local info = require "package-info"
info.setup {
colors = {
up_to_date = "#3C4048", -- Text color for up to date package virtual text
outdated = "#d19a66", -- Text color for outdated package virtual text
},
icons = {
enable = true, -- Whether to display icons
style = {
up_to... |
local APP = {}
-- Base data
APP.name = "Settings"
APP.id = "settings"
APP.desc = "Edit your phone's settings" -- Used in the app store
APP.appStore = false -- Can be installed from the app store
APP.show = true -- Show the app on the home
-- Background
APP.Icon = function(w, h)
surface.SetMaterial(XYZShit.Image.GetM... |
local Job = require("plenary.job")
local status = require("worktrees.status")
local M = {}
M.custom_job = function(cmd, args)
local command_string = cmd .. " " .. table.concat(args, " ")
status:info("Running command: " .. command_string)
return Job:new({
command = cmd,
args = args,
... |
local s = require('say')
s:set_namespace('nl')
s:set("assertion.same.positive", "Verwachtte objecten die vergelijkbaar zijn. Aangeboden:\n%s\nVerwachtte:\n%s")
s:set("assertion.same.negative", "Verwachtte objecten die niet vergelijkbaar zijn. Aangeboden:\n%s\nVerwachtte niet:\n%s")
s:set("assertion.equals.positive",... |
-- "version": "Beta v. Upbeat Giraffe",
-- "author": "PenguinToast",
-- "version": "0.4.1",
-- "support_url": "http://penguintoast.github.io/PenguinGUI"
-- This script contains all the scripts in this library, so you only need to
-- include this script for production purposes.
-----------------------------------------... |
local Debug = require(script.Parent.Parent.Parent.Debug)
local Typer = require(script.Parent.Parent.Parent.Typer)
local Debug_Assert = Debug.Assert
local FindLast = Typer.AssignSignature(Typer.Array, Typer.OptionalAny, Typer.OptionalInteger, function(Array, Value, From)
local Length = #Array
if Length <= 0 then
re... |
mylib = require "mylib"
------------------------------------------------------------------------------------
_G.Config={
standard = "WRC20",
--WPmNonXuc2qzKxp5AEcYgsDawcaBEbjBb7
owner = "wXYtbLww1eVBA9ytUnkPXQmNjoGV3HuFRs",
name = "GiaoEX.com-BTCALL-WICC",
symbol = "BTCALL",
decimals = 8,
total... |
--[[
* ReaScript Name: HeDaScripts Manager
* Author: Hector Corcin (HeDa)
* Author URI: https://reaper.hector-corcin.com
* Licence: Copyright © 2016, Hector Corcin
]]
local OS = reaper.GetOS()
local mode="x64"
if OS == "Win32" or OS == "OSX32" then mode="x32" end
local info = debug.getinfo(1,'S... |
DRONES_REWRITE.Weapons["Minedropper"] = {
Initialize = function(self, pos, ang, src)
local ent = DRONES_REWRITE.Weapons["Template"].InitializeNoHandler(self, "models/dronesrewrite/minedropper_wep/minedropper_wep.mdl", pos, ang)
ent.Mines = { }
ent.RespawnMine = function()
if IsValid(ent.Mine) then return end... |
#!/usr/bin/env lua
---------------
-- ## Peaque, Lua module for a priority queue
-- @author Shakil Thakur
-- @copyright 2014
-- @license MIT
-- @script peaque
local setmetatable = setmetatable
local floor = math.floor
local ipairs = ipairs
local assert = assert
local remove = table.remove
-- Internal class constructo... |
local scoreCD = {}
function getPedMaxHealth(ped)
-- Output an error and stop executing the function if the argument is not valid
assert(isElement(ped) and (getElementType(ped) == "ped" or getElementType(ped) == "player"), "Bad argument @ 'getPedMaxHealth' [Expected ped/player at argument 1, got " .. tostring(p... |
local Util = {}
function Util.toast(title, text)
hs.notify.new({
title=title,
informativeText=text
}):send()
end
function Util.alert(text)
hs.alert(text);
end
function Util.sortKeys(t, compareFunc)
local keys = {}
for key in pairs(t) do
table.insert(keys, key)
end
table.sort(keys, function(a, b)
... |
if GetLocale() == "frFR" then
local _, core = ...;
local MonDKP = core.MonDKP;
core.BossList = {
MC = {
"Lucifron", "Magmadar", "Gehennas",
"Garr", "Baron Geddon", "Shazzrah", "Sulfuron Harbinger",
"Golemagg the Incinerator", "Majordomo Executus", "Ragnaros",
},
BWL = {
"Ra... |
package.path = "./lua/?/init.lua;./lua/?.lua"
local config = require("tokyonight.config")
local kitty = require("tokyonight.extra.kitty")
local fish = require("tokyonight.extra.fish")
local alacritty = require("tokyonight.extra.alacritty")
local function write(str, fileName)
print("[write] extra/" .. fileName)
lo... |
object_tangible_meatlump_event_slicing_device_meatlump_map = object_tangible_meatlump_event_shared_slicing_device_meatlump_map:new {
}
ObjectTemplates:addTemplate(object_tangible_meatlump_event_slicing_device_meatlump_map, "object/tangible/meatlump/event/slicing_device_meatlump_map.iff")
|
wifi.sta.disconnect()
wifi.setmode(wifi.STATIONAP)
local cfg = {}
cfg.ssid = "mysticalNetwork"
cfg.pwd = "mystical5000"
wifi.ap.config(cfg)
local srv=net.createServer(net.TCP, 300)
srv:listen(80,function(conn)
conn:on("receive", function(client, request)
print("recieve")
print(request)
sendW... |
minetest.register_node("terranova:moss", {
description = "Moss",
drawtype = "allfaces_optional",
tiles = {"t.moss_transparent.png"},
paramtype = "light",
groups = {biomass = 1, grabbable_resource = 1},
})
minetest.register_node("terranova:heavy_moss", {
description = "Heavy Moss",
tiles = {"t.moss.png"},
param... |
local addonName, addonTable = ...
local Addon = _G[addonName]
local S = LibStub:GetLibrary("ShockahUtils")
local Class = {}
Addon.Dungeon = Class
local dungeonZoneIdToKey = {}
local function SetupBattleForAzeroth()
local toAdd = {
[9389] = "ul", -- Uldir
}
for k, v in pairs(toAdd) do
dungeonZoneIdToKey[k] = ... |
----------------------------------------------------------------------------------
-- Total RP 3
-- Events API
-- ---------------------------------------------------------------------------
-- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
-- Snap Cloud
-- ==========
--
-- A cloud backend for Snap!
--
-- Written by Bernat Romagosa and Michael Ball
--
-- Copyright (C) 2019 by Bernat Romagosa and Michael Ball
--
-- This file is part of Snap Cloud.
--
-- Snap Cloud is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affe... |
-- Test file for the API
minetest.log("action", "[item_replicator] Test: ....")
-- Get the original settings
local old_settings = {}
old_settings.log_api = item_replicator_settings.log_api
old_settings.log_production = item_replicator_settings.log_production
old_settings.allow_unknown = item_replicator_settings.allow_... |
-- Leader keys
vim.g.mapleader = " "
vim.g.maplocalleader = " "
local set_keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
-- Delete buffer
set_keymap("n", "<leader>k", ":bd<cr>", opts)
-- Diff
set_keymap("n", "<leader>db", ":diffget BASE<cr>", opts)
set_keymap("n", "<leader>dl", ":dif... |
local mapTrapSettings = {
{
trapName = "Dumb rock",
creationID = 2997,
usageChance = nil,
usageRadius = nil,
positions = {Vector(-667, 1517, 63)},
lineOfSight = false
},
{
trapName = "Second falling gate",
creationID = 3244,
u... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0293-vehicle-type-filter.md
---------------------------------------------------------------------------------------------------
-- Descr... |
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
local feedkey = function(key, mode)
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, tr... |
local function callDataStore(dataStore, methodName, ...)
return dataStore[methodName](dataStore, ...)
end
return callDataStore
|
jack = require("luajack")
RBUFSIZE = 1000
MIDI_CONTROLLER_OUT = "jack-keyboard:midi_out"
SYNTH_MIDI_IN = "sinesynth.lua:midi_in"
SYNTH_OUT = "sinesynth.lua:audio_out"
CAPTURE_1 = "system:capture_1"
PLAYBACK_1 = "system:playback_1"
PLAYBACK_2 = "system:playback_2"
NAME = "myecho"
auto_connect = arg[1] or "manual"
-... |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class AbilityBooleanField
local AbilityBooleanField = {
HeroAbility = 0x61686572, --ABILITY_BF_HERO_ABILITY
ItemAbility = 0x61697465, --ABILITY_BF_ITEM_ABILITY
CheckDependencies = 0x61636864, --ABILITY_BF... |
if(script~=nil)then script.Parent = nil end
pl = game:service("Players").LocalPlayer pl.Character.Archivable=true _character = pl.Character:clone()
chacback = _character:clone()
chacback.Name = " "--change name to What ever you want
--[[init stuff to control BEFORE REMOVING THE PLAYER :P--]]
function say(a... |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
vehicle19 = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "tcg 8 air speeder deed",
directObjectTemplate = "object/tangible/deed/vehicle_deed/tcg_8_air_speeder_deed.iff",
craftingValues = {
},
customizationStringNames = {},
customiza... |
-- do return end
local home = {
-- iconsize = 24,
-- fontsize = 11,
}
if true then -- do -- style
local theme = 'SL'
local function h2d(n) return 0+('0x'..n) end
local function H(c, bg) c = c:gsub('#','')
-- since alpha is not implemented, convert RGBA to RGB
-- assuming 0 is transparent and 255 is opaque... |
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
local zaproszenia = {}
local max_people_in_org = 55 ---- MAKSYMALNA LICZBA LUDZI W ORGANIZACJI!
function findPlayer(plr,cel)
local target=nil
if (tonumber(cel) ~= nil) then... |
require( "iuplua" )
l = iup.label{title="1", size="200x"}
function idle_cb()
local v = tonumber(l.title) + 1
l.title = v
if v == 10000 then
iup.SetIdle(nil)
end
return iup.DEFAULT
end
dlg = iup.dialog{l; title = "Idle Test"}
dlg:showxy(iup.CENTER, iup.CENTER)
-- Registers idle callback
iup.SetIdle(id... |
--thread_mgr.lua
local select = select
local tunpack = table.unpack
local tinsert = table.insert
local tsize = table_ext.size
local sformat = string.format
local co_yield = coroutine.yield
local co_create = coroutine.create
local co_resume = coroutine.resume
local co_runnin... |
-- Contains all common weaponskill calculations including but not limited to:
-- fSTR
-- Alpha
-- Ratio -> cRatio
-- min/max cRatio
-- applications of fTP
-- applications of critical hits ('Critical hit rate varies with TP.')
-- applications of accuracy mods ('Accuracy varies with TP.')
-- applications of damage mods (... |
ru = require 'repeat-util'
function feed_key(k)
dfhack.gui.getCurViewscreen():feed_key(df.interface_key[k])
end
function toassign()
feed_key 'D_BUILDJOB'
feed_key 'BUILDJOB_BED_ASSIGN'
if not df.global.ui_building_in_assign then
qerror('Select a bed')
end
end
toassign()
function tomap()
... |
Inherit = 'ScrollView'
UpdateDrawBlacklist = {['NeedsItemUpdate']=true}
TextColour = colours.black
BackgroundColour = colours.white
Items = false
NeedsItemUpdate = false
SpacingX = 2
SpacingY = 1
OnDraw = function(self, x, y)
if self.NeedsItemUpdate then
self:UpdateItems()
self.NeedsItemUpdate = false
end
Draw... |
--- @class GSchedule
--- The object returned by ai_schedule.New.
local GSchedule = {}
--- Adds a task to the schedule. See also Schedule:AddTaskEx if you wish to customize task start and run function names.
--- See also ENTITY:StartSchedule, NPC:StartEngineTask, and NPC:RunEngineTask.
--- @param taskname string @... |
loadfile("animbase.lua")(); SetNumColors(0)
cx = 0
cy = 0
cz = 0
function Initialize()
math.randomseed(os.time())
SetPlaneState(XY_PLANE, 0, true)
GetNextRandVoxel(0)
WriteConsole("Loaded sendplane.lua v0.1.");
return true
end
function GetNextRandVoxel(offset)
if not GetPlaneSt... |
resource_manifest_version "05cfa83c-a124-4cfa-a768-c24a5811d8f9"
file 'vw_prop_vw_disposal.ytyp'
data_file 'DLC_ITYP_REQUEST' 'vw_prop_vw_disposal.ytyp'
|
ITEM.name = "Shotgun Stock"
ITEM.description = "A generic stock for a shotguns."
ITEM.model = "models/props_lab/box01a.mdl"
ITEM.price = 25
ITEM.weight = 0.6
ITEM.exRender = true |
return {'leeuw','leeuwarden','leeuwardens','leeuwarder','leeuwardse','leed','leedgevoel','leedvermaak','leedwezen','leefbaar','leefbaarheid','leefbaarheidsstudie','leefeenheid','leefgebied','leefgemeenschap','leefgenot','leefgewoonte','leefgroep','leefkamer','leefklimaat','leefkuil','leefkwaliteit','leeflaag','leefloon... |
-----------------------------------
-- Area: Ranguemont Pass
-- NPC: Myffore
-- Type: NPC
-- !pos -179.951 4 -172.234 166
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(1);
end;
function onEventUpdate(player,csid,option)
end;
functio... |
local KUI, E, L, V, P, G = unpack(select(2, ...))
local KS = KUI:GetModule("KuiSkins")
local S = E:GetModule("Skins")
-- Cache global variables
-- Lua functions
-- WoW API / Variables
local IsAddOnLoaded = IsAddOnLoaded
local CreateFrame = CreateFrame
local hooksecurefunc = hooksecurefunc
local GetAddOnInfo = GetAddO... |
-- title: Snake Game
-- author: Craig Maloney
-- desc: Cheesy Snake Game Penguicon
-- script: lua
function init()
game_running=true
timer=20
p={x=5,y=5,dx=0,dy=1,dir=3,t=timer,s=2} -- player
seg={} --segments
table.insert(seg,1,{x=p.x,y=p.y})
fruit={x=0,y=0}
place_fruit()
end
function draw_segment()
table.... |
local ABOUT = {
NAME = "openLuup.gateway",
VERSION = "2020.03.08",
DESCRIPTION = "implementation of the Home Automation Gateway device, aka. Device 0",
AUTHOR = "@akbooer",
COPYRIGHT = "(c) 2013-2020 AKBooer",
DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Docum... |
require "Settings"
require "bulldozer"
require "GUI"
remote.add_interface("bulldozer",{})
defaultSettings = {
collect = true
}
removeStone = true
function resetMetatable(o, mt)
setmetatable(o,{__index=mt})
return o
end
local function onTick(event)
if event.tick % 10 == 0 then
for p... |
object_tangible_quest_box_magseal = object_tangible_quest_shared_box_magseal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_box_magseal, "object/tangible/quest/box_magseal.iff")
|
LibRoot.Brotli = SrcDir() .. "r0.codec/brotli"
-- ==============================================================================
ModuleRefInclude["brotli"] = function()
sysincludedirs
{
LibRoot.Brotli .. "/include",
}
end
-- ========================================================================... |
local t = My.Translator.translate
local f = string.format
My.Translator:register("en", {
side_mission_scan_asteroids = function(number)
return f("Scan %d asteroids", number)
end,
side_mission_scan_asteroids_description = function(number, sectorName, payment)
return Util.random({
... |
return {
version = "1.2",
luaversion = "5.1",
tiledversion = "1.2.0",
orientation = "orthogonal",
renderorder = "right-down",
width = 30,
height = 20,
tilewidth = 128,
tileheight = 128,
nextlayerid = 11,
nextobjectid = 158,
properties = {},
tilesets = {
{
name = "main_sheet",
f... |
slot2 = "CheckBandByAppStoreBean"
CheckBandByAppStoreBean = class(slot1)
CheckBandByAppStoreBean.ctor = function (slot0)
slot4 = AbstractBean
ClassUtil.extends(slot2, slot0)
end
CheckBandByAppStoreBean.start = function (slot0)
if PACKAGE_DEVICE_TYPE == 100000000 and isMobile and not isAndroid then
slot4 = "为了让大... |
player = game:GetService("Players").LocalPlayer
char = player.Character
mouse = player:GetMouse()
idleq = false
local skl = false
parts = {}
poses = {}
local obj3
local TARG10
local TARG11
-------------------------GENERATION OF WEAPON
Player=game:GetService('Players').LocalPlayer
Character=Player.C... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
-- A simple http server
--GPIO2
print('Server in esecuzione')
led = 4
lightState = 0
function makeString(l)
if l < 1 then return nil end -- Check for l < 1
local s = "" -- Start string
for i = 1, l do
n = math.random(32, 126) -- Generate random number from 32 to 126
if n == 96 then n = math... |
-----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0zs
-----------------------------------
require("scripts/globals/settings")
-----------------------------------
function onTrade(player, npc, trade)
return 1
end
function onTrigger(player, npc)
if (player:hasCompletedMission(COP, tpz.... |
-- iostream: Create an IO stream from a surface --
-- allows terminals and whatnot --
local dotos = require("dotos")
local vt = require("vt100")
local lib = {}
function lib.wrap(surface)
checkArg(1, surface, "table")
local s = {}
function s.read(n)
checkArg(1, n, "number")
return s.vt:read(n)
end
... |
local state = {
SONG = {
song = "test",
notes = {},
bpm = 102,
needsVoices = true,
speed = 1,
player1 = "bf",
player2 = "bf",
player3 = "gf",
gfVersion = "gf"
},
strumX = 42
}
local generatedMusic
local vocals
-- local bf
local song... |
slot2 = "ChargeTabCcsItem"
ChargeTabCcsItem = class(slot1)
ChargeTabCcsItem.onCreationComplete = function (slot0)
slot4 = CcsListViewItem
ClassUtil.extends(slot2, slot0)
slot5 = slot0
slot0.model.curTabIndexChangedSignal.add(slot2, slot0.model.curTabIndexChangedSignal, slot0.onTabIndexChanged)
end
ChargeTabCcs... |
require 'iuplua'
require 'iupluacontrols'
tree = iup.tree{}
function assoc (idx,value)
iup.TreeSetTableId(tree,idx,{value})
end
function addbranch(self,label,value)
self.addbranch = label
assoc(1,value or label)
end
function addleaf(self,label,value)
self.addleaf1 = label
assoc(2,value or label)
... |
-- @Date : 2016-06-12 14:19:18
-- @Author : MiaoLian (mlian@ulucu.com)
-- @Version : 1.0
-- @Description :
local template = require "sim_ulucu_sys_lib.resty.template"
local setmetatable = setmetatable
local escape = template.escape
local concat = table.concat
local pairs = pairs
local type = type
local... |
addon = WorkshopFileBase( "addon", {} )
|
Config.General = {
name = 'Shop',
blip = {
id = 52,
colour = 69,
scale = 0.6
}, inventory = {
{ name = 'burger', price = 5 },
{ name = 'hotdog', price = 5 },
{ name = 'water', price = 3 },
{ name = 'cola', price = 4 },
{ name = 'plastic_pouch', price = 3 },
{ name = 'bandage', price = 8 },
{ name... |
return {'zis'} |
require('engine.common')
local Room = GameObject:derive('Room')
local Stairs = require('objects.stairs')
local Wall = require('objects.wall')
function Room:_init(x,y,w,h)
GameObject._init(self)
self.items = {}
self.props = {w=10, h=10, tileW=64, tileH=64}
self:buildFrame()
self:placeStairs()
end
function R... |
local lazy = require 'me.strangepan.libs.util.v1.lazy'
local mock_computercraft = lazy 'me.strangepan.libs.computercraft.mock.v1.computercraft'
local mock_turtle = lazy 'me.strangepan.libs.computercraft.mock.v1.turtle'
local dig_lib = lazy 'me.strangepan.libs.computercraft.turtle.v1.dig'
local move_lib = lazy 'me.stran... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
---@class AcceptItemFunction
AcceptItemFunction = {}
-- The item.AcceptItemFunction script property for item containers
-- specifies... |
local TestUtil = require("api.test.TestUtil")
local IItemPotion = require("mod.elona.api.aspect.IItemPotion")
local Assert = require("api.test.Assert")
function test_IObject_change_prototype__replace_aspects()
local potion = TestUtil.stripped_item("elona.potion_of_hero")
local aspect = potion:get_aspect(IItemPo... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
fairy_queen_quell ... |
-- Minimalistic class implementation
local class = function(attr)
local klass = attr or {}
klass.__index = klass
klass.__call = function(_,...) return klass:new(...) end
function klass:new(...)
local instance = setmetatable({}, klass)
if klass.initialize then klass.initialize(instance, ...) end
ret... |
feature("#11 subtasks", function()
before_scenario(function()
when(todo, "should_show_maximize_button"):then_return(true)
todo.maximize_main_frame(game.players[1])
end)
after_scenario(function()
todo.should_show_maximize_button:revert()
todo.minimize_main_frame(game.players... |
require("busted.runner")()
local io = require("io")
local json = require("utils/json")
local ctx_path = "test/json/"
local readFile = function (file_path)
local f = assert(io.open(ctx_path..file_path, "r"))
local content = f:read("*all")
f:close()
return content
end
describe("JSON args deserializer / result... |
-- From 'Lua Lexer' at http://lua-users.org/wiki/LpegRecipes.
-- With long string matcher from http://www.inf.puc-rio.br/~roberto/lpeg/ because
-- the original one caused an LPeg zero-length loop error.
local lpeg = require 'lpeg'
local P, R, S, C, Cc, Ct = lpeg.P, lpeg.R, lpeg.S, lpeg.C, lpeg.Cc, lpeg.Ct
-- create a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.