content stringlengths 5 1.05M |
|---|
Config = {}
Config.Vehicles = {
["flatbed"] = "MTL Flatbed",
["ct660tow"] = "CAT Flatbed",
["bc205500w"] = "RAM 5500 Flatbed",
["f150ex"] = "Ford F150 Utility Truck (Mechanics Only)",
}
Config.Locations = {
["payslip"] = {
label = "Collect Payslip",
coords = vector4(471... |
class 'IncomingMessages'
--local MutedPlayerList = require 'mutedPlayerList'
function IncomingMessages:__init()
--self.m_MutedPlayerList = MutedPlayerList()
self.m_CreateChatMessage = Hooks:Install('UI:CreateChatMessage',999, self, self.OnUICreateChatMessage)
self.m_MessageToSquadLeadersEvent = NetE... |
-- requires:
-- a) Compile recorder with -DLUA and configure
-- b) OTR_LUASCRIPT = ".../repub.lua"
-- also requires Lua JSON from http://regex.info/blog/lua/json
JSON = (loadfile "/etc/ot-recorder/JSON.lua")()
function otr_init()
end
function otr_exit()
end
function otr_hook(topic, _type, data)
otr.log("DE... |
require "torch"
require "liblab"
dofile(torch.packageLuaPath('lab') .. '/liblab.lua')
|
--[[
Single-Item Shop
by: standardcombo
v1.0
--]]
local SHOP_ID = script:GetCustomProperty("ShopID")
local TRIGGER = script:GetCustomProperty("Trigger"):WaitForObject()
local EXIT_TRIGGER = script:GetCustomProperty("ExitTrigger"):WaitForObject()
local isInteractableLogic = TRIGGER.isInteractable
local PLAYER = Ga... |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {
EscapeInfo = {},
MapPoint = {
{
AreaId = 1,
AreaRadius = 100,
AreaX = 21963,
AreaY = 2809,
AreaZ = ... |
-- Added for plugins to use
-- Lönn itself does not need this
local utils = require("utils")
local configs = require("configs")
local pluginLoader = require("plugin_loader")
local modHandler = require("mods")
local logging = require("logging")
local libraries = {}
libraries.registeredLibraries = nil
function librar... |
local localization = {
mod_description = {
en = "Shows a timer when a potion or attack speed proc is active."
},
timers_position = {
en = "Timers Position"
},
timers_position_description = {
en = "Choose whether the timers appear at the top or bottom of your screen."
},
timers_position_top = {
en = "Top"... |
--------------------------------
-- @module Sprite
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @overload self, cc.SpriteFrame
-- @overload self, string
-- @function [parent=#Sprite] setSpriteFrame
-- @param self
-- @param #string spriteFrameName
-- @retur... |
-- Writer lock acquire script.
-- This script sets writer intention to acquire the lock.
-- Then in tries to acquire the lock. If lock is acquired successfully intention is reset.
-- If it failed to acquire the lock the intention remains set to prevent adding new writer-preferring readers.
-- KEYS = [GLOB_LOCK_KEY, R... |
local api = require("fromage")
local client = api()
local enumerations = client.enumerations()
coroutine.wrap(function()
client.connect("Username#0000", "password")
if client.isConnected() then
local topic = client.createTopic("Testing API", "Aye Hey Hi", {
f = enumerations.forum.atelier801,
s = 167
}) -... |
return {
"message.proto",--通用协议
"login.proto",--登录
"lobby.proto",--大厅
"game.proto",--游戏
"game/fish/fish.proto",
"game/mahjong/mahjong.proto",
"game/poker/bull.proto",
"game/poker/cx.proto",
"game/poker/zjh.proto",
"game/slots/slots.proto",
} |
torch.setdefaulttensortype('torch.FloatTensor')
---------- library ----------
require 'torch'
require 'image'
require "lib/getfilename"
require "lib/window"
require "lib/patch"
require "lib/calc_rsme"
-- read dataset:
---------- functions ----------
function load_imgs(folderpath)
filepaths = getFilename(folder... |
return require("packer").startup(
function()
use {"wbthomason/packer.nvim"}
use {"UltiRequiem/nvim-snippets"}
use {"kyazdani42/nvim-tree.lua"}
use {"kyazdani42/nvim-web-devicons"}
use {"folke/todo-comments.nvim"}
use {"terrortylor/nvim-comment"}
use {"nvim-lua/plenary.nvim"}
use {"nvim... |
--!A cross-platform build utility based on Lua
--
-- 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... |
-- Input image colors must be white or black, other colors are not permited
ErosionShader = love.graphics.newShader [[
extern float iter;
extern vec2 Size;
int N(Image texture, vec2 tc) {
float [] P = float[8] (
Texel(texture, tc + vec2(0, -1) / Size).r,
Texel(texture, tc + vec2(1, -1) / Size).r,
T... |
local json = require 'json'
local fs = require 'bee.filesystem'
local uric = require 'uri'
local config = require 'config'
local rojo = {}
rojo.Watch = {}
rojo.RojoProject = {}
local function readFile(path)
local file = io.open(tostring(path))
local contents = file:read("*a")
file:close()
return cont... |
local Class = require "libs.class"
local base = require "gamestate.base"
local entidad = require "entidades.entidad"
local vector = require "libs.vector"
local enemigos = Class{
__includes = entidad
}
function enemigos:init(x,y)
self.body=base.entidades.collider:rectangle(x,y,35,43)
self.velocidad=650
self.spr... |
-- to create an array (table) use brackets
array = { "Landing", "on", "Lua" }
-- Fun Fact: Lua starts arrays at index 1 instead of 0 like most languages
-- we can also create a dictionary (key - value)
dictionary = {
['moon'] = "🌕",
['cheese'] = "🧀"
}
-- do a for loop as follows
for k,v in pairs(dictio... |
digicontrol = {}
digicontrol.selection_box = {
type = "fixed",
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }
}
digicontrol.node_box = {
type = "fixed",
fixed = {
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
{ -6/16, -7/16, -6/16, 6/16, -6/16, 6/16 }
},
}
local BASE_RULES = {
{x = 0, y = 0, z = 1}, --... |
--- Demonstrates the basic usage of moonsniff in order to determine device induced latencies
local lm = require "libmoon"
local device = require "device"
local memory = require "memory"
local ts = require "timestamping"
local hist = require "histogram"
local timer = require "timer"
local log = req... |
local id = param.get_id()
local newsletter
if id then
newsletter = Newsletter:by_id(id)
if newsletter.sent then
slot.select("error", function()
ui.tag{ content = _"Newsletter has already been sent out" }
end)
return false
end
else
newsletter = Newsletter:new()
end
newsletter.published = par... |
local Interaction = {}
local methods = {}
local metatable = {}
function metatable.__index(interaction, key)
return methods[key]
end
function methods:source()
return self._source
end
local SOURCE_TYPES = { "key", "pointer", "none" }
function Interaction.new(source)
local t = source:type()
if t ~= "key" and ... |
data:extend(
{
{
type = "item",
name = "burner-sand-mining-drill",
icon = "__base__/graphics/icons/burner-mining-drill.png",
flags = {"goes-to-quickbar"},
subgroup = "biotech-equipment",
order = "a[sand]-1",
place_result = "burner-sand-mining-drill",
stack_size = 50
},
{
type =... |
function mirror_dir_x(direction)
if direction == directions.left then
return directions.right
elseif direction == directions.right then
return directions.left
else
return direction
end
end
function mirror_dir_y(direction)
if direction == directions.up then
return directions.down
elseif dire... |
cjson = require 'cjson'
string = require 'string'
dyups = require 'ngx.dyups'
config = require 'elb.config'
utils = require 'resty.utils'
statsd = require 'resty.statsd' |
include("sh_taunts.lua")
--local DbgPrint = GetLogging("Taunts")
local TauntIndex = CreateClientConVar("_lambda_taunt_idx", "1", true)
local CategoryIndex = CreateClientConVar("_lambda_taunt_cat_idx", "1", true)
local TauntMaxDisplay = 3 -- Each direction
local TauntSelection = false
surface.CreateFont("TauntFont",
... |
function test()
local a = 22.2
local mod = 5
return a % mod
end
jit("compile", test)
local res = test()
assert(res == 22.2 % 5)
--[[
function <../tests/16_OP_MOD.lua:1,5> (5 instructions at 0x13ba590)
0 params, 3 slots, 0 upvalues, 2 locals, 2 constants, 0 functions
1 [2] LOADK 0 -1 ; 22.2
2 [3] LOA... |
local K, C = unpack(select(2, ...))
local _G = _G
local hooksecurefunc = _G.hooksecurefunc
local function replaceBlueColor(bar, r, g, b)
if r == 0 and g == 0 and b > .99 then
bar:SetStatusBarColor(0, .6, 1, .5)
end
end
tinsert(C.defaultThemes, function()
for _, slot in pairs({PaperDollItemsFrame:GetChildren()}... |
gimyi = {
on_spawn = function(mob)
mob:warp(1308, 2, 5)
end,
on_healed = function(mob, healer)
mob_ai_basic.on_healed(mob, healer)
end,
on_attacked = function(mob, attacker)
mob_ai_basic.on_attacked(mob, attacker)
end,
move = function(mob, target)
mob_ai_basic.move(mob, target)
end,
attack = functi... |
local opt = vim.opt
local g = vim.g
opt.termguicolors = true
opt.clipboard = "unnamed,unnamedplus"
opt.fileencodings = "utf-8,gb2312"
opt.foldlevel = 99
opt.foldmethod = "indent"
opt.colorcolumn = "80,100"
opt.mouse = "a"
opt.hidden = true
-- opt.autosave = false
opt.encoding = "utf8"
opt.ffs = "unix,dos,mac"
-- opt.n... |
Jelmergu:addConditionalTechnology("basic-automation", "burner-assembling-to-assembling-machine-1", "automation") |
-- Copyright 2018 David PHAM-VAN <dev.nfet.net@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.map", package.seeall)
function index()
local page
page = entry({"admin", "status", "map"}, template("map/index"), _("Network Map"), 2)
page.dependent = true
entry({"admin", "... |
mapQuests = require "lib/mapQuests"
mapEffects = require "lib/mapEffects"
npcSpeakers = require "lib/npcSpeakers"
quest = target.get_quest(mapQuests.getID("StrangeDream"))
utah = self.as_speaker(npcSpeakers.getID("Utah"))
utah.say("Hey, Evan. You up? What's with the dark circles under your eyes? Didn't sleep well? H... |
--!A cross-platform build utility based on Lua
--
-- 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... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local lib = ReplicatedStorage:WaitForChild("lib")
local common = ReplicatedStorage:WaitForChild("common")
local component = script.Parent
local common_util = common:WaitForChild("util")
local getTextSize = require(common_util:WaitForChild("getTextSize"))
... |
local nsopts = { noremap = true, silent = true }
local nopts = { noremap = true }
local keybind = vim.api.nvim_set_keymap
-- Pre. Allows us to map C-c key sequence (see Post below).
keybind("n", "<C-c>", "<Nop>", nopts)
keybind("i", "<C-c>", "<Nop>", nopts)
-- Core.
vim.g.mapleader = " "
vim.g.maplocalleader = ","
ke... |
SWEP.Base = "weapon_base"
SWEP.PrintName = "Portal Gun"
SWEP.ViewModel = "models/weapons/c_irifle.mdl"
SWEP.ViewModelFlip = false
SWEP.UseHands = true
SWEP.WorldModel = "models/weapons/w_irifle.mdl"
SWEP.SetHoldType = "pistol"
SWEP.Weight = 5
SWEP.AutoSwichTo = true
SWEP.AutoSwichFrom = false
SWEP.Category = "Seaml... |
workspace "KaraokeReplay"
platforms { "Win64" }
project "KaraokeReplay"
kind "SharedLib"
targetextension ".asi"
language "C++"
files { "**/MemoryMgr.h", "**/Trampoline.h", "**/Patterns.*", "**/HookInit.hpp" }
workspace "*"
configurations { "Debug", "Release", "Master" }
location "build"
vpaths { ["Headers/... |
--[[
Variables
]]
DecorRegister("Vehicle-Fakeplate", 2)
--[[
Events
]]
AddEventHandler("vehicle:addFakePlate", function()
local vehicle = nil
local target = exports["caue-target"]:GetCurrentEntity()
if DoesEntityExist(target) and GetEntityType(target) == 2 and #(GetEntityCoords(PlayerPedId(... |
module 'mock'
CLASS: RenderTarget ( Viewport )
:MODEL{}
function RenderTarget:__init()
self.mode = 'relative'
self.frameBuffer = false
self.debugName = ''
end
function RenderTarget:setDebugName( name )
self.debugName = name
end
function RenderTarget:getFrameBuffer()
return self.frameBuffer
end
function Rende... |
local utils = require 'utils'
local soundManager = require 'soundManager'
local winTheGame = {}
local winTheGameSound = love.audio.newSource("assets/sfx/bad_melody.wav", "static")
function winTheGame.load()
soundManager.play(winTheGameSound)
end
function winTheGame.update( dt )
-- body
end
function winTheGame.... |
-----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Tarnotik
-- Type: Standard NPC
-- !pos 160.896 10.999 -55.659 11
-----------------------------------
require("scripts/globals/missions")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, npc, trade)
... |
CHARCLASS.DisplayName = "Человек"
CHARCLASS.DisplayDesc = nil
CHARCLASS.DisplayColor = Color(150,150,150)
CHARCLASS.IsDefault = true
function CHARCLASS:GetValidModels(ply)
return {
"models/humans/group01/male_01.mdl",
"models/humans/group01/male_02.mdl",
"models/humans/group01/male_04.mdl",... |
local FOLDER_NAME, private = ...
local Chronicles = private.Core
local Locale = LibStub("AceLocale-3.0"):GetLocale(private.addon_name)
Chronicles.DB = {}
Chronicles.DB.Events = {}
Chronicles.DB.Factions = {}
Chronicles.DB.Characters = {}
Chronicles.DB.RP = {}
RPEventsDB = {}
function Chronicles.DB:Init()
self:R... |
local PLUGIN = {}
PLUGIN.Name = "Freeze All"
PLUGIN.Author = "RedMist"
PLUGIN.Date = "15th March 2011"
PLUGIN.Filename = PLUGIN_FILENAME
PLUGIN.ClientSide = true
PLUGIN.ServerSide = true
PLUGIN.APIVersion = 2
PLUGIN.Gamemodes = {}
if (CLIENT) then
function PLUGIN.FreezeAll()
RunConsoleCommand('perp_a_fa');
end... |
--- === utils.requirePlus ===
---
--- Some useful additions to requiring stuff
---
local module = {}
local luafs = require("hs.fs")
local log = require("hs.logger").new("utils.require", require("hs.settings").get("utils.require.logLevel") or "warning")
-- private variables and methods -----------------------------... |
sound.Add({
name = "jetpack_ignition",
channel = CHAN_STATIC,
volume = 1.0,
level = 80,
pitch = {95, 110},
sound = "kuma96/powerarmor_t51/jetpack_ignition.wav"
})
sound.Add({
name = "jetpack_flame",
channel = CHAN_STATIC,
volume = 1.0,
level = 80,
pitch = {95, 110},
sound = "kuma96/powerarmor_t51/jetpack_f... |
require"colorizer".setup({"*"}, {
RGB = true,
RRGGBB = true,
RRGGBBAA = true,
rgb_fn = true,
hsl_fn = true,
css = true,
css_fn = true,
})
|
local K, C, L = unpack(select(2, ...))
-- Currenly Being Voted on @ KkthnxUI Discord
-- 8 = Yes | 8 = No
-- local function HideMadeByName(self)
-- for i = 2, self:NumLines() do
-- local line = _G[self:GetName().."TextLeft"..i]
-- local text = line and line:GetText()
-- if text and text ~= "" and string.match(t... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local INT, STRING, FLOAT, TABLE =
drawers.trolley_META_TYPE_INT,
drawers.trolley_META_TYPE_STRING,
drawers.trolley_META_TYPE_FLOAT,
drawers.trolley_META_TYPE_TABLE
local to_register = { }
if core.get_modpath("default") and default then
to_register = {
"drawers:wood",
"drawers:acacia_wood",
"drawers:aspen_... |
object_tangible_content_wod_token_4 = object_tangible_content_shared_wod_token_4:new {
}
ObjectTemplates:addTemplate(object_tangible_content_wod_token_4, "object/tangible/content/wod_token_4.iff")
|
local alog = require("logger.alog")
local test = {}
function test.execute(action_param)
ngx.say("hello world")
alog.notice("success", 111)
end
return test
|
local resolvefilepath = _G.resolvefilepath
local function OnRedCC(inst)
if inst._parent == nil then
return
end
local player = inst._parent
local w = _G.TheWorld
if inst.screecher_red_cc:value() then
w:PushEvent("overridecolourcube", resolvefilepath("images/colour_cubes/screecher_cc_red_cc.tex"))
else
w... |
local parser = require "Lua/Util/wowtoolsparser"
local pre = [[interface GlobalStringInterface {
[key: string]: string
}
export const data: GlobalStringInterface = {
]]
local slashStrings = {
KEY_BACKSLASH = function(s) return s:sub(1, 2) == "9." end, -- broken in 9.1.0
CHATLOGENABLED = function(s) return s:sub(1... |
print("Processig font file:", arg[1])
local font = dofile(arg[1])
out = io.open(arg[1] .. ".out", "w")
out:write([[
return {
]])
for i,v in pairs(font) do
local l = {
"\t",
string.format("[0x%02X]", i),
" = ",
[["]],
}
for _,v in ipairs({v:byte(1, -1)}) do
... |
local outfile = 'ctg/rawtext'
local width = 1440
local height = 900
local function write(data, zoom)
game.write_file(outfile, tostring(width) .. ' ' .. tostring(height) .. ' '
.. tostring(zoom) .. ' ' .. global.settings['pattern-preset'] .. '\n', true)
local stuff = {}
for row = 1, height do
... |
require('constants')
require('fn')
require('map_events')
local map_id = "whalings_end"
local function init_community_garden(map_id)
generate_vegetable_garden(map_id, 16, 18, 11, 13, false, 1, 1)
end
local function init_yew(map_id)
init_community_garden(map_id)
end
map_events.set_map_fn(map_id, init_yew)
|
local function f1(x, y, z)
return y
end
local function f2(x, y, z)
return x, y, z
end
local function f3(x, y, z)
return x + y + z
end
local u = 7
local function f4(x)
return x + u
end
local function f5(x)
return u
end
local a, b, c = 3, 5, 21
print(f1(a, b, c))
print(f2(a, b, c))
print(f3(a, b, c))
print(f4(a... |
--- Get all of the commands as a dictionary
-- The keys are the class names, the values are the classes
local file = require('functional/file')
local result = {}
local files = file.scandir('classes/commands', true, false)
for _, file in ipairs(files) do
if file ~= 'all.lua' and file:sub(-4) == '.lua' then... |
--local
local requireA = require "aaa.bbb.ccc"
local ccc = aaa + bbbb
local ddd = aaa + eee
+ eeee
local f = function() end
local cc2 = function()
end
--cotinuous
local aa = 123
local ddd = 456
local d13131 = 131
--do
do return end
do
return function()
end
end
--function
function f(aaa, bbbb... |
---@type Image
local Image = require('lib.stdlib.oop._generated._image')
---<static> create
---@overload fun(file: string, size: Vector3, pos: Vector3, origin: Vector3, imageType: integer): Image
---@param file string
---@param sizeX float
---@param sizeY float
---@param sizeZ float
---@param posX float
---@param posY... |
local version = require("version")
local range = version.range
local set = version.set
local ok, err
------------------------------------------
-- strict and relaxed parsing
------------------------------------------
local lua
lua, err = version("Lua 5.3")
assert(tostring(lua) == "5.3")
lua, err = version.strict("Lua... |
--lune/base/Meta.lns
local _moduleObj = {}
local __mod__ = '@lune.@base.@Meta'
local _lune = {}
if _lune6 then
_lune = _lune6
end
if not _lune6 then
_lune6 = _lune
end
local _MetaInfo = {}
_moduleObj._MetaInfo = _MetaInfo
function _MetaInfo.setmeta( obj )
setmetatable( obj, { __index = _MetaInfo } )
end
fun... |
local isClient = Ext.IsClient()
local ts = Classes.TranslatedString
if isClient then
--local combatLogTooltip = ts:Create("hf7c8b6b6g580bg4bc0g96efg5d9cd1500754", "Combat Log")
local combatLogTooltip = ts:Create("h1b7b6ddbg0b60g455dgac16g21fc2e843581", "Toggle Log")
---@private
---@class ContextMenuOpenTarget
loc... |
local playsession = {
{"tykak", {96128}},
{"Trashbull", {89206}},
{"glukuzzz", {77386}},
{"kevinzhan", {33438}}
}
return playsession |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'config.lua'
server_script 'config.lua'
client_script 'client.lua'
server_script "server.lua" |
include('shared.lua')
if !ConVarExists("lee_crosshair_fr") then
CreateClientConVar("lee_crosshair_fr", 196, true, false)
end
if !ConVarExists("lee_crosshair_fg") then
CreateClientConVar("lee_crosshair_fg", 36, true, false)
end
if !ConVarExists("lee_crosshair_fb") then
CreateClientConVar("lee_crosshair_f... |
MOD_NAME = "__color-coding__"
-- These tables are the foundation of the rest of the mod
-- EVERYTHING is derived from these lists:
-- * entity names
-- * sprite folder paths
-- * lamp light color
-- * map pixel colors for the concrete
--
-- To add a color (for all item types) you need to create the righ... |
-- The bio reactor was copied from the Bio Industries mod, who copied it from the Tree Mod
data:extend({
{
type = "item",
name = "biotech-bioreactor",
icon = "__BioTech__/graphics/icons/wood_reactor_icon.png",
flags = {"goes-to-quickbar"},
subgroup = "biotech-equipment",
order = "d[bio]-1",
... |
data:extend({
{
type = "item",
name = "autonomous-space-mining-drone",
icon = "__expanded-rocket-payloads__/graphic/mining-drone-32.png",
icon_size = 32,
flags = {"goes-to-main-inventory"},
subgroup = "space-mining",
order = "n",
stack_size = 5
}
}) |
local playsession = {
{"Thuro", {8017}},
{"helic99", {71771}},
{"ballbuster", {4914}},
{"Hoboslayer", {67812}},
{"Bryce940", {69407}},
{"Mr_T", {69722}},
{"henrycn1997", {2294}},
{"PhaseMachine", {1349}},
{"Nikkichu", {57485}},
{"Tarquinius", {57382}},
{"Vladis_Generator", {5253}},
{"antuan309", {19426}},
... |
object_tangible_loot_mustafar_cube_loot_cube_loot_1c = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_1c:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_1c, "object/tangible/loot/mustafar/cube/loot/cube_loot_1c.iff")
|
return {'kryoliet','krypton'} |
{data={name="Hive", author="Magnus siiftun1857 Frankline"},
blocks={
{0x132e28, {-128.646, -0.003}, command={faction=1257}},
{65712, {7.025, 54.997}, -3.142, command={faction=1257}, bindingId=5, shape=0x132e2e,
name="Anti Missile Drone", features=LAUNCH, group=1257, health=1000, points=250,
dura... |
--SLIDERS Name, conVar, default, min, max, decimals
list.Add("ScarConVarSlidersCar", { "Max Power", "scar_acceleration", 10000, 0, 10000, 1} )
list.Add("ScarConVarSlidersCar", { "Max Speed", "scar_maxspeed" , 5000, 10, 5000, 1} )
list.Add("ScarConVarSlidersCar", { "Max Turbo Effect", "scar_turborffect", 5,... |
local configs = require('lspconfig/configs')
local lsp = require('lspconfig')
local util = require('lspconfig/util')
local server_name = 'sleeplylyzer'
configs[server_name] = {
default_config = {
cmd = { 'sleeplylyzer' },
cmd_env = {
GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.3bc|._3bc|.tbc)',
... |
local Fabric = require(script.Parent)
return function()
describe("Fabric.new", function()
it("should return a fabric", function()
local fabric = Fabric.new("the namespace")
expect(fabric.namespace).to.equal("the namespace")
end)
end)
describe("Fabric:registerComponent", function()
it("should register ... |
return {'elideren','eliminatie','elimineren','eliminering','elisie','elitair','elite','elitecultuur','elitegroep','elitekorps','eliteschool','elitesport','elitetroepen','elitevorming','elixer','elixir','elizabethaans','eliteclub','elia','elianne','eliksem','eline','elingen','elisabeth','elise','eli','elian','eliane','e... |
---------------------------------------------------------------------------------------------------
-- Utils
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local json = require("modules/json")
local events = require('events')
--[[ M... |
local Globals = require("vr-radio-helper.globals")
local VhfFrequencySubPanel = require("vr-radio-helper.components.panels.vhf_frequency_sub_panel")
local VatsimData = require("vr-radio-helper.state.vatsim_data")
local ComFrequencySubPanel
do
ComFrequencySubPanel = VhfFrequencySubPanel:new()
ComFrequencySubPa... |
--
-- (C) 2013 Kriss@XIXs.com
--
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str... |
workspace "Nutcracker"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
--Include directories relative to root folder (solution directory)
IncludeDir={}
IncludeDir["GLFW"]="Nutcracker/vendor/GLFW/include"
IncludeDir... |
#!/usr/bin/env luajit
module(..., package.seeall)
local genyang = require("program.lwaftr.tests.propbased.genyang")
local common = require("program.lwaftr.tests.propbased.common")
local run_pid = {}
local current_cmd
function property()
current_cmd = genyang.generate_any(run_pid[1])
local results = (genyang.ru... |
players = {}
main = {}
warn = {resson = {}}
local warnresson = ""
addEvent("main.windows", true)
addEvent("main.windows", true)
addEventHandler ( "main.windows", getRootElement(),
function()
if ( guiGetVisible ( main.windows ) == true )
then guiSetVisible(main.windows,false)
showCursor ( false )
else
guiSetVisib... |
function getvarvalue(name)
local value, found
for i=1, math.huge do
local n, v = debug.getlocal(2, i)
if not n then break end
if n==name then
value = v
found = true
end
end
if found then return value end
local func = debug.getinfo(2, "f").func
for i=1, math.huge do
local n, v =... |
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
local list = {
{ key = {"<CR>"}, cb = tree_cb("edit") },
{ key = {"."}, cb = tree_cb("cd") },
{ key = "<C-v>", cb = tree_cb("vsplit") },
{ key = "<C-x>", cb = tre... |
--[[
statusbarSelector.lua
Displays a list of statusbars registered with SharedMedia
--]]
local _, ns = ...
ns.Widgets = ns.Widgets or {}
local LSM = LibStub('LibSharedMedia-3.0')
local LSM_BAR = LSM.MediaType.STATUSBAR
local BUTTON_HEIGHT, BUTTON_PADDING = 52, 2
local ROW_HEIGHT = BUTTON_HEIGHT + BUTTON_PADDING
... |
--[[
Copyright (c) 2022 CerealPXL
This library is free software; you can redistribute it and/or modify it
under the terms of the MIT license. See LICENSE for details.
]]--
Time = {
Elapsed = 0,
PreviousElapsed = 0,
Freeze = 0,
Timers = {},
GetFPS = love.tim... |
characterspec = require("characterspec")
require("pl.class").enemy(characterspec)
enemy.name = "gfx/enemy.png"
enemy.speed = 2*100
enemy.direction =-1
function enemy:_init(y)
self:super()
self.loc = vector(20, y)
end
function enemy:update(dt)
if self.loc.x < 0 then
self.direction = 1
self.loc.x = 0
elseif ... |
-- Physics libary thing with pixel collisions,
-- modified for Mari0 2 (to the point of having to backport it if I wanna use it somewhere else).
-- Feel free to use it, MIT License
local Physics3 = {}
Physics3collisionMixin = {
leftColResolve = function() end,
rightColResolve = function() end,
topColResol... |
--------------------------------------------------------------------------------
-- Acid resist wall --
--------------------------------------------------------------------------------
local acidResistWall = util.table.deepcopy(data.raw["item"]["stone-wall"])
a... |
-- Copyright (c) 2021 Kirazy
-- Part of Artisanal Reskins: Compatibility
--
-- See LICENSE in the project directory for license information.
-- Override circuit style settings in reskins-bobs when Circuit Processing is present
if mods["CircuitProcessing"] then
reskins.lib.setting_override("string-setting", "reskin... |
------------------------------------------------
----[ RAGDOLL]----------------------------
------------------------------------------------
local Ragdoll = SS.Commands:New("Ragdoll")
// Branch flag
SS.Flags.Branch("Fun", "Ragdoll")
// Ragdoll command
function Ragdoll.Command(Player, Args)
local Table = Player:Ge... |
--获得bot对象
--local bot = Bot(QQ账号,"*******","D:\\Users\\Administrator-PC\\Desktop\\mirai\\device.json")
--登录bot
--bot:login()
Event.onLoad =
function (bot)
print("载入bot"..bot:getId().."成功")
bot:subscribeFriendMsg(
function(bot, msg, sender)
local Bot = sender.id == 320279493 or se... |
local killercolour = Color(255,0,0) // Prop killer's name color
local victimcolour = Color(0,0,255) // Victim's name color
local adminnoticeonly = true // Weather the notice should be admin only, or for everyone.
local staffgroups = { "superadmin", "admin", "operator" } // ULX Group names, for those who should be notif... |
AddCSLuaFile()
-- This file contains all the sirens used.
-- Tables are numbered to avoid vehicles using the wrong siren set from being rearranged.
--[[ Siren Example Table
{
Name = "Example Siren", -- The name that shows on the HUD.
Category = "Examples", -- The category the siren shows up under.
Set = { -- The a... |
-- ====================================================================================================================
-- ====================================================================================================================
-- Copyright (c) 2017 Ryan Brock. All rights reserved.
-- Licensed under the MIT... |
-- glow/init.lua
-- mod by john and Zeg9
LIGHT_MAX = 15
minetest.register_node("glow:stone", {
description = "Glowing stone",
tiles = {"glow_stone.png"},
light_source = LIGHT_MAX,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("glow:lamp", {
description = "Lamp",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.