content stringlengths 5 1.05M |
|---|
--https://github.com/FPtje/DarkRP/blob/211395e81fe6024335f04cba6e647e9a1e6849aa/gamemode/modules/base/sv_gamemode_functions.lua#L305
local voiceDistance = RPGM.Config.VoiceRange ^ 2
local voice3d = RPGM.Config.Voice3D
local useRadius = RPGM.Config.VoiceUseRadius
local roomOnly = RPGM.Config.VoiceRoomOnly
local whenDe... |
-- alien modules --
|
---
-- @module ProjectilePath
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Bresenham = require( 'lib.Bresenham' );
local Util = require( 'src.util.Util' )
local Log = require( 'src.util.Log' )
local ChanceToHitCalculator = require... |
local awful = require("awful")
local beautiful = require("beautiful")
local variables = require("modules.variables")
-- {{{ Menu
-- Create a launcher widget and a main menu
local mainmenu = awful.menu({
items = { --
{"manual", variables.terminal .. " -e man awesome"}, --
{"edit config", variables.editor .. " " ... |
-- $Id: tmod1.lua,v 1.1 2004/03/25 19:31:05 tomas Exp $
ap.set_content_type"text/html"
ap.rputs "ap.args = {"
ap.rputs (ap.args() or '')
ap.rputs "}<br>\n"
assert (ap.setup_client_block ("REQUEST_CHUNKED_ERROR") == ap.OK)
if ap.should_client_block () ~= 0 then
post_data = {}
local block, err = ap.get_client_block (... |
--Configure home path so you dont have too
home_path = os.getenv('HOME') .. '/'
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling librar... |
local wkOpts = require("utils.whichkey-plugin")
local wk = require("which-key")
wk.register(
{
["<leader>"] = {
t = {
name = "+Theme",
m = "Material Theme Toggle",
}
}
},
wkOpts.defaultOpts
)
|
local playsession = {
{"whollyspokes", {1061175}},
{"helic99", {1228096}},
{"DarkChedarCheese", {76898}},
{"mad58max", {1250805}},
{"BamBamPalli", {400240}},
{"xcube", {1254194}},
{"Spanish", {1097505}},
{"cogito123", {511273}},
{"corbin9228", {1257035}},
{"Jeremykyle", {657299}},
{"soiamglad", {6068}},
{"t... |
local new_zipkin_reporter = require("kong.plugins.zipkin.reporter").new
local new_span = require("kong.plugins.zipkin.span").new
local utils = require "kong.tools.utils"
local to_hex = require "resty.string".to_hex
local function gen_trace_id(traceid_byte_count)
return to_hex(utils.get_rand_bytes(traceid_byte_count... |
-- mediafire
--[[ TBTurret ]]--
math.randomseed(tick()) Colors={"Bright red","Really red","Bright yellow","Bright orange","New Yeller","Deep orange","Neon orange"}
V3 = Vector3.new C3 = Color3.new BN = BrickColor.new CN = CFrame.new CA = CFrame.Angles MR = math.rad MRA = math.random MP = math.pi MH = math.huge UD = UD... |
local layerHandlers = require("layer_handlers")
local utils = require("utils")
local placementUtils = {}
function placementUtils.getPlacements(layer)
local handler = layerHandlers.getHandler(layer)
if handler and handler.getPlacements then
return handler.getPlacements(layer)
end
return {}
en... |
-- See LICENSE for terms
-- local ChoOrig_ForestationPlant_GetTerraformingBoostSol = ForestationPlant.GetTerraformingBoostSol
function ForestationPlant:GetTerraformingBoostSol(...)
--~ if GetTerraformParam(self.terraforming_param) < self.vegetation_terraforming_threshold then
return self.terraforming_boost_sol
-... |
-- Custom content
includeFile("../custom_scripts/mobile/serverobjects.lua")
-- Conversations
includeFile("conversations.lua")
-- Dress Groups - Must be loaded before mobiles
includeFile("dressgroup/serverobjects.lua")
--New Content
includeFile("custom_content/serverobjects.lua")
includeFile("custom_vendors/serverobjec... |
local __exports = LibStub:NewLibrary("ovale/Artifact", 10000)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local __lib_artifact_data10 = LibStub:GetLibrary("LibArtifactData-1.0", true)
local GetArtifactTraits = __lib_artifact_data10.GetArtifactTraits
local RegisterCallback = __l... |
Talk(81, "武林中人金盆洗手,原因很多.倘若是黑道上的大盗,一生作的孽多,洗手之后,这打家劫舍,杀人放火的勾当算是从此不干了.那一来是改过迁善,给儿孙们留个好名声.二来地方上如有大案发生,也好洗脱自己嫌疑.", "talkname81", 0);
do return end;
|
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(105, {
name = '[XB] Druid - Restoration',
ic = InCombat,
ooc = OutCombat,
})
|
modifier_spark_xp = class(ModifierBaseClass)
function modifier_spark_xp:IsHidden()
return false
end
function modifier_spark_xp:IsDebuff()
return false
end
function modifier_spark_xp:IsPurgable()
return false
end
function modifier_spark_xp:RemoveOnDeath()
return false
end
function modifier_spark_xp:GetAttri... |
object_tangible_loot_npc_loot_heroic_exar_roots_s03 = object_tangible_loot_npc_loot_shared_heroic_exar_roots_s03:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_heroic_exar_roots_s03, "object/tangible/loot/npc/loot/heroic_exar_roots_s03.iff")
|
PluginInit = {
currentDisplayImage = "no",
pluginID = "com.adobe.lightroom.sdk.metadata.custommetadatasample",
URL = "http://www.adobe.com",
}
|
CLASS.name = "Civil Protection Unit"
CLASS.desc = "A regular Civil Protection ground unit."
CLASS.faction = FACTION_CP
function CLASS:onCanBe(client)
return client:isCombineRank(SCHEMA.unitRanks)
end
CLASS_CP_UNIT = CLASS.index |
local zipmanager= {}
function zipmanager.test()
return 10;
end
function zipmanager.init()
end
function miScript() {
abrirZip();
anadirFichero("XXXX")
deleteArchivo("")
}
abrir_fichero()
return zipmanager
|
--[[
Author: tochonement
Email: tochonement@gmail.com
23.07.2021
--]]
whoi.queue = whoi.queue or {}
local queue = whoi.queue
-- ANCHOR Meta
local QUEUE = {}
QUEUE.__index = QUEUE
function QUEUE:Push(any)
local index = self.count + 1
self.items[index] = any
self.count = index
end
function QUEUE:Po... |
--暗岩の海竜神
--
--Script by JustFish
function c100426022.initial_effect(c)
aux.AddCodeList(c,22702055)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100426022+EFFECT_COUNT_CODE_OATH)
e1:S... |
local lu = require 'luaunit'
local xtest = require 'test.xtest'
local App = require 'tulip.App'
local M = {}
function M:setup()
xtest.extrasetup(self)
end
function M:teardown()
xtest.extrateardown(self)
end
function M:beforeAll()
local ok, cleanup, err = xtest.newdb('', xtest.mockcron)
if not ok then cleanu... |
function PowerUpSpaceJump.main()
end
function PowerUpSpaceJump.OnPickedUp(_ARG_0_)
end
|
local original_select = _G["select"]
_G["datastack"] = {}
function LoadData(tag, ...)
local select = original_select
if tag ~= "AUCTIONDB_MARKET_DATA" then
_G.datastack = nil
return
end
local realm = select(1, ...)
local data = select(2, ...)
assert(data)
data ... |
local L6502 = require("L6502")
local L6502Memory_NES = require("L6502Memory_NES")
local L6502Disassembler = require("L6502Disassembler")
local baseDir = [[cpu_timing_test6\]]
local enableTrace = false
function ExecuteTest(romFile)
memory = L6502Memory_NES.ReadFromNesRomFile(baseDir .. romFile)
if(not memory)then
... |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local resources = include( "resources" )
local animmgr = include( "anim-manager" )
local cdefs = includ... |
require "settings"
require "engine.utils.utils"
Vector = require "lib.hump.vector"
Class = require "lib.hump.class"
Debug = require "engine.utils.debug"
serpent = require "lib.debug.serpent"
StateManager = require "lib.hump.gamestate"
AssetManager = require "engine.utils.asset_manager"
local MusicData = require "ga... |
-- //AUTO-GENERATED-CODE//
local APLibPath = settings.get('APLibPath')
assert( -- check if setup was done before, if not return with an error
type(APLibPath) == 'string',
'Couldn\'t open APLib through path: '..tostring(
APLibPath
)..'; probably you haven\'t completed Lib setup via \'LIBFILE setup... |
local AddonName, AddonTable = ...
-- TBC Jewelcrafting
AddonTable.jewelcrafting = {
-- Recipe's
24169, -- Design: Eye of the Night
32303, -- Design: Inscribed Pyrestone
}
|
----------------------------------------
-- mqtt_ioc.lua --
-- desc : io control over mqtt --
-- rev : 2.0 --
-- date : 04/27/2021 --
-- author : tuan nguyen (pdxtigre) --
-- email : info@codesmiths.org --
-- website: https://codesmiths.org --
----... |
------------------------------
local a,b,c
c = a and b
------------------------------
success compiling learn.lua
; source chunk: learn.lua
; x86 standard (32-bit, little endian, doubles)
; function [0] definition (level 1) 0
; 0 upvalues, 0 params, is_vararg = 2, 3 stacks
.function 0 0 2 3
.local "a" ; 0
.local ... |
object_tangible_saga_system_saga_relic_destroy = object_tangible_saga_system_shared_saga_relic_destroy:new {
gameObjectType = 4353,
}
ObjectTemplates:addTemplate(object_tangible_saga_system_saga_relic_destroy, "object/tangible/saga_system/saga_relic_destroy.iff")
|
return Def.ActorFrame{
LoadActor("star.txt")..{
OnCommand=function(self)
self:x(-19):y(20):zoom(0.6):wag():effectmagnitude(0,4,10)
end
},
LoadActor("star.txt")..{
OnCommand=function(self)
self:x(19):y(-20):zoom(0.6):wag():effectmagnitude(0,4,10)
end
},
} |
require('libraries/projectiles')
local player = PlayerResource:GetPlayer(0)
local hero = player:GetAssignedHero()
local projectile = {
--EffectName = "particles/test_particle/ranged_tower_good.vpcf",
--EffectName = "particles/units/heroes/hero_lina/lina_spell_dragon_slave.vpcf",
EffectName = "particles/units/he... |
local ContentProvider = game:GetService("ContentProvider")
local towerGuis = {
["Samurai"] = {Price = "$500"},
["Sniper"] = {Image = "6800030688", Price = "$500"},
["Soldier"] = {Image = "6804899975", Price = "$300"},
["Grenadier"] = {Image = "6808160269", Price = "$400"},
["Jedi"] = {Image = "6808160269", Price... |
----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not ... |
package.path = "?.lua;../?.lua"
local input = require "input"
local utils = require "utils"
function parse(str)
return str:match("Step ([A-Z]) must be finished before step ([A-Z]) can begin.")
end
function possible_steps(constraints)
local steps = {}
for k, t in pairs(constraints) do
if #t == 0 then utils.array_... |
local composer = require( "composer" )
local scene = composer.newScene()
local options ={
effect = "fade",
time=200
}
---------------------------------------------------------------------------------
-- All code outside of the listener functions will only be executed ONCE
-- unless "composer.removeScene()... |
-- title: pong clone
-- author: digitsensitive
-- desc: a short written pong clone
-- script: lua
-- global game settings --------------------------------------------------------
local GS = {W = 240, H = 136, S = 8, p1s = 0, p2s = 0, t = 0}
-- game objects ----------------------------------------------------------... |
local t = My.Translator.translate
My = My or {}
My.SideMissions = My.SideMissions or {}
local versions = {
{"MT52 Hornet", "MT52 Hornet", "MT52 Hornet"},
{"MT52 Hornet", "Adder MK6", "Adder MK6"},
{"Piranha F12", "Adder MK6", "Adder MK6"},
{"Piranha F12", "Nirvana R5", "Adder MK6", "Adder MK6"},
{... |
--[[
UnitAlternatePowerInfo
UnitAlternatePowerTextureInfo
GetRealEclipseDirection
--]]
function wipe(t)
if type(t) ~= "table" then
error(("bad argument #1 to 'wipe' (table expected, got %s)"):format(t and type(t) or "no value"), 2)
end
for k in pairs(t) do
t[k] = nil
end
return t
end
table.wipe = wipe
---... |
local settings = {}
local opt = require('partials/utils').opt
vim.opt.title = true
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.showmode = false
vim.opt.gdefault = true
vim.opt.cursorline = true
vim.opt.smartcase = true
vim.opt.ignorecase = true
vim.opt.mouse = 'a'
vim.opt.showmatch = true
vim.opt.start... |
SKILL.name = "Orbs of Larraman"
SKILL.LevelReq = 5
SKILL.SkillPointCost = 1
SKILL.Incompatible = {
}
SKILL.RequiredSkills = {
}
SKILL.icon = "vgui/skills/Dow2r_ig_back_in_the_fight.png"
SKILL.category = "Medical"-- Common Passives, Warrior, Lore of Light, Lore of Life
SKILL.slot = "RANGED" -- ULT, RANGED, MELEE, AO... |
-- http://forum.farmanager.com/viewtopic.php?p=127121#p127121
-- This script scrolls the console (where program output goes)
-- when the user presses Enter while the panels are hidden and
-- the command line is empty.
-- Whether the command prompt should be displayed in the inserted lines
local leave_prompt = false
... |
local redis = require '../redis_conn'
local async = require 'async'
redis.connect({host='localhost', port=6379}, function(client)
local list = List.new()
local int = async.setInterval(1000,function()
client.get("123456543", function(res)
list:append(res)
end)
end)
async.setTimeout(21... |
-- vim.g.completion_auto_change_source = 1 -- Change the completion source automatically if no completion availabe
vim.g.completion_enable_snippet = "UltiSnips"
-- vim.g.completion_matching_strategy_list = {'exact', 'substring', 'fuzzy'}
-- vim.g.completion_matching_ignore_case = 1
-- vim.g.completion_trigger_keyword_... |
--[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
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 agr... |
-- NormalizeStructuredMidiTracks - sets all midi items in structured MIDI
-- tracks (with a name starting with "S ")
-- to standard note velocity, and removes
-- volume, pan and reverb settings
--
-- author: Dr. Thomas Tensi... |
ai_library.aesthetic = {}
ai_library.aesthetic.__index = ai_library.aestetic
--run on step
function ai_library.aesthetic:on_step(self,dtime)
self.ai_library.aesthetic:set_animation(self,dtime)
self.ai_library.aesthetic:check_for_hurt(self,dtime)
self.ai_library.aesthetic:hurt_texture_normalize(self,dtime)
self.ai_... |
local microtest = require('microtest')
local suite = microtest.suite
local test = microtest.test
local equal = microtest.equal
local path = require('lettersmith.path')
local resolve_up_dir_traverse = path.resolve_up_dir_traverse
local remove_trailing_slash = path.remove_trailing_slash
suite('path.remove_trailing_slas... |
coSetCppProjectDefaults("test_math")
kind "ConsoleApp"
coSetProjectDependencies{"container", "test", "memory", "lang", "math"}
|
return {
_type_ = 'DesignDrawing',
id = 1110020012,
learn_component_id = {
1020809022,
},
} |
--[[
Carbon for Lua
#class Pointers.LookupPointer
#description {
Provides an interface to referencing a data lookup.
LookupPointers themselves are copied, but the data they point to is not.
}
]]
local Carbon = (...)
local Dictionary = Carbon.Collections.Dictionary
local indexable = {
["table"] = true,
["us... |
function love.conf(t)
t.window.title = "Connected Bodies"
t.window.icon = "icon.png"
t.window.width = 600
t.window.height = 600
t.window.vsync = 1
end |
object_mobile_dressed_bofa_treat_female_01 = object_mobile_shared_dressed_bofa_treat_female_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bofa_treat_female_01, "object/mobile/dressed_bofa_treat_female_01.iff")
|
--- The Common Mob Interface
-- @module cmi
-- @author raymoo
cmi = {}
--- Types.
-- The various data structures used in the API.
-- @section types
--- Object Identifiers.
-- @string type Either "player" or "mob"
-- @string identifier For players, is a player name. For mobs, is a unique ID.
-- @table Id
--- Punch c... |
--[[
A set of position finding utilities for rotatable nodes:
* wallmounter
* facedir
--]]
local mounts = {
y = {
[-1] = {x="x",y="y",z="z"},
[1] = {x="x",y="-y",z="-z"},
},
x = {
[-1] = {x="z",y="x",z="y"},
[1] = {x="-z",y="-x",z="y"},
},
z = {
[-1] = {x="-x",y="z",z="y"},
[1] = {x="x",y="-z",z="y... |
-- An implementation of buffered reading data from an arbitrary binary file.
--
-- Copyright (C) 2020-2022 LuaVela Authors. See Copyright Notice in COPYRIGHT
-- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
local assert = assert
local ffi = require 'ffi'
local bit = require 'bit'
local ffi_C... |
CaveRDM = {}
--// Default //--
CaveRDM.WeaponProtection = true -- Enable blacklisted weapons
CaveRDM.TriggersProtection = true -- Enable blacklisted events
CaveRDM.WordsProtection = true -- Enable blacklisted words
CaveRDM.GiveWeaponsProtection = true -- Enable give weapon
CaveRDM.ExplosionProtection = true -- Enable ... |
--[[
openwrt-dist-luci: RedSocks2
]]--
local m, s, o
if luci.sys.call("pidof redsocks2 >/dev/null") == 0 then
m = Map("redsocks2", translate("RedSocks2"), translate("RedSocks2 is running"))
else
m = Map("redsocks2", translate("RedSocks2"), translate("RedSocks2 is not running"))
end
-- General Setting
s = m:section... |
-- echo command line arguments
for i=0,#arg do
print(i,arg[i])
end
|
local function pchar_to_char(str)
return string.char(tonumber(str, 16))
end
local function decodeURIComponent(str)
return (str:gsub("%%(%x%x)", pchar_to_char))
end
function Log(lm)
vlc.msg.info("[dailymotion.lua] " .. lm)
end
local function trim1(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
... |
local Prop = {}
Prop.Name = "Shady Apartments 2-B"
Prop.Cat = "Apartments"
Prop.Price = 750
Prop.Doors = {
Vector( -3880.000000, -7329.000000, -13654.700195 ),
Vector( -4272.000000, -7329.000000, -13657.000000 ),
Vector( -4184.000000, -7249.000000, -13657.000000 ),
}
GM.Property:Register( Prop ) |
require('dealer')
require('constants')
if dealer.buy_in("POV_DEALER_SPEECH_TEXT_SID", "POV_DEALER_NSF_MESSAGE_SID", "POV_DEALER_DECLINE_MESSAGE_SID", 2) then
local bet_val = tonumber(add_char_message("POV_DEALER_WHICH_NUMBER_SID"))
if bet_val >= 1 and bet_val <= 6 then
add_message_with_pause("POV_DEALE... |
object_mobile_nym_themepark_grenz_zittoun = object_mobile_shared_nym_themepark_grenz_zittoun:new {
}
ObjectTemplates:addTemplate(object_mobile_nym_themepark_grenz_zittoun, "object/mobile/nym_themepark_grenz_zittoun.iff")
|
local constants = require(".lua.common.constants")
local logger = require(".lua.common.logger").new("request_status_cache.lua")
local util = require(".lua.common.util")
--local redis_service = require(".lua.service.redis_connection_manager").get(constants.REDIS_CLUSTER_DPATH)
--~ Sets Key Value Pair for Bucket
local ... |
local zmq = require "lzmq"
local context = zmq.init(1)
local sub = context:socket(zmq.SUB)
sub:set_subscribe("")
sub:bind("tcp://*:6677")
total = 0
count = 0
while true do
header, body = sub:recvx()
total = total + header:len() + body:len()
count = count + 1
if count % 40000 == 0 then
... |
global.registered_entities = {}
global.stations_count = global.stations_count or {}
global.constructrons_count = global.constructrons_count or {}
---
for s, surface in pairs(game.surfaces) do
global.stations_count[surface.index] = 0
local stations = surface.find_entities_filtered {
name = "service_sta... |
local visible = ECS.Component(function(e, bool)
e.visible = bool
end)
return visible
|
--=====================================================================
-- State code
--=====================================================================
function AI:Pushing( state )
if ( self.hero:GetHealth()/self.hero:GetMaxHealth() ) < 0.3 then
self.mainStM:GotoState( 'Backing' )
MoveUnitTo( self.hero, self... |
ITEM.name = "Browning Hi-Power"
ITEM.description= "A semi-automatic pistol chambered for 9x19mm."
ITEM.model = "models/weapons/browninghp/w_browninghp.mdl"
ITEM.class = "cw_kk_ins2_browninghp"
ITEM.weaponCategory = "secondary"
ITEM.width = 2
ITEM.height = 1
ITEM.price = 2200
ITEM.weight = 2 |
local dpdk = require "dpdk"
local memory = require "memory"
local ts = require "timestamping"
local device = require "device"
local filter = require "filter"
local histo = require "histogram"
function master(...)
local txPort, rxPort, rate = tonumberall(...)
if not txPort or not rxPort then
errorf("usage: txPor... |
--
-- PubNub : History Example
--
require "pubnub"
require "PubnubUtil"
textout = PubnubUtil.textout
--
-- INITIALIZE PUBNUB STATE
--
pubnub_obj = pubnub.new({
publish_key = "demo",
subscribe_key = "demo",
secret_key = nil,
ssl = nil,
origin = "pubsub.pubnub.com"
})
--
-- ... |
local keys = assert(loadfile "LuaScripts/keycode.lua")()
local JSON = assert(loadfile "LuaScripts/JSON.lua")()
local batBehaviour = {}
batBehaviour["instantiate"] = function(params, entity)
local p = JSON:decode(params)
local self = {}
-- Referencias a componentes
self.entity = entity
self.transfo... |
-- eLua platform interface - timers
--[[
// The next 3 functions need to be implemented only if the generic system timer mechanism
// (src/common.c:cmn_systimer*) is used by the backend
u64 platform_timer_sys_raw_read();
void platform_timer_sys_enable_int();
void platform_timer_sys_disable_int();
--]]
data_en =
{
... |
lines = io.lines("input.txt")
stars = {}
for line in lines do
local star = {pos={}, vel={}}
star.pos.x, star.pos.y, star.vel.x, star.vel.y = string.match(line, "position=< *(-?%d+), *(-?%d+)> velocity=< *(-?%d+), *(-?%d+)>")
table.insert(stars, star)
end
-- heuristics
start_at = 9999
for _, star in ipair... |
require "config"
-- Prototype names and types to not alter.
local excluded_prototype_names = {}
local excluded_prototype_types = {}
-- Helper functions to check if a prototype name or type is excluded.
local function prototype_name_excluded(name)
return excluded_prototype_names[name]
end
local function p... |
local Class = require(_G.engineDir .. "middleclass");
local Component = Class("Component")
Component.static.components = {}
function Component:initialize()
-- Component:create(cmpt)
end
function Component:debug()
print("\t"..self.class.name.." {")
for k, v in pairs(self.data) do
if type(v) == "ta... |
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local stats = require "stats"
local timer = require "timer"
memory.enableCache()
-- TODO: this
function master(port1, port2)
if not port1 or not port2 then
return print("Usage: port1 port2")
end
local dev2 = device.con... |
local ThreatLib = LibStub and LibStub("ThreatClassic-1.0", true)
if not ThreatLib then return end
if select(2, _G.UnitClass("player")) ~= "WARRIOR" then return end
local _G = _G
local select = _G.select
local GetTalentInfo = _G.GetTalentInfo
local GetShapeshiftForm = _G.GetShapeshiftForm
local GetSpellInfo = _G.GetSp... |
return {
ACTIONS_MAP = {
["`"] = {{Key.GRAVE}},
["1"] = {{Key.DIGIT_1}},
["2"] = {{Key.DIGIT_2}},
["3"] = {{Key.DIGIT_3}},
["4"] = {{Key.DIGIT_4}},
["5"] = {{Key.DIGIT_5}},
["6"] = {{Key.DIGIT_6}},
["7"] = {{Key.DIGIT_7}},
["8"] = {{Key.DIGIT_8}},
["9"] = {{Key.DIGIT_9}},
[... |
isLoggedIn = false
PlayerData = {}
local ClosestTraphouse = nil
local InsideTraphouse = false
local CurrentTraphouse = nil
local TraphouseObj = {}
local POIOffsets = nil
local IsKeyHolder = false
local IsHouseOwner = false
local InTraphouseRange = false
local CodeNPC = nil
local IsRobbingNPC = false
-- Code
Citizen.... |
-- -*- coding: utf-8 -*-
------------------------------------------------------------------------
-- Copyright © 2011-2015, RedJack, LLC.
-- All rights reserved.
--
-- Please see the COPYING file in this distribution for license details.
------------------------------------------------------------------------
local A ... |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
armor_marine_chest_plate_rebel = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/armor/marine/armor_marine_chest_plate_rebel.iff",
craftingValues = {
{"armor_rating",1,1,0},
{"armo... |
-- For poking and more complicated stuff gradually.
-- Note: reset the server when you change this,
-- or it will keep using the old version!
local tab = require "alt_require.test.toys.ret_tab"
-- Zero arguments is okey.
print(tab.no_args())
-- Testing if `pairs` can work.
for k,v in pairs(tab) do print(k,v) end
... |
local _2afile_2a = "fnl/snap/layout/init.fnl"
local _0_
do
local name_0_ = "snap.layout"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/l... |
remote = require('net.box')
test_run = require('test_run').new()
engine = test_run:get_cfg('engine')
box.sql.execute('pragma sql_default_engine=\''..engine..'\'')
errinj = box.error.injection
fiber = require('fiber')
box.sql.execute('create table test (id int primary key, a float, b text)')
box.schema.user.grant('gues... |
-- takeover arguments -- #######################################################
-- local section = arg[1]
--m = Map("wireless", translate("Wireless Overview"))
--m:chain("network")
--m.pageaction = false
-- local m = Map("mywebserver", translate("Log view").. " - " .. arg[1]:upper(), translate("Log view test"))
-- ... |
-- Luaver module
--
-- Module used to check if the compiler supports the running lua version.
local luaver = {}
-- Get lua version.
function luaver.getversion()
return _VERSION:match('%w+ ([0-9.]+)')
end
-- List of supported lua version.
local supported_versions = {'5.3', '5.4'}
-- Check if the running lua versio... |
local http = require "http"
local io = require "io"
local json = require "json"
local stdnse = require "stdnse"
local tab = require "tab"
local table = require "table"
local ipOps = require "ipOps"
description = [[
Lists the geographic locations of each hop in a traceroute and optionally
saves the results to a KML fil... |
local serpent = require("lib.serpent")
local disassembler = require("disassembler")
local io_util = require("io_util")
local Path = require("lib.path")
Path.set_main_separator("/")
local error_code_util = require("error_code_util")
local unsafe = true
local print_progress = true
local use_regular_lua_compiler = false... |
local migration = {}
function migration.player_table(player_table)
player_table.preferences.enable_recipe_comments = nil
end
function migration.subfactory(subfactory)
for _, floor in pairs(Subfactory.get_all_floors(subfactory)) do
for _, line in pairs(Floor.get_in_order(floor, "Line")) do
... |
client_script 'ped_shop.lua'
client_script 'ped_bank.lua'
client_script 'ped_shopclothes.lua'
client_script 'ped_shopfleeca.lua'
client_script 'ped_wel_police.lua'
client_script 'ped_police.lua'
client_script 'ped_sadot.lua'
client_script 'tp_client.lua'
client_script 'storespnj_client.lua'
--client_script 'ped_secu.lu... |
vim.g.exchange_no_mappings = 1
fey.editor_exchange.exchange = function()
fey.editor_exchange.exchange = nil
vim.cmd'packadd vim-exchange'
vim.cmd'nmap gx <Plug>(Exchange)'
vim.cmd'xmap gx <Plug>(Exchange)'
vim.cmd'nmap gx_ <Plug>(ExchangeClear)'
vim.cmd'nmap gxx <Plug>(ExchangeLine)'
end
vim.cmd'nmap gx <Cmd>lua ... |
object_tangible_wearables_necklace_necklace_ace_pilot_neutral_f = object_tangible_wearables_necklace_shared_necklace_ace_pilot_neutral_f:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_ace_pilot_neutral_f, "object/tangible/wearables/necklace/necklace_ace_pilot_neutral_f.iff")
|
local scoreboard
local sb_timer = 0
function OnPackageStart()
--local width, height = GetScreenSize()
--ZOrder = 5 and FrameRate = 10
--scoreboard = CreateWebUI(width / 4.7, height / 4.7, width / 1.3, height / 1.3, 5, 10)
scoreboard = CreateWebUI(450.0, 200.0, 700.0, 450.0, 5, 10)
LoadWebFile(scoreboard, "http://... |
--[[ only for debug
table_print = require('table_print')
table.print = table_print.print_r
--]]
local wrapClass = {'info', 'tip', 'warn', 'alert', 'help', 'introduction', 'problemset', 'solu'}
local solu = false
function Meta(meta)
solu = meta['ext-wrap-solu']
end
function inTable(t, val)
for _, v in pairs(t) do
... |
-- Routine for NPC "Morgiana"
velocity = 50
loadRoutine = function(R, W)
if (W:isConditionFulfilled("boss","BossMercenaries")) then
R:setDisposed()
return
end
R:setTilePosition(19,5)
R:setFacingRight()
R:wait(10000)
R:goToTile(20,5)
R:goToTile(20,7)
R:goToTile(18,7)
R:goToTile... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.