content stringlengths 5 1.05M |
|---|
local S, G, P = precore.helpers()
function make_test(group, name, srcglob, configs)
configs = configs or {}
table.insert(configs, 1, "cacophony.strict")
table.insert(configs, 2, "cacophony.dep")
precore.make_project(
group .. "_" .. name,
"C++", "ConsoleApp",
"./", "out/",
nil, configs
)
if not srcglob... |
-----------------------------------
-- Game Table
-- Basic Chat Text
-----------------------------------
function onTrigger(player,npc)
player:startEvent(10073);
end;
function onTrade(player,npc,trade)
end;
function onEventUpdate(player,csid,option)
end
function onEventFinish(player,csid,option)
end;
|
object_ship_nova_orion_boss_minion_01_tier9 = object_ship_shared_nova_orion_boss_minion_01_tier9:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_boss_minion_01_tier9, "object/ship/nova_orion_boss_minion_01_tier9.iff")
|
class 'Admin'
function Admin:__init()
self.timer = nil
self.message = ""
Network:Subscribe( "Notice", self, self.ClientFunction )
end
function Admin:PostRender()
if self.timer then
local size = Render.Size.x / 40
local testpos = Vector2( (Render.Size.x / 1.9) - (Render:GetTextSize( self.message, si... |
local actor, super = Class(Actor, "shopkeepers/seam")
function actor:init()
super:init(self)
self.name = "Seam"
self.width = 135
self.height = 109
self.path = "shopkeepers/seam"
self.default = "idle"
self.animations = {
["idle"] = {"idle", function(sprite, wait)
whil... |
-- @module Menu
require("public.string")
local Table = require("public.table")
local T = Table.T
local Menu = {}
Menu.parse = {}
local psvPattern = "[^|]*"
--- Finds the positions of any separators (empty items or folders) in a menu string
-- @param str string A menu string, of the same form expected by `gfx.showm... |
local utils = cm:load_global_script "lib.lbm_utils"
local benchmarking = cm:load_global_script "lib.lbm_benchmarking"
--[[
Given max_time of 120, max_iters of 1000000000, and 4 total suite runs, on my machine, I get the following benchmark results:
BENCHMARKS
----------
NAME ... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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
$Id$
]]--
modu... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Prison Job Board"
ENT.Author = "Owain"
ENT.Category = "The XYZ Network Custom Stuff"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.Spawnable = true
ENT.AdminSpawnable = true |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_FIRE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local spell = Spell("instant")
function spell.onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
... |
--[[
Copyright 2013 Patrick Grimm <patrick@lunatiki.de>
Copyright 2013-2014 André Gaul <gaul@web-yard.de>
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... |
local balancer_resty = require("balancer.resty")
local resty_chash = require("resty.chash")
local util = require("util")
local ngx_log = ngx.log
local ngx_ERR = ngx.ERR
local _M = balancer_resty:new({ factory = resty_chash, name = "chash" })
function _M.new(self, backend)
local nodes = util.get_nodes(backend.endpoi... |
require "uri-test"
local URI = require "uri"
local URIFile = require "uri.file"
module("test.file", lunit.testcase, package.seeall)
function test_normalize ()
test_norm("file:///foo", "file://LocalHost/foo")
test_norm("file:///", "file://localhost/")
test_norm("file:///", "file://localhost")
test_norm... |
----------------------------------------------------------------
-- SkillInfoConfig.lua
-- Author : Zonglin Liu
-- Version : 1.0
-- Date :
-- Description: 技能配置,
------------------------------------------------------------------
module("SkillInfoConfig", package.seeall)
SKILLINFOS={}
funct... |
-- NewError returns an error object.
-- An error has a code and a message
function NewError(code, message)
err = {code=code, message=message}
return err
end |
---------------------------------------------------------------
-- UITracker.lua: Widget tracking
---------------------------------------------------------------
-- Used to track and bind interface widgets to the controller.
-- Necessary since widgets might be created at a later time.
local widgetTrackers = {}
local ... |
-- This file is generated by protoc-gen-ratelimit. DO NOT EDIT.
local M = {}
function M.get_ratelimit_bucket(method, path)
if method == "DELETE" then
if path:match('^/v1/tasks/.+$') then
return "api.tasks.v1.TasksService"
end
return "other"
end
if method == "GET" then
if path:match('^/v1/... |
zhibHP = 0
zhibMaxHP = 0
neralaHP = 0
neralaMaxHP = 0
omozraHP = 0
omozraMaxHP = 0
pathRedHP = "Assets/UI/HUD/Slider Segments/slider_segments_hp1_v1.0.png"
pathGreyHP = "Assets/UI/HUD/Slider Segments/slider_segments_hp3_v1.0.png"
pathRed = "Assets/UI/HUD/Slider Segments/slider_segments_hp2_v1.0.png"
pathGrey = "Asset... |
return function()
configuration {}
filter {}
includedirs {
'components/extra-natives-five/include/',
}
files {
'components/extra-natives-five/src/VisualSettingsNatives.cpp',
}
end |
USABLE_FLUID = {}
USABLE_FLUID["crude-oil"] = {
fuel_value = "2500KJ",
fuel_acceleration_multiplier = 1,
fuel_top_speed_multiplier = 1
}
USABLE_FLUID["heavy-oil"] = {
fuel_value = "2500KJ",
fuel_acceleration_multiplier = 1.8,
fuel_top_speed_multiplier = 1.3
}
USABLE_FLUID["light-oil"] = {
fuel_value ... |
--[[
Environment class:
A controler for the different classes of the game.
It will permit different classes to interact between each others.
]]
require("sources/lib/customFunctions")
Environment = {}
Environment.__index = Environment
function Environment:new(player, enemys, window, asteroids)
local env = {}
... |
-- =======================================================================================
-- Plugin: SQUASH.lua
-- Programmer: Cooper Santillan
-- Last Modified: September 30, 2021 11:15pm
-- =======================================================================================
-- Description: Will prompt the user fo... |
local chacha20, base64 = ...
local handles, cache, invoke = {}, {}, (component or require and require("component") or error("no component library")).invoke
------------------------------------------------------------------------------ Misc ------------------------------------------------------------------------------... |
require('constants')
if player_has_item(ISEN_DUN_WHISKY_ID) and creature_has_humanoid_followers(PLAYER_ID) then
clear_and_add_message("YEW_ADVISOR_WHISKY_SID")
remove_object_from_player(ISEN_DUN_WHISKY_ID)
set_creature_additional_property(PLAYER_ID, QUEST_ISEN_DUN_YEW_COMPLETE, "1")
else
clear_and_add_message... |
local input_IsButtonDown = CLIENT and input.IsButtonDown
local input_IsMouseDown = CLIENT and input.IsMouseDown
local hook_Run = hook.Run
local hook_Add = hook.Add
local assert = assert
local type = type
-- Player Buttons by PrikolMen#3372
local PLAYER = FindMetaTable("Player")
function PLAYER:GetButton(key)
asser... |
require 'class'
Console = class(function(cons)
end)
function Console:__tostring()
return 'Console'
end
function Console:log(level, message)
print(level..','..message)
end
function Console:logInfo(message)
self.log("INFO",message)
end
function Console:logWarn(message)
self.log("WARN",message... |
--
-- Created by IntelliJ IDEA.
-- User: Roze
-- Date: 2020-08-22
-- Time: 09:49
-- To change this template use File | Settings | File Templates.
--
local dev = scriptInfo.network
local logg = createLinkedList()
print(logg)
local maxLines = scriptInfo.screenHeight - 1
function prepareLogFor(msg, type, source)
... |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
function onInit()
ChatManager.registerEntryControl(self);
end
function onDeliverMessage(messagedata, mode)
local icon = nil;
if User.isHost() then
gmid, isgm = GmIdentityManager.getCurrent();... |
--[[
Adaptive Token Stream is made as a file-reader that converts input to tokens
in a streamed fashion. This tokenization process can be customized using
custom regex-like patterns and therefore is expandable to many different
user-defined tokens
]]
local util = require("util")
local dbg = require("debugger")
lo... |
local async = require('hover.async')
local M = {}
local providers = {}
M.providers = providers
local id_cnt = 0
function M.register(provider)
if not provider.execute or type(provider.execute) ~= 'function' then
print(string.format('error: hover provider %s does not provide an execute function',
provide... |
--[[LUA rules]]
luarules = {}
luarules['if']={beginstyle = {[SCE_LUA_WORD]=true},
indent = 1,
unindent = {['else'] = 1,['elseif'] = 1}}
luarules['else']={beginstyle = {[SCE_LUA_WORD]=true},
indent = 1,
unindent = {['if'] = 1}}
luarules['elseif']={beginstyle = {[SCE_LUA_WORD]=true},
indent = 1,
unindent = {[... |
-----------------------------------------
-- ID: 4257
-- Papillion
-- Adds butterfly wings to the user
-----------------------------------------
function onItemCheck(target)
return 0
end
function onItemUse(target)
end
|
local dropPopulation = {}
--[[
{
entity
position
itemName
itemAmount
itemWeight
}
]]
local indexInPickupRange
local prompt
local prompt_group
RegisterNetEvent("FRP:INVENTORY:DROP:Create")
AddEventHandler(
"FRP:INVENTORY:DROP:Create",
function(index, x, y, z, ite... |
-----------------------------------------------------
ITEM.name = "Beacon - Yellow"
ITEM.model = "models/Items/grenadeAmmo.mdl"
ITEM.desc = "Can be used as a signal, or to illuminate areas."
ITEM.throwent = "nut_beacon_y"
ITEM.throwforce = 500
ITEM.flag = "v"
ITEM.functions = {}
ITEM.functions.Throw = {
tex... |
bootloader={}
Script.ReloadScript("Scripts/bootloader_utils.lua")
function bootloader:load_file(filename)
bootloader:logVerbose("Loading %s", tostring(filename))
local chunk, err = loadfile(filename)
if not err then
if pcall(function() chunk() end) then
bootloader:logVerbose("Loaded %s successfully", tostring... |
local _, playerClass = UnitClass("player")
if playerClass ~= "ROGUE" and playerClass ~= "WARRIOR" and playerClass ~= "HUNTER" and playerClass ~= "DRUID" and playerClass ~= "PALADIN" and playerClass ~= "SHAMAN" and playerClass ~= "DEATHKNIGHT" and playerClass ~= "MONK" then return end
local playerHybrid = (playerClass =... |
fx_version 'adamant'
game 'gta5'
shared_scripts {
'sh_config.lua',
'sh_airstrike.lua',
}
client_scripts {
'cl_airstrike.lua',
}
server_scripts {
'sv_airstrike.lua',
} |
Config = {}
Config.Animations = {
{
name = 'festives',
label = 'Festliga',
items = {
{label = "Rök en cigarett", type = "scenario", data = {anim = "WORLD_HUMAN_SMOKING"}},
{label = "Spela musik", type = "scenario", data = {anim = "WORLD_HUMAN_MUSICIAN"}},
{label = "DJ", type = "anim", data = {lib = "... |
for i=1,10 do
assert(a[i]==i)
end
for i=2,10 do
assert(p[i-1].y==p[i].x)
end
for i=1,10 do
assert(M.a[i]==i)
end
for i=2,10 do
assert(M.p[i-1].y==M.p[i].x)
end
for i=1,10 do
assert(pp[i].x==M.p[i].x and p[i].y == M.pp[i].y)
end
for i=1,10 do
assert(array.a[i] == parray.a[i])
assert(array.p[i].x == parray.p... |
function TestAbc(a,v)
print("testabc",a,v)
end
function TestAbcRet(a,b)
print(a,b)
return a+b,b,a
end |
-----------------
---- Globals ----
-----------------
ShowBlast = ShowBlast or {}
local ShowBlast = ShowBlast
ShowBlast.name = "ShowBlast"
ShowBlast.version = "1.2"
local LAM2 = LibAddonMenu2
---------------------------
---- Variables Default ----
---------------------------
ShowBlast.Default = {
OffsetX = 800,
Off... |
workspace "Containers"
startproject "Testbench"
architecture "x64"
warnings "extra"
-- Set output dir
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}-%{cfg.platform}"
-- Platform
platforms
{
"x64",
}
-- Configurations
configurations
{
"Debug",
... |
if settings.startup["nukes-require-cliff-explosives"].value then
table.insert(data.raw.technology["atomic-bomb"].prerequisites,"cliff-explosives")
end |
RegisterTableGoal(GOAL_Rival_710000_Battle, "GOAL_Rival_710000_Battle")
REGISTER_GOAL_NO_UPDATE(GOAL_Rival_710000_Battle, true)
Goal.Initialize = function (arg0, arg1, arg2, arg3)
end
--Genichiro Ashina castletop(main) battle file
Goal.Activate = function (arg0, arg1, arg2)
Init_Pseudo_Global(arg1, arg2)
l... |
slot0 = class("LoadingPanel", import("..base.BaseUI"))
slot0.Ctor = function (slot0, slot1)
slot0.super.Ctor(slot0)
seriesAsync({
function (slot0)
slot0:preload(slot0)
end
}, function ()
PoolMgr.GetInstance():GetUI("Loading", true, function (slot0)
slot0.transform:SetParent(GameObject.Find("Overlay/UIOv... |
local require = require
local type = type
local tbl_insert = table.insert
local _M = {}
function _M:load()
-- init module
if type(self.init) == "function" then
self:init()
end
self._m__isLoaded = true
end
function _M:unload()
if self._mt_canUnload and self._m__isLoaded then
-- te... |
BeardLib.Items.Slider = BeardLib.Items.Slider or class(BeardLib.Items.Item)
local Slider = BeardLib.Items.Slider
Slider.type_name = "Slider"
function Slider:Init()
self.value = self.value or 1
self.size_by_text = false
Slider.super.Init(self)
self.step = self.step or 1
self.value = tonumber(self.value)... |
local schema = require "lapis.db.schema"
local types = schema.types
return {
function()
schema.create_table ("keys", {
{"id", types.text};
{"path", types.text};
{"starts", types.time};
{"ends", types.time};
{"max_clicks", types.integer};
{"clicks", types.integer};
"PRIMARY KEY (id)";
})
... |
print("lib.lua runing")
function add(x,y)
return x + y
end
function fnex2(str_a, num_b, num_c)
print(str_a)
return num_b*100 + num_c*10, "Thank you"
end
|
require 'paths'
paths.dofile('util.lua')
paths.dofile('img.lua')
--------------------------------------------------------------------------------
-- Initialization
--------------------------------------------------------------------------------
dataset = arg[1]
set = arg[2]
a = loadAnnotations(dataset,set)
model = a... |
local isDriving = false;
local isUnderwater = false;
Citizen.CreateThread(function()
while true do
if Config.UnitOfSpeed == "kmh" then
SpeedMultiplier = 3.6
elseif Config.UnitOfSpeed == "mph" then
SpeedMultiplier = 2.236936
end
Wait(100)
end
end)
--[[
... |
local K, C, L = unpack(select(2, ...))
-- Lua API
local _G = _G
local table_wipe = table.wipe
-- GLOBALS: Bartender4DB
function K.LoadBartenderProfile()
if Bartender4DB then
table_wipe(Bartender4DB)
end
Bartender4DB = {
["namespaces"] = {
["ActionBars"] = {
["profiles"] = {
["KkhnxUI"] = {
... |
--======================================================================--
--== Utils
--======================================================================--
--- Client Utilities
-- @module Utils
local Utils = {}
--======================================================================--
--== Code
--===============... |
-- Base output class.
local Output = require('luatest.class').new({
VERBOSITY = {
DEFAULT = 10,
QUIET = 0,
LOW = 1,
VERBOSE = 20,
REPEAT = 21,
},
})
function Output.mt:initialize(runner)
self.runner = runner
self.result = runner.result
self.verbosity =... |
os.loadAPI("BGUIFC/Lib/advancedTime")
function newButtonRaw(border, x, y, txt, onColor, offColor, toggle, textColorOn, textColorOff, onClick, timeToStayOn)
txt = ((txt ~= "") and txt) or " "
border = border or 1
local topLeftX, topLeftY, bottomRightX, bottomRightY = x - border, y - border, x + (#txt - 1) +... |
describe("EventDispatcher", function()
local itemId = 'itemIdLoreIpsum'
before_each(function()
_G.ZO_LinkHandler_ParseLink = function() return _, _, _, itemId end
_G.GetItemLink = function() return nil end
end)
it("should dispatch event for new item", function()
stub... |
require("ipa_chart")
function comma_separated_string_to_sorted_list(list)
arr = utilities.parsers.settings_to_array(list)
sorted = {}
i=1
for key, entry in pairs(arr) do
sorted[i]= entry
i = i+1
end
table.sort(sorted)
return sorted
end
function parse_and_insert_description(raw_description, represen... |
-- Common settings for LaTeX3 development repo, used by l3build script
checkdeps = checkdeps or {maindir .. "/l3backend", maindir .. "/l3kernel"}
typesetdeps = typesetdeps or checkdeps
checkengines = checkengines
or {"pdftex", "xetex", "luatex", "ptex", "uptex"}
checksuppfiles = checksuppfiles or
{
"... |
package.path = package.path..";../?.lua"
local ffi = require "ffi"
local S = require "syscall"
local UI = require "input"
local Keyboard = require "Keyboard"
--[[
Callback functions
--]]
--[[
Event type:
EV_KEY
EV_MSC
value:
0 == keyup
1 == keydown
--]]
function OnKey(loop, observer)
local even... |
--[[
Shine ReadyRoomRave Plugin
]]
local Plugin = Plugin
--local Shine = Shine
Shared.PrecacheSurfaceShader("shaders/spray.surface_shader")
function Plugin:Initialise()
self.cinematic = nil
self.Enabled = true
return true
end
function Plugin:UpdateClient()
local player = Client.GetLocalPlayer... |
--[[ ******************************************************************
Double Helix by KOP
******************************************************************* ]]
return function(pg, of, sw, sh)
local pc, cx, cy, ops = math.abs(of/pg.width), pg.width/2, pg.height/2, of/pg.width
-- target distance
... |
-- Node Investment: Automatically invest your energy in a node
-- Contact: aleegs (forum), aleegs#2539 (discord)
-- https://github.com/aleegs/ec-scripts
local versionString = "1.0"
local ec = _G["__EC__"]
local eccore = ec.requireScript("ec.core")
local settings = nil
math.randomseed(os.clock()*100000000000)... |
-- _.size.lua
--
-- Gets the size of collection by returning its length for array-like
-- values or the number of own enumerable properties for objects.
-- @usage _.print(_.size({'abc', 'def'}))
-- --> 2
-- _.print(_.size('abcdefg'))
-- --> 7
-- _.print(_.size({a=1, b=2,c=3}))
-- --> 3
--
-- @param collection The coll... |
Ingredient = Class {}
whiteShader = love.graphics.newShader [[
extern float WhiteFactor;
vec4 effect(vec4 vcolor, Image tex, vec2 texcoord, vec2 pixcoord)
{
vec4 outputcolor = Texel(tex, texcoord) * vcolor;
outputcolor.rgb += vec3(WhiteFactor);
return outputcolor;
}
]]
function Ingredient:init(type)
... |
-----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Holla
-- !pos -242.301 -1.849 269.867 14
-----------------------------------
local ID = require("scripts/zones/Hall_of_Transference/IDs");
-----------------------------------
function onTrade(player,npc,trade)
if (... |
--This is a rank table
--There could be multiple tables to generate spawns from
local Circle_Ranks_01 = {
["Underlings"] = {
--NA
},
["Minions"] = {
"CoT_01","CoT_02","CoT_03",
"CoT_11","CoT_21","CoT_22",
"CoT_23","CoT_24",
"CoT_31","CoT_32",
"CoT_33","CoT_34",... |
-- TrafficConeGod
return function(Sunshine, entity)
local prefab = entity.prefab
if prefab then
prefab.prefab = require(prefab.prefab)
for componentName, dataComponent in pairs(prefab.prefab) do
if not entity[componentName] then
local component = { objectType = "Comp... |
local function bintohex(bytes, len)
local str = ffi.string(bytes, len)
return (str:gsub('(.)', function(c)
return string.format('%02x', string.byte(c))
end))
end
|
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.16.0",
orientation = "orthogonal",
renderorder = "right-down",
width = 24,
height = 72,
tilewidth = 16,
tileheight = 16,
nextobjectid = 61,
properties = {},
tilesets = {
{
name = "tileset",
firstgid = 1,
filena... |
local util = require("tests.helpers.util")
local verify = require("tests.helpers.verify")
local utils = require("neo-tree.utils")
describe("Filesystem netrw hijack", function()
after_each(function()
util.clear_test_state()
end)
require("neo-tree").setup({
filesystem = {
hijack_netrw_behavior = "di... |
local input = require('bizhawk/input')()
-- Vs Pinky
local cf = 40637
-- Sequence 1
-- Combo n° 3
cf = input:circle(cf)
cf = input:cross(cf + 120)
cf = input:right(cf + 40)
cf = input:cross(cf + 80)
cf = input:down(cf + 40)
cf = input:cross(cf + 80)
cf = input:up(cf + 40)
cf = input:cross(cf + 80)
cf = input:rig... |
-----------------------------------
-- Area: Castle Oztroja
-- NPC: _47o
-- !pos -155.228 21.500 -140.000 151
-----------------------------------
function onTrigger(player, npc)
npc:openDoor(6)
end
function onEventUpdate(player, csid, option)
end
function onEventFinish(player, csid, option)
end
|
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Antlion Meat"
ITEM.model = Model("models/gibs/antlion_gib_small_2.mdl")
ITEM.width = 1
ITEM.height = 1
ITEM.description = "An uncooked small piece of a large burrowing alien insect. Definitely has a lot of ... |
--[[------------------------------------------------------
lens.Finalizer test
-----------------
...
--]]------------------------------------------------------
local lens = require 'lens'
local lut = require 'lut'
local should = lut.Test 'lens.Finalizer'
local Finalizer = lens.Finalizer
function should.... |
object_draft_schematic_furniture_wod_pro_sm_tree_08 = object_draft_schematic_furniture_shared_wod_pro_sm_tree_08:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_pro_sm_tree_08, "object/draft_schematic/furniture/wod_pro_sm_tree_08.iff")
|
-- Window management
-- Uncomment if you want to disable Animation
-- hs.window.animationDuration = 0
-- Hotkeys
local opt = { 'alt' }
local optcmd = { 'alt', 'cmd' }
local shftopt = { 'shift', 'alt' }
local shftcmd = { 'shift', 'cmd' }
hs.grid.MARGINX = 10
hs.grid.MARGINY = 10
hs.grid.GRIDWIDTH = 12
hs.grid.GRIDHEI... |
local lore = require "lore"
return function (triggers)
function triggers.lore (env, object, data)
local item = lore[data]
if item then
if not item.condition or item:condition(env) then
env.textbox:show{
text = item.text,
duration = 0.2,
style = {
c... |
project "assimp"
kind "StaticLib"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
-- Dependencies
"contrib/unzip/**",
"contrib/irrXML/**",
"contrib/zlib/*",
-- Common
"code/Common/**",
"code/PostProcessing/**",
"code/Mat... |
function menu_load()
if not xscroll then
screendarkness = 1
end
love.graphics.setBackgroundColor(0.18, 0.75, 1)
xscroll = 0
menuitems = {"start game", "all runes game", "challenges", "quit"}
twilightframe = 1
twilighttimer = 0
noise = 0
if gamefinished then
for i = 1, #spellnames do
spelldiscovered[i] ... |
#!/usr/bin/env texlua
---@diagnostic disable: lowercase-global
-- Configuration file of "citeproc" for use with "l3build"
module = "csl"
docfiledir = "./doc"
sourcefiledir = "./citeproc"
testfiledir = "./test"
installfiles = {"*.sty", "*.lua", "*.json"}
scriptfiles = {"citeproc*.lua"}
-- scriptmanfiles = {"citeproc... |
local fs = require "nixio.fs"
local m,s,olt,opt
m = Map("netset", translate("RemoteCtrl"), translate("Communicate with Server by TCP"))
s = m:section(TypedSection, "netset", translate("Remote Configuration"))
s.addremove = false
s.anonymous = true
s:tab("netset1", translate("remoteipport"))
this_tab = "netset1"
opt ... |
-- map create a new mapping
-- @param mode specify vim mode
-- @param lhs specify the new keymap
-- @param rhs specify the keymap or commands
-- @param opts setting options. Default: { noremap = true, silent = true, expr = false }
local function map(mode, lhs, rhs, opts)
local options = {
noremap = true,
sile... |
game.Players.epicikr.CharacterAppearance = "http://www.roblox.com/asset/?id=81396901"wait(1) game.Workspace.epicikr.Head:Remove()
|
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_disruptor... |
--[[
MTA Role Play (mta-rp.pl)
Autorzy poniższego kodu:
- Patryk Adamowicz <patrykadam.dev@gmail.com>
Discord: PatrykAdam#1293
Link do githuba: https://github.com/PatrykAdam/mtarp
--]]
screenX, screenY = guiGetScreenSize()
scaleX, scaleY = (screenX / 1920), (screenY / 1080)
local admin = {}
admin... |
-----------------------------------
-- Area: Mhaura
-- NPC: Kamilah
-- Guild Merchant NPC: Blacksmithing Guild
-- !pos -64.302 -16.000 35.261 249
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
local ID = require("scripts/zones/Mhaura/IDs");
-------------------... |
local Package = game:GetService("ReplicatedStorage").Fusion
local semiWeakRef = require(Package.Instances.semiWeakRef)
return function()
it("should return a correct reference", function()
local instance = Instance.new("Folder")
local ref = semiWeakRef(instance)
expect(ref).to.be.a("table")
expect(ref.type).to... |
id = 2
request = function()
path = "/testTicket?id=" .. id
id = id + 1
return wrk.format("POST", path)
end
|
for index, force in pairs(game.forces) do
local technologies = force.technologies
local recipes = force.recipes
if technologies["bjnick-metal-recycling"].researched then
recipes["both-recycling-furnace"].enabled = true
end
if technologies["bjnick-metal-recycling-2"].researched then
recipes["shredding-machine"].... |
local make_set = require 'parse.char.utf8.make.set'
return make_set {
S = '-\u{ad}\u{58a}\u{1806}\u{2010}\u{2011}\u{2e17}\u{30fb}\u{fe63}\u{ff0d}\u{ff65}';
}
|
Config = {}
Config.DrawDistance = 100.0
Config.MaxInService = -1
Config.EnablePlayerManagement = true
Config.EnableSocietyOwnedVehicles = false
Config.Locale = 'fr'
Config.Zones = {
CaisseFarm = {
Pos = {x = 1900.86730, y = 5107.58154... |
return {
id = "crystalscoob",
name = "Crystal Scoobis",
description = "scoob!",
type = "hat",
rarity = 6,
hidden = false,
}
|
---------------------------------------------
--command
---------------------------------------------
local command = {}
function command:network_open()
log("command:network_open==========>>")
end
function command:network_message(data)
log("command:network_message==========>>#data =", #data)
end
function comma... |
include("/scripts/includes/consts.lua")
include("/scripts/includes/skill_consts.lua")
isPersistent = false
internal = false
function getDuration(source, target)
return TIME_FOREVER
end
function onStart(source, target)
target:SetUndestroyable(true)
return true
end
function onEnd(source, target)
target:SetUnd... |
ThirdPartyLoc = EngineLoc .. "Source/ThirdParty/"
ThirdPartyInclude = {}
ThirdPartyInclude["spdlog"] = ThirdPartyLoc .. "/spdlog-1.x/include"
|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('BuildingTemplate', {
'name', "GardenAlleys_Medium",
'template_class', "Service",
'construction_cost_Concrete', 4000,
'build_points', 1000,
'dome_required', true,
'show_decals_on_placement', true,
'use_demolished_state', false,
'display... |
local choices, choice_actors, choice_positions, choice_widths = {}, {}, {}, {}
local TopScreen = nil
-- give this a value now, before the TopScreen has been prepared and we can fetch its name
-- we'll reassign it appropriately below, once the TopScreen is available
local ScreenName = "ScreenSelectPlayMode"
local... |
item_flask_arena = {}
if IsServer() then
function item_flask_arena:OnSpellStart()
local target = self:GetCursorTarget()
local duration = self:GetSpecialValueFor("buff_duration")
target:EmitSound("DOTA_Item.HealingSalve.Activate")
target:AddNewModifier(self:GetCaster(), self, "modifier_item_flask_arena_healing"... |
-- Global to all starfalls
local checkluatype = SF.CheckLuaType
-- Register privileges
SF.Permissions.registerPrivilege("trace", "Trace", "Allows the user to start traces")
SF.Permissions.registerPrivilege("trace.decal", "Decal Trace", "Allows the user to apply decals with traces")
local plyDecalBurst = SF.BurstObjec... |
--===========================================================================--
-- --
-- System.Data.Core --
-- --
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.