content stringlengths 5 1.05M |
|---|
--[[ Terokkar Forest -- Accursed Apparition.lua
This script was written and is protected
by the GPL v2. This script was released
by Mager of the BLUA Scripting Project.
Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- Mag... |
object_tangible_loot_creature_loot_collections_meatlump_newspaper_02 = object_tangible_loot_creature_loot_collections_shared_meatlump_newspaper_02:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_newspaper_02, "object/tangible/loot/creature/loot/collections/meatlump_newspape... |
-- Old avatar actor frame.. renamed since much more will be placed here (hopefully?)
local t = Def.ActorFrame{
Name="PlayerAvatar"
}
local profile
local profileName = "No Profile"
local playCount = 0
local playTime = 0
local noteCount = 0
local numfaves = 0
local AvatarX = 0
local AvatarY = SCREEN_HEIGHT-50
local pl... |
require 'lib.ngx_mock'
local router = {}
local function split(str, delimiter)
local res = {}
for i in string.gmatch(str, "[^/]+") do
table.insert(res, i)
end
return res
end
local function tail(t)
local result = {}
for i=2, #t do result[i-1] = t[i] end
return result
end
function copy(t)
local t2 ... |
workspace "glcore"
architecture "x64"
startproject "Sandbox"
configurations {
"Debug", "Release"
}
flags {
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "glcore"
location "glcore"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime ... |
-- Copyright 2018 Johan Hidding
-- 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 or agreed to in writ... |
object_tangible_loot_creature_loot_collections_space_booster_mark_05_kse = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_05_kse:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_05_kse, "object/tangible/loot/creature/loot/collections/space... |
--====================================================================--
-- Trajectory Multiple
--
-- demonstrates multiple objects being controlled at a single time.
--
-- by David McCuskey
--
-- Sample code is MIT licensed, the same license which covers Lua itself
-- http://en.wikipedia.org/wiki/MIT_License
-- Copyr... |
-- Get all the attributes of this particular job
function QlessRecurringJob:data()
local job = redis.call(
'hmget', 'ql:r:' .. self.jid, 'jid', 'klass', 'state', 'queue',
'priority', 'interval', 'retries', 'count', 'data', 'tags', 'backlog')
if not job[1] then
return nil
end
return {
jid ... |
TargetBot.Creature.edit = function(config, callback) -- callback = function(newConfig)
config = config or {}
local editor = UI.createWindow('TargetBotCreatureEditorWindow')
local values = {} -- (key, function returning value of key)
editor.name:setText(config.name or "")
table.insert(values, {"name", functi... |
local printdebug = true;
function logMessage(message)
if printdebug then
--print(message);
end
end |
Config = {}
Config.DrawDistance = 100.0
Config.MarkerType = 1
Config.MarkerSize = { x = 1.5, y = 1.5, z = 0.5 }
Config.MarkerColor = { r = 50, g = 50, b = 204 }
Config.EnablePlayerManagement = true
Config.EnableArmoryManagemen... |
menu = {} --master table
menu.state = false --menu.state defines what menu or submenu is shown ( see: menu.draw() )
menu.options = { "Resume", "Restart", "Main menu", "Quit" }
menu.bheight = 16 --height of a menu button
menu.selectedbutton = 1 --the number of the selected button
function menu.load() --hooks the menu i... |
-- encoding: UTF-8
-- Macro Parser
-- by Shmuel Zeigerman
-- Allow running this module without Far Manager
-- (any free hanging C-style identifier will be accepted as a key then).
if not far then
far = { NameToInputRecord=function() return true end }
end
local lpeg = require "lpeg"
local P, R, S, V = lpeg.P, lpeg... |
--New events are to be required here for loading
--require('sampleEvent') |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('AmbientLife', {
group = "Work",
id = "WorkSpacebar",
param1 = "unit",
param2 = "bld",
PlaceObj('XPrgDefineSlot', {
'groups', "A",
'spot_type', "Workbar",
'goto_spot', "Pathfind",
'flags_missing', 1,
'usable_by_child', false,
})... |
local uids = require "uids"
local M = {}
function M.get_uid(token)
return uids[token]
end
return M
|
require('torch')
require('nn')
--- @class WeightedGaussianBCECriterion
local WeightedGaussianBCECriterion, WeightedGaussianBCECriterionParent = torch.class('nn.WeightedGaussianBCECriterion', 'nn.Criterion')
--- Initialize.
function WeightedGaussianBCECriterion:__init()
self.sizeAverage = false
self.eps = 0
self... |
-----------------------------------
-- Area: Castle Zvahl Baileys
-- Mob: Abyssal Demon
-- Note: PH for Marquis Sabnock
-----------------------------------
local ID = require("scripts/zones/Castle_Zvahl_Baileys/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, ... |
local _M = {}
_M["1"] = {
["id"] = 1,
["num"] = 5,
["join"] = 5,
["play"] = 1,
["sblind"] = 25,
["bblind"] = 50,
}
return _M |
-- ======================================================================
-- HighEntropyPassphrases
-- Advent of Code 2017 Day 04 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ===============... |
local skynet = require 'skynet'
skynet.start(function()
local gateserver = skynet.newservice('mygateserver2')
skynet.call(gateserver, 'lua', 'open', {
port = 8002,
maxclient = 64,
nodelay = true
})
end) |
--------------------------------------------------------------------------------
-- 81-718 train control unit
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for addition... |
if noita then return end
noita = {}
--- GENERAL ---
function noita.print(text, important)
if important then
GamePrintImportant(text)
else
GamePrint(text)
end
end
function noita.type(obj)
local lua_type = type(obj)
if lua_type == "table" then
local meta = getmetatable(obj)
if meta then
if meta.__objn... |
--[[Author: LearningDave
Date: 04.11.2015
Applies damage to target and fires a impact effect after x sec delay
- Converted from datadriven to lua by EarthSalamander
- Date: 27.04.2021
]]
LinkLuaModifier("modifier_gaara_sabaku_kyuu", "scripts/vscripts/abilities/heroes/beasts/shukaku/shukaku_sabaku_kyuu.lua", LUA_MO... |
-----------------------------------------
-- ID: 4943
-- Scroll of Suiton: Ichi
-- Teaches the ninjutsu Suiton: Ichi
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(335)
end
function onItemUse(target)
target:addSpell(335)
end |
print( '-------- basic vm tests --------' )
print( '-- boolean tests' )
local function booleantests()
t = true
f = false
n = nil
s = "Hello"
z = 0
one = 1
print(t)
print(f)
print(not t)
print(not f)
print(not n)
print(not z)
print(not s)
print(not(not(t)))
print(not(not(z)))
print(not(not(n)))
... |
--===========================================================================--
-- --
-- System.Web.HttpRequest --
-- --
... |
if GetLocale() ~= "deDE" then return end
DBM_CORE_NEED_LOCALS = "Hey, bist du ein Programmierer oder gut in Fremdsprachen? Falls ja, benötigt DBM deine Hilfe, um in mehr Sprachen übersetzt zu werden. Falls du helfen kannst, dann besuche |HDBM:localizersneeded|h|cff3588ffunser Forum|r."
DBM_CORE_NEED_LOGS = "... |
--; ============================================================
--; Lua Gaming (Category)
--; ============================================================
selectGaming = {
["GameHUB 2"] = {
iconName = "GameHUB 2",
iconMask = "GameHUB2",
showPage1 = "0",
showPage2 = "1",
showPage3 = "1",
showPa... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... |
--[[
--=====================================================================================================--
Script Name: Proximity Chat, for SAPP (PC & CE)
Description: You can only chat with players who are within a certain range from you (see config)
Copyright (c) 2021, Jericho Crosby <jericho.crosby227@gmail.com... |
liquidPickerLoader = {}
local x, y, i
local used = {}
liquidPickerLoader.initialized = false
function liquidPickerLoader.initializeConfig()
if liquidPickerLoader.initialized then return end
liquidPickerLoader.initialized = true
liquidPickerLoader.config = root.assetJson("/interface/wedit/liquidPicker/liquidPic... |
local class = require "com/class"
local Shooter = class:derive("Shooter")
local Vec2 = require("src/Essentials/Vector2")
local Sprite = require("src/Essentials/Sprite")
local Color = require("src/Essentials/Color")
local SphereEntity = require("src/SphereEntity")
local ShotSphere = require("src/ShotSphere")
... |
local unit1 = system.loadunit 'unit1'
local forms = system.loadunit 'forms'
local controls = system.loadunit 'controls'
unit1.form1.oncreate()
unit1.pfs_beep1.data = system.loadbin( 'Beep1.pcm' )
unit1.pfs_beep2.data = system.loadbin( 'Beep2.pcm' )
unit1.pfs_beep3.data = system.loadbin( 'Beep3.pcm' )
unit1.p... |
bristleback_quill_spray_lua = class({})
LinkLuaModifier( "modifier_bristleback_quill_spray_lua", "lua_abilities/bristleback_quill_spray_lua/modifier_bristleback_quill_spray_lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_bristleback_quill_spray_lua_stack", "lua_abilities/bristleback_quill_spray_lua/modifier... |
local lplatform = require 'lplatform'
local defaults_conf = {
tmp_path = '/tmp/iojxd/',
listen_address = '127.0.0.1',
listen_port = 23333,
}
local defaults_args = nil
if lplatform.is_darwin() then
defaults_args = {
source = { '/Users/secondatke/Desktop/apb.cpp' },
language = 1,
flags = '-O3 -g',
data = '/Us... |
/*
Hobo_Gus SWEP Base V2.8. Uses Swep Construction Kit code.
Actually its V3.0 in development
*/
SWEP.Base = "weapon_base"
SWEP.AdminSpawnable = true
SWEP.AutoSwitchTo = false
SWEP.Slot = 2
SWEP.PrintName = "LeafyBase"
SWEP.Author = "Leafdroid"
SWEP.Spawnable = false
SWEP.AutoSwitchFrom = false
SWEP.Weight = 5
SW... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Select n Center!",
desc = "Selects and centers the Commander at the start of the game.",
... |
Holo.Menu = Holo.Menu or {}
local self = Holo.Menu
function self:Init()
local accent_color = Holo:GetColor("TextColors/MenuHighlighted")
local background_color = Holo:GetColor("Colors/Menu"):with_alpha(0.65)
self._menu = MenuUI:new({
name = "Holo",
accent_color = accent_color,
foregr... |
--[[
PersistenceXP data file for Carenado Saab 340
]]
module(..., package.seeall)
--Modules
local LIP = require("LIP")
local pxpSwitchData = {}
local LYOKE = nil
local RYOKE = nil
local LARM = nil
local RARM = nil
local IGNL_CVR = nil
local IGNR_CVR = nil
local IGN1 = nil
local IGN2 = nil
local DCAMP = nil
local EM... |
local here = arg[1]
local g_here = here
local g_branchname = "main"
local g_platform = None
package.path = package.path .. ';'..here..'/?.lua;'..here..'/deps/alloui/lib/pl/lua/?.lua'
local json = require "json"
local tablex = require"pl.tablex"
local g_platform_file_map = {
["linux-x64"] = { file = "liballonet... |
local maxFPS = getFPSLimit()
local minFPS = 25
local timerChecker = 500
local rootElement = getRootElement()
local cachedState = isElementInWater(localPlayer)
triggerServerEvent ( "getMinFPS", resourceRoot )
addEvent( "setMinFPS", true )
addEventHandler( "setMinFPS", localPlayer, function ( fpsValue )
minFPS = fpsV... |
local function history(extra, suc, result)
for i=1, #result do
delete_msg(result[i].id, ok_cb, false)
end
if tonumber(extra.con) == #result then
send_msg(extra.chatid, ''..#result..' پیام اخیر سوپر گروه حذف شد', ok_cb, false)
else
send_msg(extra.chatid, 'تمام پیام های سوپر گروه حذف شد', ok_cb, false)
end
end
local func... |
-- Particle Carbine
sound.Add(
{
name = "spvcarb_fire",
channel = CHAN_STATIC,
volume = 1.0,
soundlevel = 115,
sound = {"spv3/carb/particle_carbine_1.wav","spv3/carb/particle_carbine_2.wav","spv3/carb/particle_carbine_3.wav"}
})
sound.Add(
{
name = "spvcarb_deploy",
channel = CHAN_STATIC,
... |
if not HpwRewrite then return end
HpwRewrite.FM = HpwRewrite.FM or { }
function HpwRewrite.FM:GetValue(ply)
if CLIENT then return self.FightingValue end
return ply.HpwRewrite.InFighting
end
if CLIENT then
HpwRewrite.FM.FightingValue = false
net.Receive("hpwrewrite_Fight", function(args)
HpwRewrite.FM.Fighting... |
yavin4_tanc_herd_neutral_none = Lair:new {
mobiles = {{"tanc_mite",1},{"puny_tanc_mite",2}},
spawnLimit = 18,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
buildingType = "none",
}
addLairTemplate("yavin4_tanc_herd_neutral_none", yavin4_tanc_herd_... |
-- StringFormat.test.lua
-- David Skrundz
package.path = "./../src/?.lua;" .. package.path
require "StringFormat"
Test:start("StringFormat")
sf = StringFormat.new()
sf[1] = "start "
sf[2] = 10
sf[3] = " end"
Test:assertEqual(sf:render(), "start 10 end", "sf:render()", "\"start 10 end\"")
Test:stop()
|
--[[
Mod Xpro para Minetest
Copyright (C) 2018 BrunoMine (https://github.com/BrunoMine)
Recebeste uma cópia da GNU Lesser General
Public License junto com esse software,
se não, veja em <http://www.gnu.org/licenses/>.
Inventario unified_inventory
]]
if unified_inventory == nil then return end
-- Traduçõe... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCr... |
--[--[--------------------]--]--
-- Project: Pong --
-- File: ball.lua --
-- --
-- Author: Gabyfle --
-- License: Apache 2.0 --
--]--]--------------------[--[--
local ball = {
radius = 10, -- so 20 pixels in diameter
color = { 3, 2, 1, 100 }... |
--[[
_____ .__ _____.__ .__ __
/ ___ \|__| ____ ________ ___/ ____\__| ____ |__| ____ _____/ |_ ____
/ / ._\ \ |/ \ / ___/ | \ __\| |/ ___\| |/ __ \ / \ __\/ __ \
< \_____/ | | \\___ \| | /| | | \ \___| \ ___/| | \ | ... |
local assets =
{
Asset("ANIM", "anim/sch_dress_3.zip"),
Asset("ATLAS", "images/inventoryimages/sch_dress_3.xml"),
Asset("IMAGE", "images/inventoryimages/sch_dress_3.tex"),
}
local function onequip(inst, owner)
owner.AnimState:OverrideSymbol("swap_body", "sch_dress_3", "swap_body")
if inst.co... |
--[[-------------------------------------------------------------------------
Here you can enter your MySQL data, and choose between using MySQL or not
---------------------------------------------------------------------------]]
BU3.SQLConfig = {}
--[[------------------------------------------------------------------... |
local assets =
{
Asset("ANIM", "anim/coldfire_fire.zip"),
Asset("SOUND", "sound/common.fsb"),
}
local lightColour = {0, 183/255, 1}
local heats = {-10, -20, -30, -40}
local function GetHeatFn(inst)
return heats[inst.components.firefx.level] or -20
end
local function fn(Sim)
local inst = CreateEntity()
local tra... |
--[[
3p8_ow_tower
Uses: a generalization of the overworld representation of a jet
Todo: test
models/xqm/jetbody3.mdl
]]
AddCSLuaFile()
ENT.Base = "3p8_base_ent"
ENT.Model = nil
ENT.AttackTime = 3
ENT.Home = Vector(100, 604, 1488)
ENT.Target = nil
ENT.GuardDist = 750
ENT.HoverDist = 30... |
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
vRP = Proxy.getInterface("vRP")
--[ CONNECTION ]----------------------------------------------------------------------------------------------------------------
emp = {}
Tunnel.bindInterface("emp_postman",emp)
--[ COLLECT | FUNCTION ]-... |
--[[
_____ _______ _____ ___________
\__ \\_ __ \/ \ / _ \_ __ \
/ __ \| | \/ Y Y ( <_> ) | \/
(____ /__| |__|_| /\____/|__|
\/ \/
--]]
--~ armor:register_armor("technic_fight:boots", {
--~ description = "Boots",
--~ inventory_image = "technic_fight_boots_inv.png",
--~ texture =... |
--- === cp.ui.Image ===
---
--- Represents an `AXImage` `axuielement` value.
---
--- Extends [Element](cp.ui.Element.md).
local Element = require "cp.ui.Element"
local Image = Element:subclass("cp.ui.Image")
--- cp.ui.Image.matches(element)
--- Function
--- Checks if the provided `axuielement` is an `AXIma... |
local the = require"the"
local obj,has = the"metas obj has"
local out,shout,fmt = the"prints out shout fmt"
local gt,r,e = the"maths gt r e"
local srand,cos,pi,lt = the"maths srand cos pi lt"
local sort,map,per,push = the"tables sort map per push"
local top,ntimes,firsts ... |
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")
local dpi = beautiful.xresources.apply_dpi
local awesome = awesome
-- Slider
local widget_icon = wibox.widget{
id = "icon",
image = beautiful.cc_volume_normal_icon... |
--- Unique Array class
-- For working with unique string array values. Creates an array with hash/dictionary indexing.
-- @classmod unique_array
-- Adding or removeing values without using the provided methods can break the functionality of this class.
-- Additional methods exported by requering unique_array are .set a... |
TryToFish = function()
if IsPedSwimming(PlayerPedId()) then return TriggerEvent("DoLongHudText","You haven't quite learned how to multitask yet",2) end
if IsPedInAnyVehicle(PlayerPedId()) then return TriggerEvent("DoLongHudText","Exit your vehicle first to start fishing!",2) end
local waterValidated, castLo... |
--[[----------------------------------------------------------------------------
Application Name: FTPServer
... |
-- Just boxes
local _box = std.object {
_type = "Box",
height= 0,
depth= 0,
width= 0,
misfit = false,
type="special",
explicit = false,
discardable = false,
value=nil,
__tostring = function (str) return str.type end,
__concat = function (a, b) return tostring(a)..tostring(b) end,
init = functio... |
--
-- tests/actions/codeblocks/codeblocks_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_files = { }
local suite = T.codeblocks_files
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
f... |
{data={name="9Battleship", author="PLP"}, blocks={
{0x12e3f0, {9.549, 0.032}, command={faction=1238}},
{0x12e430, {11.293, 35.027}, 1.047},
{0x12e3ff, {-80.495, -39.488}, 2.356},
{0x12e3f9, {-86, -59.974}, 3.142},
{0x12e3ff, {-139.973, -82.473}, 2.88},
{0x12e3f9, {-111.982, -74.973}, 3.142},
... |
local mat_version = 0.9
local mat_table = {}
util.AddNetworkString("StormFox - mapdata")
-- Alright mr ClockWork guy. This is my file.read and file.write.
local file_read = file.Read
local file_write = file.Write
local function CheckMapData() -- Check if the current data is valid
if file.Exists("stormfox/maps/" .. ... |
appmod.blacklist['bi-bioreactor'] = true
|
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id init.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/08/10 20:07
- @uses The ... |
local util = require(".lua.common.util")
local logger = require(".lua.common.logger").new("bucket_cache_api.lua")
local constants = require(".lua.common.constants")
local bucket_status_cache = require(".lua.cache.bucket_status_cache")
local redis_service = require(".lua.service.redis_service")
--~ Sends success respon... |
local L = (...)
local utable = L:get("lcore.utility.table")
local event = L:get("lcore.service.event")
local oop = L:get("lcore.utility.oop")
local whack
local function fire_from(self, source, event_name, ...)
for key, name in ipairs(source) do
local entry = self.states[name]
if (entry) then
if (entry[event_n... |
ITEM.name = "Ukrainian IRP"
ITEM.model = "models/gmodz/food/irp_ukr.mdl"
ITEM.description = "A package with individual food ration."
ITEM.hungerAmount = 0.8
ITEM.thirstAmount = 0.5
ITEM.healthAmount = 10
ITEM.staminaAmount = 0.2
ITEM.staminaRegenTime = 20
ITEM.price = 3500
ITEM.useSound = "gmodz/items/irp.wav"
ITEM.r... |
local assets=
{
Asset("ANIM", "anim/lantern.zip"),
Asset("ANIM", "anim/swap_lantern.zip"),
Asset("SOUND", "sound/wilson.fsb"),
}
local function turnon(inst)
if not inst.components.fueled:IsEmpty() then
if not inst.components.machine.ison then
if inst.components.fueled then
... |
vim.g.EasyMotion_smartcase = 1
|
-- modifier_item_devastator_desolator
LinkLuaModifier("modifier_item_devastator_corruption_armor", "modifiers/modifier_item_devastator_corruption_armor.lua", LUA_MODIFIER_MOTION_NONE)
modifier_item_devastator_desolator = class({})
function modifier_item_devastator_desolator:DeclareFunctions()
local funcs = {
MODIFI... |
if SERVER then AddCSLuaFile("shared.lua") end
SWEP.Author = "Darkspider"
SWEP.Contact = ""
SWEP.Purpose = "Removes Props"
SWEP.Instructions = "Shoot to remove props"
SWEP.PrintName = "Prop Remover"
SWEP.Slot = 1
SWEP.SlotPos = 3
SWEP.ViewModelFOV = 60
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/v_c... |
-- ======= Copyright (c) 2003-2013, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\CystGhostModel.lua
--
-- Created by: Andreas Urwalek (andi@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworlds.com =====================
Script.Load("lua/Hud/Comm... |
--[[
##########################################################################
## ##
## Project: 'Taser' - resource for MTA: San Andreas ##
## ##
#####... |
local vim = vim
local set = vim.opt
local cmd = vim.cmd
local g = set
local home = vim.env.HOME
local config = home .. '/.config/nvim'
local has = vim.fn.has
cmd('filetype plugin on')
cmd('filetype indent off')
cmd('syntax on')
-- To read the what each does use `:h <setting name>` or `:options`
se... |
local dr = data.raw
dr["linked-container"]["linked-chest"].gui_mode = "all"
dr["linked-container"]["linked-chest"].inventory_size = 19
dr["item"]["linked-chest"].flags = {}
dr["item"]["linked-chest"].subgroup = "logistic-network"
dr["item"]["linked-chest"].order = "b[linked-chest]-c[logistic-chest-active-provider]... |
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_demonhunter", 80300)
if not __exports then return end
__exports.registerDemonHunter = function(OvaleScripts)
do
local name = "sc_t25_demon_hunter_havoc"
local desc = "[9.0] Simulationcraft: T25_Demon_Hunter_Havoc"
local code = [[
# Ba... |
return {
{
Meta = function(meta)
-- The call to `MetaInlines` is redundant and used for testing purposes
-- only. The explicit use of a MetaValue constructor is only useful when
-- used with an empty table: `MetaInlines{}` is read differently than
-- `MetaBlocks{}`.
meta.title = pand... |
include("shared.lua")
SWEP.PrintName = "ACF SWEP Base"
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
SWEP.ScreenFactor = {}
SWEP.ScreenFactor.w = surface.ScreenWidth()
SWEP.ScreenFactor.h = surface.ScreenHeight()
SWEP.FloatingAim = {}
SWEP.FloatingAim.bounds = 0.3
function SWEP:Initia... |
--[[
@Author: Eoussama
@Version: v0.0.1
@Creation date: 6/12/2019 - 11:24PM
]]
local loader = {}
--[[
@description Loads the game's assets
]]
function loader.loadAssets()
-- Loading graphical assets
loader.loadGFX()
-- Loading vocal assets
loader.loadSFX()
-- Loading... |
--- psychic_demon.lua ---
-- This is an importable archetype of a demon that shoots bolts that
-- drain wisdom and mana, and kill party members when their wisdom is 0.
-- It serves as a demonstration of how to create new spell projectiles
-- that do various things, like punish party members' stats.
--
-- For a b... |
--------------------------------------------------------------------------------
-- Libria --
-- Client functions file --
--------------------------------------------------------------------------------
loca... |
object_tangible_collection_rock_bubbling_07 = object_tangible_collection_shared_rock_bubbling_07:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rock_bubbling_07, "object/tangible/collection/rock_bubbling_07.iff") |
object_tangible_collection_hanging_light_06 = object_tangible_collection_shared_hanging_light_06:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_hanging_light_06, "object/tangible/collection/hanging_light_06.iff") |
local boiler_base = table.deepcopy(data.raw["boiler"]["boiler"])
local entity_path = "__clean-electric-boiler__/graphics/entity/clean-electric-boiler/"
boiler_base.icon = "__clean-electric-boiler__/graphics/icons/clean-electric-boiler.png"
boiler_base.fast_replaceable_group = "electric-boiler"
boiler_base.energy_sour... |
local temp
temp = data.raw.recipe["boiler-2"]
temp.ingredients = {
{type="item", name="boiler", amount=1},
{type="item", name="steel-furnace", amount=2},
}
temp = data.raw.recipe["boiler-3"]
temp.ingredients = {
{type="item", name="boiler-2", amount=1},
{type="item", name="steel-plate", amount=15},
}
temp = data... |
Player = Class
{
init = function(self)
self.hand = {}
self.cash = 500
local screenH, cardH = 700, 145
self.y = screenH - cardH - 10
self.bet = 20
self.lastbet = self.bet
self.maxW = 1000
self.firstTurn = true
self.bust = false
end;
dra... |
SILE = require("core/sile")
describe("The measurement convertor", function()
it("should exist", function()
assert.is.truthy(SILE.toPoints)
end)
it("should work for points, units explicit", function () assert.is.equal(SILE.toPoints(20,"pt"),20) end)
it("should work for points, units implicit", function () as... |
function _G.check_back_space()
local col = vim.api.nvim_win_get_cursor(0)[2]
return (col == 0 or vim.api.nvim_get_current_line():sub(col, col):match('%s')) and true
end
|
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
---------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 4 Feb 2015 by Daniel Barney ... |
return function(pipe)
pipe:set_linger(1000)
pipe:set_sndtimeo(1000)
local LogLib = require "log"
local zmq = require "lzmq"
local mp = require "cmsgpack.safe"
local odbc = require "odbc.dba"
local common = require "lluv.odbc.common"
local ut = require "lluv.utils"
local OK ... |
function execute._initializers(initializer_path_element)
local yieldvalue_inner = {}
local coro = coroutine.create(function()
execute.multi_wrapped(
execute._create_sorted_execution_list(
function(add_by_path)
add_by_path(initializer_path_element)
add_by_path(WEBMCP_APP_NAME, i... |
-- Encoding algebraic types and pattern matching in Lua seems to be
-- simplest to do using tagged arrays. See explanation in
-- test_match.lua
local match = {}
function match.match(data, pattern)
local cons = data[1]
local case_fun = pattern[cons]
return case_fun(unpack(data,2))
end
return match
|
addEventHandler("onResourceStart", resourceRoot,
function()
local upgradePrices, exclusiveUpgrades = exports.v_tuning:getTuningUpgrades()
neonsPrice = upgradePrices["Neons"]
for i, player in pairs(getElementsByType("player")) do
updatePlayerNeons(player)
end
end)
function updatePlayerNeons(player)
if isElement(... |
--[[
____ _ _ _
/ ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __
\___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \
___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | |
|____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_|
|___/ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.