content stringlengths 5 1.05M |
|---|
local function get_param(params, key, default)
if params == nil or type(params) ~= "table" or vim.tbl_islist(params) then
return default
elseif not vim.fn.has_key(params, key) then
return default
end
return params[key]
end
local function normalize_params(params)
return {
for... |
--load the 3D lib
local dream = require("3DreamEngine")
love.window.setTitle("First Person Game")
love.mouse.setRelativeMode(true)
--settings
local projectDir = "examples/firstpersongame/"
dream:init()
--load all materials
dream:loadMaterialLibrary(projectDir .. "materials")
--load object
local scene = dream:loadObj... |
-- Generated from test_single.lua.tl using ntangle.nvim
local client1, client2
local nodejs = true
local client1pipe = [[\\.\\pipe\nvim-5824-0]]
local client2pipe = [[\\.\\pipe\nvim-19768-0]]
local num_connected = 0
events = {}
local outputbuf
local outputwin
local test_passed = 0
local test_failed = 0
outputbuf =... |
function StringFormat(arg)
local fmt = arg.format
local inputlist = {}
local cnt = 1
function unpack (t, i)
i = i or 1
if t[i] ~= nil then
return t[i], unpack(t, i + 1)
end
end
for i,v in pairs(arg.input) do -- TODO: Order
inputlist[cnt] = v
cnt = cnt + 1
end
local outstr = ''
if #inputlist > 0 t... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Medkit"
ITEM.model = Model("models/Items/HealthKit.mdl")
ITEM.description = "A combine manufactured medicine kit with various painkillers and medical equipment."
ITEM.category = "Medical"
ITEM.flag = "m"
I... |
-- Clamps a value between minimum and maximum, inclusive.
--# My own implementation to avoid calling into Mathf
function Clamp(n, Min, Max)
--# Try explicit if/else rather than using math.min/max.
--# Ironic, the idented version probably uses more bytes than we save...
if n < Min then return Min elseif n > Max... |
object_tangible_deed_guild_deed_tatooine_guild_04_deed = object_tangible_deed_guild_deed_shared_tatooine_guild_04_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_guild_deed_tatooine_guild_04_deed, "object/tangible/deed/guild_deed/tatooine_guild_04_deed.iff")
|
local REGISTERID = 940012
local id = 941001
function Elemental_Complete(player, quest)
player:SpawnCreature(id, 5061.783, -2112.326, 1369.243, 2, 14, 0)
end
RegisterQuestEvent(REGISTERID, 1, "Elemental_Complete")
|
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_frmkpta1_svg()
local obj = GUI.fromHandle(_obj_newObject(... |
---@class world
local world = {
}
---@overload fun(): gobject
---@overload fun(transform: t2f): gobject
---@overload fun(parent: node): gobject
---@overload fun(parent: node, transform: t2f): gobject
---@overload fun(prefab: prefab): gobject
---@overload fun(prefab: prefab, transform: t2f): gobject
---@overload fun(pr... |
-----------------------------------------
-- ID: 5885
-- Item: saltena
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +6% (cap 100)
-- Increases rate of combat skill gains by 20%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
... |
local classes = require('../classes')
local base = require('./base')
local Permissions = require('./Permissions')
local Overwrite = classes.new(base)
function Overwrite:__constructor () -- .parent = channel / .parent = user/server / .parent = client
self.permissions = Permissions(self)
end
function Overwrite:__onU... |
-- Tree Sap
ele.helpers.register_liquid("tree_sap", {
description = "Tree Sap",
tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
alpha = 200,
liquid_viscosity = 7,
post_effect_color = {a = 103, r = 84, g = 34, b = 0},... |
_package_("controller")
component("TestController")
local GET = {}
local POST = {}
function onDestory(self)
print('TestController.onDestory')
end
function onAwake(self)
print('TestController.onAwake')
package:LogError('aaa')
package:LogDebug('aaa')
--self:AddEventListener("testevent")
local ... |
module("moonscript.compile", package.seeall)
local util = require("moonscript.util")
local data = require("moonscript.data")
local dump = require("moonscript.dump")
require("moonscript.compile.format")
require("moonscript.compile.types")
local reversed = util.reversed
local ntype = data.ntype
local concat, insert = tab... |
local cv = require 'cv'
require 'cv.imgcodecs'
require 'cv.highgui'
if not arg[1] then
print('Usage: `th demo/imshow.lua path-to-image`')
print('Now using demo/data/lena.jpg')
end
local path = arg[1] or 'demo/data/lena.jpg'
local im = cv.imread {path, cv.IMREAD_GRAYSCALE}
if im:nElement() == 0 then
error... |
---@class WorldFlares : zombie.iso.weather.WorldFlares
---@field public ENABLED boolean
---@field public DEBUG_DRAW boolean
---@field public NEXT_ID int
---@field private flares ArrayList|Unknown
WorldFlares = {}
---@public
---@return int
function WorldFlares:getFlareCount() end
---@public
---@return void
function Wo... |
-- learn from https://github.com/geekscape/mqtt_lua
-- by Qige <qigezhao@gmail.com>
-- 2017.06.29
local echo = io.write
local function isPsp() return (Socket ~= nil) end
if (isPsp()) then socket = Socket end -- Compatibility !
local debug_flag = false
local function set_debug(value) debug_flag = value end
local f... |
Config = {}
Config.EnableJobLogs = true -- only turn this on if you are using esx_joblogs
Config.Locale = 'en'
|
--Define if battlefield is installed
equipment = true --Default: True |
local rules = {}
-- =================== Rules for natural guidance element selection ============
-- decision about whether natural guidance should be used for given type and category
rules.natural_guidance_type_allowed = { Attribute = 'type',
Values = { ['traffic_light'] = { ... |
local modules = require( "modules" )
local function handleChat( from, message )
local recipients = { }
for _, client in ipairs( chat.clients ) do
if client ~= from and client.state == "chatting" then
recipients[ client ] = message
end
end
chat.event( "chat", from, message, recipients )
for client, newMe... |
------------------------------------------------------------
-- SpeedTrap- A Simple FiveM Script, Made By Jordan.#2139 --
------------------------------------------------------------
----------------------------------------------------------------------------------------------
-- !WARNING! !WARNING! ... |
local pg = require "parser-gen"
local peg = require "peg-parser"
local re = require "relabel"
local eq = require "equals"
local equals = eq.equals
local pr = peg.print_r
-- terminals
-- space allowed
rule = pg.compile [[
rule <- 'a'
]]
str = "a a aa "
res = pg.parse(str,rule)
assert(res)
-- space not allowed
... |
--[Comment]
--this is a example function definition for BabeLua autocompletion function.
--arg1 : arg1;
--arg2 : arg2;
--arg3 : arg3;
--return : nil;
babelua_example_function = function(arg1,arg2,arg3) end;
--[Comment]
--this is a example table definition for BabeLua autocompletion function.
babelua_example_table = {}... |
ACTION.Name = "EncodeResources"
ACTION.Description = "Generate a includable header version of resources"
ACTION.Function = function ()
print("Encoding resources ...")
local startClock = os.clock()
local modules = os.matchdirs("../src/Nazara/*")
table.insert(modules, "../SDK/src/NDK")
for k, modulePath in pairs(mo... |
return function(uid, peer, event)
local dx = 1 * (event.x == 0 and 0 or event.x > 0 and 1 or -1)
local dy = 1 * (event.y == 0 and 0 or event.y > 0 and 1 or -1)
local position = game.entities[uid].position
local player = game.entities[uid].player
local collisions, count
position.x, position.y, c... |
--[[
ItemSystems.StatSheet
================
An object that calculates the players stats and contains various methods
to get and modify information.
]]
local StatSheet = {}
StatSheet.__index = StatSheet
--------------------------------------------------------------------------------------------------... |
-- English localization file for Brazilian Portuguese (ptBR)
local AceLocale = LibStub:GetLibrary("AceLocale-3.0");
local L = AceLocale:NewLocale("ElvUI", "ptBR");
if not L then return; end
L["Ancient Mana"] = "Mana Ancestral"
L["Apexis Crystal"] = "Cristal Apexis"
L["Arakkoa Archaeology Fragment"] = "Fragmento de Ar... |
name = "Character Stat Editor"
description = "Edit Character Stats"
author = "Shu"
version = "0.0.1"
forumthread = ""
api_version = 10
api_version_dst = 10
dont_starve_compatible = true
reign_of_giants_compatible = true
shipwrecked_compatible = true
dst_compatible = true
all_clients_require_mod = false
client_only_... |
object_tangible_tcg_series5_hangar_ships_ykl37r = object_tangible_tcg_series5_hangar_ships_shared_ykl37r:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_ykl37r, "object/tangible/tcg/series5/hangar_ships/ykl37r.iff") |
local function do_check(x, expected_type)
if (type(x) ~= expected_type) then
error(expected_type .. " expected, got " .. type(x))
end
end
function checknumber(n)
do_check(n, "number")
end
function checkstring(n)
do_check(n, "string")
end
function checknil(n)
do_check(n, "nil")
end
functi... |
_G.Sequence = Sequence or Class()
--[[local function validateAct( actID )
if (!table.HasValue(VALID_ACTS, actID)) then
error("act " .. tostring(actID) .. " invalid")
end
return actID
end]]
function Sequence:_init( actID, duration, startW, endW )
self.actID = actID --validateAct(actID)
sel... |
include("shared.lua")
surface.CreateFont( "ItemOneFont", {
font = "Arial", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
extended = false,
size = 25,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout... |
local Missile = {}
function Missile.fireFrom(game, startX, startY)
local gunsound = love.audio.newSource("Bonus/sfx_laser1.ogg", "static")
gunsound:play()
game:insertEntity(Missile.create(startX, startY))
end
function Missile.create(startX, startY)
local inst = {}
inst.position = {x = startX, y = startY}
... |
-- Nebual 2012 (nebual@nebtown.info) presents:
-- NADMOD Prop Protection
-- Inspired by Spacetech's Simple Prop Protection, <3's
-- Bugs? Feature requests? "why are you using JSON?!"? Email me or poke the Facepunch http://www.facepunch.com/showthread.php?t=1221183
if not NADMOD then
-- User is running without ... |
return function()
local unload = require "deftest.util.unload"
describe("unload.lua", function()
before(function()
end)
after(function()
end)
it("should remove specific modules from loaded packages", function()
local unload1_module_a = require "test.data.unload1.module_a"
local unload1_module_b =... |
-- [weapon_id] = model,
local models = {
[22] = 346,
[23] = 347,
[24] = 348,
[25] = 349,
[26] = 350,
[27] = 351,
[28] = 352,
[29] = 353,
[30] = 355,
[31] = 356,
[32] = 372,
[33] = 357,
[34] = 358,
}
function createModel(weapon, bone, x, y, z, rx, ry, rz)
local player = source
local r = getPedRotation(pl... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AutomatedScrollingFrame = require(ReplicatedStorage.Components.AutomatedScrollingFrame)
local Roact = require(ReplicatedStorage.Vendor.Roact)
local function Cruft()
return Roact.createElement("Frame", {
BackgroundColor3 = Color3.new(math.random(),... |
---------------------------------------------------------------------
-- Desarrollador/Developer: -Rex-
-- Proyecto/Proyect: N/A
-- Contacto/Contact: https://www.facebook.com/rexscripting/
--
-- Libre uso y modificacion, No borrar los creditos, Gracias
-------------------------------------------------... |
local kata = {}
function kata.nbYear(p0, percent, aug, p)
f = 1+percent/100
year = 0
while p0 < p do
year = year + 1
p0 = p0*f + aug
end
return year
end
return kata |
local Ammo = ACF.RegisterAmmoType("SM", "AP")
function Ammo:OnLoaded()
self.Name = "Smoke"
self.Description = "A shell filled white phosporous, detonating on impact. Smoke filler produces a long lasting cloud but takes a while to be effective, whereas WP filler quickly creates a cloud that also dissipates quickly.... |
-- sleipnir workspace
workspace "sleipnir"
filename "sleipnir"
architecture "x64"
configurations {
"debug", -- debug: logging, debugging
"release", -- release: logging, no debugging
"dist" -- distribution: no logging, no debugging
}
include "sleipnir"
include "sandbox"
|
#!/usr/bin/env texlua
-- Build script for LaTeX2e "amsmath" files
-- Identify the bundle and module
bundle = ""
module = "amsmath"
-- CTAN's name for this is a bit different from ours
ctanpkg = "latex-amsmath"
-- Location of main directory: use Unix-style path separators
maindir = "../.."
-- Minor modifications to... |
local registerAsserts = require 'registerAsserts'
local Vectors = require 'stuart-ml.linalg.Vectors'
registerAsserts(assert)
describe('Apache Spark TestingUtilsSuite', function()
it('Comparing numbers using relative error', function()
assert.equal_relTol(23.1, 23.52, 0.02)
assert.equal_relTol(23.1, 22.74, ... |
-----------------------------------
-- Ability: Aggressor
-- Enhances accuracy but impairs evasion.
-- Obtained: Warrior Level 45
-- Recast Time: 00:05:00
-- Duration: 00:03:00
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onAbilityCheck(player,targe... |
--====================================================================--
--
-- Code by Piotr Machowski <piotr@machowski.co>
--
-- inspired by DMC Lua Library: Promises
--====================================================================--
local VERSION = "0.1.0"
--===================================================... |
function vRPbm.setSpikesOnGround()
local ped = GetPlayerPed(-1)
x, y, z = table.unpack(GetEntityCoords(ped, true))
h = GetEntityHeading(ped)
ox, oy, oz = table.unpack(GetOffsetFromEntityInWorldCoords(ped, 0.0, 1.0, -2.0))
spike = GetHashKey("P_ld_stinger_s")
RequestModel(spike)
while not HasModelLoa... |
fadeModule = {
timer = 0,
projectedTimeTaken = 0,
position = 0, -- full black
velocity = 0,
table = {
-- position 15 is black
-- position 0 is the original color
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},
{2,2,2,2,2,2,1,1,1,0,0,0,0,0,0},
{3,3,3,3,3,3,1,1,1,0,0,0,0,0,0},
{4,4,4,... |
return {'ekster','eksteroog','eksternest','eksaarde','eksel','eksterogen','eksters','ekstertje','ekstertjes','eksternesten','eksteroogje'} |
local local0 = 0.4
local local1 = 0 - local0
local local2 = 0 - local0
local local3 = 0 - local0
local local4 = 0 - local0
local local5 = 0 - local0
local local6 = 4.1 - local0
local local7 = 0 - local0
local local8 = 0 - local0
local local9 = 0 - local0
local local10 = 0 - local0
local local11 = 5.4 - local0
local loc... |
-- Contains the core components used by the game.
-- Also defines a factory to create objects based on a list of components
-- NBNB All game objects reference other objects by integer ID, NOT by direct reference
-- (This allows for easier serialisation)
-- (Might consider changing this to dynamically assign IDs on sav... |
insulate("basic setup", function()
require "init"
require "spec.mocks"
require "spec.asserts"
it("should run getting started", function()
require = function()
-- disable the require function to prevent errors
end
-- tag::getting-started[]
-- Name: Hello Liv... |
return {
cook_ralsei = function(cutscene)
for _,battler in ipairs(Game.battle.party) do
battler:heal(30)
end
cutscene:text("* Ralsei cooked up a cure.")
cutscene:text("* If you're sick, shouldn't\nyou have some soup?\nSay \"aah\"~!", "face_17", "ralsei")
cutscene:... |
require "container.init"
_ENV=namespace "test"
function testTime(luaf)
local startTime=os.clock()
luaf()
local endTime=os.clock()
print("it cost time "..(endTime-startTime).." s ")
end
|
local ffi = require("ffi")
local engine = engine
local Package = SDKGen.Package
local DefaultEnum = engine.FindObject("Enum Core.Default__Enum", engine.Classes.UEnum)
function Package:ProcessEnum(enum)
if enum == DefaultEnum then return end
SDKGen.DebugPrint("[SDKGen] Enum " .. enum:GetFullName())
local enumText... |
-- MutantWander
-- For when the AI is in just a random wander state
local Behavior = CreateAIBehavior("MutantWander", "MutantBase",
{
Alertness = 0,
---------------------------------------------------------------------------
Constructor = function(self, entity)
self:Log("$9MutantWander");
AIBehavior.DEFAULT:A... |
local Value = require(script:WaitForChild("State"):WaitForChild("Value"))
local Computed = require(script:WaitForChild("State"):WaitForChild("Computed"))
local Property = require(script:WaitForChild("State"):WaitForChild("Property"))
local Attribute = require(script:WaitForChild("State"):WaitForChild("Attribute"))
loca... |
local thismod = minetest.get_current_modname()
local wac = _G[thismod]
wac.find_nodes = function(pos, min, max, ...)
min = {
x = pos.x - (min.x or min[1] or 0),
y = pos.y - (min.y or min[2] or 0),
z = pos.z - (min.z or min[3] or 0)
}
max = {
x = pos.x + (max.x or max[1] or 0),
y = pos.y + (max.y or max[2]... |
local policy = require('apicast.policy')
local _M = policy.new('HTTP Code Overwrite', 'builtin')
local ipairs = ipairs
local new = _M.new
function _M.new(config)
local self = new(config)
self.http_statuses = {}
for _, code in ipairs(config.http_statuses or {}) do
self.http_statuses[code.upstream] =... |
--
-- Anjelica Enabled Modules
--
local modules = {
'jukebox',
'soundboard',
'autoregister',
'welcometones'
}
return modules
|
require 'nn'
require 'cudnn'
local opts = require '__3_discogan.script.opts'
local gen = require '__3_discogan.models.gen'
local dis = require '__3_discogan.models.dis'
-- basic settings.
torch.setdefaulttensortype('torch.FloatTensor')
torch.setnumthreads(2)
-- get opt ans set seed.
local opt = opts.parse(arg)
prin... |
--[[
<°))><
Public Services - Shops
(c) 2008 mabako network. All Rights reserved.
]]
local shops = { }
local shopFromCol = { }
function switchJetpack( source )
if( not isPedOnGround( source ) ) then return end
if( doesPedHaveJetPack( source ) ) then
removePedJetPack( source )
elseif( getEle... |
-- language specific higlights
local lush = require("lush")
local base = require("gruvbox.base")
local styles = require("gruvbox.settings").styles
local table_concat = table.concat
-- golang
local golang = lush(function()
return {
goDirective({ base.GruvboxAqua }),
goConstants({ base.GruvboxPurple }),
go... |
local StageDisplay = Def.ActorFrame{
BeginCommand=cmd(playcommand,"Set";);
CurrentSongChangedMessageCommand=cmd(finishtweening;playcommand,"Set";);
};
local StageIndex = {
Stage_1st = 0,
Stage_2nd = 1,
Stage_3rd = 2,
Stage_4th = 3,
Stage_Final = 4,
Stage_Extra1 = 5,
Stage_Extra2 = 6,
}
for s in ivalues(S... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
-- Add the classicx src directory to package.path
package.path = package.path .. ";../src/?.lua"
-- Add the repository root directory to package.path
package.path = package.path .. ";../?.lua"
-- Load the test cases i... |
ClassicLFGToast = {}
ClassicLFGToast.__index = ClassicLFGToast
setmetatable(ClassicLFGToast, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function ClassicLFGToast.new(x, y, width, height)
local self = setmetatable({}, ClassicLFGToast)
self.Window = ClassicLFGWindow("Cl... |
require("ZZBase64")
require("TSLib")
local ts = require("ts")
local image = require("tsimg")
local json = ts.json
function post(base64str)
--local url = "http://cd.51ruzhu.com:30000/discern/ocrSub/post"
local url = "http://101.34.73.218:30000/cd1080/getLocation"
local data = "{\"body\":\""..base64str.."\",\"uuid\... |
ITEM.ID = "suitcase";
ITEM.Name = "Suitcase";
ITEM.Description = "A plain brown suitcase. Useful for carrying more things.";
ITEM.Model = "models/weapons/w_suitcase_passenger.mdl";
ITEM.Weight = 2;
ITEM.FOV = 20;
ITEM.CamPos = Vector( 48.28, 50, 38.11 );
ITEM.LookAt = Vector( 0, 0, -9.7 );
ITEM.CarryAd... |
dxText = {}
dxText_mt = { __index = dxText }
local idAssign,idPrefix = 0,"c"
local g_screenX,g_screenY = guiGetScreenSize()
local visibleText = {}
------
local defaults = {
fX = 0.5,
fY = 0.5,
bRelativePosition = true,
strText = "",
bVerticalAlign = "center",
bHorizontalAlign ... |
testIntDict = {
[1] = {
isMale = false,
model_female = {"Text"},
name = "ohmhygo",
carrer_icon_path = "Text",
model_male = {"Text"},
hero_id = 6,
desc = "Text"
},
[2] = {
isMale = false,
model_female = {"Text"},
name = "ohmhygo1",
carrer_icon_path = "Text",
model_male = {"Text"},
hero_id = ... |
a = { 6, s = "hello world", ["subtable"] = { 1, 2, 3, key = "value"} }
b = a["subtable"].key
c = a.subtable.key
print(b, c) |
local VendorTargets = {}
VendorTargets.__index = VendorTargets
function VendorTargets.new(raw_targets)
vim.validate({ raw_targets = { raw_targets, "table" } })
local targets = {}
local errs = require("vendorlib.vendor.misclib.multi_error").new()
for _, raw_target in ipairs(raw_targets) do
local target, er... |
-----------------------------------
-- Area: Misareaux Coast
-- NM: Upyri
-----------------------------------
-- NOTES/TO DO: Tends to use weapon skills twice in a row during night time, based on retail testing.
-- There is about a 1-2 second delay, and will use the same move twice. He will rarely use a weaponskill 3... |
_G.savedEnv = getfenv()
module( "mode_generic_defend_ally", package.seeall )
function GetDesire()
--Reflex action, so the desire is processed here instead of calling out.
--If the action is desired, the desire is set to 1.0 to override strategy actions.
bot = GetBot()
retAllies = bot:GetNearbyHeroes(12... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XPropControl",
group = "PreGame",
id = "PropPayload",
PlaceObj('XTemplateWindow', {
'__class', "XPropControl",
'RolloverAnchor', "right",
'HAlign', "left",
'RolloverOnFocus', true,
'MouseCursor', "UI... |
--- << this comment line skips an ldoc bug(?) >>
---
-- A few utility functions.
--
-- @module M6502.utils
local M = {}
---
-- Reads the whole contents of a file.
--
-- Example:
--
-- -- Load a program from disk.
-- mpu:pokes(0x600, utils.read_file('program.bin'))
--
-- Raises an exception in case of error.
--... |
local class = require "lib.middleclass"
local Point = class("util.Point")
local function getX(v) return v.x or v[1] or v.width or v.w end
local function getY(v) return v.y or v[2] or v.height or v.h end
local function getXY(v) return getX(v), getY(v) end
function Point:initialize(x, y)
if type(x) == "table" then x... |
object_tangible_quest_computer_databank = object_tangible_quest_shared_computer_databank:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_computer_databank, "object/tangible/quest/computer_databank.iff")
|
local class = require 'middleclass'
-- 基底クラス
local Repository = require 'repository.Repository'
-- リポジトリ:種族
local RaceRepository = class('RaceRepository', Repository)
-- モジュール
local Race = require 'entities.Race'
-- 初期化
function RaceRepository:initialize(t)
Repository.initialize(self, t)
end
-- データ読み込み
functi... |
local opt = vim.opt
-- :: Appearance
opt.syntax = "on"
opt.termguicolors = true
opt.number = true
opt.hidden = true
opt.lazyredraw = true
opt.updatetime = 300
-- Leave my cursor alone, don't want a different cursor in different modes
opt.guicursor = ""
opt.title = true
opt.shortmess = "atIcF"
-- Always show the sign g... |
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "0.3"};
bar_style = {["off_color"] = "e6e6ff",
["on_color"] = "e6e6ff",
["line_color"] = "000",
["line_width"] = "2"};
text_style = {["font_size"] = "16"}
include("name... |
local Object = require "classic"
Animation = Object:extend()
function getQuads(initX, initY, columns, rows, quadWidth, quadHeight, sheetWidth, sheetHeight)
local quads = {}
local sheetWidth = sheetWidth or columns*quadWidth
local sheetHeight = sheetHeight or rows*quadHeight
for currentRow=0,rows-1 do
... |
return {'culinair','culminatie','culminatiepunt','culmineren','culpabiliseren','cult','cultband','cultbeweging','cultboek','cultfiguur','cultfilm','cultgroep','cultheld','cultisch','cultivar','cultivatie','cultiveren','cultivering','cultiveparel','cultklassieker','cultregisseur','cultschrijver','cultserie','cultstatus'... |
Set = {}
Set.mt = {}
function Set.new (t)
local set = {}
setmetatable(set, Set.mt)
for _, l in ipairs(t) do
set[l] = true
end
return set
end
function Set.union (a, b)
local res = Set.new{}
for k in pairs(a) do
res[k] = true
end
for k in pairs(b) do
res[k] = true
en... |
--[[
--=====================================================================================================--
Script Name: Admin Manager, for SAPP (PC & CE)
Description: Custom Admin Manager
------------
- features -
------------
* Overrides SAPP's admin-level system.
* Allow the end-user to choose at what level ce... |
local u = require("null-ls.utils")
local methods = require("null-ls.methods")
local M = {}
function M.setup()
-- code action batching is merged into master
if vim.fn.has("nvim-0.6.0") > 0 then
return
end
M.code_action_handler = M.combine(methods.lsp.CODE_ACTION)
end
-- this will override a h... |
-------------------------------------------------------
-- QuestHelper
--
-- file: DB
-- desc: Quest-Positions-Management
-- * Internal DB managment (data/qwdata.lua)
-- * User generate Questdata
-- * DB integrity test
--
-- Author: McBen
-- ver: v7.4.5
-- date: 2017-08-20T7:43:08Z
------------------------------... |
_errhandler = function(str)
return debug.traceback(str)
end
async = function(func)
return function(player, ...)
local args = {...}
_async(player, function()
func(player, unpack(args))
_asyncDone(player)
end)
end
end
convertGraphic = function(value, class)
if class == "monster" then
return 128 * 256 ... |
GM.Name = "Red Vs. Blue"
GM.Author = "ROODAY"
GM.Email = "N/A"
GM.Website = "N/A"
GM.Data = {}
GM.TeamBased = true // Team based game or a Free For All game?
GM.AllowAutoTeam = true
GM.AllowSpectating = true
GM.SecondsBetweenTeamSwitches = 10
GM.GameLength = 15
GM.RoundLimit = 10 // Maximum amount of rounds ... |
local Concord = require('lib.concord')
Concord.component('map', function(c, width, height)
c.width = width
c.height = height
c.map = {}
for y = 0, height-1 do
c.map[y] = {}
for x = 0, width-1 do
c.map[y][x] = 0
end
end
end) |
local nombre = "Alfred"
print ("hola" .. nombre) |
local _M = {}
local semaphore = require("ngx.semaphore")
local table_insert = table.insert
local table_remove = table.remove
local setmetatable = setmetatable
local assert = assert
local _MT = { __index = _M, }
function _M.new()
local self = {
semaphore = assert(semaphore.new()),
}
return setmetatabl... |
dofile("screen_reader_common.inc");
dofile("ui_utils.inc");
-- Initial values
compound_type = 6;
attrib_reqs = {
{5,-1},
{8,1},
{7,1}
};
max_essences = 5;
compound_reqs = {
-- {"Test",1,15},
{"Geb",2,4},
{"Maat",2,7},
{"Set",3,7},
{"Osiris",2,10},
{"Thoth",3,10},
{"Ra",2,13}
};
mods = {
[3]={"3",[-1]="-3... |
---------------------------------------------------------------------------
--
-- A container that makes a widget display only on a specified screen.
--
-- @author Uli Schlachter
-- @copyright 2017 Uli Schlachter
-- @classmod awful.widget.only_on_screen
------------------------------------------------------------------... |
--[[
Copyright 2017 YANG Huan (sy.yanghuan@gmail.com).
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 i... |
--
-- Application
--
local Utils = require('utils')
local Path = require('path')
local Table = require('table')
local Emitter = require('emitter')
local HTTP = require('http')
local Stack = require('stack')
--
-- augment standard things
--
require('./request')
require('./response')
--
require('./render')
local Appli... |
return {
Name = "Platinum Core",
Image = "rbxassetid://5706868902",
SellPrice = 860,
Description = "The center heart of a robot. Can be repurposed for another. Enchantment Material.",
SubDescription = "Binds a random Defensive effect on a user's weapon.",
Rarity = 4,
Color = Color3.fromRG... |
VERB="HELP"
HELP="HELP <COMMAND> shows help for a command"
function command_list()
local ret = ""
for key, command in pairs(bot.Commands) do
if ret ~= "" then
ret = ret .. ", " .. command.Verb
else
ret = command.Verb
end
end
return ret
end
function show_help(user, message)
if #mess... |
class("WorldStaminaExchangeCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
slot3 = getProxy(PlayerProxy)
slot5, slot6, slot7, slot8 = nowWorld.staminaMgr.GetExchangeData(slot4)
pg.ConnectionMgr.GetInstance():Send(33108, {
type = 1
}, 33109, function (slot0)
if slot0.resul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.