content stringlengths 5 1.05M |
|---|
local Prop = {}
Prop.Name = "Store 255 Cosmos St"
Prop.Cat = "Stores"
Prop.Price = 250
Prop.Doors = {
Vector( -8668.6201171875, 1704, 60 ),
Vector( -8290, 1398, 60 ),
}
GM.Property:Register( Prop ) |
local skipTiles = TalkAction("/a")
function skipTiles.onSay(player, words, param)
if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then
return true
end
if param == "" then
player:sendCancelMessage("Command param required.")
return false
end
local steps = tonumber(param)
... |
local g = vim.g
g.nvim_tree_highlight_opened_files = 1
g.nvim_tree_group_empty = 1
require("nvim-tree").setup({
hijack_cursor = true,
renderer = {
indent_markers = {
enable = true,
icons = {
corner = "└ ",
edge = "│ ",
none = " ",
},
},
},
})
|
local share = require 'https://raw.githubusercontent.com/expo/share.lua/4645d588f0e4c4b9b82053315939c43508e4b607/share.lua'
local enet = require 'enet' -- Network
local marshal = require 'marshal' -- Serialization
local serpent = require 'https://raw.githubusercontent.com/pkulchenko/serpent/522a6239f25997b101c585c0da... |
return {'acquireren','acquisiteur','acquisitie','acquisitiebeleid','acquisitiekosten','acquisitieplan','acquit','acquisitiegesprek','acquireerde','acquisiteurs','acquisities','acquisitiewerkzaamheden','acquits','acquisitiegesprekken'} |
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
local ped = GetPlayerPed(-1)
local veh = GetVehiclePedIsIn(ped, false)
if IsPedInAnyVehicle(ped, false) and IsControlPressed(2, 75) and not IsEntityDead(ped) and not IsPauseMenuActive() then
Citizen.Wait(150)
if IsPedInAnyVehic... |
-- VARIABLES ===================================================================
-- Amount used in place of passing arguments to a function
timer = 0.0
audio = nil
-- FUNCTIONS ===================================================================
function Constructor()
audio = owner:GetComponent("AudioEmitter")
audi... |
return {'los','losbaar','losbandig','losbandigheid','losbarsten','losbarsting','losbinden','losbladig','losbol','losbollig','losbranden','losbranding','losbreken','loscedel','losceel','losdag','losdraaien','loser','losgaan','losgeld','losgemaakt','losgeslagen','losgooien','loshaken','loshalen','loshangen','losheid','lo... |
require('nvim-treesitter.configs').setup {
ensure_installed = "maintained", -- one of "all", "language", or a list of languages
highlight = {
enable = true, -- false will disable the whole extension
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn"... |
function getRequiredComponents()
return {"jumpController", "jump", "acceleration", "speed"}
end
function update()
for i, entity in ipairs(entities) do
local jump = entity.jump
local possibleNewJump = false
if entity.acceleration.touchWallDown then
--jump.airDuration = 0
end
if entity.acceleration.to... |
StatsClient = StatsClient or class({})
ModuleRequire(..., "data")
Events:Register("activate", function ()
PlayerTables:CreateTable("stats_client", {}, AllPlayersInterval)
PlayerTables:CreateTable("stats_team_rating", {}, AllPlayersInterval)
CustomGameEventManager:RegisterListener("stats_client_add_guide", Dynamic_W... |
local opt = vim.opt_local
opt.foldenable = false
opt.list = false
-- o.formatoptions = vim.bo.formatoptions .. 't'
opt.formatoptions:append "t"
opt.textwidth = 72
-- opt.spell = true
vim.cmd [[setlocal spell]]
|
local items = {
{
name = "Aonori",
weight = 0.05,
value = 2.99,
},
{
name = "Assam Tea",
weight = 0.10,
value = 3.00,
},
{
name = "Baking Soda",
weight = 0.10,
value = 2.69,
model = "bkr_prop_coke_bakingsoda",
},
{
name = "Basil",
description = "Richly green and ovate leaves",
weight = ... |
-- id int 弹幕ID
-- path string 弹幕文件
-- bulletId int 生成子弹ID
-- shootCount int 发射个数
-- shootInterval ... |
local square = require 'src/figures/square'
local animation = require 'src/figures/animation'
local background = require 'src/background'
local deltaTotal = 0
local SCENE_MESSAGE = 'ONE PERSON'
local squareSideSize = 100
local gameEnd = false
function love.load ()
backgroundMusic = love.audio.newSource ('sounds/... |
--LUA get all objects sample.--
function get_all_objects()
local all = getAllObjects()
for index, value in ipairs(all) do
local obj = {}
obj['guid'] = value.guid
obj['type'] = "object"
obj['value'] = value.getJSON()
sendExternalMessage(obj);
end
end |
local t = Def.ActorFrame{};
if GAMESTATE:IsPlayerEnabled('PlayerNumber_P1') then
--P1 Score Frame
t[#t+1]=Def.ActorFrame{
LoadActor("frame")..{
InitCommand=cmd(x,SCREEN_CENTER_X-204;);
};
};
end;
if GAMESTATE:IsPlayerEnabled('PlayerNumber_P2') then
--P2 Score Frame
t[#t+1]=Def.ActorFrame{
LoadActor("frame")..{
... |
local TXT = Localize{
[0] = " ",
[1] = "",
[2] = "",
[3] = "",
[4] = "",
[5] = "",
[6] = "",
[7] = "",
[8] = "",
[9] = "",
[10] = "Bookcase",
[11] = "",
[12] = "",
[13] = "",
[14] = "You Successfully disarm the trap",
[15] = "",
[16] = "Take a Drink",
[17] = "Not Very Refreshing",
[18] = "Refreshing"... |
--[[
Class file for the World
--]]
local world = {}
-- Private attributes and methods
local worldMt = {__index = world}
local function test()
return true
end
-- Public methods
function world.new(width, height)
local newWorld = setmetatable({ -- the 'class instance'
width = width,
height ... |
AddCSLuaFile()
SWEP.PrintName = "Keys"
SWEP.Category = "Door System"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Base = "weapon_base"
SWEP.Author = "Lambda Gaming"
SWEP.Slot = 2
SWEP.ViewModel = ""
SWEP.WorldModel = ""
SWEP.Primary.Ammo = "none"
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP... |
function markPosEff(sid, pos)
if not isCreature(sid) then return end
setPlayerStorageValue(sid, 26547, pos.x)
setPlayerStorageValue(sid, 26548, pos.y)
setPlayerStorageValue(sid, 26549, pos.z)
end
function getMarkedPosEff(sid)
if not isCreature(sid) then return end
local xx = getPlayerStorageValue(sid, 26547)
... |
local mods_settings = {}
for name in pairs(mods) do
local file_path = "__" .. name .. "__/switchable_mod"
local is_ok = pcall(require, file_path)
if is_ok then
local mod_data = require(file_path)
local setting_name = "mod_" .. name
table.insert(mods_settings, {
type = "bool-setting",
name = setting_name,... |
object_mobile_outbreak_prisoner_m_monc_02 = object_mobile_shared_outbreak_prisoner_m_monc_02:new {
}
ObjectTemplates:addTemplate(object_mobile_outbreak_prisoner_m_monc_02, "object/mobile/outbreak_prisoner_m_monc_02.iff")
|
return function(Vargs, env)
local server = Vargs.Server;
local service = Vargs.Service;
local Settings = server.Settings
local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =
server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs... |
require "collision"
entities = {}
entities._entlist = {}
entities._lastid = 0
--Create new entry in entities and return the new entity
function entities.create_entity()
entities._lastid = entities._lastid + 1
newent = {}
newent.id = entities._lastid
newent.load = function(s) end
newent.update = function(s,... |
---@class hattributeSetter 属性配置法
hattributeSetter = {
smart = {
attack_space = "attack_space_origin",
attack = "attack_green",
defend = "defend_green",
str = "str_green",
agi = "agi_green",
int = "int_green",
},
}
--- @private
hattributeSetter.getDecimalTemporary... |
--------------------------------------------------------------------------
-- GTFO_Fail_MP.lua
--------------------------------------------------------------------------
--[[
GTFO Fail List - Mists of Pandaria
Author: Zensunim of Malygos
]]--
-- ***************
-- * Scholomance *
-- ***************
GTFO.SpellID["111... |
local p = premake
p.raw = { }
local raw = p.raw
local gvisited = { }
function raw.workspace(wks)
if not gvisited[wks.global] then
gvisited[wks.global] = true
raw.printTable({ global = wks.global })
end
end
function raw.printTable(t, i)
i = i or 0
placement = raw._createPlacement(t)
raw._printTableRecursive(t... |
local PAIR_ID = KEYS[1]
local PAIR_INGAME_TTL = tonumber(KEYS[2])
local TIME_TO_PROCESS_MESSAGE = tonumber(KEYS[3])
local PAUSED_PAIR_TTS = tonumber(KEYS[4])
local ABSOLUTE_GAMEPLAY_TTL = tonumber(KEYS[5])
local NOW = tonumber(KEYS[6])
local pair_key = 'pair:' .. PAIR_ID
local the_pair = redis.call('hmget', pair_key, ... |
-- -- ---- ------ ---------- ---------------- --------------------------
--
-- This file is part of loveCodea.
-- Copyright 2012 Stephan Effelsberg
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
-- -- ---- ------ ---------- ---------------- --------------------------
-... |
local crusher_yatm_network = {
kind = "machine",
groups = {
machine_worker = 1,
energy_consumer = 1,
item_consumer = 1,
item_producer = 1,
},
default_state = "off",
states = {
conflict = "yatm_machines:crusher_error",
error = "yatm_machines:crusher_error",
off = "yatm_machines:crus... |
local sound = require 'vendor/TEsound'
local Gamestate = require 'vendor/gamestate'
local Sprite = require 'nodes/sprite'
local Timer = require 'vendor/timer'
local Server = require 'server'
local server = Server.getSingleton()
local PlayerAttack = {}
PlayerAttack.__index = PlayerAttack
PlayerAttack.playerAttack = tru... |
local lpeg = require 'lpeg'
local lpeg2c = require 'lpeg2c'
local pattern = lpeg.P 'abc'
local pattern2 = lpeg2c(pattern)
assert(pattern2('abc') == 4)
local pattern = lpeg.P{
"(" * (lpeg.V(1))^0 * ")"
}
local pattern2 = lpeg2c(pattern)
assert(pattern2('(())') == 5)
|
return {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
desc_get = "受到攻击时有3.5%(满级8.0%)的概率减少50%伤害",
name = "重点防护",
init_effect = "jinengchufablue",
time = 0,
color = "blue",
picture = "",
desc = "受到攻击时有$1的概率减少50%伤害",
stack = 1,
id = 4021,
icon = 4020,
last_effect = "",
blink = {
0,
0.7,
1,
0.3,
... |
x = 10
y = 20
z_squared = x^2 + y^2
force(z_squared, 400)
|
-- Function Availability
FileWriteLineFast("test/output.txt", "Function Availability", FM_WRITE);
local fa = dofile("test/common/function_availability.lua");
fa.FunctionSupported(KeyboardInit, "MTR_KeyboardInit",
KeyboardFunctionSupported);
fa.FunctionSupported(KeyboardRefresh, "MTR_KeyboardRefresh",
KeyboardFunctio... |
local M = {}
function M.set_prefix(modes, name, key)
local name_key = ("[%s]"):format(name)
vim.keymap.set(modes, name_key, "<Nop>")
vim.keymap.set(modes, key, name_key, { remap = true })
end
return M
|
function isAtBlock(dialogObject, x, y, z)
return dialogObject:isAtBlock(x,y,z);
end
function callTutorialHookFunc(dialogObject, turorial)
return dialogObject:callTutorial(turorial);
end
function unhireHookFunc(dialogObject)
return dialogObject:unhireConverationPartner();
end
function alwaysTrueHookFunc(dialog... |
--[[
Classes.CheckboxLabel
This class creates a single checkbox label
Constructors:
new(frame [instance])
>
Create(text)
> Creates a CheckboxLabel from the text provided.
Properties:
Frame [instance]
> The container frame for the CheckboxLabel. Can be used for positioning and resizing.
Button [instance]
... |
slot0 = class("Chapter", import(".BaseVO"))
slot0.SelectFleet = 1
slot0.CustomFleet = 2
slot0.CHAPTER_STATE = {
i18n("level_chapter_state_high_risk"),
i18n("level_chapter_state_risk"),
i18n("level_chapter_state_low_risk"),
i18n("level_chapter_state_safety")
}
slot0.Ctor = function (slot0, slot1)
slot0.configId = ... |
-- Battlezone: Rise of the Black Dogs, Black Dog Mission 28 written by General BlackDragon.
;
local M = {
-- Bools
UpdateObjectives = false,
StartDone = false, -- Some things don't work in the actual "Start" function.
Power1Murder = false, -- Murder.
Power2Death = false, -- Death.
Power3Kill = false, ... |
return {
id = "omni_kashio",
title = "Omni-Kashio",
desc = "Defeat Kashio, by herself, except she has every artifact. Extremely challenging.",
enemies = {"KASHIO"},
on_start_battle = function(battle)
local AUCTION_DATA = require "content/grafts/kashio_boss_fight_defs"
local candidate... |
ImportTarget("targets/windows.lua")
function Target.Execute()
target.arch = "x86_64"
target.bits = 64
target.platform = "winx64"
target.settings.cc.defines:Add("WIN32")
target.settings.cc.defines:Add("PLATFORM_WINX64")
target.settings.cc.defines:Add("PLATFORM_STRING=\"\\\"winx64\\\"\"")
target.settings.cc.defin... |
object_tangible_loot_creature_loot_generic_mantis_arm = object_tangible_loot_creature_loot_generic_shared_mantis_arm:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_generic_mantis_arm, "object/tangible/loot/creature/loot/generic/mantis_arm.iff")
|
local background = {}
-- Reference https://love2d.org/wiki/love.graphics.point
function background.load()
love.graphics.setFont (love.graphics.newFont (22))
local screen_width, screen_height = love.graphics.getDimensions()
local max_stars = 100 -- how many stars we want
stars = {} -- table which will h... |
local gzload = require "gzloader"
local foo = require "sample.foo"
assert(foo[1]=="OK")
print("OK")
|
return {'oswald'} |
me = game:GetService("Players")["Killbook"]
me.CharacterAppearance = "http://www.roblox.com/asset/?id=84584784"
me.Character:BreakJoints() |
require("scripts/globals/mixins")
g_mixins = g_mixins or {}
g_mixins.families = g_mixins.families or {}
g_mixins.families.tonberry = function(mob)
mob:addListener("DEATH", "TONBERRY_DEATH", function(mob, player)
if player then
for _, member in pairs(player:getAlliance()) do
if ... |
local U = require "togo.utility"
local Tool = require "Quanta.Tool"
local Vessel = require "Quanta.Vessel"
local Entity = require "Quanta.Entity"
require "Tool.common"
local options = {
Tool.Option("-h", "boolean", [=[
-h
print as a hierarchy
]=],
function(tool, value)
tool.data.hierarchy = value
end),
Tool.Opti... |
function love.conf(t)
t.title = 'taiko bird'
t.version = '11.4'
t.console = true
t.window = nil
end |
local classes = require "klib.classes"
local Widget = require("klib.gui.widget").Widget
local Dialog = require("klib.gui.dialog").Dialog
local Button = require("klib.gui.button").Button
local Label = require("klib.gui.label").Label
local Compound = require("klib.gui.compound").Compound
local HBox = require("klib.gui.... |
data:extend({
{
type = "int-setting",
name = "resource-labels-schedule-interval",
setting_type = "runtime-global",
default_value = 20,
minimum_value = 0,
order = "fa"
},
{
type = "bool-setting",
name = "resource-labels-show-labels",
set... |
if (SERVER) then
AddCSLuaFile( "shared.lua" )
SWEP.Weight = 5
SWEP.AutoSwitchTo = true
SWEP.AutoSwitchFrom = true
end
SWEP.Category = "RP Weapons"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.UseHands = true
SWEP.ViewModel = "models/weapons/c_binoculars.mdl"
SWEP.WorldModel ... |
DefineClass.SpaceElevator = {
__parents = { "Building", "UniversalStorageDepot", "ElectricityConsumer" },
class_flags = { cfConstructible = true },
properties = {
{ template = true, id = "price_mod", name = T(756, "Resupply Price Modifier"), category = "Space Elevator", editor = "number", default = 50, min = 0, ... |
-- control.lua
local function sync_all()
local params = global["global-constant-combinator-params"]
if params ~= nil then
for k1, surface in pairs(game.surfaces) do
for k2, entity in pairs(surface.find_entities_filtered{name="global-constant-combinator"}) do
entity.get_contr... |
-----------------------------------
-- Area: Windurst Walls
-- NPC: Ambrosius
--
-- Quest NPC for "The Postman Always KOs Twice"
-----------------------------------
require("scripts/globals/quests")
require("scripts/globals/settings")
-----------------------------------
function onTrigger(player, npc)
QuestStatus... |
local sentance = "The quick brown fox"
local word = "quick"
local index = string.find(sentance, word)
print ("substring found at index: " .. index) |
--------------------------------------------------------------------------------
--
--
--
--------------------------------------------------------------------------------
local Serpent = require("util.Serpent")
local ParticleSerializer = class()
function ParticleSerializer:init()
self.objectCache = {}
self.... |
--- === hs.wifi ===
---
--- Inspect WiFi networks
local wifi = require "hs.wifi.internal"
wifi.watcher = require "hs.wifi.watcher"
local log = require("hs.logger").new("hs.wifi","warning")
wifi.log = log
wifi._registerLogForC(log)
wifi._registerLogForC = nil
return wifi
|
local succeed = require 'validation.rules.succeed'
local setmetatable = setmetatable
local check_min = {__index = {
msg = 'Required to be a minimum of %d bytes in length.',
validate = function(self, value, model, translations)
if value and value:len() < self.min then
return translations:g... |
local class = require("heart.class")
local heartMath = require("heart.math")
local normalizeAngle = heartMath.normalizeAngle
local M = class.newClass()
function M:init(engine, config)
self.engine = assert(engine)
self.physicsDomain = assert(self.engine.domains.physics)
self.transformComponents = assert(self.en... |
appname="工程属性"
appver="1.0"
packagename="com.androlua.projectinfo"
theme="Theme_Holo_Light"
developer="nirenr"
description="工程属性查看修改"
debugmode=true
user_permission={
"INTERNET",
"WRITE_EXTERNAL_STORAGE"
}
|
VideoSDKConstants = {};
VideoSDKConstants.DICT_NAME = "boyaa_videosdk";
VideoSDKConstants.KEY_APP_ID = "app_id";
VideoSDKConstants.KEY_USER_ID = "user_id";
VideoSDKConstants.KEY_ROOM_ID = "room_id";
VideoSDKConstants.KEY_SUPPORT_2G = "support_2g";
VideoSDKConstants.KEY_VERSION = "version";
VideoSDKConstants.... |
local function test()
local f <close> = assert(io.popen("sysctl sysctl.proc_translated", "r"))
return f:read "l"
end
print(test())
|
if not shotgun then shotgun = {} end
shotgun.func = {
extendposition = function(x, y, dist, dir)
return x + math.sin(math.rad(dir)) * dist, y - math.cos(math.rad(dir)) * dist
end;
getdistance = function(x1, y1, x2, y2)
return math.sqrt((y1 - y2)^2 + (x1 - x2)^2)
end;
createprojectile = function... |
require "gg.base.util.extend"
require "gg.base.util.functions"
require "gg.base.util.table"
require "gg.base.util.string"
|
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
-- #######################################
-- ## Project: MTA i... |
krill = {}
function krill.load()
krill.swarms = {}
krill.swarm_dt = 0
krill.swarm_rate = 5
local krill_spr = love.graphics.newImage("assets/textures/krill.png")
krill_anim = newAnimation(krill_spr, 32, 32, 1, 3)
end
function krill.draw()
for _,v in ipairs(krill.swarms) do
krill_anim:draw(v.x, v.y, v.rot, ... |
-- Система гашения урона
local function dmg(ply, dmginfo)
if (!IsValid(ply) || !ply:IsPlayer() || !ply:Alive()) then return end -- Проверка на то, что игрок доступен для установки параметров
if (ply.ClothingSystemPlayerBase == nil) then return end -- Проверка на существования базы у игрока
if (!ply.Clothing... |
include("MasterGear/MasterGearLua.lua")
function custom_get_sets()
current_ws = "Rudra's Storm"
ws = {}
ws["Rudra's Storm"] = { set = sets["Rudra's Storm"], tp_bonus = true }
ws["Mandalic Stab"] = { set = sets["Rudra's Storm"], tp_bonus = true }
ws["Shark Bite"] = { set = sets["Rudra's Storm"], tp_bonus = true ... |
local View = {}
View.__index = View
function View.create()
local view = {}
setmetatable(view, View)
view.id = ch2d.view.create()
return view
end
function View:remove()
return ch2d.view.remove(self.id)
end
function View:setCenter(_x, _y)
return ch2d.view.setCenter(self.id, _x, _y)
end
funct... |
MODULE.Name = "Factions"
MODULE.Author = "Q2F2 & Ghosty"
MODULE.FactionTable = {}
local tag = "BaseWars.Factions"
local PLAYER = debug.getregistry().Player
function MODULE:__INIT()
if __BASEWARS_FACTION_BACKUP then
BaseWars.UTIL.Log("Detected faction backup. ATTEMPTING TO RESTORE.")
self.FactionTable = table... |
local on_tick = {}
local event = require("__flib__.event")
local infinity_wagon = require("scripts.entity.infinity-wagon")
function on_tick.handler()
if next(global.wagons) then
infinity_wagon.flip_inventories()
else
event.on_tick(nil)
end
end
function on_tick.register()
if next(global.wagons) then
... |
concommand.Add("ghomes_debug_door",function(ply)
if not ply:CanMasterHouse() then return end
local ent = ply:GetEyeTrace().Entity
if not IsValid(ent) then ply:ChatPrint("NULL ENTITY") return end
if not ghomes.IsDoorOkayForHouse(ent:GetClass()) then ply:ChatPrint("wrong entity class") return end
if ent:MapCreatio... |
local maincmds = {}
local githelp=io.popen("git help -a 2>nul","r")
if githelp then
local gitcmds={}
for line in githelp:lines() do
if string.match(line,"^ %S") then
for word in string.gmatch(line,"%S+") do
gitcmds[ #gitcmds+1 ] = word
end
end
... |
local spawnWave = false
local spawnWaveTimer = false
local quedSpawns = {}
addEvent ( "onSpawnpointUse" )
function createSpawnpoint ( x, y, z, rot, skin, interior, dimension )
if not tonumber(x) then outputDebugString("createSpawnpoint: Bad 'x' position specified",0,255,128,0) return false end
if not tonumber(y) the... |
PAGE.Name = "Home" --just used for the panel's class name
--page functions
function PAGE:Init()
end |
require 'pl.text'.format_operator()
local resty_chash = require "resty.chash"
local pldir = require 'pl.dir'
local resty_roundrobin = require "resty.roundrobin"
local ck = require "resty.cookie"
local pretty = require 'pl.pretty'
local plugin = require 'bluegate.plugins.plugin'
local util = require 'bluegate.utils.ut... |
cavern_spider_hunter = Creature:new {
objectName = "@mob/creature_names:gaping_spider_hunter",
socialGroup = "spider_nightsister",
faction = "spider_nightsister",
level = 46,
chanceHit = 0.46,
damageMin = 390,
damageMax = 490,
baseXp = 4552,
baseHAM = 9500,
baseHAMmax = 11600,
armor = 1,
resists = {140,140,... |
local GetBinding = require(script.Parent.GetBinding)
local UseMotor = require(script.Parent.UseMotor)
local function GetInitialValue(Goal)
if Goal.Step then
return Goal._TargetValue
else
local InitialValues = {}
for Key, Motor in next, Goal do
InitialValues[Key] = GetInitialValue(Motor)
end
return Init... |
Locales['en'] = {
['male'] = "male",
['female'] = "female",
['used'] = "Used",
['removed'] = "Removed",
['added'] = "Added",
['holstered'] = "Holstered",
['equipped'] = "Equipped",
['inventory_setup'] = "Inventory is ready to use",
['inventory_cannot_open'] = "You can't open your inventory right now",
['inven... |
--[[
Kontakt Mapping Editor - Lua Auto Mapper
Author: Native Instruments
Written by: Yaron Eshkar
Modified: August 11, 2020
This script will parse information from file names in order to fill a sample mapping.
Suppose we have a high number of samples that we want to map according to tokens we place in the samp... |
local treesitter = require('nvim-treesitter.configs')
treesitter.setup({
playground = {
enable = true,
disable = {},
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
persist_queries = false -- Whether the query persists across vim sessions
},
highlight ... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by trifan.
--- DateTime: 02/11/2018 09:42
---
local argparse = require("mocka.argparse")
test('read -t key correctly', function()
local key, value, i = argparse.read_key({"-t", "./gigi/out.lua"}, 1)
assertEquals(key, 't')
assertEquals(val... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client\main\admin.lua
*
* Original File by lil_Toady
*
**************************************]]
aAdminMain = {
Form = nil,
Panel = nil,
Tabs = {},
Tab = nil,
Widgets = {},
Refresh = 0,
Hidden = false
}
addEvent(EV... |
function Client_PresentConfigureUI(rootParent)
root=rootParent;
PestCardIninit=false;
if(Mod.Settings.PestCardIn ~= nil)then
PestCardIninit=Mod.Settings.PestCardIn;
end
PestCardStrengthinit=1;
if(Mod.Settings.PestCardStrength ~= nil)then
PestCardStrengthinit=Mod.Settings.PestCardStre... |
object_tangible_loot_creature_loot_collections_space_engine_mark_03_novaldex = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_03_novaldex:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_03_novaldex, "object/tangible/loot/creature/loot/colle... |
------------------------------------------------------------------------------
-- GLSubCanvas class
------------------------------------------------------------------------------
local ctrl = {
nick = "glsubcanvas",
parent = iup.WIDGET,
creation = "",
funcname = "GLSubCanvas",
include = "iupglcontrols.h",
... |
--[[
local set = require'bitset'()
set[10] = true
set[10000] = true
set[15] = true
set[8] = false
--set.dump()
if set[10] then print "10 is in the set" end
if not set[10000] then print "10000 is not in the set" end
--]]
local bloom = require'bloom'
local filter = bloom(5000, 40)
local strings = {
'xxxxxxx',
... |
function getModem()
local modemSide = ""
periphs = peripheral.getNames()
for i=1,table.getn(periphs),1 do
if peripheral.getType(periphs[i]) == "modem" then
modemSide = periphs[i]
end
end
return modemSide
end
function Split(s, delimiter) -- Not my code, no touch
result = {};
for match in (s..delimite... |
local cosmo = require "cosmo"
template = [==[
<h1>$list_name</h1>
<ul>
$do_items[=[<li>$item</li>]=]
</ul>
]==]
print(cosmo.fill(template,
{ list_name = "My List",
do_items = function()
for i=1,5 do
cosmo.yield { item = i }
end
... |
local utils = {}
function utils.splitString(baseString, delimiter)
local result = { }
local from = 1
local delim_from, delim_to = string.find( baseString, delimiter, from )
while delim_from do
table.insert( result, string.sub( baseString, from , delim_from-1 ) )
from = delim_to + 1
delim_from, d... |
-- config.lua for Fat Poly
-- Copyright 2020 Jericho Crosby. All Rights Reserved.
application = {
content = {
width = 320,
height = 480,
fps = 60,
imageSuffix = {
["@2x"] = 2,
["@4x"] = 4,
},
},
} |
--RC Plane Gifted by TheRedAngel, Regular Script!
me = game.Players.peyquinn
if script.Parent.className ~= "HopperBin" then
h = Instance.new("HopperBin")
h.Parent = me.Backpack
h.Name = "Rocket"
script.Parent = h
end
sp = script.Parent
function property(part, parent, x, y, z, color, tra, re)
part.Parent =... |
local playsession = {
{"YMan", {15788}},
{"Hitman451", {610883}},
{"TimJSwan", {446499}},
{"xlDovahkinglx", {409604}},
{"everLord", {435942}},
{"KerbyBoi", {835}},
{"belbo", {433164}},
{"Discotek", {429269}},
{"Gizan", {408789}},
{"Tjmader", {47133}},
{"Aiovas95", {111496}},
{"legendary_banana", {241685}},
... |
--[[
ExternalApp.lua
Base class for external application objects, like exif-tool, image-magick, and sqlite.
This class and/or its derived children hopefully handle cross-platform issues as much as possible.
--]]
local ExternalApp, dbg = Object:newClass{ className = 'ExternalA... |
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
local x = 0
-- tests that source of function prototype dump gets printed correctly
local function f(arg)
local y = arg
local f2 = function()
local inc = 5
y = y + inc
end
... |
s = box.schema.space.create('spatial')
_ = s:create_index('primary')
_ = s:create_index('spatial', { type = 'rtree', unique = false, parts = {2, 'array'}})
s:insert{1,{0.0,0.0}}
s:insert{2,{0.0,10.0}}
s:insert{3,{0.0,50.0}}
s:insert{4,{10.0,0.0}}
s:insert{5,{50.0,0.0}}
s:insert{6,{10.0,10.0}}
s:insert{7,{10.0,50.0}}
s... |
require("queue")
require("globals")
local loading_queue = Queue() -- stages to load
local loading_stage = nil -- currently loading stage
-- loads the stages of the specified id
function stage_loader_load(stage_id)
if stages[stage_id] and not stages[stage_id].fully_loaded then
loading_queue:push(stage_id)
end... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.