content stringlengths 5 1.05M |
|---|
slot0 = class("WSMapItem", import("...BaseEntity"))
slot0.Fields = {
cell = "table",
transform = "userdata",
rtArtifacts = "userdata",
theme = "table"
}
slot0.GetName = function (slot0, slot1)
return "item_" .. slot0 .. "_" .. slot1
end
slot0.Setup = function (slot0, slot1, slot2)
slot0.cell = slot1
slot0.them... |
local tbTable = GameMain:GetMod("MagicHelper")
local tbMagic = tbTable:GetMagic("TTMG_11_3")
function tbMagic:EnableCheck(npc)
return true
end
function tbMagic:TargetCheck(key, t)
if t.ThingType == CS.XiaWorld.g_emThingType.Npc then
return true
else
return false
end
end
function tbMa... |
client, service = nil, nil
return function()
local function findMean(tab: {number}): number
local total = 0
for _, val in pairs(tab) do
total += val
end
return total / #tab
end
local function checkConsistency(tab: {number}, uncertainty: number?): boolean
local consistent = 0
for _, val in pairs(tab... |
local Piece = require 'tetris.components.piece'
local Ruleset = require 'tetris.rulesets.arika_ace2'
local ARS = Ruleset:extend()
ARS.name = "ACE-ARS"
ARS.hash = "ArikaACE"
ARS.colourscheme = {
I = "C",
L = "O",
J = "B",
S = "G",
Z = "R",
O = "Y",
T = "M",
}
ARS.softdrop_lock = false
ARS.harddrop_lock = true... |
local lang = {
repair = "Riparazione {1}.",
reward = "Ricompensa: {1} $.",
bankdriver = "Dato soldi {1}.",
reward = "Ricompensa: {1} $.",
delivery = {
title = "Compra gli oggetti dai mercati (vedi mappa) e poi portameli!",
item = "- {2} {1}"
},
drugseller = {
title = "Trova l'Informatore illegal... |
--
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local ffi ... |
local Prop = {}
Prop.Name = "Strip Mall 1"
Prop.Cat = "Stores"
Prop.Price = 250
Prop.Doors = {
Vector( -8668.000000, -3826.000000, -13892.000000 ),
Vector( -8668.000000, -3918.000000, -13892.000000 ),
}
GM.Property:Register( Prop ) |
local M = {}
function M.script(path)
local dir_name = path:parent():head():gsub("/", "")
local file_name = path:head()
return table.concat({
[[tabedit | terminal]],
[[setlocal bufhidden=wipe]],
([[call chansend(&channel, "cat %s\n")]]):format(path),
([[file virtes://%s_%s]]):format(dir_name, file... |
-----------------------------------
--
-- Zone: Valley_of_Sorrows (128)
--
-----------------------------------
local ID = require("scripts/zones/Valley_of_Sorrows/IDs");
require("scripts/globals/conquest");
require("scripts/globals/settings");
require("scripts/globals/zone");
-----------------------------------
functi... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalLinker = ReplicatedStorage:FindFirstChild("LocalLinker")
-- Run outside of Hexolus environment
if not LocalLinker then
require(script.Parent)()
end |
local Camera = require "libs.camera3d"
local cpml = require "libs.cpml"
local lume = require "libs.lume"
local geometry = require "geometry"
local PostProcess = require "postprocess"
local map = require "map_loader"
local Terrain = require "terrain"
local Gameplay = {}
--[[
1) terr... |
-----------------------------------------------------------------------
-- FILE: luaotfload-harf-plug.lua
-- DESCRIPTION: part of luaotfload / HarfBuzz / fontloader plugin
-----------------------------------------------------------------------
do -- block to avoid to many local variables error
local Provide... |
--[[------------
Q U A K E II
Heads Up Display
Ammo data
]]--------------
if CLIENT then
-- Default half-life ammo
Q2HUD:AddAmmoIcon("Pistol", "hammo0");
Q2HUD:AddAmmoIcon("357", "hammo1");
Q2HUD:AddAmmoIcon("SMG1", "hammo2");
Q2HUD:AddAmmoIcon("AR2", "hammo3");
Q2HUD:AddAmmoIcon("SMG1_Grenade", "hamm... |
ffi.cdef [[
typedef struct { bool value; } refbool;
typedef struct { float value; } refnumber;
]]
---Stores a boolean value and can be used as a reference to it.
---@class refbool
---@field value boolean @Stored value.
refbool = ffi.metatype('refbool', { __index = {
---@return boolean
isrefbool = function(x) retu... |
-- EXIT --
shell.exit()
|
local adt = require('algebraic-data-types')
local list -- Forward declaration
local function _table(self)
local ret = {n=0}
local function loop(xs)
xs:match {
Nil = function () end,
Cons = function (hd, tl)
ret[ret.n + 1] = hd
ret.n = ret.n + 1
... |
-----------------------------------
-- Physical Shield
-- Blocks all physical attacks
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target,effect)
if (effect:getPower() < 2) then
target:addMod(tpz.mod.UDMGPHYS, -100)
e... |
--[[
TheNexusAvenger
Stores settings.
--]]
local NexusVRCharacterModel = require(script.Parent.Parent)
local NexusObject = NexusVRCharacterModel:GetResource("NexusInstance.NexusObject")
local NexusEventCreator = NexusVRCharacterModel:GetResource("NexusInstance.Event.NexusEventCreator")
local Settings = NexusObject:E... |
package("libxkbcommon")
set_homepage("https://xkbcommon.org/")
set_description("keymap handling library for toolkits and window systems")
set_license("MIT")
add_urls("https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$(version).tar.gz",
"https://github.com/xkbcommon.git")
ad... |
return
{
head = false,
face =
{
{
"ActionEditor/Model/Output/boy.clip|face",
{"positionX",-2},
{"positionY",2},
},
},
fHair =
{
{
"ActionEditor/Model/Output/boy.clip|fHair",
{"positionX",43},
{"positionY",70},
},
},
bHair =
{
{
"ActionEditor/Model/Output/boy.clip|bHair",
{"pos... |
-- Causa Dano a todos jogadores
local rolagem = arg[1];
if rolagem==nil then
rolagem = inputQuery("Rolagem de dano a ser causado.");
end;
local resultado = rolar(rolagem, "Dano em Area");
for i = 1, #jogadores, 1 do
if jogadores[i].isJogador then
local min, max = jogadores[i]:getBarValue(1);
local novo = ... |
corellia_selonian_patrol_neutral_none = Lair:new {
mobiles = {{"selonian_scout",1},{"selonian_thief",1},{"selonian_healer",1},{"domestic_humbaba",1},{"domestic_krahbu",1}},
spawnLimit = 15,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
mobType = "n... |
--[[ =================================================================
Description:
All strings (Chinese) used by MailTips.
================================================================= --]]
-- Strings used within MailTips
-- Locale by 急云@CWDG 2008-10-9
if (GetLocale()=="zhCN") then
MT_STARTUP_... |
-- ----------------------------------------------------------------------------------------------------
-- INFINITY CHEATS DEFINITIONS
-- Definitions for infinity cheats. Basically just a bunch of enormous tables!
local abs = math.abs
local conditional_event = require('scripts/util/conditional-event')
local chunk = re... |
--- Terra Volta
--- MISSIONS
printDebug("Finished Loading missions.lua")
|
-- TODO: maybe local cache?
function getMailFile(playername)
local saneplayername = string.gsub(playername, "[.|/]", "")
return mail.maildir .. "/" .. saneplayername .. ".json"
end
mail.getMessages = function(playername)
local file = io.open(getMailFile(playername), "r")
local messages = {}
if file then
local... |
---
-- @realm client
-- @section SimpleRoleIcon
local math = math
local surface = surface
local vgui = vgui
local matHover = Material("vgui/spawnmenu/hover")
local PANEL = {}
---
-- @function GetIconSize()
-- @return number
--
---
-- @function SetIconSize(i)
-- @param number i
---
AccessorFunc(PANEL, "m_iIconSize",... |
project "cpp_redis"
language "C++"
cppdialect "C++11"
kind "StaticLib"
targetname "cpp_redis"
includedirs { "includes", "tacopie/includes" }
dependson { "tacopie" }
links { "tacopie" }
vpaths {
["Headers/*"] = "includes/cpp_redis/**.hpp",
["Sources/*"] = "sources/**.cp... |
--RasPegacy v0.1
--Menu Child
gl.setup(720, 40)
node.alias("menu")
bg = resource.load_image("bg_top.png")
title = resource.load_image("title.png")
local json = require "json"
local font = resource.load_font("Exo2.otf")
util.file_watch("menu.json", function(content)
menu = json.decode(content)
cur = menu.cur... |
ui = {}
function ui.load()
end
function ui.draw()
love.graphics.print("HUNGER:", 50, 0)
love.graphics.print("HEALTH:", 250, 0)
love.graphics.print("SCORE:", 450, 0)
love.graphics.print("ROUND:", 650, 0)
love.graphics.print(game.score, 450, 25)
love.graphics.print(game.round, 650, 25)
love.graphic... |
local theme={colors={normal={blue={0.31764705882353,0.4156862745098,0.92549019607843,1},green={0.56862745098039,0.54509803921569,0.23137254901961,1},cyan={0.082352941176471,0.57647058823529,0.57647058823529,1},white={0.67058823529412,0.6078431372549,0.67058823529412,1},red={0.7921568627451,0.25098039215686,0.1686274509... |
-----------------------------------
-- Area: Quicksand Caves
-- NPC: Goblin Geologist
-- Type: Mission
-- !pos -737.000 -11.125 -550.000 208
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(100);
end;
function onEventUpdate(player,csid,... |
Statemachine = class{}
function Statemachine:init(states)
self.empty = {
render = function() end,
update = function() end,
enter = function() end,
exit = function() end
}
self.states = states or {} -- [name] -> [function that returns states]
self.current = self.empty
end
function Statemachine:change(state... |
--[=[
Module:utils v0.3.1
Date: 2015-08-14
This module contains some common useful functions.
Fill free to add another universal functions here.
]=]--
local export = {}
-- Function to clone table (sometimes it works better then mw.clone)
function export.clone(original)
local copy = {}
for key, value ... |
--[[
desc: WORLD, a system set.
author: Musoucrow
since: 2018-3-20
alter: 2019-8-25
]]--
local _CONFIG = require("config")
local _TABLE = require("lib.table")
local _GRAPHICS = require("lib.graphics")
local _RESOURCE = require("lib.resource")
local _ECSMGR = require("actor.ecsmgr")
local _MAP = require("map.init")... |
local gears = require('gears')
local theme = {}
theme.font = 'JetBrains Mono 10'
theme.useless_gap = 5
theme.border_width = 0
theme.snap_bg = "#E8E3E3"
theme.snap_shape = gears.shape.rectangle
return theme
|
--[[ Trade class ]]--
local Trade = {}
Trade.__index = Trade
Trade.__tostring = function(self)
return table.tostring(self)
end
Trade.trades = {}
Trade.handshakes = {}
setmetatable(Trade, {
__call = function (cls, name)
return cls.new(name)
end,
})
function Trade.new(id, party1, party2)
print(... |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
while ESX.GetPlayerData().job == nil do
Citizen.Wait(10)
end
ESX.PlayerData = ESX.GetPlayerData()
-- Update the door list
ESX.TriggerServerCallback('esx_doo... |
--------------------------------
-- @module TransitionSceneOriented
-- @extend TransitionScene
-- @parent_module cc
--------------------------------
-- Creates a transition with duration, incoming scene and orientation.<br>
-- param t Duration time, in seconds.<br>
-- param scene A given scene.<br>
-- param orientat... |
--- === cp.web.html ===
---
--- Functions for Generating HTML markup.
---
--- This library allows the creation of 'safe' HTML using via code.
---
--- Examples:
---
--- ```lua
--- local html = require "cp.web.html"
--- print html.p "Hello world!" -- "<p>Hello world!</p>"
--- print html.p { class = "custom" } "Hel... |
local Root = script:FindFirstAncestor("BarrierCreator")
local Roact = require(Root.dependencies.Roact)
return function()
return Roact
end |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... |
function setup()
background(0,0,0)
end
function draw()
if mouse.pressed['1'] then
fill(255,0,0,.2)
else
fill(0,0,255,.2)
end
ellipse(mouse.x,mouse.y,30,30)
end
|
--游戏服务
--主责:战斗模块
local cmd_define = require("app.public.global.cmd_define")
local gate_manager = require("app.public.config.gate_manager")
local game_server = {}
function game_server:deal_game_msg(sub_id, data)
if sub_id == cmd_define.sub_stop_auto_fight_req then
self:send_event(cmd_define.main_game, cmd... |
local ffi = require "ffi"
local ffi_cdef = ffi.cdef
ffi_cdef[[
int __cdecl xlSheetCellTypeA(SheetHandle handle, int row, int col);
int __cdecl xlSheetIsFormulaA(SheetHandle handle, int row, int col);
FormatHandle __cdecl xlSheetCellFormatA(SheetHandle handle, int row, int col);
void __c... |
--[[
BloxStore module for integrating BloxStore into Roblox games.
Getting started:
1. Sign up for a BloxStore account by going to https://bloxstore.whats-in.space
2. Create a table
3. Add some columns
4. Put this script into a ModuleScript and require() it
5. Using the API you can integrate your game int... |
--[[
BUT DU JEU
Pour les Villageois: éliminer les Loups-Garous
Pour les Loups-Garous: éliminer les Villageois
LES PERSONNAGES
Les Loups-Garous:
Chaque nuit, ils dévorent un Villageois. Le jour ils essaient de masquer leur identité nocturne pour échapper à la vindicte populaire. Ils sont 1, 2, 3 ou 4 suivant le nombre ... |
local auth = function(token)
return token
end
return auth(ARGV[1]) |
--[[
License : GLPv3, see LICENCE in root of repository
Authors : Nikolay Fiykov, v1
--]]
local contains = require("contains")
local PinState = {
pin = 0,
mode = 4, --gpio.OPENDRAIN,
pullup = 6, -- gpio.FLOAT
cbGetValue = function()
return 1 --gpio.HIGH
end,
cbOnWrite = function()
e... |
-- munin thermometer using DS18B20 sensors on ESP8622
-- (c) 2016, Florian Heimgaertner
-- This software may be modified and distributed under the terms
-- of the MIT license. See the LICENSE file for details.
local modname = ...
local M = {}
_G[modname] = M
local plugin = {}
local action = {}
local hostname = ('e... |
-- Load dependencies
local mnist = require 'mnist'
local optim = require 'optim'
local gnuplot = require 'gnuplot'
local image = require 'image'
local cuda = pcall(require, 'cutorch') -- Use CUDA if available
local hasCudnn, cudnn = pcall(require, 'cudnn') -- Use cuDNN if available
local npy4th = require 'npy4th'
loc... |
local M = {}
local luafmt = {
formatCommand = "luafmt -i 2 --stdin",
formatStdin = true,
}
local stylua = {
formatCommand = "stylua --config-path $HOME/.config/stylua/stylua.toml -",
formatStdin = true,
}
local flake8 = {
lintCommand = "flake8 --ignore=E501,W503 --stdin-display-name ${INPUT} -",
lintStdi... |
object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a3 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl4_tree_root_a3:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl4_tree_root_a3, "object/building/kashyyyk/poi_kash_rryatt_lvl4_tree_root_a3.iff")
|
return Def.ActorFrame{
Def.Quad{
InitCommand=cmd(FullScreen);
OnCommand=cmd(diffusealpha,0;sleep,2);
};
LoadActor(THEME:GetPathS("","_swoosh out.ogg"))..{
OnCommand=cmd(queuecommand,"Play");
PlayCommand=cmd(play)
};
StartTransitioningCommand=function(self) SOUND:DimMusic(0,math.huge) end,
}
|
local Types = require(script.Parent.Parent.Types)
type Record<K, V = K> = Types.Record<K, V>
local function override(target: Record<any>, source: Record<any>): Record<any>
local result = table.clone(target)
for key, value in source do
result[key] = if type(value) == "table" then if type(result[key]) == "table" t... |
return Def.Sprite{
--No Quest Mode BGA so we'll have to live with it
Texture=THEME:GetPathG("","_BGMovies/Arcade");
InitCommand=cmd(Cover;zoomx,1.02);
};
|
-- function reference
-- include
local newTable = require("toolkit.common").newTable
local utils = require("toolkit.utils")
local helper = newTable(0, 2)
helper.jsonSerialize = function(lData, pattern)
return pattern and (utils.json_encode(lData)..pattern) or utils.json_encode(lData)
end
helper.jsonDerialize = f... |
module:set_global();
local measure = require"core.statsmanager".measure;
local valid_shows = {
available = true,
chat = true,
away = true,
dnd = true,
xa = true,
unavailable = true,
}
local counters = {
available = measure("amount", "client_presence.available"),
chat = measure("amount", "client_presence.chat... |
function foo(a)
local x = 1/0
local y = 0/1
local w = a/0
local z = 0/a
print(x, y, w, z)
end
foo(7)
|
function factorial(n)
if n == 0.0 then
return 1.0
else
return n * factorial(n - 1.0)
end
end
|
module(..., package.seeall)
--;===========================================================
--; SOUND TEST MENU LOOP
--;===========================================================
t_soundMenu = {
{id = textImgNew(), text = 'CONTINUE?'},
{id = textImgNew(), text = 'GAME OVER'},
{id = textImgNew(), text = 'BACK'}, ... |
if turn == 1 then
character_1:UseSkill(2)
character_1:UseSkill(3)
character_1:UseSkill(4)
character_2:UseSkill(1)
character_2:UseSkill(2)
character_2:OnPartyMember(3):UseSkill(3)
character_3:UseSkill(2)
character_3:UseSkill(1)
character_4:WithWaitTime(2000):UseSkill(2)
character_4:UseSkill(1)
EnableChargeAtt... |
include "app.gameClass.item.Item"
include "app.gameClass.trigger.Need"
_ENV=namespace "game"
using_namespace "luaClass"
using_namespace "container"
class("Mission"){
CLASS_DEBUG(false);
}
function Mission:Mission(missionInfo)
self.name=missionInfo.missionName
self.limit=missionInfo.limit
self.desc=mi... |
function RcEncodeTrace(rec)
local longFmtCnt = 0
local buf = ''
for i, data in ipairs(rec) do
local dticks, model = tonumber(data[1]), tonumber(data[8])
local dx, dy, dz = tonumber(data[2]), tonumber(data[3]), tonumber(data[4])
local drx, dry, drz = tonumber(data[5]), tonumber(data[6]), tonumber(data[7])... |
require('bufferline').setup{
options = {
view = "multiwindow",
tab_size=5,
numbers="both",
separator_style="thin",
enforce_regular_tabs=false,
show_tab_indicators = true,
tab_indicator_style = function(tab)
if not tab.name or tab.name == "" then
... |
-- Verify that cross referencing and aligned ABC emission works correctly
abclua = require "abclua"
function get_crossrefs(tokens, refs)
-- return a table of all the cross references in the stream, as strings
for i,v in ipairs(tokens) do
if v.cross_ref then
table.insert(refs,v.... |
--Stance state is basically a Walk controller
--Without any torso or feet update
--We share the leg joint generation / balancing code
--with walk controllers
local state = {}
state._NAME = ...
local Body = require'Body'
local vector = require'vector'
local moveleg = require'moveleg'
require'mcm'
-- Keep track of ... |
require("yalt/yalt")
image = love.graphics.newImage( "image.png" )
love.graphics.setBackgroundColor(114,159,207) -- Tango! Sky Blue 1
--YALT restores the graphics color and font to what it was originally.
love.graphics.setColor(46,52,54,255)-- Tango! Aluminium 6
speed = 1
function love.draw()
love.graphics.print( "\... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client/admin_coroutines.lua
*
* Original File by lil_Toady
*
**************************************]]
local aCoroutines = {}
sourceCoroutine = nil
local _addEventHandler = addEventHandler
function addEventHandler ( event, element, handler,... |
local __exports = LibStub:NewLibrary("ovale/combat", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local __State = LibStub:GetLibrary("ovale/State")
local States = __State.States
local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true)
local GetTime = GetTime
local tonumb... |
-- local dbg = require("debugger")
-- dbg.auto_where = 2
local elixir = require'cccomplete.elixir'()
local _ctxt
local function line(value)
_ctxt = {line = value}
end
local function subject()
return elixir.complete(_ctxt)
end
local function it_behaves_like(opts)
local result = subject()
it("has the correct c... |
--[[
@Author: Eoussama
@Version: v0.0.1
@Creation date: 6/12/2019 - 11:24PM
]]
local UtilText = require("core.utils.text")
local UtilAudio = require("core.utils.audio")
local UtilTimer = require("core.utils.timer")
local UtilBackground = require("core.utils.background")
local title = ... |
--[[--------------------------------------------------------------------------
-- TomTom - A navigational assistant for World of Warcraft
--
-- This file contains the internal implementation of TomTom's waypoints.
-- None of these functions should be called directly by addons if they want
-- the waypoints to obey n... |
bhamuka_all_consuming_god_consume_souls = class({})
LinkLuaModifier( 'bhamuka_all_consuming_god_consume_souls_modifier', 'encounters/bhamuka_all_consuming_god/bhamuka_all_consuming_god_consume_souls_modifier', LUA_MODIFIER_MOTION_NONE )
function bhamuka_all_consuming_god_consume_souls:OnSpellStart()
--- Get Caster,... |
--------------------------------------------------------------------------------
-- login.lua
--------------------------------------------------------------------------------
local string_format = string.format
local actor = tengine.actor
local ERROR_MSG = tengine.ERROR_MSG
local p = tengine.p
local account = requir... |
data:extend({
{
type = "generator",
name = "biotech-wind-turbine",
icon = "__BioTech__/graphics/icons/wind_turbine_icon.png",
flags = {"placeable-neutral","player-creation"},
minable = {mining_time = 1, result = "biotech-wind-turbine"},
max_health = 50,
corpse = "big-remnants",
effectivity = 1.5,
fl... |
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local babi = requi... |
print("toto")
local m = require("mod")
m.test()
test2()
local log = require('log')
log.info("Test")
local data = require('data')
print(data.toYaml({
toto = 'tata'
}))
local t = {}
t[1] = "toto"
t[2] = "titi"
t[3] = "tata"
t[4] = "tutu"
t[5] = "foo"
print(#t)
print(data.toJson(t))
print(data.toYaml(t)) |
--[[
-- log.lua
--
-- Copyright (c) 2016 rxi
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the MIT license. See LICENSE for details.
-- Modefy by CandyMi In 2018.12.18
log的内部方法包括:
log.trace(...) 紫色
log.debug(...) 天蓝色
log.info(...) 绿色
log.warn(...) 黄色
log.erro... |
local M = {}
M.setup = function()
local status_ok, cc = pcall(require, "virt-column")
if not status_ok then
return
end
cc.setup_buffer({ virtcolumn = "80,120", char = "▏" })
end
vim.cmd [[
augroup virtcolumn
autocmd!
autocmd FileType * if index(["netrw", "NvimTree", "neo-tree", "UltestAttach", "dap-float", ... |
ENT.RenderGroup = RENDERGROUP_OPAQUE
ENT.Base = "fighter_base"
ENT.Type = "vehicle"
ENT.PrintName = "NTB-630 Bomber"
ENT.Author = "Liam0102, Jellyton"
ENT.Category = "Star Wars Vehicles: In Development";
list.Set("SWVehiclesEU", ENT.PrintName, ENT);
ENT.AutomaticFrameAdvance = true
ENT.Spawnable = false
ENT.AdminSpawn... |
---------------------------------------------------------------------------------------------------
---boss_hitbox_prefab.lua
---author: Karl
---date created: 2021.6.1
---desc: Defines the base objects for enemies that have hitboxes; a hitbox here has a disk shaped
--- collision box with some hp, the hitbox is kill... |
--- Slice part of a table and return a new copy
---
--- Note : This methods does not check if tbl is a table, it does not check
--- if first and last are valid... it is the responsibility of the caller
--- to make sure all args are valid.
---
-- @param tbl the table to slice
-- @param first (optional) t... |
local Library = require "CoronaLibrary"
local sprite = Library:new{ name='sprite', publisherId='com.' }
local function toImageSheet( spriteSet )
assert( spriteSet.spriteSheet, "toImageSheet(): Bad spriteSet parameter: spriteSet.spriteSheet is nil" )
local options
local spriteSheet = spriteSet.spriteSheet
if sp... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('QueryClientIpArg_pb')
QUERYCLIENTIPARG = protobuf.Descriptor();
local QUERYCLIENTIPARG_PARAM_FIELD = protobuf.FieldDescriptor();
QUERYCLIENTIPARG_PARAM_FIELD.name = "param"
QUERYCLIENTIPARG_PARAM_FIELD.full_name = ".KKSG.... |
local mapa = {
ambient="0.1,0.1,0.1",
gravity="0 -9.8 0",
entities={
{
name="Sinbad",
id=1,
components={
transform={
position="0,0,0",
rotation="0,0,0",
scale="1,1,1",
parent="-1"
},
rigidbody={
shape="-1",
... |
local L = LibStub('AceLocale-3.0'):NewLocale('tdInspect', 'enUS', true)
if not L then
return
end
-- @localization(locale=""enUS", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @debug@
-- @import@
L['Show Model'] = true
L['Last update:'] = true
L['Inspect target'] = true
L['Inspect mouseo... |
-- map offsets
local x = 500
local y = 2740
local int = 0
local dim = 0
createObject(17864, x+3288.224609375, y+-1850.7109375, 0.88956797122955, 0, 0, 0, int, dim)
createObject(17864, x+3328.2353515625, y+-1818.701171875, 0.89889800548553, 0, 0, 179.62097167969, int, dim)
createObject(17864, x+3327.8818359375,... |
-- creates a grayscale portrait of ceo jessica kern.
local path = mod_loader.mods[modApi.currentMod].resourcePath
local this = {}
local color_hex = {
"000000", "de7f41", "000000", "53403b", "dcd0c2", "9b928a",
"777070", "fcf8f0", "575758", "282a33", "be6f47", "2b211f",
"a4988b", "735344", "4d3d35", "907c6a", "1b17... |
require "tundra.syntax.glob"
require "tundra.syntax.qt"
require "tundra.syntax.osx-bundle"
require "tundra.path"
require "tundra.util"
local function gen_moc(src)
return Moc {
Pass = "GenerateSources",
Source = src
}
end
-------------------------------------------------------------------------... |
RegisterNetEvent('gvz-anticheat:hash')
AddEventHandler('gvz-anticheat:hash', function()
count = -0.2
while not HasModelLoaded(GetHashKey("a_m_o_acult_01")) do
Citizen.Wait(0)
RequestModel(GetHashKey("a_m_o_acult_01"))
end
... |
require 'paths'
require 'xlua'
require 'torchx'
require 'string'
require 'os'
require 'sys'
require 'image'
require 'lfs'
-- these actually return local variables but we will re-require them
-- when needed. This is just to make sure they are loaded.
require 'moses'
require 'ffi'
unpack = unpack or table.unpack
local... |
--------------------------------
-- @module TextBMFont
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- @function [parent=#TextBMFont] setFntFile
-- @param self
-- @param #string str
--------------------------------
-- @function [parent=#TextBMFont] getStringLength
-- @param sel... |
-- Copyright (C) Yuansheng Wang
-- only support to cache lua table object
local lru_new = require("resty.lrucache").new
local setmetatable = setmetatable
-- todo: support to config it in YAML.
local GLOBAL_TTL = 60 * 60 -- 60 min
local GLOBAL_ITEMS_COUNT = 1024
local PLUGIN_TTL = 5 * 60 -- 5 min
loc... |
local messageItem = require(ViewPath .. "hall/notice/messageItem");
local MessageItem = class(CommonGameLayer, false);
MessageItem.s_controls =
{
btnItem = 1,
txtTitle = 2,
txtTime = 3,
txtContent = 4,
imgEnvelope = 5,
imgAttachment = 6,
};
Mes... |
#!/usr/bin/env lua
require 'Test.More'
plan(14)
if not require_ok 'Spore' then
BAIL_OUT "no lib"
end
local m = require 'Spore'
type_ok( m, 'table', "Spore" )
is( m, package.loaded['Spore'] )
is( m._NAME, 'Spore', "_NAME" )
like( m._COPYRIGHT, 'Perrad', "_COPYRIGHT" )
like( m._DESCRIPTION, 'ReST client', "_DESC... |
local Class = require("CoreLib.SimpleLuaClasses.Class")
local StateObject = Class()
function StateObject:init(name)
self.name = name
self.objectList = {}
end
function StateObject:AddObject(key, obj)
self.objectList[key] = obj
end
function StateObject:GetObject(key)
return self.objectList[key]
end
f... |
--[[
Name: masarater.lua
For: TalosLife
By: TalosLife
]]--
local Car = {}
Car.VIP = true
Car.Make = "Maserati"
Car.Name = "Maserati Ghibli S"
Car.UID = "maserati_ghibli"
Car.Desc = "The Maserati Ghibli S, gmod-able by TDM"
Car.Model = "models/tdmcars/mas_ghibli.mdl"
Car.Script = "scripts/vehicles/TDMCars/mas_ghibli... |
local mysql = exports.mrp_mysql
addCommandHandler("vipver", function(thePlayer, cmdName, idOrNick, vipRank, days)
if exports.mrp_integration:isPlayerDeveloper(thePlayer) then
if (not idOrNick or not tonumber(vipRank) or not tonumber(days) or (tonumber(vipRank) < 0 or tonumber(vipRank) > 4)) then
outputChatBox("[... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local config = require "game.template.item"
local cjson = require "include.cjson"
local _M = function(role,data)
if not data.id or type(data.id) ~= "number" then return 2 end
if not config:get(da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.