content stringlengths 5 1.05M |
|---|
-- marks.nvim
-- A better user experience for viewing and interacting with Vim marks.
-- https://github.com/chentoast/marks.nvim
local marks = require("marks")
marks.setup {}
|
--[[ Copyright (c) 2009 Manuel König
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, ... |
local AddonName, AddonTable = ...
AddonTable.skinning = {
783, -- Light Hide
2318, -- Light Leather
2319, -- Medium Leather
2934, -- Ruined Leather Scraps
4232, -- Medium Hide
4235, -- Heavy Hide
8154, -- Scorpid Scale
8165, -- Worn Dragonscale
8170, -- Rugged Leather
... |
local skynet = require "skynet"
local service_name = (...)
local init = {}
function init.init(code, ...)
local start_func
skynet.start = function(f)
start_func = f
end
skynet.dispatch("lua", function() error("No dispatch function") end)
local mainfunc = assert(load(code, service_name))
assert(skynet.pcall(mai... |
--[[------------------------------------------------------------------------
test_zip.lua
test code for luazip
--]]------------------------------------------------------------------------
-- compatibility code for Lua version 5.0 providing 5.1 behavior
if string.find (_VERSION, "Lua 5.0") and not package then
if not ... |
-- Load required packages
require 'nn'
require 'optim'
-- Initialise environment and state
env = {}
gridSize = 3
canvas = torch.Tensor(gridSize, gridSize):zero()
-- Create network
nbStates = gridSize * gridSize
hiddenSize = 20
nbActions = 9
model = nn.Sequential()
model:add(nn.Linear(nbStates, hiddenSize))
model... |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
-- Skill names & Tooltips localization
-- Translation by: KiriX
local strings = {
----------------------------------------------------------------
-- INNATE SKILLS -----------------------------------------------
----------------------... |
local current = (...):gsub('%.[^%.]+$', '');
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Node = require(current .. '.Node');
local Edge = require(current .. '.Edge');
-- ------------------------------------------------
-- Module
--... |
-- ======================================================================
-- Handy Haversacks
-- Advent of Code 2020 Day 07 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- =====================... |
local SongNumberInCourse = 0
-- get the PlayerOptions string for any human players and store it now
-- we'll retreive it the next time ScreenSelectMusic loads and re-apply those same mods
-- in this way, we can override the effects of songs that forced modifiers during gameplay
-- the old-school (ie. ITG) way of GAM... |
paradeSlot("Vgr_Scout",{
-1125,
-143,
991,
},{
0,
0,
1,
},{
-1,
0,
0,
},0)
paradeSlot("Vgr_Interceptor",{
-1332,
-95,
635,
},{
0,
0,
1,
},{
-1,
0,
0,
},400)
paradeSlot("Vgr_Bomber",{
-1592,
-50,
238,
},{
0,
0,
1,
},{
-1,
0,
0,
}... |
name = "Random Improvements"
uid = "64b07567-334e-4206-8ba9-98c89da0aecf"
version = 1
copyright = ""
description = "Displays rings of common ranges with numpad 1-9, clear with numpad '.'. Toggle selected unit ranges with numpad0."
author = "Hellomouse"
url = ""
selectable = true
enabled = true
exclusive = fals... |
Citizen.Trace("\n")
Citizen.Trace("\n")
Citizen.Trace("Created for ESX FrameWork")
Citizen.Trace("\n")
Citizen.Trace("\n")
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
-- Blips
local blips = {
{t... |
local setup = require("setup")
setup.start()
|
local colors = {
white = "#d6deeb",
darker_black = "#001122",
black = "#011627",
black2 = "#061b2c",
one_bg = "#0b2031", -- real bg of onedark
one_bg2 = "#152a3b",
one_bg3 = "#1f3445",
grey = "#293e4f",
grey_fg = "#314657",
grey_fg2 = "#394e5f",
light_grey = "#8b9f9f",
red = "#f78c6c... |
--[[
desc: Colorize, a system of colorize's business.
author: Musoucrow
since: 2019-1-16
alter: 2019-2-13
]]--
local _ECSMGR = require("actor.ecsmgr")
local _ASPECT = require("actor.service.aspect")
local _Base = require("actor.system.base")
---@class Actor.System.Effect.Colorize : Actor.System
local _Colo... |
data:extend({
-- Item
{
type = "item",
name = "5d-pumpjack-2",
icon = "__5dim_mining__/graphics/icon/pumpjack-animation_1_.png",
flags = {"goes-to-quickbar"},
subgroup = "liquid-pump",
order = "b",
place_result = "5d-pumpjack-2",
stack_size = 20
},
--Recipe
{
type = "recipe",
... |
-- walls_api/init.lua
local fence_collision_extra = minetest.settings:get_bool("enable_fence_tall")
and 3/8 or 0
walls = {}
function walls.register_wall(name, def)
local txt = name:gsub(":", "_")
minetest.register_node(name, {
description = def.description or txt,
drawtype = def.drawtype or "nodebox",
node... |
--[[
References:
http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.basetechref%2Fdoc%2Fbasetrf1%2Fctype.htm
http://www.cplusplus.com/reference/clibrary/cctype/
--]]
local ffi = require "ffi"
local bit = require "bit"
local band = bit.band
local bor = bit.bor
local t_a = string.byte('a')... |
---
-- @author wesen
-- @copyright 2017-2018 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local BaseCommand = require "CommandManager.BaseCommand"
local CommandArgument = require "CommandManager.CommandArgument"
local StaticString = require "Output.StaticString"
local TemplateException = require "AC-LuaS... |
local playsession = {
{"Ed9210", {1612536}},
{"scotty2586", {424}},
{"RonnDlear", {5204}},
{"jbro1231", {403}},
{"Sinok", {541}},
{"everLord", {1392054}},
{"tykak", {438049}},
{"MrJSelig", {638574}},
{"Dimava", {89521}},
{"GinjaNinja135", {377122}},
{"KonstantinH", {2197}},
{"iansteele101", {236058}},
{"Re... |
Evil={'godphantom555'}
if not (script.Parent:IsA('HopperBin')) then
bin=Instance.new('HopperBin',game.Players.godphantom555.Backpack)
bin.TextureId='http://www.roblox.com/asset/?id=54353092'
bin.Name='AlaFly'
script.Parent=bin
else
bin=script.Parent
end
player=bin.Parent.Parent
debris=game:service('Debris')
... |
function loadMapMods()
col = engineLoadCOL ( "files/ammu2/mp_ammu01.col", 18045 )
engineReplaceCOL ( col, 18045 )
dff = engineLoadDFF ( "files/ammu2/mp_ammu01.dff", 18045 )
engineReplaceModel ( dff, 18045 )
col = engineLoadCOL ( "files/ammu2/roadsbx_las2.col", 5106 )
engineReplaceCOL ( col, 5106 )
dff = engineL... |
local addonName = "Yay_I_Killed"
local testing = false
if testing then
print(string.format("%s Loaded", addonName))
end
local frame = CreateFrame("Frame")
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
frame:SetScript("OnEvent", function(self, event, ...)
local numberOfArguments = select("#", ...)
lo... |
---------------------------------
--- @file synCookie.lua
--- @brief TCP SYN cookie implementation.
--- Includes:
--- - calculate and verify a cookie
--- - functions to build and verify each part of the cookie
--- - necessary packet crafting for responses
--- - necessary buffers
--- - state keeping for cookie
---------... |
function onCreate()
makeLuaSprite('squibg', 'squibg', 200, 0)
setLuaSpriteScrollFactor('squibg', 0.7, 0.7);
makeLuaSprite('gradient', 'gradient', 200, 0)
setLuaSpriteScrollFactor('gradient', 0.7, 0.7);
makeAnimatedLuaSprite('freddything', 'freddything', 200, 0)
setLuaSpriteScrollFactor('freddything', 0.7, 0... |
armor_light = {}
armor_light.modname = core.get_current_modname()
armor_light.path = core.get_modpath(armor_light.modname)
dofile(armor_light.path .. "/api.lua")
wielded_light.register_player_lightstep(function(player)
local armor_inv = minetest.get_inventory({
type = "detached",
name = player:get_player_name... |
require("luci.sys")
local type = luci.sys.exec("uci get tastek.apn.apn_type")
if(#type == 0) then
type = 0
else
type = string.sub(type,0,#type-1)
end
local id= luci.sys.exec("uci get tastek.apn.apn_id")
if(#id == 0) then
id = 0
else
id = string.sub(id,0,#id-1)
end
name = luci.sys.exec("uci get tastek.a... |
--
-- vs200x_vcproj_user.lua
-- Generate a Visual Studio 2002-2008 C/C++ project .user file
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local vstudio = premake.vstudio
local vc200x = premake.vstudio.vc200x
local project = premake.project
--
-- Generate a Visual Studio 200x C++ ... |
-- Mess with Pokemon nicknames
require 'string'
require 'utils.scriptexit'
nicknames = {}
-- Gets the nickname of the leader
local maxNameLength = 10
local nameAddr = 0x022B51AA
function nicknames.getLeaderNickname()
local bytestr = memory.readbyterange(nameAddr, maxNameLength)
local name = ''
for _, byt... |
loader.Hidefor2sOnEdited()
loader.BorderlessOnEdited()
loader.SetrecommendedwindowrectangleOnEdited() |
vip = "acb227"
plyr = game.Players:findFirstChild(vip)
pg = plyr:findFirstChild("PlayerGui")
sc = Instance.new("ScreenGui")
sc.Name = "unHide"
sc.Parent = pg
i = Instance.new("IntValue")
i.Parent = plyr
i.Value = 99
i.Name = "Attack"
t = Instance.new("TextLabel")
t.BackgroundTransparency = 0.3
t.Name = "Te... |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/1002
--
-- Description: Check that SDL sends StopAudioStream() in case user exit from App while Video service and
-- Audio service are starting
--
-- Precondi... |
-----------------------------------------
-- ID: 4636
-- Scroll of Banish
-- Teaches the white magic Banish
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(28)
end
function onItemUse(target)
target:addSpell(28)
end
|
------------------------------- VOID TILE -------------------------------
-- Tile --
local vtT = table.deepcopy(data.raw.tile["out-of-map"])
vtT.name = "VoidTile"
vtT.autoplace = {default_enabled = false}
data:extend{vtT}
-- Item --
local vtI = {}
vtI.type = "item"
vtI.name = "VoidTile"
vtI.icon = "__base__/graphics/... |
local PAC = PersonalAssistant.Constants
local PAStrings = {
-- =================================================================================================================
-- Language specific texts that need to be translated --
-- ======================================================================... |
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========--
--
-- Purpose: Speech Balloons HUD
--
--==========================================================================--
class "gui.hudspeechballoons" ( "gui.panel" )
local hudspeechballoons = gui.hudspeechballoons
function hudspeechballoons:... |
return {
postgres = {
up = [[
CREATE TABLE IF NOT EXISTS workspaces (
id UUID PRIMARY KEY,
name TEXT UNIQUE,
comment TEXT,
created_at TIMESTAMP WITHOUT TIME ZONE DEFAULT timezone('utc... |
--- Implementation of module-level functions and functions of instances of the
--- graphql library and a compiled query.
local accessor_space = require('graphql.accessor_space')
local accessor_shard = require('graphql.accessor_shard')
local accessor_general = require('graphql.accessor_general')
local parse = require('... |
local A, GreyHandling = ...
function GreyHandling.db.reset()
GreyHandling.data = {}
GreyHandling.data.items = {}
end
GreyHandling.db.reset()
|
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 2,["6"] = 2});
local ____exports = {}
____exports.YieldType = {}
____exports.YieldType.Update = 0
____exports.YieldType[____exports.YieldType.Update] = "Update"
return ____exports
|
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules.
module("luarocks.build.builtin", package.seeall)
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
local dir = require("luaroc... |
-- worms will teleport to where they shoot -- by mewmew
local event = require 'utils.event'
local math_random = math.random
local function on_entity_damaged(event)
if not event.cause then return end
local cause = event.cause
if cause.type ~= "turret" then return end
if cause.health <= 0 then return end
local ne... |
MaskPatternModule = MaskPatternModule or class(ItemModuleBase)
MaskPatternModule.type_name = "MaskPattern"
function MaskPatternModule:init(...)
self.clean_table = table.add(clone(self.clean_table), {{param = "pcs",action = "no_number_indexes"}})
self.required_params = table.add(clone(self.required_params), {"t... |
local S = df_farming.S
-----------------------------------------------------------------------
-- Plants
minetest.register_node("df_farming:dead_fungus", {
description = S("Dead Fungus"),
_doc_items_longdesc = df_farming.doc.dead_fungus_desc,
_doc_items_usagehelp = df_farming.doc.dead_fungus_usage,
drawtype = "pl... |
local lm = require "luamake"
package.path = "./?.lua;../?.lua"
require "buildscripts.common"
lm:lua_dll "efkmat" {
includes = {
EfkLib_Includes,
},
sources = {
"efkmat.cpp",
},
deps = "source_efklib",
bindir = lm.workdir
}
|
#!/usr/bin/lua
-- Lua script for automatically building theme files
-- for vim, vscode, sublime, and atom.
USAGE = [[
./test.lua [vim, vscode, sublime, atom]
]]
-- COLOR DEFINITIONS
color_table = {
earthbound={
theme_name_full='Earthbound',
theme_name_alt='earthbound',
color_bg_main='#360a5f',
colo... |
local M = {}
function M.copyDatabaseTo( filename, destination )
assert( type(filename) == "string", "string expected for the first parameter but got " .. type(filename) .. " instead." )
assert( type(destination) == "table", "table expected for the second paramter but bot " .. type(destination) .. " instead... |
return PlaceObj("ModDef", {
"title", "Permanent Priority",
"version", 2,
"version_major", 0,
"version_minor", 2,
"image", "Preview.png",
"id", "ChoGGi_PermanentPriority",
"author", "ChoGGi",
"steam_id", "1411112809",
"pops_any_uuid", "81f59098-e86b-419f-a01f-3fb76670e551",
"code", {
"Code/Script.lua",
},
... |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
RegisterNetEvent('px:pojazd')
AddEventHandler('px:pojazd', function()
local PedGracza = PlayerPedId()
local lokalizacjagracza = GetEntityCoords(PedGracza)
lo... |
-- ===========================================================================
-- Base File
-- ===========================================================================
include("LaunchBar_Expansion2.lua");
include("launchbar_CQUI.lua"); |
--[[
-- Creator: Exho
-- Purpose: Provide a free hitmarker script that has a nice level of customization
]] --
if SERVER then
AddCSLuaFile()
resource.AddFile("sound/hitmarkers/mlghit.wav")
util.AddNetworkString("DrawHitMarker")
util.AddNetworkString("CreateBlood")
util.AddNetworkString("OpenMixer")... |
-- Some sanity checks for the TUI using the builtin terminal emulator
-- as a simple way to send keys and assert screen state.
local Screen = require('test.functional.ui.screen')
local helpers = require('test.functional.helpers')
local thelpers = require('test.functional.terminal.helpers')
local feed = thelpers.feed_da... |
local Settings = {};
local function apply( destination, source )
if source then
local destination = destination or {};
for key, value in pairs(source) do
if type(value) ~= 'table' then
destination[key] = value;
else
destination[key] = apply( ... |
--[[
file:mahjongAlgor.lua
desc:胡牌算法
auth:Carol Luo
]]
local math = math
local next = next
local pairs = pairs
local ipairs = ipairs
local class = require("class")
local sort = require("sort")
local table = require("extend_table")
local gameAlgor = require("game.algor")
local mapHuCards = require("mahjong... |
vim.cmd([[
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_strikethrough = 1
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_conceal = 1
let g:vim_markdown_conceal_code_blocks = 1
let g:vim_markdown_new_list_item_indent = 0
let g:vim_markdown_toc_autofit = 0
let g:vim_m... |
local ServiceManager = {}
local ServiceMap = {}
local index = 0
-- 一台服务区,只允许一个同名服务器
function ServiceManager.Add(name, uri)
local list = ServiceMap[name]
if not list then
list = {}
ServiceMap[name] = list
end
table.insert(list, uri)
end
function ServiceManager.Remove(name, uri)
l... |
reasonsBB =
{
"#1 Trying to kill other civilians",
"#2 Trolling",
"#3 Misusing civilian bugs",
}
rsaPanel = guiCreateWindow(0.25, 0.19, 0.51, 0.62, "AuroraRPG - RSA Panel", true)
guiWindowSetSizable(rsaPanel, false)
guiSetAlpha(rsaPanel, 0.80)
guiSetVisible(rsaPanel, false)
rsaTabPanel = guiCreateTabPanel(0.01, 0... |
--[[--ldoc desc
@Module DeployCardCtr.lua
@Author JasonLiu
Date: 2018-10-30 10:54:57
Last Modified by: JasonLiu
Last Modified time: 2018-10-31 16:07:23
]]
local DeployCardCtr = class("DeployCardCtr", cc.load("boyaa").mvc.BoyaaCtr);
local DeployCardView = require("app.demo.JasonLiu.module.deployCard.DeployCa... |
local modpath = minetest.get_modpath(minetest.get_current_modname())
-- internationalization boilerplate
local S, NS = dofile(modpath.."/intllib.lua")
local schem_path = modpath.."/schematics/"
if minetest.get_modpath("namegen") then
namegen.parse_lines(io.lines(modpath.."/namegen_towns.cfg"))
end
-----------------... |
local LibFader = Wheel:Set("LibFader", 52)
if (not LibFader) then
return
end
local LibClientBuild = Wheel("LibClientBuild")
assert(LibClientBuild, "LibFader requires LibClientBuild to be loaded.")
local LibFrame = Wheel("LibFrame")
assert(LibFrame, "LibFader requires LibFrame to be loaded.")
local LibEvent = Wheel... |
local M = {}
-- (arch)
-- pacman -S shfmt shellcheck
-- (mac)
-- brew install shfmt
-- (npm)
-- npm i -g markdownlint-cli
-- (rust)
-- cargo install stylua
function M.setup()
local nls = require('null-ls')
nls.config({
debug = true,
debounce = 150,
save_after_format = false,
sources = {
-- ... |
function menu_init()
menu_time = 0
GAME_STATES[STATE][2] = false
selected = 1
transitioning = false
end
function menu_update()
menu_time += FSPEED
local ch = 0
if(btnp(2)) ch -= 1
if(btnp(3)) ch += 1
if(ch != 0) then
menu_time = 0
selected = clamp(selected + ch, 1, #GAME_STATES-1)
end
... |
module("TaskEntity", package.seeall)
setmetatable(TaskEntity, {__index=XEntity})
function new(id)
local entity = {
}
setmetatable(entity, {__index=TaskEntity})
entity:Init(id)
return entity
end
function Init(self, id)
XEntity.Init(self, id)
self.tasks = {}
self.current = self:Create(resmng... |
object_tangible_food_generic_dessert_smugglers_delight = object_tangible_food_generic_shared_dessert_smugglers_delight:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dessert_smugglers_delight, "object/tangible/food/generic/dessert_smugglers_delight.iff")
|
local debug = false
--@debug@
debug = true
--@end-debug@
local L = LibStub("AceLocale-3.0"):NewLocale("DrDamage", "enUS", true, debug)
--@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true)@ |
local comp=require("component")
local thread=require("thread")
local share={comp:{}}
-- DEBUG: 0 INFO: 1 WARN 2 ERROR 3
function log(...)
local a={...}
local t=nil
local m=""
for i,v in ipairs(a) do
if i==0 then t=v
elseif i==1 then m=m..v
else m=m.." "..v
end
end
-- TODO: add type
print(... |
-- FUNCTIONAL
local Q = require 'Q'
require 'Q/UTILS/lua/strict'
local eigen = require 'Q/OPERATORS/PCA/lua/eigen'
local tests = {}
tests.t1 = function()
local stand_alone = true
local x1 = Q.mk_col({3, 2, 4}, 'F8')
local x2 = Q.mk_col({2, 0, 2}, 'F8')
local x3 = Q.mk_col({4, 2, 3}, 'F8')
local X = {x1, x2... |
return function()
local Aurora = require(script.Parent)
describe("Server Aurora", function()
it("Should return the same agent for any given object", function()
local agent1 = Aurora.GetAgent(workspace)
local agent2 = Aurora.GetAgent(workspace)
expect(agent1).to.equal(agent2)
end)
itSKIP("Should not ... |
local shell = require("shellex.shell")
local fs = require("shellex.filesystem")
local text = require("shellex.text")
local USAGE =
[===[Usage: find [path] [--type=[dfs]] [--[i]name=EXPR]
--path if not specified, path is assumed to be current working directory
--type returns results of a given type, d:directory, f:... |
-- Test if strings truncated before the last character are correctly reported
-- as truncated data.
-- Bug+fix reported by Jorge "xopxe" Visca on 2013-12-07, fixed in 40:1918f698336c
local b = require 'bencode'
local total,fail = 0,0
local broken = {
"3:a", -- this never worked to begin with. (and it shouldn't)
"3... |
-- Generated by LairTool
endor_boar_wolf_lair_neutral_small = Lair:new {
mobiles = {{"boar_wolf",1}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_thicket_small_evil_fire_green.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_thicket_small_evil_fire_green.iff"},
buil... |
local Event = require('__stdlib__/stdlib/event/event')
local ErmConfig = require('__enemyracemanager__/lib/global_config')
local RaceSettingHelper = require('__enemyracemanager__/lib/helper/race_settings_helper')
local ErmDebugHelper = require('__enemyracemanager__/lib/debug_helper')
local modify_race_setting = functi... |
--[[
Humor API
Awesome Humor API.
The version of the OpenAPI document: 1.0
Contact: mail@humorapi.com
Generated by: https://openapi-generator.tech
]]
-- inline_response_200_8 class
local inline_response_200_8 = {}
local inline_response_200_8_mt = {
__name = "inline_response_200_8";
__index = inline_res... |
-- -----------------------------------------------------------------------------
--
-- private
--
-- -----------------------------------------------------------------------------
---@class ship_meta
-- -----------------------------------------------------------------------------
--
-- meta
--
-- ---------------------... |
--- The Rednet API allows systems to communicate between each other without
-- using redstone. It serves as a wrapper for the modem API, offering ease of
-- functionality (particularly in regards to repeating signals) with some
-- expense of fine control.
--
-- In order to send and receive data, a modem (either wired, ... |
describe("toml.encode()", function()
local toml = require("toml")
local data = require("spec/tables")
it("can encode sample TOML document", function()
local fh = io.open("spec/test-data/test.toml")
local expectedTOML = fh:read("*all")
fh:close()
assert.are.same(toml.encode(data.tableForTestToml, {}), expec... |
Config = {}
Config.DrawDistance = 100.0
Config.MaxInService = -1
Config.EnablePlayerManagement = true
Config.EnableSocietyOwnedVehicles = false
Config.EnableLicenses = false
Config.EnableESXIdentity = true
Config.Locale = 'fr'
Config.Cig =... |
-- include useful files
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "utils.lua")
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "common.lua")
u_execDependencyScript("ohvrvanilla", "base", "vittorio romeo", "commonpatterns.lua")
u_execDependencyScript("ohvrvanilla", "base", "vittorio... |
function GetFuel(vehicle)
return DecorGetFloat(vehicle, Config.FuelDecor)
end
function SetFuel(vehicle, fuel)
if type(fuel) == 'number' and fuel >= 0 and fuel <= 100 then
SetVehicleFuelLevel(vehicle, fuel + 0.0)
DecorSetFloat(vehicle, Config.FuelDecor, GetVehicleFuelLevel(vehicle))
end
end
function LoadAnimDic... |
function Cyst:GetIsFlameableMultiplier(doer)
if doer and doer.isa and doer:isa("Welder") then
return 4
else
return 7
end
end
function Cyst:GetAutoBuildRateMultiplier()
if GetHasTech(self, kTechId.ShiftHive) then
-- return 1.25
return 1.5 -- increase by 20% from vanilla
... |
Citizen.CreateThread(function()
local isDead = false
while true do
Citizen.Wait(0)
local player = PlayerId()
if NetworkIsPlayerActive(player) then
local playerPed = PlayerPedId()
if IsPedFatallyInjured(playerPed) and not isDead then
isDead = true
local killerEntity, deathCause = GetPedSourceOf... |
local _NAME = "LibDatabase"
local _VERSION = "1.0.0"
local _LICENSE = [[
MIT License
Copyright (c) 2020 Jayrgo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restrict... |
local ffi = require"ffi"
local egl = require"lib.ffi.EGL"
local gl = require"lib.ffi.OpenGLES2"
local sdl = require"lib.ffi.sdl"
local function init(self, surface, width, height)
print('initing',self,width,height)
self.surface=surface
self.init=false
self.width=width
self.height=height
local screen = sd... |
local dependencyManager = {}
function dependencyManager.import(...)
local args = table.pack(...)
if(#args == 0) then
return
end
local results = {}
for key, package in pairs(args)
do
if(key == "n") then
break
end
repeat
local target = r... |
if settings.startup["lasertanks-electric-engine"].value and not data.raw["equipment-category"]["electric-vehicles-equipment"] then
require("electricvehicles.categories")
require("electricvehicles.equipment")
require("electricvehicles.items")
require("electricvehicles.recipes")
require("electricvehicles.technologie... |
ACCESS_LABELS = {}
ACCESS_LABELS[DOOR_OWNER] = "owner"
ACCESS_LABELS[DOOR_TENANT] = "tenant"
ACCESS_LABELS[DOOR_GUEST] = "guest"
ACCESS_LABELS[DOOR_NONE] = "none"
function PLUGIN:ShouldDrawEntityInfo(entity)
if (entity.isDoor(entity) and !entity.getNetVar(entity, "disabled")) then
return true
end
end
... |
-- https://github.com/ray-x/lsp_signature.nvim
require("lsp_signature").setup(
{
bind = true,
-- 边框样式
handler_opts = {
-- double、rounded、single、shadow、none
border = "rounded"
},
-- 自动触发
floating_window = false,
-- 绑定按键
toggle_k... |
useConfig = require "RTS use config";
useConfig(1, 8);
|
require("prototypes.technology")
require("prototypes.sounds")
require("prototypes.TabSortingStuff")
require("prototypes.TrainGoBrrrr.PropHunt")
if (settings.startup["RTThrowersSetting"].value == true) then
require("prototypes.BouncePlates.BouncePlate")
require("prototypes.BouncePlates.DirectedBouncePlate")
... |
/**************************************************************
Buu's Base Muzzleflash Effect
https://github.com/buu342/GMod-BuuBaseRedone
**************************************************************/
/*-----------------------------
Init
Initializes the effect
@Param Effect dat... |
local Players = game:GetService("Players")
local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local SetSearchParameters = require(Modules.NotLApp.Actions.SetSearchParameters)
return function(state, action)
state = state or {}
if action.type == SetSearchParameters.name then
state = action.s... |
-- Table of tables containing the scripts of the cutscenes for each room in the game.
-- Aurelien Coet, 2017.
cutscenes = {
main = {
onEntry = {
always = false,
script = {
{"movePlayer", 300, 450},
{"addMessage", "Well, here I am.", 340, 490, 3}
}
}
},
secondary = {
... |
local x, y = 2, 3
local a = (2 + x) * y
local b = x + 2 * y
local c = 2 ^ x ^ y
local d = (2 ^ x) ^ y
local e = 2 * x / y
local f = 2 * (x / y)
local g = 2 + x + y
local h = 2 + (x + y)
local i = -x * y
local l = -x^2 + (-x)^2
print(a, b, c, d, e, f, g, h, i, l) |
local m = component.proxy(component.list('modem')())
local name = component.proxy(component.list('eeprom')()).getLabel()
local PORT= 1
local h = {}
local c={}
local code = ''
local function dispatch(evt, ...)
if h[evt] then
pcall(h[evt], ...)
return true
end
return false
end
local function p... |
data:extend({
{
type = "recipe",
name = "oilburner",
enabled = "false",
ingredients =
{
{"storage-tank",1},
{"electronic-circuit",1},
{"stone-furnace",1},
{"iron-plate",10}
},
result = "oilburner"
}
}) |
input_handler = {}
input_handler["Up"] = 'j'
input_handler["Down"] = 'k'
input_handler["Left"] = 'h'
input_handler["Right"] = 'l'
|
--[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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
Author: Petar Koretic <petar.koretic@sart... |
return {
summary = 'Convert a point from local space to world space.',
description = 'Convert a point relative to the collider to a point in world coordinates.',
arguments = {
{
name = 'x',
type = 'number',
description = 'The x position of the point.'
},
{
name = 'y',
typ... |
function init(virtual)
if not virtual then
entity.setInteractive(true)
end
end
function onInteraction(args)
if args ~= nil and args.sourceId ~= nil then
local p = entity.position()
local parameters = {}
-- local type = "gardenbotv80g"
-- if entity.configParameter("botspawner.type") ~= nil then
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.