content stringlengths 5 1.05M |
|---|
local Box = require('motras_box')
local ModuleUtils = require('modulesutil')
local Transf = require('transf')
local t = require('motras_types')
local c = require('motras_constants')
local TrackModuleUtils = {}
function TrackModuleUtils.makeTrack(track, trackType, hasCatenary, snapLeft, snapRight)
local p... |
local config = {}
config.DEV_MODE = true
config.DEBUG_RECIPE_ENABLED = true
-- Name of the mod. Used as prefix for other names
config.MOD_NAME = "janosch-sh"
config.MOD_PATH = "__" .. config.MOD_NAME .."__/"
-- Technology name
config.TECHNOLOGY_NAME = config.MOD_NAME .. "-tech"
-- Names of recipes, items and e... |
local Packages = script:FindFirstAncestor("CmdrAdditions").Packages
local Util = require(Packages.Util)
local Stream = {}
Stream.__index = Stream
function Stream.new(name, historyLimit)
return setmetatable({
Name = name,
History = {},
_historyLimit = historyLimit or 500,
Subscribers = {},
_restrictors... |
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.line")
require("moonscript.compile.value")
local ntype, Set = data.ntype, data.Set
local c... |
unit_str = "kvadratni centimetar"
|
object_tangible_collection_rebel_assault_boots = object_tangible_collection_shared_rebel_assault_boots:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rebel_assault_boots, "object/tangible/collection/rebel_assault_boots.iff") |
local function getTextGrapplingSystem()
local system = {}
local availableKeys = {
"h",
"k",
"u",
"o",
"p",
"n",
"m",
"y",
"b",
"6",
"7",
"8",
"9",
}
system.missiles = {}
function system:registe... |
local core = require('vfiler/libs/core')
local SizeColumn = {}
function SizeColumn.new()
local Column = require('vfiler/columns/column')
local self = core.inherit(SizeColumn, Column, {
syntaxes = {
size = {
group = 'vfilerSize',
start_mark = 's@\\',
},
},
end_mark = '\\s@',... |
local Left,Botom = 2020, 259
local Right, Top = 1894,172
local Width = Right - Left
local Height = Top - Botom
local area = createRadarArea(Left,Botom,Width,Height,1,2,3,180)
local dmarea2 = createColRectangle( 1911.48, 175.47, 90, 70 )
addEventHandler( "onPlayerWasted", getRootElement( ),
function(ammo,killer)
... |
-- Item data (c) Grinding Gear Games
return {
-- Belt
[[
突围者【仿品】
重革腰带
等级需求: 10
联盟: 夺宝奇兵
固定基底词缀: 1
{tags:jewellery_attribute}+(25-35) 力量
{tags:jewellery_defense}最大能量护盾提高 (6-10)%
{tags:life}最大生命提高 (6-10)%
{tags:jewellery_resistance}+(15-25)% 火焰抗性
{tags:jewellery_elemental}你的召唤生物死亡时产生燃烧地面,每秒造成等同它们最大生命 20% 的火焰伤害
{tags:at... |
local enabled = { enable = true }
require'nvim-treesitter.configs'.setup {
ensure_installed = 'maintained',
indent = enabled,
highlight = enabled,
autotag = enabled,
matchup = enabled,
refactor = {
smart_rename = {
enable = true,
keymaps = { smart_rename = "<leader>r" }
},
navigation... |
object_tangible_loot_creature_loot_collections_meatlump_code_word_05 = object_tangible_loot_creature_loot_collections_shared_meatlump_code_word_05:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_code_word_05, "object/tangible/loot/creature/loot/collections/meatlump_code_wor... |
pfDesktop = { }
pfDesktop_Storage = { }
-- slash cmd
SLASH_PFDE1 = '/pfde'
function SlashCmdList.PFDE(msg, editbox)
end
SLASH_RELOAD1 = '/rl'
function SlashCmdList.RELOAD(msg, editbox)
ReloadUI()
end
pfWM.config.close = "Interface\\AddOns\\pfDesktop\\img\\close"
pfWM.config.minimize = "Interface\\AddOns\\pfDesktop... |
----------------------------
-- Graphics objects
----------------------------
local ffi = require "ffi"
local bit = require "bit"
require "g_export"
require "g_decode"
ffi.cdef((love.filesystem.read "graphics.h"))
local graphics = {}
----------------------------
-- Import
--------------------------... |
local addons, addonNameOrIndex = ...
local toc = addons[addonNameOrIndex]
if toc then
local name = toc.name
local secure = toc.name:sub(1, 9) == 'Blizzard_' and 'SECURE' or 'INSECURE'
return name, toc.attrs.Title, toc.attrs.Notes, true, nil, secure
end
|
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.base = "base_glasses";
ITEM.name = "Goggles";
ITEM.model = "models/fty/items/goggles.mdl"
ITEM.flag = "A"
ITEM.category = "Clothing - MCS";
ITEM.price = 15
ITEM.description = "A pair of Mad-Max looking goggles bef... |
local Animal = require("classes.animal")
local Dog = Animal:derive("Dog")
function Dog:new(name, weight, type, speed)
self.name = name
self.weight = weight
self.type = type
self.speed = speed
end
function Dog:soundOff()
return "Woof"
end
return Dog |
--[[
Copyright (c) 2015 Natanael Copa <ncopa@alpinelinux.org>
Copyright (c) 2015 Eivind Uggedal <eivind@uggedal.com>
This content is released under the MIT License.
--]]
local rex = require("rex_pcre")
local M = {}
local function gen(name, version)
return rex.new(name..
"(?:[-_]?(?:src|source))?"..
"[-_]"..
... |
-- incredible-gmod.ru
-- https://github.com/Be1zebub/Small-GLua-Things/blob/master/pluralize.lua
-- souse: https://internetbrains.blogspot.com/2010/01/javascript.html
local cases = {[0] = 3, [1] = 1, [2] = 2, [3] = 2, [4] = 2, [5] = 3}
function pluralize(n, titles)
n = math.abs(n)
return titles[
(n % 100 > 4 and n... |
local utils = require("mod.test_room.data.map_archetype.utils")
local Feat = require("api.Feat")
local Item = require("api.Item")
local Chara = require("api.Chara")
local Skill = require("mod.elona_sys.api.Skill")
local materials = {
_id = "materials"
}
function materials.on_generate_map(area, floor)
local map ... |
-- ===========================================================================
-- Base File
-- ===========================================================================
-- Note: CitySupport.Lua is a complete replacement in the Expansion1 from Firaxis
include("CitySupport");
include("citysupport_CQUI.lua");
|
return {
-- Maintainer: MysticPing2
-- Internal
id = "SV",
name = "Svenska",
-- Tabs
list_all = "Alla",
list_all_tooltip = "Alla spel (%d)",
list_favorite = "Favoriter",
list_favorite_tooltip = "Dina favorit spel",
list_downloaded = "Nerladdad",
list_downloaded_tooltip = "Nerladdade spel... |
-- Authors: Antti Vähäkotamäki
-- License: LGPL, version 2.1 or later
-- Last Changed: 2005
--
-- statusbar_external.lua
--
if not statusbar_external then
statusbar_external = {
-- a simple example which shows utc time and date
-- in %udate every second with 'date -u'
{
template_key = 'powerStat... |
local choices = require("choices")
data:extend({
{
type = "double-setting",
name = "ZoomPresets_preset-1-zoom-level",
setting_type = "runtime-per-user",
default_value = 1.0,
maximum_value = 10.0,
minimum_value = 0.0001,
order = "1a"
},
{
type ... |
---------------------------------------------------------------------------------------------------
-- func: getskill <skill name or ID> <target>
-- desc: returns target's level of specified skill
---------------------------------------------------------------------------------------------------
require("scripts/global... |
return {'tahin','tahoe','taha','tahir','taheri','tahas','tahirs'} |
#!/usr/bin/env luajit
-- Tests for nessDB low level LuaJIT binding
-- Copyright (C) 2012 Olivier Goudron
local ffi = require("ffi")
local nessdb = require("nessdb")
local MAX_KEY_SIZE = 32 + 1
local MAX_VALUE_SIZE = 255 + 1
local IS_LOG_RECOVERY = 1
local kbuf = ffi.new(nessdb.buffer_t, MAX_KEY_SIZE)
local vbuf = ... |
--[[
Quick script for managing the behavior of spawned debris from
harvesting. Flings it around a little, and then vanishes it.
]]
local propFlingAmount = script:GetCustomProperty("FlingAmount")
-- Helper script to choreograph explosions of rock debris.
local rng = RandomStream.New()
local debris = {}
for k,v in p... |
return {'ollekebolleke','olle','ollekebollekes','olles','ollandse'} |
slot0 = class("TechnologyTreeNationScene", import("..base.BaseUI"))
slot0.getUIName = function (slot0)
return "TechnologyTreeCampUI"
end
slot0.init = function (slot0)
slot0:initData()
slot0:findUI()
end
slot0.didEnter = function (slot0)
slot0:addListener()
slot0:updateTecItemList()
end
slot0.willExit = functio... |
local luahtml = require("luahtml")
local http, https, fs = require("http"), require("https"), require("fs")
local function IsDir(path)
local f = io.open(path, "r")
local ok, err, code = f:read(1)
f:close()
return code == 21
end
local function ScanDir(path, cback, dirs)
fs.readdir(path, function(_, fi... |
--File modified by Sys4 for NALC
-- Deer
mobs:register_mob("kpgmobs:deer", {
type = "animal",
hp_max = 5,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {"mobs_deer.png"},
visual = "mesh",
mesh = "mobs_deer2.x",
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mo... |
return {
summary = 'Get the format of the Texture.',
description = [[
Returns the format of the Texture. This describes how many color channels are in the texture
as well as the size of each one. The most common format used is `rgba`, which contains red,
green, blue, and alpha color channels. See `Te... |
--[[
-- Credit to ckknight for originally writing Cartographer_ZoneDetails
-- Credit to phyber for writing Cromulent
--]]
ZoneDetails = LibStub("AceAddon-3.0"):NewAddon("ZoneDetails", "AceConsole-3.0", "AceEvent-3.0", "AceHook-3.0")
ZoneDetailsGlobalPinMixin = BaseMapPoiPinMixin:CreateSubPin("PIN_FRAME_LEVEL_DUNGE... |
local CorePackages = game:GetService("CorePackages")
local CoreGui = game:GetService("CoreGui")
local Roact = require(CorePackages.Roact)
local t = require(CorePackages.Packages.t)
local UIBlox = require(CorePackages.UIBlox)
local withStyle = UIBlox.Style.withStyle
local RobloxGui = CoreGui:WaitForChild("RobloxGui")... |
local version_control = require("version_control")
local function new(id)
local position_x = love.graphics.getWidth() / 2
local position_y = love.graphics.getHeight() / 2
local step_x = 0
local step_y = 0
local radius = 10
local speed = 5
local red = love.math.random()
local green = love.math.random()
... |
return function(Modules, ReplicatedModules)
local public = {}
local private = {}
public.Enabled = true
local MarketplaceService = game:GetService("MarketplaceService")
local PlayerAddedBindings = {}
local PlayerDatas = {}
function public.Init()
public.BindToPlayerAdded(private.PlayerJoined)
game.Players... |
local K, C = unpack(select(2, ...))
local Module = K:NewModule("AutoInvite", "AceEvent-3.0")
local _G = _G
local AcceptGroup = _G.AcceptGroup
local BNGetGameAccountInfoByGUID = _G.BNGetGameAccountInfoByGUID
local IsCharacterFriend = _G.IsCharacterFriend
local IsGuildMember = _G.IsGuildMember
local IsInGroup = _G.IsIn... |
--[[
============================================
Tracking for boss fights
============================================
]]
local addon = CharacterZoneTracker
local debug = false
-- Singleton class
local BossFight = ZO_Object:Subclass()
function BossFight:New(...)
local instance = ZO_Object.New... |
require 'nn'
require 'cunn'
require 'cudnn'
local net = nn.Sequential()
--conv1
net:add(nn.VolumetricConvolution(1,32,5,5,5,2,2,2,1,1,1))
--net:add(nn.LeakyReLU(0.1,true))
net:add(nn.ReLU(true))
net:add(nn.VolumetricDropout(0.2))
--conv2
net:add(nn.VolumetricConvolution(32,32,3,3,3,1,1,1))
--net:add(nn.LeakyReLU(0.... |
#!/usr/bin/env luajit
local racecar = require'racecar'
local flags = racecar.parse_arg(arg)
racecar.init()
local coresume = require'coroutine'.resume
local max, min = require'math'.max, require'math'.min
local schar = require'string'.char
local unpack = unpack or require'table'.unpack
local has_logger, logger = pcal... |
core:import("CoreShapeManager")
EditorShape = EditorShape or class(MissionScriptEditor)
function EditorShape:create_element()
EditorShape.super.create_element(self)
self._timeline_color = Vector3(1, 1, 0)
self._brush = Draw:brush()
self._element.class = "ElementShape"
self._element.values.trigger_times = 0
self._... |
local _M = {
waf = nil,
config = nil,
dao = nil,
ip = nil,
dns = nil,
loaded_plugins = nil,
worker_events = nil,
}
return _M
|
-- Internal custom properties
local IMAGE = script:GetCustomProperty("Image"):WaitForObject()
local PROGRESS_BAR = script:GetCustomProperty("ProgressBar"):WaitForObject()
local WALK_ICON = script:GetCustomProperty("WalkIcon")
local RUN_ICON = script:GetCustomProperty("RunIcon")
local CROUCH_ICON = script:GetCustomPrope... |
AddCSLuaFile()
SWEP.PrintName = "ID Card"
SWEP.Author = "Nomad"
SWEP.Purpose = "ID Card"
SWEP.Spawnable = true
SWEP.UseHands = true
SWEP.ViewModel = "models/weapons/c_medkit.mdl"
SWEP.WorldModel = "models/weapons/w_medkit.mdl"
SWEP.ViewModelFOV = 54
SWEP.RenderGroup = RENDERGROUP_BOTH
if CLIENT t... |
slot0 = class("BattleWorldBossResultLayer", import("..base.BaseUI"))
slot0.DURATION_MOVE = 0.35
slot0.DURATION_WIN_SCALE = 0.4
slot0.CONDITIONS_FREQUENCE = 0.15
slot0.STATE_RANK_ANIMA = "rankAnima"
slot0.STATE_REPORT = "report"
slot0.STATE_REPORTED = "reported"
slot0.STATE_REWARD = "reward"
slot0.STATE_DISPLAY = "displ... |
local table_merge = assert(foundation.com.table_merge)
local maybe_start_node_timer = assert(foundation.com.maybe_start_node_timer)
local cluster_thermal = assert(yatm.cluster.thermal)
local function furnace_refresh_infotext(pos)
local meta = minetest.get_meta(pos)
local heat = meta:get_float("heat")
meta:set_s... |
package.path = package.path .. ";data/scripts/lib/?.lua"
-- Don't remove or alter the following comment, it tells the game the namespace this script lives in. If you remove it, the script will break.
-- namespace HunterAmbushLeader
HunterAmbushLeader = {}
-- make the NPC talk to players
HunterAmbushLeader = include("... |
fx_version 'cerulean'
games { 'rdr3', 'gta5' }
author 'nimasiso'
description 'playtime'
version '1.0.0'
server_scripts {
"@mysql-async/lib/MySQL.lua",
"server.lua",
"config.lua"
}
client_scripts {
"client.lua",
"config.lua"
}
dependencies {
'mysql-async',
'es_extended',
'async',
} |
if not gui_enabled() then return end
require "b2ws_const"
local loaded_b2ws_import= assert(loadfile(b2ws_const.B2WS_PLUGIN_PATH .. b2ws_const.B2WS_IMPORT_BLOB_FILE))
loaded_b2ws_import()
local function b2ws_win_import_blob()
local win = TextWindow.new(b2ws_const.B2WS_IMPORT_BLOB_WIN_TITLE)
win:set_editable()
confi... |
--エクソシスター・アーメント
--
--Scripted by KillerDJ
function c100417022.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,100417022+EFFECT_CO... |
--action event pack
--B_30102Controller
return
{
} |
-- See LICENSE for terms
local mod_ToggleBushes
local mod_EnableVegetation
local function ToggleFunc(veg)
SuspendPassEdits("ChoGGi.ToggleVisibleVegetation.ToggleTrees")
for i = 1, #veg do
veg[i]:SetVisible(mod_EnableVegetation)
end
ResumePassEdits("ChoGGi.ToggleVisibleVegetation.ToggleTrees")
end
local functio... |
depends_on(between("python","3.8<","<3.11"))
|
--[[
物品 项目
]]
local THIS_MODULE = ...
local LuggageItem = class("LuggageItem", cc.Node,
require("app.main.modules.uiwidget.UIWidgetBase"),
import("._TableItem"))
-- 类扩展构造
function LuggageItem:clsctor(config)
table.merge(self,config)
end
-- 构造函数
function LuggageItem:ctor(size,anchor,config,params)
self._size =... |
local weight = tonumber(ARGV[3])
local capacity = process_tick(now, false)['capacity']
local nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))
return conditions_check(capacity, weight) and nextRequest - now <= 0
|
local score=redis.call('hget','user:'..KEYS[1],'score')
local day=redis.call('hget','user:'..KEYS[1],'lastSigninDay')
if(day==KEYS[2])
then
return '0'
else
redis.call('hset','user:'..KEYS[1],'score', score+1,'lastSigninDay',KEYS[2])
return '1'
end |
local names_first = {
"Alpha",
"Beta",
"Ultra",
"Omega",
"Semi",
"Great",
"Medi",
"Hopeless",
"WISE",
"Sirius",
"DEN",
"Epsilon"
}
local names_second = {
"Centauri",
"Aquarii",
"Cygni",
"Procyon",
"Ceti",
"Tauri",
"645",
"789"
}
function se_gen_system_name()
return table.Rand... |
require "bootstrap-tests"
test.upvalues.tear_down = default_tear_down
test.upvalues.check_single_upvalue_p = function(type_creator, type_checker)
local obj = type_creator()
local thread_worker = function(checker) return require("effil").type(obj) .. ": " .. checker(obj) end
local ret = effil.thread(thread... |
game.Workspace.Events.Shop.ChangeActiveGun:FireServer("Ray Gun") |
local F, C, L = unpack(select(2, ...))
local module = F:GetModule('Notification')
function module:Sapped()
if not C.notification.sapped then return end
local frame = CreateFrame('Frame')
local _, playerName
frame:RegisterEvent('PLAYER_ENTERING_WORLD')
frame:RegisterEvent('PLAYER_LOGIN')
frame:SetScript('OnEvent... |
local heart = Material( "basewars2017/icons/heart.png" )
local shield = Material( "basewars2017/icons/shield.png" )
local money = Material( "basewars2017/icons/money.png" )
local sw, sh = ScrW(), ScrH()
local x = 55
local w,h = 180, 15
function DrawBWHealthBar()
local pl = LocalPlayer()
local hp = pl:Health(... |
pants_s13 = {
-- Comfortable Slacks
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/pants/pants_s13.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {},
customizationValues = {
},
junkDealerTypeNe... |
-- title: xylkind-retro
-- author: Chris Patti
-- desc: Protect the eggs!
-- script: lua
sprite_counter=0
tick=0
eggs_laid = false
INITIAL_EGGS = 8
keeper = {
position = {
x=0,
y=0
},
}
eggs = {
position = {
x=0,
y=0
},
laid_at_tick = 0,
mature_by_tick = 0,
hatched_at_tick = 0,
... |
local namespace = require "luameta.src.namespace"
local mt = {}
local function newTrait(this, name)
assert(not _G[name], "")
assert(type(name) == "string", "")
local new = {}
setmetatable(new, mt)
new.statics = {}
new.methods = {}
new.metas = {}
new.name = name
_G[name] = new
... |
plrsWithSuperPunch = { }
addEventHandler ( "onPlayerDamage", root, function ( atr, weap, _, loss )
if ( atr and isElement ( atr ) and weap and weap == 0 ) then
if ( getElementModel ( atr ) and getElementModel ( atr ) == 217 ) then
if ( getPlayerStaffLevel ( atr, "int" ) or 0 >= 4 and plrsWithSuperPunch [ atr ]... |
module(..., package.seeall)
local Model = require 'bamboo.model'
local Message = Model:extend {
__name = 'Message';
__fields = {
['from'] = { foreign='User', required=true },
['to'] = { foreign='User' },
['subject'] = { foreign='UNFIXED', st='ONE' },
['type'] = {},
-- ['uuid'] = {},
['author'] = {},
... |
--[[
pbInfo - Includes/inc.MobDB.lua
v0.56
by p.b. a.k.a. novayuna
released under the Creative Commons License By-Nc-Sa: http://creativecommons.org/licenses/by-nc-sa/3.0/
]]
function pbInfo.MobDB.Update(target)
if (UnitExists(target) and not UnitIsPlayer(target) and UnitLevel(target) > 0) then
local name = UnitNa... |
--------------------------------------------------------------------------------
--<[ Внутренние события ]>------------------------------------------------------
--------------------------------------------------------------------------------
addEvent( "CallbackEvent.onServerSentInterfaceElement", true ) -- Сервер ... |
-- theme identification:
themeInfo = {
ProductCode = "MEM-100",
Name = "NepuM",
Date = "20190101",
}
|
local myZombies = {};
local distanceTable = {
[0] = 1.3,
[1] = 5,
[2] = 5,
[3] = 10,
[4] = 20,
[5] = 40
};
addEvent("Zomb_Jump", true);
addEvent("Zomb_Punch", true);
addEvent("Zomb_STFU", true);
addEvent("Zomb_Moan", true);
addEvent("Spawn_Placement", true);
function table.getn(table)
return #table;
end
addEv... |
return {
objects = {
{name="hallway", x=0, y=0, noquads=true},
{name="palm", x=70, y=10},
{name="me", x=0, y=17, controlled=true},
{name="palm", x=100, y=35},
{name="palm", x=30, y=31},
},
events = {
{x=30, knot='palm1'},
},
intro = "day1",
right = "3-1-hallway",
}
|
-----------------------------------------
-- Spell: Refresh
-- Gradually restores target party member's MP
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
--------------------------------------... |
local ffi = require('ffi')
local C = ffi.C
local errors = require("levee.errors")
local Parser_mt = {}
Parser_mt.__index = Parser_mt
function Parser_mt:__new()
return ffi.new(self)
end
function Parser_mt:__tostring()
return string.format(
"levee.http.Parser: %s", self.response and "response" or "request")
en... |
local completion = {}
local conf = require('modules.completion.config')
completion['neovim/nvim-lspconfig'] = {
event = 'BufReadPre',
config = conf.nvim_lsp,
requires = {
{'ray-x/lsp_signature.nvim'},
{'simrat39/rust-tools.nvim'},
},
}
completion['glepnir/lspsaga.nvim'] = {
cmd = 'Lspsaga',
}
c... |
-- InstanceStore
-- Makes sure that plugin data sticks with the place file.
-- we need to parent the thing under a service that can't be deleted.
local PluginStorageRoot = game:GetService("ServerStorage")
local RunService = game:GetService("RunService")
local HttpService = game:GetService("HttpService")
local JSON_RO... |
-- main entry file for the sandbox cartridge
-- game states: none, it's a custom cartridge just for testing
-- must require at main top, to be used in any required modules from here
require("engine/pico8/api")
require("engine/common")
require("common_sandbox")
require("engine/render/sprite")
require("resources/visu... |
local Packages = script:FindFirstAncestor("Packages")
local Roact = require(Packages.Roact)
local App = Packages.UIBlox.App
local Tile = require(App.Tile.BaseTile.Tile)
local Images = require(App.ImageSet.Images)
local PADDING = 20
local FOOTER_HEIGHT = 50
local NAME_HEIGHT = 20
local TileStoryContainer = Roact.Pure... |
local K, C = unpack(select(2, ...))
local ModuleSkins = K:GetModule("Skins")
local Module = K:GetModule("Tooltip")
local _G = _G
local unpack = unpack
local pairs = pairs
local table_insert = table.insert
local hooksecurefunc = hooksecurefunc
local function IslandTooltipStyle(self)
if not self.IsSkinned then
self... |
--- @class ScreenInstance
local ScreenInstance
|
PLUGIN.name = "3D Text"
PLUGIN.author = "Chessnut"
PLUGIN.description = "Adds text that can be placed on the map."
-- List of available text dislays.
PLUGIN.list = PLUGIN.list or {}
local PLUGIN = PLUGIN
if (SERVER) then
-- Called when the player is sending client info.
function PLUGIN:PlayerInitialSpawn(client)
... |
local cfg = module("cfg/survival")
function vRP.getHunger(user_id)
local data = vRP.getUserDataTable(user_id)
if not data then return 0 end
return data.hunger
end
function vRP.getThirst(user_id)
local data = vRP.getUserDataTable(user_id)
if not data then return 0 end
return data.thirst
end
function vRP.... |
local Draw = require("api.Draw")
local UiTheme = require("api.gui.UiTheme")
local IUiWidget = require("api.gui.IUiWidget")
local CircularBuffer = require("api.CircularBuffer")
local save = require("internal.global.save")
local config = require("internal.config")
local IEventEmitter = require("api.IEventEmitter")
local... |
local Stories = script.Parent.Parent.Parent.Parent
local Packages = Stories.Parent.Parent
local Roact = require(Packages.Roact)
local RoactGamepad = require(Packages.RoactGamepad)
local UIBloxConfig = require(Stories.UIBloxStorybookConfig)
local FocusContainer = require(Packages.StoryComponents.FocusContainer)
local In... |
-- Kitten by Jordach / BFD
mobs:register_mob("mobs:kitten", {
type = "animal",
passive = true,
hp_min = 5,
hp_max = 10,
armor = 200,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
visual_size = {x = 0.5, y = 0.5},
mesh = "mobs_kitten.b3d",
textures = {
{"mobs_kitten_striped.png"},
{"... |
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local Modules = ReplicatedStorage:WaitForChild('Modules')
local logger = require(Modules.src.utils.Logger)
local clientSrc = game:GetService('StarterPlayer'):WaitForChild('StarterPlayerScripts').clientSrc
local Roact = require(Modules.Roact)
local Support ... |
-- General editor setup
vim.cmd('set shell=/bin/bash') -- use the bash shell for nvim
vim.cmd('set number') -- enable line numbers
vim.cmd('set tabstop=2') -- tab width
vim.cmd('set shiftwidth=2') -- indent width
vim.cmd('set expandtab') -- converts tabs to spaces
vim.g.mapleader = ' ' -- use space as leader key
-- Se... |
-- used to store values like current nodes or the active node for autocommands.
local M = {}
M.ft_redirect = {}
setmetatable(M.ft_redirect, {
__index = function(table, key)
-- no entry for this ft(key), set it to avoid calls on each expand for
-- this filetype.
local val = { key }
rawset(table, key, val)
re... |
-----------------------------------
-- Area: Southern San d'Oria
-- NPC: Tek Lengyon
-- Type: Leathercraft Synthesis Image Support
-- !pos -190.120 -2.999 2.770 230
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Southern_San... |
--[[
Author: Mat/FreeER
Version: 1.15.1
Date: Jan. 15th 2021
This script lets you use simple mouse gestures while holding a specific mouse button:
Mouse buttons: 1=M1,2=M2,3=MMB,4=X1,5=X2. For G-buttons use their respective numbers eg. G9 is 9
note, most main mouse buttons do not seem to be passed with Enable... |
function f()
a = 7
print(a)
b = 8
print(b)
c = a * b
print(c)
d = a / b
e = a + b
f = a - b
if d > 1 then
print(d)
else
print(0)
end
if f < 0 then
print (f)
else
print(0)
end
if e <= 15 then
print (e)
else
print (0)
end
end
|
-- bugzilla plugin - Queries a bugzilla instance, via the !bug command, and responds
-- with the data found.
-- Requires Bugzilla 3.6 or later, and XMLRPC enabled.
-- Also requires lua-xmlrpc - see
-- http://keplerproject.github.com/lua-xmlrpc/
... |
local SyntaxKind = require("lunar.ast.syntax_kind")
local SyntaxNode = require("lunar.ast.syntax_node")
local ExportStatement = setmetatable({}, {
__index = SyntaxNode,
})
ExportStatement.__index = setmetatable({}, SyntaxNode)
function ExportStatement.new(body)
return ExportStatement.constructor(setmetatable({}, Ex... |
-- Timers library allow for easily delayed/timed actions
require('libraries/timers')
-- Notifications library can be used for sending panorama notifications to the UIs of players/teams/everyone
require('libraries/notifications')
-- Selection library provides player selection inspection and management from server lua
re... |
local component = require("component")
local computer = require("computer")
local advancedLua = require("advancedLua")
local color = require("color")
local image = require("image")
local unicode = require("unicode")
local buffer = require("doubleBuffering")
local GUI = require("GUI")
local event = require("ev... |
local myfirstmodule = {}
function myfirstmodule.foo()
print("My first module!")
end
return myfirstmodule
|
-- Internet Explorer Emulation module
-- Written by Sebastien Tricaud
--
-- For internet explorer, the following URIs are all equivalent:
-- http://www.example.com/sample/
-- http://www.EXAMPLE.com/sample/#
-- Http://www.ex%41mple.com/s%61mple/
-- http://www.example.com/sample/arbitrary/.%2e/
function hextochar(he... |
elder_mamien = Creature:new {
objectName = "@mob/creature_names:mamien_elder",
socialGroup = "mamien",
faction = "",
level = 20,
chanceHit = 0.33,
damageMin = 180,
damageMax = 190,
baseXp = 1609,
baseHAM = 4500,
baseHAMmax = 5500,
armor = 0,
resists = {5,120,5,5,5,5,5,-1,-1},
meatType = "meat_wild",
meatA... |
function outputMessage()
end
|
-- Сообщение отобразится на странице конфигурации в окне Плагины
print('Plugin2 Hello from config') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.