content
stringlengths
5
1.05M
-- This is the was ripped straight outta pokemon, ghetto style. -- This UI is designed to display a pop-up message - requires specific size, and if a title should be used ui = { border = { left = { top = 1, bottom = 2 }, right = { top = 3, bot...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
local loader = require '../include/loader'.loadDir local type = require '../include/utils'.classType local Command = require '../objects/Command' --- TODO: Expose FILES_PATT to the end-user, allowing customizing local FILES_PATT = '([^%/]+)%.command%.lua$' local baseErr = 'Commands Loader (Command "%s") | %s' return...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
-- Author: philh30 -- -- 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 writing, so...
TabLeftItem = setmetatable({}, TabLeftItem) TabLeftItem.__index = TabLeftItem TabLeftItem.__call = function() return "TabLeftItem", "TabLeftItem" end function TabLeftItem.New(label, _type, mainColor, highlightColor) local data = { Label = label or "", ItemType = _type, Focused = false, ...
--- -- Override global(_G) namepace, inspired by kong -- return function(opts) -- For further setting opts = opts or {} -- Add a special randomseed for math, no arguments do local utils = require "core.utils.utils" local randomseed = math.randomseed local seed _G.math.r...
-- NetHack 3.7 Barb.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $ -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1991 by M. Stephenson -- NetHack may be freely redistributed. See license for details. -- des.level_flags("mazelevel", "outdoors", "hardflo...
-- Based on https://github.com/minetest-mods/homedecor_modpack/blob/master/computer/tetris.lua local shapes = { { { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } }, { { x = {1, 1, 1, 1}, y = {0, 1, 2, 3} }, { x = {0, 1, 2, 3}, y = {1, 1, 1, 1} } }, { { x = {0, 0, 1, 1}, y = {0, 1, 1, 2} }, { x = {1, 2...
ys = ys or {} slot1 = ys.Battle.BattleConst ys.Battle.BattleDepthChargeUnit = class("BattleDepthChargeUnit", ys.Battle.BattleWeaponUnit) ys.Battle.BattleDepthChargeUnit.__name = "BattleDepthChargeUnit" slot3 = ys.Battle.BattleTargetChoise ys.Battle.BattleDepthChargeUnit.Ctor = function (slot0) slot0.super.Ctor(slot0)...
local _M = {} function _M.filter(args) local cjson = require "cjson" local util = require("util") local RedisManager = require("RedisManager") local rurl = ngx.var.url local jsonbody = args.jsonbody local args = args.args local urlStr = args.urlMapStr if urlStr == "" then n...
local skynet = require "skynet" require "Common.Util.util" require "ECS.ECS" require "common.helper" RequireAllLuaFileInFolder("./game/System") local NORET = {} local CMD = {} local this = { --the scene object includes the role monster npc cur_scene_id = 0, scene_uid = 0, role_list = {}, npc_list = {}, monster_l...
local Condition = require('condition') local Field = require('field') local set = require('set') local ConditionMatchTests = test.declare('ConditionMatchTests', 'condition') local _DEFINES = Field.get('defines') local _KIND = Field.get('kind') local _PROJECTS = Field.get('projects') local _WORKSPACES = Field.get('wor...
solution "zdb" targetdir (".") newoption { trigger = 'debug-validation', description = "Log changes during certificate validation jobs (deprecated)" } configurations { "Debug", "Release" } if _OPTIONS["debug-validation"] then defines { "VALIDATION_DEBUG" } end fil...
local JSON = require('json') local Curl = require('curl') local transports = { polling = { send = function (self, data, callback) self:finish(data, callback) end, receive = function (req, res, callback) Curl.parse_request(req, function (err, data) callback(data) -- data is ...
-- Original Credits: Path of Guardians --[[ Available triggers: * OnMoveOrder * OnAttackOrder * OnBuyback * OnDeath * OnSpawn * OnFirstSpawn * OnTakeDamage * OnHeroKill * OnCreepKill * OnCreepDeny * OnAbilityCast * OnArcaneRune * OnDoubleDamageRune * OnBountyRune * OnHasteRune * OnIllusionRune * OnInvisibilityRune * O...
function f(...) return arg end
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' lua54 'yes' description 'ESX Police Job' version '1.0.0' server_scripts { '@es_extended/locale.lua', 'translation/sv.lua', 'translation/en.lua', 'config.lua', 'server/main.lua', } client_scripts { '@es_extended/locale.lua', ...
local expander_approx_frequent = require 'Q/OPERATORS/APPROX/FREQUENT/lua/expander_approx_frequent' local function approx_frequent(x, min_freq, err) assert(type(x) == 'lVector', 'x must be a lVector') assert(type(min_freq) == 'number' and min_freq > 0, 'min_freq must be a positive number') assert(type(e...
local _, C = unpack(select(2, ...)) if C["ActionBar"].Enable ~= true then return end -- Lua API local _G = _G local unpack = unpack -- Wow API local ActionHasRange = _G.ActionHasRange local hooksecurefunc = _G.hooksecurefunc local IsActionInRange = _G.IsActionInRange local IsUsableAction = _G.IsUsableAction local TO...
local tileSize = 32 local gravity = 600 _G.tileSize = tileSize _G.gravity = gravity local LevelEditor = require "leveleditor" local World = require "world" function love.load() love.graphics.setBackgroundColor(255,255,255) LevelEditor:initialize() World:initialize() end function love.update(dt) if World.state ==...
--[[ * The MIT License * Copyright (C) 2012 Derick Dong (derickdong@hotmail.com). All rights reserved. * * 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 * with...
local playerMeta = FindMetaTable("Player") function playerMeta:IsEmpire() return true end
-- tnp_player_cursorstack() -- Returns the item name under the cursor stack, or nil function tnp_player_cursorstack(player) if not player or not player.valid then return end if player.cursor_stack and player.cursor_stack.valid and player.cursor_stack.valid_for_read then return player.curs...
require "suproxy.utils.stringUtils" require "suproxy.utils.pureluapack" local ok,cjson=pcall(require,"cjson") local tableUtils=require "suproxy.utils.tableUtils" local extends=tableUtils.extends if not ok then cjson = require("suproxy.utils.json") end local logger=require "suproxy.utils.compatibleLog" local unic...
local rcall = redis.call local key = KEYS[1] .. ':' .. KEYS[2] return rcall('lpush', key, unpack(ARGV))
local Text = require "widgets/text" local Image = require "widgets/image" local Widget = require "widgets/widget" local UIAnim = require "widgets/uianim" local SBItemTile = Class(Widget, function(self, itemt) Widget._ctor(self, "Tipbox") self.bg = self:AddChild(Image()) self.bg:SetTexture(HUD_ATLAS, "inv_...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} include( "wos/advswl/storage/core/cl_core.lua" ) include( "wos/advswl/storage/core/cl_net.lua"...
local suit = require('modules.suit') local options = {} options = Gamestate.new() -- Menu de opções do menu principal return options
f {c=3} f {c=5,zindex=40,bg='#FF0000'} f {c=7,zindex=60, bg='#00FF00'}
--[[ lua tokenizer simplified to 1 All tokens that have a special meaning in Lua return type "Atom" 2 You can add constant keywords that override anything, their type is "Special" 3 to always return a type, value and processed value with the idea that the processed value will be the one used 3 The other usable ty...
local has_value = require("doom.utils").has_value local doomrc = require("doom.core.config.doomrc").load_doomrc() local functions = require("doom.core.functions") local function get_ts_parsers(languages) local langs = {} for _, lang in ipairs(languages) do -- If the lang is config then add parsers for JSON, Y...
include('shared.lua') function ENT:Initialize() local gun = ents.CreateClientProp(self.GunModel) local ang = self:GetAngles() gun:SetPos(self:GetPos() +ang:Up() *22 +ang:Right() *3.2) gun:SetAngles(ang) gun:SetParent(self) gun:Spawn() self.GunTurret = gun self.Target = NULL local mn, mx = self:GetRenderBounds...
if not ConVarExists("nzu_sandbox_enable") then CreateConVar("nzu_sandbox_enable", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE}) end if GetConVar("nzu_sandbox_enable"):GetBool() then if engine.ActiveGamemode() == "sandbox" then print("NZOMBIES UNLIMITED: Loading Sandbox...") AddCSLuaFile("nzombies...
if not zen then zen = {} end if not zen.chemistry then zen.chemistry = {} end require("prototypes.fluid") require("prototypes.item") require("prototypes.technology") require("prototypes.recipe")
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Naltira", 1516, 1500) if not mod then return end mod:RegisterEnableMob(98207, 98759) -- Naltira, Vicious Manafang mod.engageId = 1826 --------------------------------------------...
local endpoint_url = os.getenv("APILITYIO_URL") .. "/badip/" local cache_ttl = tonumber(os.getenv("APILITYIO_LOCAL_CACHE_TTL")) local x_auth_token = os.getenv("APILITYIO_API_KEY") local all_headers = {} if x_auth_token then all_headers = { ["X-Auth-Token"] = x_auth_token } end local ip = ngx.var.remote_add...
object_tangible_quest_computer_terminal = object_tangible_quest_shared_computer_terminal:new { } ObjectTemplates:addTemplate(object_tangible_quest_computer_terminal, "object/tangible/quest/computer_terminal.iff")
DoorTable = { Lock = {} } DoorCoOwners = {} local meta = FindMetaTable( "Player" ) function meta:CanUseDoor( index ) if !DoorTable[index] then return false end return DoorRestrictions[DoorTable[index]].CheckFunction( self ) end
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmL5A5_svg() local obj = GUI.fromHandle(_obj_newObject("...
exports.name = "bitmap" exports.version = "0.0.1" exports.author = "Niklas Kühtmann" exports.description = "Utility for working with bitmaps" local bit = require('bit') local mt = {} mt.__index = function(self, k) return rawget(self, k) or self.bits[k] or 0 end mt.__newindex = function(self, k, v) if tonumbe...
----------------------------------- -- Area: Kazham -- NPC: Eron-Tomaron -- Title Change NPC -- !pos -22 -4 -24 250 ----------------------------------- require("scripts/globals/titles") ----------------------------------- local eventId = 10013 local titleInfo = { { cost = 200, title = { ...
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) org-awesome, Damien Leone --------------------------------------------------- -- {{{ Grab environment local io = { lines = io.lines } local setmetatable = set...
ModifyEvent(-2, -2, -1, -1, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2); AddItem(8, 6); do return end;
local antig = { affectid="antig", name="Anti Gravity", stages={ { time=60, physics = { gravity = .3 } }, { time=60, physics = { gravity = .5 } }, { time=60, physics = { gravity = .9 } } }, onremove = functio...
object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_05_kessel:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel, "object/tangible/loot/creature/loot/collecti...
function love.conf(t) t.window.title = 'title' end
--------- [ Element Data returns ] --------- local function getData( theElement, key ) local key = tostring(key) if isElement(theElement) and (key) then return exports['[ars]anticheat-system']:callData( theElement, tostring(key) ) else return false end end --------- [ Resource System ] --------- local func...
modifier_elementalbuilder_passive_void_negative_lua = class({}) -------------------------------------------------------------------------------- function modifier_elementalbuilder_passive_void_negative_lua:IsHidden() if self:GetStackCount() < 1 then return true else return false end end --------------------------...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md -- -- Description: Check that SDL transfer `OnSystemCapabilitiesUpdated` notification from HMI to an App -- which...
includeFile("dungeon/death_watch_bunker/black_sun_assassin.lua") includeFile("dungeon/death_watch_bunker/black_sun_guard.lua") includeFile("dungeon/death_watch_bunker/black_sun_henchman.lua") includeFile("dungeon/death_watch_bunker/black_sun_thug.lua") includeFile("dungeon/death_watch_bunker/death_watch_battle_droid.lu...
object_mobile_dressed_gcw_rebel_buff_officer = object_mobile_shared_dressed_gcw_rebel_buff_officer:new { } ObjectTemplates:addTemplate(object_mobile_dressed_gcw_rebel_buff_officer, "object/mobile/dressed_gcw_rebel_buff_officer.iff")
local M = {} local h = require('helper') function M.setup() vim.g.table_mode_always_active = 1 h.map("n", "<Leader><Leader>a", "<cmd>TableModeRealign<CR>") end return M
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf 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, publish, dist...
local grid = require("src.grid") local palette = require("src.palette.pigment") local sounds = require("src.sounds") local state = class() local use_shader = true --setup instance function state:new() self.background_colour = palette.dark local function screen_canvas() return love.graphics.newCanvas(love.graphi...
function div(a, b) return math.floor(a/b) end XOR_l = {{0,1}, {1,0}} function xor(a, b) pow, c = 1, 0 while a > 0 or b > 0 do c = c + (XOR_l[(a % 2)+1][(b % 2)+1] * pow) a, b, pow = div(a, 2), div(b, 2), pow * 2 end return c end local ff = 2^32 - 1 function band(a,b) return (a + b - xor(a, b))/...
local nmap = require "nmap" local shortport = require "shortport" local snmp = require "snmp" local stdnse = require "stdnse" local table = require "table" description = [[ Checks for SCADA Siemens <code>SCALANCE</code> modules. The higher the verbosity or debug level, the more disallowed entries are shown. ]] --- -...
local bloomd = require("resty.bloomd") local function debug(name, ok, err) if type(err) == 'table' then local t = {} for k, v in pairs(err) do table.insert(t, k .. ":" .. tostring(v)) end err = table.concat(t, ",") end ngx.say(string.format("%15s -- ok: %5s, err: %s", name, tostring(ok), tostr...
JackpotConfig = {} JackpotConfig.MaxBet = 500000 --This is the max bet a user can bet JackpotConfig.MinBet = 10 -- This is the minimum amount a user can bet
local f = string.format local t = My.Translator.translate My.Translator:register("de", { comms_generic_hail = function(person) return Util.random({ "Hallo.", "Servus.", "Guten Tag.", "Seien Sie gegrüßt.", }) .. " " .. t("comms_generic_introduction", p...
Config = {} Config.Styles = { { label = 'Arrogant', value = 'move_f@arrogant@a' }, { label = 'Casual', value = 'move_m@casual@a' }, { label = 'Casual 2', value = 'move_m@casual@b' }, { label = 'Casual 3', value = 'move_m@casual@c' }, { label = 'Casual 4', value ...
fs_village_area = SharedObjectTemplate:new { clientTemplateFileName = "", planetMapCategory = "", planetMapSubCategory = "", autoRegisterWithPlanetMap = 1, zoneComponent = "ZoneComponent", objectMenuComponent = "ObjectMenuComponent", containerComponent = "ContainerComponent", gameObjectType = 33554442 } Obje...
require'nvim-treesitter.configs'.setup { ensure_installed = {"bash", "c", "cmake", "cpp", "css", "html", "javascript", "json", "latex", "make", "python", "rust", "toml", "typescript", "yaml", "vim"} , highlight = { enable = true, -- Setting this to true will run `:h syntax` and tree-sitter at the same time....
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('AmbientLife', { group = "VisitSpot", id = "Playground", param1 = "unit", param2 = "bld", param3 = "obj", param4 = "spot", param5 = "slot_data", param6 = "slot", param7 = "slotname", PlaceObj('XPrgCheckExpression', { 'expression', "...
--[[ Name: electronics_store.lua For: SantosRP By: Ultra ]]-- local MapProp = {} MapProp.ID = "electronics_store" MapProp.m_tblSpawn = { { mdl = 'models/props/cs_office/phone_p2.mdl',pos = Vector('-2401.705078 -1995.842773 112.655205'), ang = Angle('0.000 77.278 -90.000') }, { mdl = 'models/props/cs_office/phone_...
--[[ Name: speed_test-ain_ef.lua Desc: This example will read a thermocouple connected to AIN0 as fast as possible Note: In most cases, users should throttle their code execution using the functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)" On a T7 (FW 1.0282) this exa...
local min, max, sqrt, abs, atan2, pi = math.min, math.max, math.sqrt, math.abs, math.atan2, math.pi --- Contains some basic math functions. --- The reason for the naming is to avoide the standard `math` module from lua. local Maph = {} function Maph.moveToward(from, to, delta) ...
local templates = require "atlas.templates" local render = templates.render local controllers = {} function controllers.home(request) return render(request, "home.html", {}) end function controllers.about(request) return render(request, "about.html", {}) end return controllers
_G.my = { shell = function (command) local handle = io.popen(command) local result = handle:read("*a") handle:close() return result end, SyncAndRestartConfig = function () _G.my.shell('bash ~/main/src/dotfiles/sync.sh') vim.cmd('PackerCompile') end, ...
---@class CS.UnityEngine.Vector4 : CS.System.ValueType ---@field public kEpsilon number ---@field public x number ---@field public y number ---@field public z number ---@field public w number ---@field public Item number ---@field public normalized CS.UnityEngine.Vector4 ---@field public magnitude number ---@field publ...
-- KillZoneServer.lua -- Kills any player that enters this component -- Created by Nicholas Foreman (https://www.coregames.com/user/f9df3457225741c89209f6d484d0eba8) local Void = script:GetCustomProperty("Trigger"):WaitForObject() local function enteredVoid(trigger, player) if(not player:IsA("Player")) then return e...
local CmdLine = torch.class('torch.CmdLine') local function strip(str) return string.match(str, '%-*(.*)') end local function pad(str, sz) return str .. string.rep(' ', sz-#str) end function CmdLine:error(msg) print('') io.stderr:write(msg) print('') self:help() os.exit(1) end function CmdLine:...
local ok, telescope = pcall(require, "telescope") if not ok then return end telescope.setup({}) telescope.load_extension("fzf") telescope.load_extension("gh") local r = require("user.remap").nnoremap r("<leader>ff", ":Telescope find_files<CR>") r("<C-p>", ":Telescope git_files<CR>") r("<leader>of", ":Telescope oldfi...
--- RP Revive, Made by DEJSU --- local reviveWait = 0 -- Change the amount of time to wait before allowing revive (in seconds) local isDead = false local timerCount = reviveWait -- Turn off automatic respawn here instead of updating FiveM file. AddEventHandler('onClientMapStart', function() Citizen.Trace...
debug_print("Application: " .. get_application_name()) debug_print("Window: " .. get_window_name());
----------------------------------- -- Area: Metalworks -- NPC: Moyoyo -- Type: Standard NPC -- !pos 19.508 -17 26.870 237 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(2...
local table = require 'ext.table' local range = require 'ext.range' local greekSymbolsAndNames = table{ {alpha = 'α'}, --άλφα [a] [aː] [a] {beta = 'β'}, --βήτα [b] [v] {gamma = 'γ'}, --γάμμα [ɡ], [ŋ][ex 1] [ɣ] ~ [ʝ], [ŋ][ex 2] ~ [ɲ][ex 3] {delta = 'δ'}, --δέλτα [d] [ð] {epsilon = 'ε'}, --έψιλον [e] ...
local _E local function player(index) local slotFrame = index and _G["TradePlayerItem"..index.."ItemButton"] local slotLink = index and GetTradePlayerItemLink(index) SyLevel:CallFilters("trade", slotFrame, _E and slotLink) end local function target(index) local slotFrame = index and _G["TradeRecipientItem"..inde...
--[[ For easy composition, UDVListEntry function simply turns a 'struct udev_list_entry' into a table with two named fields. If either of the fields is NULL on the C side, it will not show up within the table. safeffistring is used to ensure we don't crash in case a NULL value is present. Instead it will simpl...
require "prototypes.global-robot-combinator"
----------------------------------------- -- ID: 18270, 18271, 18638, 18652, 18666, 19747, 19840, 20555, 20556, 20583 -- Item: Mandau -- Additional Effect: Poison ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") -----------------...
require "app.game.gm.gm" require "app.game.gm.helper" require "app.game.gm.sys" require "app.game.gm.admin"
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
local config = require("config") local ltn = {} function ltn.save_stop_update(logistic_train_stops) global.last_ltn_update = logistic_train_stops end function ltn.get_network(stop_id) if ltn.is_ltn_stop(stop_id) then return global.last_ltn_update[stop_id].network_id end end function ltn.is_ltn_s...
function fire_effect(keys) local target = keys.target local particleName = "particles/units/heroes/hero_zuus/zuus_lightning_bolt.vpcf" local particle = ParticleManager:CreateParticle(particleName, PATTACH_WORLDORIGIN, target) local vec = target...
-- 从httpc库导入并且使用 local httpc = require "httpc" local basic_key, basic_value = httpc.basic_authorization("myusername", "mypassword") print(basic_key, basic_value) local jwt_header_key, jwt_header_value = httpc.jwt("mysecret", [[{"key1":"value1","key2":"value2"}]]) print(jwt_header_key, jwt_header_value) -- 从httpc类库中...
local planet = require("Planet") local vehicle = Class({ topSpeed = 60; name = ""; value = 100; manufacturer = ""; engineStatus = "off"; start = function(self) self.engineStatus = "on" end; stop = function(self) self.engineStatus = "off" end; }) local car = Class({ value = 200; hor...
local function LoadCustomLibrary(Name) return require(script.Parent[Name]) end local Promise = LoadCustomLibrary("Promise") local Signal = LoadCustomLibrary("Signal") local MakeMaid = LoadCustomLibrary("Maid").MakeMaid local HttpPromise = LoadCustomLibrary("HttpPromise") local LongPoll = {} LongPoll.__index = LongP...
----------------------------------- -- Area: Silver Sea Remnants -- NM: Long-Armed Chariot ----------------------------------- require("scripts/globals/titles") ----------------------------------- function onMobDeath(mob, player, isKiller) player:addTitle(tpz.title.MOON_CHARIOTEER) end
return { ["GH0001"] = { category = "book", title = "Rhythmic Illusions", subtitle = "for drums", author = "Gavin Harrison", publisher = "Warner", isbn = "1576236870", year = "1996", comment = "plus cd", }, ["GH0002"] = { --...
--[[ Flying Saucer Training This is a training mission which teaches many basic (and not-so-basic) moves with the flying saucer. Lesson plan: - Taking off - Basic flight - Landing safely - Managing fuel - Changing saucers in mid-flight - Diving - Dropping weapons from flying saucer - Firing from flying sau...
local base = require 'http.adapters.nginx.base' local describe, it, assert = describe, it, assert describe('http.adapters.nginx.base', function() describe('response writer', function() it('get or set status code', function() local w = setmetatable({ngx={}}, {__index=base.ResponseWriter}) ...
-- -- Please see the readme.txt file included with this distribution for -- attribution and copyright information. -- -- -- DATA STRUCTURES -- -- rCreature -- sType -- sName -- nodeCreature -- sCreatureNode -- nodeCT -- sCTNode -- rEffect -- sName = "" -- sExpire = "" -- nInit = # -- sSource = "" -- ...
require('actors/space/vehicles/Ship') local image = passion.graphics.getImage('images/image.png') LensCulinaris = class('LensCulinaris', Ship) function LensCulinaris:initialize(ai, x, y, quadTree) super.initialize(self, ai, x,y, 16,16, -- Shapes { circle={0,0,16} }, -- Slots { frontLeft= { x=6, y=-...
MaskMaterialModule = MaskMaterialModule or class(ItemModuleBase) MaskMaterialModule.type_name = "MaskMaterial" function MaskMaterialModule:init(...) self.clean_table = table.add(clone(self.clean_table), {{param = "pcs", action = "no_number_indexes"}}) return MaskMaterialModule.super.init(self, ...) end functi...
-- SPDX-License-Identifier: MIT local version = '1.1.7' hexchat.register( 'Unhighlight Channels', version, 'Allows you to convert highlights to regular text events for each channel' ) ---------------------------------------------------- -- Utility functions and variables --------------------------------------------...
local torch = require "torch" -- Lua 5.2 compatibility local unpack = unpack or table.unpack local HDF5DataSet = torch.class("hdf5.HDF5DataSet") --[[ Get the sizes and max sizes of an HDF5 dataspace, returning them in Lua tables ]] local function getDataspaceSize(nDims, spaceID) local size_t = hdf5.ffi.typeof("h...
require('constants') require('quest') -- Bagra will use her black magic to create an unholy dagger from the three -- relics. This dagger can be given to Amaurosis to split the universe in -- two and cause its destruction. local function bagra_shrine_precond_fn() return not (is_quest_completed("blacksmith_shrine")) ...
-- A "condition machine" scheduler. -- -- Not quite sure yet if this is meaningful, but here is the idea: On -- a uC, it is very convenient to work with round robin polling tasks. -- E.g. instead of using an explicit scheduler, resume each task and -- let it inspect its environment and decide if it is ready to -- conti...
require "luaScript/ActionsTest/ActionsName" local ActionIdx = -1 local size = CCDirector:sharedDirector():getWinSize() local titleLabel = nil local subtitleLabel = nil local function BackAction() ActionIdx = ActionIdx - 1 if ActionIdx < 0 then ActionIdx = ActionIdx + Action_Table.ACTION_LAYER_COUNT end re...