content stringlengths 5 1.05M |
|---|
function bang(sig)
g = g or 0
g = g + 1
n = 20
list = {n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n}
return list[1 + g % #list]
end |
LhdRoomCcsView = class("LhdRoomCcsView")
LhdRoomCcsView.onCreationComplete = function (slot0)
ClassUtil.extends(slot0, BaseGameRoomView, true, slot0.entranceBtnDic)
slot0.controller:adjustSlimWidth(slot0.layerTop.btnRule, UIConfig.ALIGN_LEFT, 80)
slot0:customCtor()
end
LhdRoomCcsView.customCtor = function (slot0)
... |
require('spec/setup/busted')()
local Direction = require('__stdlib__/stdlib/area/direction')
describe('Direction Functions', function()
local d = defines.direction
describe('.next_direction', function()
local nd = Direction.next_direction
it('returns the next 4way direction clockwise', functi... |
require "scripts.common";
local Video =
{
init = false;
Properties =
{
SizeDropDownText = {default = EntityId()},
DisplayDropDownText = {default = EntityId()},
SizeDropDown = {default = EntityId()},
DisplayDropDown = {default = EntityId()},
AspectRatio4_3 = {default = EntityId()},
AspectRatio16_9... |
---@class Server : zombie.network.Server
---@field private name String
---@field private ip String
---@field private localIP String
---@field private port String
---@field private serverpwd String
---@field private description String
---@field private userName String
---@field private pwd String
---@field private lastU... |
local get_room_from_jid = module:require "util".get_room_from_jid;
local st = require "util.stanza";
local json = require "util.json";
module:log("info", "Loading module polls");
local muc_component_host = module:get_option_string("muc_component");
if muc_component_host ~= nil then
log("info", "Starting module %s... |
s = eng.Scene()
s:clear()
s:createPhysicsPlane()
--eng.setSunDir(1, -1, 0)
eng.setSunIntensity(0.2)
eng.setAmbientSky(128, 128, 128)
eng.setAmbientGround(230, 255, 230)
core.printcon("Adding object")
ground = s:createModel("ground", "plane.h3dm")
obj = s:createModel("soldier", "soldier.h3dm")
-- obj:loadAnimation("... |
-- Version 1.4.3
include("MasterGear/MasterGearFunctions.lua")
include('THHelper/THHelper.lua')
include('HasteTracker/HasteTracker.lua')
function get_sets()
mode = 1
cp_mode = false
combat = false
throwing = false
killer_effect = false
get_set_for_job_from_json()
modes = {}
for k, v in pairs(sets) do
if k... |
-- Do not edit! This file was generated by blocks/signal/complexphase_spec.py
local radio = require('radio')
local jigs = require('tests.jigs')
jigs.TestBlock(radio.ComplexPhaseBlock, {
{
desc = "256 ComplexFloat32 input, 256 Float32 output",
args = {},
inputs = {radio.types.ComplexFloat32... |
function mainm.init()
connectm.init()
--hostm.init()
localm.init()
optionsm.init()
mapm.init()
modsm.init()
gui_load_gss("menu-common")
gui_load_gss("main-menu")
local menu = gui_group({id = "menu", group = "main"})
local title = gui_button({id = "titlehax", label = "Gusanos Menu"})
local conti... |
-- See LICENSE for terms
local options
local UpdateRate
-- fired when settings are changed/init
local function ModOptions()
UpdateRate()
if not GameState.gameplay then
return
end
-- update spawn times
local CalcNextSpawnProject = CalcNextSpawnProject
local day = UICity.day
local g_SpecialProjectNextSpawn = ... |
-- This file validates player input
net.Receive("job_exam_submit_exam", function(len, ply)
local ent = net.ReadEntity()
if ent.Config.LimitToJob and ply:Team() ~= ent.Config.LimitToJob then return end
if xWhitelist.Users[ply:SteamID64()].whitelist[ent.Config.Whitelist] then return end
if xWhitelist.Users[ply:Stea... |
--------------------------------------------------------------------------------
function Spawn( entityKeyValues )
if not IsServer() then
return
end
if thisEntity == nil then
return
end
hBladeFuryAbility = thisEntity:FindAbilityByName( "creature_juggernaut_blade_fury" )
thisEntity:SetContextThink( "Jugge... |
--[[Notas do programador:
Esta macro está comentada em pt-br pelo publico que ela tem como alvo
Desculpe, mas não segui as convensões de cleanCode do Lua como "is_X" para bool
OS COMENTÁRIOS DA VERSÃO 'B' FORAM REMOVIDOS POR SEREM OBSOLETOS, VEJA A VERSÃO 'A' PARA UMA VERSÃO
COM COMENTÁRIOS PARA INICIA... |
local API = {
LoveVersion = love.getVersion();
};
local ImageCache = {};
--I'm not sure if Love2D automatically caches objects, but assuming that the wiki said loading an image continously can cause fps drops, I guess not.
API.loadImage = function(self, path) --if the image changes then it will not return the sam... |
return {
IntroMusic = love.audio.newSource("assets/sounds/intro.flac", "static"),
TitleMusic = love.audio.newSource("assets/sounds/title&menu.flac", "static")
}
|
function SpawnPoints()
return {
Metalworker = {
{ worldX = 10 + 25, worldY = 4 + 56, posX = 229, posY = 263, posZ = 0 },
{ worldX = 10 + 26, worldY = 4 + 56, posX = 254, posY = 131, posZ = 0 },
{ worldX = 10 + 26, worldY = 4 + 56, posX = 50, posY = 154, posZ = 0 },
{ worldX = 10 + 40, worldY = 4 + 57,... |
local Directions = assert(foundation.com.Directions)
local is_blank = assert(foundation.com.is_blank)
local itemstack_split = assert(foundation.com.itemstack_split)
local format_pretty_time = assert(foundation.com.format_pretty_time)
local cluster_devices = assert(yatm.cluster.devices)
local ItemInterface = assert(yatm... |
local _, ns = ...
local C = ns.C
C["objectivetracker"] = {
enabled = true,
pos = {"TOPRIGHT", "sInterfaceProgressBars", "BOTTOMRIGHT", 0, -10}
}
|
local Atms = Atm.atms
function OnPackageStart()
Delay(5000, function ()
local i = 1
for _ in pairs(Atms) do
local obj = CreatePickup(336, Atms[i].x, Atms[i].y, Atms[i].z - 100)
SetPickupScale(obj, 1.0,1.0,0.5)
SetPickupPropertyValue(obj, "type", "atm", true)
SetPickupPropertyValue(obj, "col... |
--[[
If you want to run PlantLife and mods that depend on it, i.e. MoreTrees, Disable the mapgen by
commenting-out the lines starting with "local mgname = " through "end" (I left a note were to start
and stop) Disabling "Snow's" mapgen allows MoreTrees and PlantLife to do their thing until the
issue is figured out. How... |
--[[ @cond ___LICENSE___
-- Copyright (c) 2017 Zefiros Software.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, ... |
PDM2KVSPoint = {}
setmetatable(PDM2KVSPoint, {__index = HiveBaseModule})
PDM2KVSPoint.new = function (varname)
local this = HiveBaseModule.new(varname)
this.kvspointconv = LoadModule('KVSPointConverter')
setmetatable(this, {__index=PDM2KVSPoint})
return this
end
function PDM2KVSPoint:Do()
self:Upd... |
local Observable = require 'observable'
local util = require 'util'
--- Returns an Observable that produces a sliding window of the values produced by the original.
-- @arg {number} size - The size of the window. The returned observable will produce this number
-- of the most recent values as mult... |
Talk(65, "阁下远道来此,不知有何贵事?", "talkname65", 0);
Talk(0, "在下特来求见段皇爷,相烦大师通报.", "talkname0", 1);
Talk(65, "段皇爷早已不在尘世,累阁下空走一趟.", "talkname65", 0);
do return end;
|
local function create()
local en = CreateEntity()
--en.transform = CreateComponent("transform")
local transform = en:AddComponent("transform")
--inventory = CreateComponent("inventory")
local inventory = en:AddComponent("inventory")
--en.animation = CreateComponent("animation")
--local animation = en:AddCompone... |
--- Common fs operations implemented with third-party tools.
local tools = {}
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local cfg = require("luarocks.cfg")
local vars = cfg.variables
local dir_stack = {}
--- Obtain current directory.
-- Uses the module's internal directory stack.
-- @re... |
local objects =
{
--Maxime
createObject(9054,372.1000100,-284.0000000,1012.0999800,0.0000000,0.0000000,0.0000000,7), --object(chnatwnmll14_lvs,7), (2,7),
createObject(9054,387.7000100,-255.0000000,1012.0999800,0.0000000,0.0000000,0.0000000,7), --object(chnatwnmll14_lvs,7), (3,7),
createObject(10378,424.7000100,-30... |
local AsyncAssetRecord = class("AsyncAssetRecord")
function AsyncAssetRecord:ctor()
self._assetName = "" --资源名字
self._abr = "" --AssetBundleRequest
self._callbackList = {}
end
function AsyncAssetRecord:appendCallback(callback)
table.insert(self._callbackList, callback)
end
--该值不是很准确, 好几帧返回1.0,但isDone... |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local PokecardAI = class('PokecardAI')
local scheduler = require('framework.scheduler')
function PokecardAI:ctor(...)
end
function PokecardAI.grabLord(gameService, pokeGame, currentPlayer)
scheduler.performWithDelayGlobal(
function()
local grabs = {ddz.Actions.Gr... |
-- Local module, loaded into each QA's environment
fibaro = {}
hub = fibaro
local fmt = string.format
function string.split(str, sep)
local fields,s = {},sep or "%s"
str:gsub("([^"..s.."]+)", function(c) fields[#fields + 1] = c end)
return fields
end
function fibaro.alarm(arg1, action)
if type(arg1) == "str... |
-- ... json.lua
|
return
function(self, node, alternate_handler)
local result
self.printer:inc_indent()
if alternate_handler then
result = alternate_handler(self, node)
else
result = self:process_node(node)
end
self.printer:dec_indent()
return result
end
|
-----------------------------------
-- Area: Cape Teriggan
-- NM: Axesarion the Wanderer
-----------------------------------
local ID = require("scripts/zones/Cape_Teriggan/IDs")
function onMobDisengage(mob)
DespawnMob(mob:getID(), 120)
end
function onMobDeath(mob, player, isKiller)
if (isKiller) then
... |
--proc/filedialogs: standard open and save file dialogs.
--Written by Cosmin Apreutesei. Public Domain.
local yui_path = (...):match('(.-)[^%.]+$')
setfenv(1, require(yui_path:sub(1, -2)))
require(yui_path .. 'comdlg')
OFN_READONLY = 0x00000001
OFN_OVERWRITEPROMPT = 0x00000002
OFN_HIDEREADON... |
local Widget = require "widgets/widget"
local Image = require "widgets/image"
local IceOver = Class(Widget, function(self, owner)
self.owner = owner
Widget._ctor(self, "IceOver")
self:SetClickable(false)
self.img = self:AddChild(Image("images/fx.xml", "ice_over.tex"))
self.img:SetEffect( "shaders/uifade.k... |
slot0 = class("NetFleetAttachUpdate", import("....BaseEntity"))
slot0.Fields = {
row = "number",
column = "number",
id = "number"
}
slot0.Setup = function (slot0, slot1)
slot0.id = slot1.item_id
slot0.row = slot1.pos.row
slot0.column = slot1.pos.column
end
return slot0
|
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras... |
object_mobile_naboo_major_franchels = object_mobile_shared_naboo_major_franchels:new {
}
ObjectTemplates:addTemplate(object_mobile_naboo_major_franchels, "object/mobile/naboo_major_franchels.iff")
|
local concat = table.concat
describe("test-files", function()
local TYPES = require("expadom.constants").NODE_TYPES
local getfiles = require("pl.dir").getfiles
local files = getfiles("./spec/03-test-files", "*.in.xml")
table.sort(files)
local readfile = require("pl.utils").readfile
local basename = require("pl.... |
function Gorge:GetThirdPersonOffset()
local z = -1.8 - self:GetVelocityLength() / self:GetMaxSpeed(true) * 0.4
return Vector(0, 0.9, z)
end
function Gorge:GetFirstPersonFov()
return kGorgeFov
end
function Gorge:GetTooCloseDistance()
return 0.8
end |
--Made by MessorAdmin
local z={["("]=0,["+"]=1,["%"]=2,["@"]=3,["!"]=4,[")"]=5,["*"]=6,["$"]=7,["~"]=8,["^"]=9,["?"]=10,["#"]=11,["&"]=12,["-"]=13,["_"]=14,["="]=15}; setfenv(assert(loadstring((string.gsub(string.gsub(table.concat({
"$$+*^*!$~%^%?(&!=*@*+*&*()&*+*^$)*%$(%-@(%$*+*-*)*?@@$)*%$*$^*@*)*~A%()&*+*^$)*%$@$%%... |
return {
equal_op = 1,
concatenation_equal_op = 2,
addition_equal_op = 3,
subtraction_equal_op = 4,
multiplication_equal_op = 5,
division_equal_op = 6,
power_equal_op = 7,
remainder_equal_op = 8,
}
|
local Class = require("game.Class")
local M = Class.new()
function M:init(engine, config)
self.engine = assert(engine)
local x, y = unpack(config.position or {0, 0})
self.body = love.physics.newBody(self.engine.world, x, y, "dynamic")
local radius = config.radius or 0.5
local shape = love.physics.newCircl... |
SPELL.Name = "Tentacle of darkness"
SPELL.Combo = "arcane arcane arcane lightning"
SPELL.Description = [[Summons a tentacle of darkness that drinks 15 hp in 1 second from the caster, and he's afraid
of the light pulse spell, at this time also you cannot draw cancel or cast spells
The R button will hide it back
Hold ... |
Planet = class("Planet")
function Planet:init(data)
local newPlanet = {}
local myFile = lfs.currentdir().."\\tables\\world.json"
local worldTable = loadjson(myFile)
newPlanet.atmosphere=choice(worldTable["atmosphere"])
newPlanet.temperature=choice(worldTable["temperature"])
newPlanet.biospher... |
--multicolor reactor object
MULTICOLOR_REACTOR = settings.startup["nuclear-fuel-cycle_multicolor-reactor"].value
--breeder fuel cell item
BREEDER_FUEL_VALUE = "4.2GJ"
--breeder fuel cell recipe
U_BREEDING_RATIO = 3*2
PU_BREEDING_RATIO = 5*2
--breeder fuel reprocessing
PER_CELL_PU_AMOUNT = 2 --mininum 0.5
--atomic ... |
-- Credit to bkacjios
local _R = debug.getregistry()
_R.BitBuff = {}
_R.BitBuff.__index = _R.BitBuff
function BitBuff( str )
local buffer = str and {string.byte(str,1,#str)} or {}
return setmetatable( { buffer = buffer, position = 0 }, _R.BitBuff )
end
function _R.BitBuff:GetBuffer()
return self.buffer
end
funct... |
-- Group of Buffs status
local Grid2 = Grid2
local UnitAura = UnitAura
local SpellIsSelfBuff = SpellIsSelfBuff
local UnitAffectingCombat = UnitAffectingCombat
local SpellGetVisibilityInfo = SpellGetVisibilityInfo
local myUnits = Grid2.roster_my_units
local textures = {}
local counts = {}
local expirations = {}
local d... |
function table_count(ta)
local count = 0
for k, v in pairs(ta) do count = count + 1 end
return count
end
function table_last_count(ta)
local count = 0
for i, v in ipairs(ta) do
if v then
count = count + 1
end
end
return count
end
function GetCharacterFromId(id... |
local ffi = require 'ffi'
ffi.cdef[[
typedef void (*ffi_anyfunc)();
int LoadLibraryA(const char* libname);
int LoadLibraryW(const wchar_t* libname);
int GetModuleHandleW(const wchar_t* libname);
int FreeLibrary(int lib);
ffi_anyfunc GetProcAddress(int lib, const char* name);
]]
local ... |
for _, force in pairs(game.forces) do
if force.technologies['fluid-chemical-furnace'] and force.technologies['fluid-chemical-furnace'].researched then
force.technologies['fluid-chemical-furnace'].researched = false
force.technologies['fluid-chemical-furnace'].enabled = false
end
if force.technologies['ste... |
CollectionatorRowMixin = CreateFromMixins(AuctionatorResultsRowTemplateMixin)
function CollectionatorRowMixin:OnEnter()
AuctionHouseUtil.LineOnEnterCallback(self, self.rowData)
AuctionatorResultsRowTemplateMixin.OnEnter(self)
end
function CollectionatorRowMixin:OnLeave()
AuctionHouseUtil.LineOnLeaveCallback(sel... |
--[[
Name: LibBabble-TalentTree-3.0
Revision: $Rev: 26 $
Maintainers: ckknight, nevcairiel, Ackis
Website: http://www.wowace.com/projects/libbabble-talenttree-3-0/
Dependencies: None
License: MIT
]]
local MAJOR_VERSION = "LibBabble-TalentTree-3.0"
local MINOR_VERSION = 90000 + tonumber(("$Rev: 26 $"):match("%d+"))
if... |
--- @ignore
local string = string
local GetLang = LANG.GetUnsafeLanguageTable
local interp = string.Interp
local IsValid = IsValid
local draw = draw
local base = "pure_skin_element"
HUDELEMENT.Base = base
DEFINE_BASECLASS(base)
if CLIENT then
local draw_col = Color(205, 155, 0, 255)
local pad = 7
local margin ... |
--[[
Copyright © 2015 Mihail Zuev <z.m.c@list.ru>.
Author: Mihail Zuev <z.m.c@list.ru>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above cop... |
local cairo = require("lgi").cairo
local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
local os, math, string = os, math, string
local theme = require("themes.powerarrow-gruvbox.theme")
theme.border_width ... |
local NotificationBindable = Instance.new("BindableFunction")
NotificationBindable.OnInvoke = callback
--
game.StarterGui:SetCore("SendNotification", {
Title = "Dynamic Client";
Text = "ESP v2 Activated.";
Icon = "rbxassetid://5631279864";
Duration = 3;
Callback = NotificationBindable;
})
local client = game.Pla... |
local pps = require('pipes')
local log = require('pipes.logger')
pps.dispatch('error',
function(err)
log.error('test2 caught err:'..err)
end)
log.info('test_2 start')
--pps.debug()
--pps.sleep(2000)
--error('test_2 error test')
--[[
2 - 9
3 - 8
4 - 7
5 - 6
6 - 5
7 - 4
8 - 3
9 - 2
2 + 7 (11-2*2)
3 + 5 (11-3*2)... |
require "brains/pigbrain"
require "brains/pigguardbrain"
require "brains/werepigbrain"
require "stategraphs/SGpig"
require "stategraphs/SGwerepig"
local assets =
{
Asset("ANIM", "anim/ds_pig_basic.zip"),
Asset("ANIM", "anim/ds_pig_actions.zip"),
Asset("ANIM", "anim/ds_pig_attacks.zip"),
Asset("ANIM", "anim/pig_bui... |
--[[
local byte, char, gsub, gmatch = string.byte, string.char, string.gsub,
string.gmatch
local pairs, error = pairs, error
Encoding<1>:
Result: PASS
Ran 10000 iterations in 85ms
Encoding<12>:
Result: PASS
Ran 10000 iterations in 46ms
... |
--focus
local _, cfg = ... --export config
local addon, ns = ... --get addon namespace
local f = CreateFrame("Button","BobFocusHUD",UIParent,"SecureUnitButtonTemplate")
local UnitPowerType = UnitPowerType
f.unit = "focus" --change to unit you want to track
--Make the Health Bar
--background texture
f.back = f:CreateTe... |
return {'kuhn','kuhlmann','kuhl','kuhlman'} |
local K, C, L, _ = select(2, ...):unpack()
if InCombatLockdown() then return end
local table = table
local tremove = tremove
local CreateFrame = CreateFrame
local frameFadeManager = CreateFrame("FRAME")
local FADEFRAMES = {}
function K:UIFrameFade_OnUpdate(elapsed)
local index = 1
local frame, fadeInfo
while FADE... |
-- Lose Face - An open source face recognition project
-- Copyright (C) 2008-2010 David Capello
-- All rights reserved.
--
-- Description:
-- Uses a common MLP of 3 layers to classify a set of patterns.
--
-- Usage:
-- You can use this script directly running the following command:
--
-- loseface mlp_global.lua... |
local _M = require('apicast.cli.environment')
describe('Environment Configuration', function ()
describe('.new', function()
it('accepts default', function()
local default = { foo = 'bar' }
local env = _M.new(default)
assert.contains(default, env:context())
end)
end)
end)
|
local self = {}
GLib.Net.Layer3.Layer2Channel = GLib.MakeConstructor (self, GLib.Net.Layer3.Channel)
function GLib.Net.Layer3.Layer2Channel.ctor (channelName, handler, innerChannel)
if type (channelName) ~= "string" then
innerChannel = channelName
channelName = innerChannel:GetName ()
end
innerChannel = inne... |
module 'mock'
--------------------------------------------------------------------
CLASS: UIWidgetElementImage ( UIWidgetElement )
:MODEL{}
function UIWidgetElementImage:__init()
self.defaultSprite = false
self.defaultBlend = 'alpha'
self.defaultStretch = true
self.stretch = true
end
function UIWidgetElement... |
--[[
#########################
# conky-system-lua-V3 #
# by +WillemO @wim66 #
# v1.0 8-dec-17 #
# #
#########################
]]
--[[TEXT WIDGET v1.3 by Wlourf 25/06/2010
This widget can drawn texts set in the "text_settings" table with some parameters
http://u-scripts.blogspot.com/... |
-- DOC: http://w3.impa.br/~diego/software/luasocket/tcp.html
-- module table
local luasocket_ssl = {}
local type = type
local assert = assert
local luasocket = require("mqtt.luasocket")
-- Open network connection to .host and .port in conn table
-- Store opened socket to conn table
-- Returns true on success, or fal... |
local _M = {}
local ngx_set_header = ngx.req.set_header
local req_get_headers = ngx.req.get_headers
local cjson = require("cjson")
function _M.execute(conf)
if req_get_headers()[conf.input_header_name] then
ngx.log(ngx.INFO, "found "..conf.input_header_name.." header and transforming...")
local decoded_t... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Repr = require(ReplicatedStorage.Vendor.Repr)
local SortedArray = require(ReplicatedStorage.SortedArray)
local t = require(ReplicatedStorage.Vendor.t)
local Error__index = {
__index = function(_, i)
error(tostring(i) .. " is not a valid Enumeratio... |
local unpack = unpack
local ipairs = ipairs
local pairs = pairs
local t_insert = table.insert
local _M = { }
local function kmap(func, tbl)
if not tbl then return end
local res = {}
for k, v in pairs(tbl) do
local rk, rv = func(k, v)
if rk then
res[rk] = rv
else
... |
lesser_interval_cooldown_random_spell = class({})
function lesser_interval_cooldown_random_spell:OnCreated( data )
-- ### VALUES START ### --
self.interval = 1
self.cooldown_reduction = 25
-- ### VALUES END ### --
if not IsServer() then return end
self.perkname = data.perkName
... |
local addonName, vars = ...
local L = vars.L
Paste = LibStub("AceAddon-3.0"):NewAddon(addonName)
local addon = Paste
local AceGUI = LibStub("AceGUI-3.0")
vars.svnrev = vars.svnrev or {}
local svnrev = vars.svnrev
svnrev["core.lua"] = tonumber(("$Revision: 54 $"):match("%d+"))
local defaults = {
profile = {
debu... |
local chests = {}
local userChests = {}
local openStaticChests = {}
function vrpServer.loadChest(chestName)
local user_id = vRP.getUserId(source)
local source = vRP.getUserSource(user_id)
local data = {}
chests[tostring(chestName)] = true
userChests[user_id] = tostring(chestName)
chestName = "chest:"..tostri... |
--====================================================================--
-- Imports and Setup
--====================================================================--
-- import DMC Objects file
local Objects = require( "dmc_objects" )
--====================================================================--
-- Setup... |
--[[
Project: DisLua.
Author: imring <fishlake-scripts.ru>.
License: MIT License.
Project "DisLua" is a parser of bytecode LuaJIT.
Details: https://github.com/FishLake-Scripts/DisLua
]]
local ARGS_AD = 1
local ARGS_ABC = 2
local opcodes = {
[0] = { 'ISLT', ARGS_AD },
{ 'ISGE', ARGS_AD },
{ 'IS... |
-------------------------------------------------------------------
--------------------------- window:devAdd -----------------------
-------------------------------------------------------------------
--[[
dev add window
win_devadd.show () -- Show
win_devadd.hide () -- Hide
... |
-- See LICENSE for terms
local mod_LaunchFuel
local mod_MaxExportStorage
local mod_PassengerOrbitLifetime
local mod_MaxColonistsPerRocket
local mod_TravelTimeEarthMars
local mod_TravelTimeMarsEarth
local mod_RocketPrice
local mod_CargoCapacity
local mod_FoodPerRocketPassenger
-- override for custom_travel_time_mars/c... |
-- Printscreen/Screenshot bash script wrapped in lua
-- Depends : maim, xclip
local awful = require('awful')
local ss = {}
local capture_screen = function(mode)
screen_shot_script = [[
dir=$HOME/Pictures/Screenshots
if [ ! -d $dir ]; then
mkdir -p $dir
fi
case ']] .. mode .. [[' in
'ful... |
local CNode = CNode
local Paths = CAI.Paths
local Utils = CAI.Utilities
local Requests = Paths.Requests
local Format = "%s-%s"
function Paths.Request(Requester, Grid, Start, Goal, UseLocked, Type)
if not IsValid(Requester) then return end
if not isstring(Grid) then return end
if not isvector(Start) then ... |
local API_NPC = require(script:GetCustomProperty("API_NPC"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local RANGE = 220.0
local COOLDOWN = 8.0
local DAMAGE_RATE = 42.0
local COMBO_RANGE = 350.0
local COMBO_HALF_ANGLE = 30.0
local currentTasks = {}
function GetPriority(npc, taskHistory)... |
objGateb = createObject(1557, 228.25027770996, 159.77064819336, 1002.0234375, 0, 0, 90)
exports.pool:allocateElement(objGateb)
setElementInterior(objGateb, 3)
setElementDimension(objGateb, 1)
objGateb2 = createObject(1557, 228.25027770996, 162.77064819336, 1002.0234375, 0, 0, 270)
exports.pool:allocateElement(ob... |
data:extend({
-- E-Motor Small
{
type = "assembling-machine",
name = "y-emotor-s",
icon_size = 32, icon = "__yi_engines__/graphics/entity/e-motor-icon.png",
flags = {"placeable-neutral","placeable-player", "player-creation"},
minable = {mining_time = 0.5, result = "y-emotor-s"},
max_health = 150,
co... |
--[[
file:service.lua
desc:桌子服务
auth:Carol Luo
]]
local _G = _G
local format = string.format
local ipairs = ipairs
local skynet = require("skynet")
local table = require("extend_table")
local multicast = require("api_multicast")
local sharedata = require("skynet.sharedata")
local queue = require("skynet.q... |
return {'focaccia','focus','focussen','focusseren','focusgroep','focuspunt','focusgebied','focke','fockens','focusgroepen','focusseer','focusseerde','focusseert','focust','focuste','focusten','focusgebieden','focuspunten'} |
local __RUNLATER = {} UMF_RUNLATER = function(code) __RUNLATER[#__RUNLATER + 1] = code end
(function() if hook then return end local hook_table = {} local hook_compiled = {} local function recompile( event ) local hooks = {} for k, v in pairs( hook_table[event] ) do hooks[#hooks + 1] = v end hook_compiled[event] = hook... |
pit_trap = {
click = function(block, npc)
local owner = Player(npc.owner)
--local damage = 58883 -- did 58883 at 0 AC. Caster's health was 58k, mana was 32,231. Target's health was around 130k base.
-- changing this so it scales with vita and mana rather than static to match the method for spy assassinate
... |
AgateUtil = AgateUtil or {}
AgateUtil.__loaded = AgateUtil.__loaded or {}
AgateUtil.__addonQueue = AgateUtil.__addonQueue or {}
AgateUtil.colors = {
white = Color(255, 255, 255),
blue = Color(0, 255, 255),
yellow = Color(201, 176, 15),
red = Color(230, 58, 64),
green = Color(46, 204, 113),
... |
AutomaticRoleCheck.Panel.Settings = CreateFrame("Frame", nil, AutomaticRoleCheck.Panel);
AutomaticRoleCheck.Panel.Settings.name = "Settings";
AutomaticRoleCheck.Panel.Settings.parent = AutomaticRoleCheck.Panel.name;
AutomaticRoleCheck.Panel.Settings.Inner = AutomaticRoleCheck.Panel.Settings:CreateFontString(nil, "OVER... |
local maps = {
"duel.map",
}
--Categories was taken from map editor
local tDuelCars = {
--"2-Door"
401, 410, 436, 474, 491, 496, 517, 526, 527, 533, 545, 549, 439, 475, 542,
--"4-Door"
405, 409, 420, 421, 426, 438, 445, 466, 467, 492, 507, 516, 529, 540, 546, 547, 550, 551, 566, 580, 585,
--"Lowrider... |
fx_version 'cerulean'
game 'gta5'
version '1.0.0'
description 'Evidence system for hsn-inventory'
shared_script 'config.lua'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.lua',
'server.lua'
}
client_scripts {
'@es_extended/locale.lua',
'client.lua'
} |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.16.1",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 6,
tilewidth = 32,
tileheight = 32,
nextobjectid = 4,
properties = {},
tilesets = {
{
name = "office",
firstgid = 1,
tilewidth... |
local AddonName, AddonTable = ...
AddonTable.jewelcrafting = {
-- Gems
76131,
76132,
76133,
76134,
76135,
76136,
76137,
76138,
76139,
76140,
76141,
76142,
}
|
local args = { ... }
local ui = args[1]
assert(ui, 'Imevul UI library not found')
---@class TabButton : Button Builds on top of the Button class
local TabButton = ui.lib.class(ui.modules.Button, function(this, data)
ui.modules.Button.init(this, data)
data = data or {}
this.originalBackground = data.background or n... |
--[[
LuCI - Lua Configuration Interface
Copyright 2013 Patrick Grimm <patrick@lunatiki.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
$Id$
]]--
m... |
require '.'
require 'NeuLexTrans'
require 'NeuLexTransSoft'
require 'LexTrans_Dataset'
local function getOpts()
local cmd = torch.CmdLine()
cmd:option('--srcVocab', '', 'vocab path')
cmd:option('--dstVocab', '', 'vocab path')
cmd:option('--dataset', '', 'dataset path')
cmd:option('--seed', 123, '')
cmd... |
local ADDON_NAME, namespace = ...
local L = namespace.L
local addonName = "WorldQuestsList"
local WorldQuestsListMixin = {}
function WorldQuestsListMixin:GetName()
return addonName
end
function WorldQuestsListMixin:Init()
self.WorldQuestList = _G["WorldQuestList"]
-- hooksecurefunc(self.WorldQuestList, '... |
monsters =
{
[1] =
{
["attack_type"] = 1,
["type_value"] = 0,
["name"] = "绿头怪",
["level"] = 1,
["life"] = 50,
["attack"] = 20,
["defense"] = 1,
["gold"] = 1,
["experience"] = 1
},
[2] =
{
["attack_type"] = 1,
["t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.