content stringlengths 5 1.05M |
|---|
-- Mutilate -- spell recommendation for rogues. Originlly derived from FaceMauler.
--
-- How it works: getState() fills in a state table from fresh raw data (spell expirations,
-- expire times, energy levels, etc). Each spec's decide spell method does two things. It
-- decides the best spell given the state, and ... |
-- Simple Graphic Metronome
-- local luamidi require ("LuaMidi")
-- local NoteEvent = luamidi.NoteEvent
bpm_bar = {}
master_bar = {}
clicks = {}
subclicks = {}
bpm = 120
max_bpm = 300
subdivision = 1
maintimer = 0
subtimer = 0
maindelay = 60.0/bpm
subdelay = maindelay / subdivision
mainvolume=1
subvolume=0.2
current_c... |
local target_suffixes_86 = {
bsd = "_linux",
linux = "_linux",
solaris = "_linux",
windows = "_win32",
macosx = "_osx" ,
}
local target_suffixes_64 = {
bsd = "_linux64",
linux = "_linux64",
solaris = "_linux64",
windows = "_win64",
macosx = "_osx64",
}
local libdirs_86 = {... |
--[[
LibObjectiveProgress: Weight Data
Last Updated: Patch 8.3.0 Live; 2020-02-16T15:44:21Z
If you would like a copy of this data in a different format for your own purposes or to be informed of future updates:
Contact MMOSimca / Simca@Malfurion - either through MMO-Champion, through CurseForge, or in-game
You may us... |
local match_loading_chat_item = require(ViewPath .. "games/common2/match/match_loading_chat_item");
local MatchChatItem = class(Node);
MatchChatItem.BROADCAST_SELECTED = "match_select_chat_item_event";
MatchChatItem.BROADCAST_CANCLE_SELECTED = "match_cancle_select_chat_item_event";
MatchChatItem.ctor = functi... |
local ls = require "lovesnow"
local memory = require "lovesnow.memory"
memory.dumpinfo()
--memory.dump()
local info = memory.info()
for k,v in pairs(info) do
print(string.format(":%08x %gK",k,v/1024))
end
print("Total memory:", memory.total())
print("Total block:", memory.block())
ls.start(function() ls.exit() end)... |
-----------------------------------
-- Area: Caedarva Mire
-- NPC: Runic Portal
-- Caedarva Mire Teleporter Back to Aht Urhgan Whitegate
-- !pos -264 -6 -28 79 (Dvucca)
-- !pos 524 -28 -503 79 (Azouph)
-----------------------------------
local ID = require("scripts/zones/Caedarva_Mire/IDs")
---------------------------... |
--SynapseX Decompiler
local _script, game, require, getmetatable, type, getfenv, wait, pcall, tick, ipairs, unpack, Enum, assert, cos, sin, sort, new, wrap, random, fromRGB, udim2, vec2 = script, game, require, getmetatable, type, getfenv, wait, pcall, tick, ipairs, unpack, Enum, assert, math.cos, math.sin, table.sort... |
--[[--
json.null
A special marker to be used to write a value of null to a JSON object or JSON array. The marker is only used for setting a value to null; when reading null values from a JSON object or JSON array via the index operator, via json.get(...), or via pairs(...) or ipairs(...), then the null values will al... |
QBCore = exports['qb-core']:GetCoreObject()
local LastZone = nil
local CurrentAction = nil
local CurrentActionMsg = ''
local hasAlreadyEnteredMarker = false
local allMyOutfits = {}
local isPurchaseSuccessful = false
local PlayerData = {}
local PlayerJob = {}
local PlayerGang = {}
local skinData = {
["face"] = {
... |
WIN_WIDTH = 800
WIN_HEIGHT = 800
TITLE = "Shooter" |
local ViewBase = require("games/common2/module/viewBase");
local MatchFailTipsView = class(ViewBase,false);
MatchFailTipsView.ctor = function(self,seat,viewConfig)
super(self);
self.m_ctrls = MatchFailTipsView.s_controls;
self:setFillParent(true,true);
self.m_viewConfig = viewConfig;
end
MatchFailTi... |
--ๅปไผค็ฑป
function onStart(target, buff)
add_buff_parameter(target, buff, 1)
end
function onPostTick(target, buff)
if buff.not_go_round > 0 then
return
end
buff.remaining_round = buff.remaining_round - 1;
if buff.remaining_round <= 0 then
if buff.cfg_property[1] then
Common_FireBullet(buff.id, buff.attacker, ... |
local Class = require "hump.class"
local BaseObject = require "toys/baseObject"
Skateboard = Class{__includes = BaseObject}
function Skateboard:init(world, mapObject)
local xSpawn, ySpawn = mapObject.x, mapObject.y
-- board
self.board = {}
self.board.width, self.board.height = 100, 5
self.board.body = love.phy... |
local t = ...;
t = Def.ActorFrame{
Def.Quad{
InitCommand=cmd(x,188;y,1;setsize,188,24);
OnCommand=cmd(queuecommand,"Animate");
AnimateCommand=cmd(diffuseshift;effectcolor1,color("#d4d400");effectcolor2,color("#717100");effectperiod,1.5);
};
LoadActor("HL")..{
InitCommand=cmd(x,188;y,1);
}
};
return t;
|
project "pugixml"
uuid "07B89124-7C71-42cc-81AB-62B09BB61F9B"
language "C++"
location ( "%{wks.location}" .. "/ext" )
mpt_kind "static"
targetname "openmpt-pugixml"
includedirs { }
filter {}
filter { "action:vs*" }
characterset "Unicode"
filter {}
files {
"../../include/pugixml/src/pugixml.cpp",... |
minetest.register_privilege("secret", "Wouldn't you like to know?")
minetest.register_privilege("hidden_one", {description = "Can hide from players.", give_to_singleplayer=false})
local default_sneak_mode = "old" -- change this to "new" if you want new movement.
-- Admin Curses
--Turn player into a chicken
local f... |
include("terms")
style1 =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "f90",
["line_width"] = "3"};
style2 =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "c90",
["line_width"] = "3"};
style3 =
{["off_color"] = "fff",
[... |
๏ปฟlanguages = {}
language = "en"
local emptyTable = {}
function LoadLanguage(name, overridePath)
local script = CompileFile(overridePath or ("lang/" .. name .. ".lua"))
if not script then return end
languages[name] = script.lang
end
function GetLanguage() return language or "en" end
function GetLanguag... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeMtaDefinitions
local SlipeServerAcl
local SlipeSharedExceptions
local ArrayAclEntry
local ArrayAclGroup
System.import(function (out)
SlipeMtaDefinitions = Slipe.MtaDefinitions
SlipeServerAcl = Slipe.Server.Acl
SlipeSharedExceptions = Slipe.Share... |
-- Behavior for observer (1) in the level elderbackroom
routine = function(O)
O:gotoTile(15, 20)
O:gotoTile(25, 20)
O:wait(1)
end
|
local tech = data.raw.technology['circuit-network'].effects
local newUnlock = {
type = 'unlock-recipe',
recipe = 'switchbutton'
}
table.insert(tech, newUnlock)
|
-- @Author: Kush Chandra Shrestha
-- @Date: 2016-04-15 23:05:55
-- @Last Modified by: Ritesh Pradhan
-- @Last Modified time: 2016-04-21 14:17:11
-- load required library files
local widget = require("widget")
local composer = require( "composer" )
local background = require('classes.background')
local hemeDatabox ... |
#!/usr/bin/env tarantool
local fio = require('fio')
-- require in-repo version of graphql/ sources despite current working directory
package.path =
fio.abspath(debug.getinfo(1).source:match("@?(.*/)")
:gsub('/./', '/'):gsub('/+$', '') .. '/../?.lua') .. ';' ..
fio.abspath(debug.getinfo(1).source:match("@?... |
local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "skynet.netpack"
local handler = {}
local CMD = {}
function CMD.kick(source, fd)
skynet.error("source: ", skynet.address(source), "kick fd: ", fd);
gateserver.closeclient(fd)
end
function handler.connect( fd,... |
--
------------------------------------------------------------------------------
-- File: ipt2smalldot.lua
--
-- Usage: require("ipt2smalldot")(ipt, iptable.AF_<fam>)->{lines, edges}
--
-- Description: convert iptable radix tree to minimalistic graphviz code
--
---------------------------------------------... |
-- The Computer Language Benchmarks Game
-- http://benchmarksgame.alioth.debian.org/
-- contributed by Mike Pall (with ideas from Rici Lake)
-- modified by Sokolov Yura
-- modified for Lua 5.2 by Robin
local len, sub, concat = string.len, string.sub, table.concat
local write, mod = io.write, math.fmod
local function ... |
{%
for _, material in ipairs( materials ) do
local item = Items[ material.id ]
printf( "%s <b>x%d</b><br>", itemNameURL( { item = item } ), material.count )
end
%}
|
package = "blunty666.log"
class = "ConsoleLogOutput"
implements = "ILogOutput"
variables = {
terminal = NIL,
}
methods = {
Append = function(self, message)
local previousTerminal = term.redirect(self.terminal)
print(message)
term.redirect(previousTerminal)
end,
}
constructor = function(self, terminal)
-- ... |
--[[
Perk Hooks.lua
This script will get custom property perks set in editor and put them into a global table
]]
_G["perk.StrikeCoin300"] = script:GetCustomProperty("StrikeCoin300")
_G["perk.StrikeCoin750"] = script:GetCustomProperty("StrikeCoin750")
_G["perk.StrikeCoin3000"]= script:GetCustomProperty("Strike... |
local map = require("helpers").map
map("n", "<C-U>", ":call smooth_scroll#up(&scroll, 0, 4)<CR>")
map("n", "<C-D>", ":call smooth_scroll#down(&scroll, 0, 4)<CR>")
map("n", "<C-B>", ":call smooth_scroll#up(&scroll*2, 0, 4)<CR>")
map("n", "<C-F>", ":call smooth_scroll#down(&scroll*2, 0, 4)<CR>")
|
Base = require 'libraries.knife.knife.base'
require 'src.utilities.tables'
require 'src.utilities.shapes'
require 'src.utilities.numbers'
Path = Base:extend()
function Path:constructor(cellSize, alpha)
self.cellSize = cellSize or 16
self.offsetX = self.cellSize / 2
self.offsetY = self.cellSize / 2
sel... |
----------------------------------
-- Area: Fort Karugo Narugo [S]
-- NPC: Indescript Markings
-- Type: Quest
-- !pos -63 -75 4 96
-----------------------------------
local ID = require("scripts/zones/Fort_Karugo-Narugo_[S]/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
-----------------... |
gamePassId = 72385
market = game:GetService("MarketplaceService")
http = game:GetService("HttpService")
info = market:GetProductInfo(gamePassId, Enum.InfoType.GamePass)
game:GetService("RunService").Stepped:connect(function()
pcall(market.PerformPurchase, market, Enum.InfoType.Asset, info["ProductId"], info["PriceInRob... |
return {
["dice"] = "Simulates a dice throw, prints the value of each die",
["cards"] = "Draw a specific amount of playing cards and display them",
["calculate"] = {embed={
title = "Calculate an expression",
description = "Calculates maths using libqalculate. https://qalculate.github.io/ for more ... |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... |
if love.filesystem then
require 'rocks' ()
end
function love.conf(t)
t.identity = "plat2"
t.version = "0.10.0"
t.dependencies = {
}
end
|
ENGINE_NAME = "PurEngine"
dofile ("premake/amd_premake_util.lua")
dofile ("premake/utils.lua")
-- Workspace (Solution)
workspace (ENGINE_NAME)
configurations { "Debug", "Release", "Final" }
platforms { "x64" }
location "build"
filename (ENGINE_NAME .. _AMD_VS_SUFFIX)
startproject ("Demo")
cppd... |
local function locals()
local locals = {}
local i = 1
while true do
local k, v = debug.getlocal(3, i)
if k then
locals[k] = v
else
break
end
i = 1 + i
end
return locals
end
return function(file)
if file:match('^./') then
local current_directory = debug.getinfo(2, 'S').so... |
local skynet = require "skynet"
local runTime = {}
table.insert(runTime, "a")
skynet.start(function ()
skynet.error("test4 ๅผๅงๅฝๆฐ")
if #runTime == 1 then
skynet.error("็ฌฌไธๆฌก่ฟ่ก")
else
skynet.error("้็ฌฌไธๆฌก่ฟ่กไบๅ")
end
end) |
return {
name = "BlahDNS",
label = _("BlahDNS"),
resolver_url = "https://doh-fi.blahdns.com/dns-query",
bootstrap_dns = "95.216.212.177,2a01:4f9:c010:43ce::1",
help_link = "https://blahdns.com/",
help_link_text = "BlahDNS Support"
}
|
return {
name = "ga",
path = "/usr/local/bin"
}
|
local M = {}
local utils = require "utils"
local Log = require "core.log"
M.config = function()
lvim.builtin["terminal"] = {
on_config_done = nil,
-- size can be a number or function which is passed the current terminal
size = 20,
-- open_mapping = [[<c-\>]],
open_mapping = [[<c-t>]],
hide_nu... |
object_tangible_powerup_weapon_melee_eledamage = object_tangible_powerup_weapon_shared_melee_eledamage:new {
}
ObjectTemplates:addTemplate(object_tangible_powerup_weapon_melee_eledamage, "object/tangible/powerup/weapon/melee_eledamage.iff")
|
local function create_text_field(parent, view, prop)
return parent:textbox(prop:name(), ClassClbk(prop, "on_commit", view), prop._value, {background_color = prop._bgcolor})
end
local function create_int_field(parent, view, prop)
return parent:numberbox(prop:name(), ClassClbk(prop, "on_commit", view), prop._val... |
local Color = require("util/color")
local Throw = {
mode = "release",
}
function Throw:error(fmt, ...)
if type(fmt) ~= "string" then
error("arg fmt is not string type")
end
if #{...} ~= 0 then
fmt = string.format(fmt, ...)
end
if self.mode == "release" then
fmt = Color:... |
-- Alias various helper variables.
local opt = vim.opt -- Options.
local cmd = vim.cmd -- Vim commands.
-- Enable relative line numbers.
opt.number = true
opt.relativenumber = true
opt.scrolloff = 3
-- Highlight current line.
opt.cursorline = true
-- Ignore case in searches.
opt.ignorecase = true
-- Show the filena... |
-- walkabout.lua
-- A slider-based sequencer
-- PolyPerc output - and MIDI
--
-- enc2 = select sequence #
-- enc3 = set step value
-- key2 = decrement step #
-- key3 = increment step #
--
-- key1 = hold for ALT
--
-- alt-enc1 = select setting
-- enc1 = change setting
--
-- parameters set MIDI
engine.name = "PolyPerc"
... |
--ๆ็ป็ยท็พ่ตฐ็ฝชๅฌ
local m=14000306
local cm=_G["c"..m]
cm.named_with_NextDraw=1
function cm.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_FIEND),2,2)
--pos change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1... |
-- comp_webserver.lua
local Collections = require("Collections");
local Application = require("Application");
local SocketOps = require("SocketOps");
local IOCPSocket = require("IOCPSocket");
local IOCPSocketIo = require("IOCPSocketIo");
local NetStream = require ("NetStream");
local PreamblePending = Collections.Qu... |
function start(keys)
local caster = keys.caster
local ability = keys.ability
local modifier = "berserker_ignite_self"
local level = (ability:GetLevel()-1)
local target = keys.target
local damage_base = ability:GetLevelSpecialValueFor("damage_base", level)
local damage_hp = (target:GetMaxHealth() * ability:GetLe... |
--[[
Credit screen
]]--
local credits = {}
function credits_init()
for i=1,20 do
credits[i] = {}
credits[i][1] = "Test"..i
credits[i][2] = love.graphics:getHeight() + i * font_def:getHeight()
end
end
function credits_update(dt)
for i,entry in pairs(credits) do
entry[2] =... |
-- By Lauren.
-- Coded for Lauren Development discord server.
local QBCore = nil
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if QBCore == nil then
TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end)
Citizen.Wait(200)
end
... |
local function DLS_replace(replace_name, replace_icons)
local down_arrow = {
icon = "__DeadlockStacking__/graphics/arrow-d-32.png",
scale = 0.5,
icon_size = 32
}
local up_arrow = {
icon = "__DeadlockStacking__/graphics/arrow-u-32.png",
scale = 0.5,
icon_size = 32
}
data.raw["item"]["deadlock... |
local http_ng = require 'http_ng'
local fake_backend = require 'spec.util.fake_backend'
spy.on(fake_backend, 'send')
describe('http_ng', function()
local http
before_each(function()
http = http_ng.new{backend = fake_backend}
end)
for _,method in ipairs{ 'get', 'head', 'options', 'delete' } do
it('mak... |
local BasePlugin = require "kong.plugins.base_plugin"
local basic_serializer = require "kong.plugins.log-serializers.basic"
local statsd_logger = require "kong.plugins.datadog.statsd_logger"
local DatadogHandler = BasePlugin:extend()
DatadogHandler.PRIORITY = 1
local ngx_timer_at = ngx.timer.at
local string_gsub = s... |
-- ็ฉๅ็ณป็ป
--[[
ๆฏไธช่ฑ้ๆๅคงๆฏๆไฝฟ็จ6ไปถ็ฉๅ
ๆฏๆๆปก่ๅ
ๅๆ
็ฉๅๅญๅจ้้๏ผ่ๅ
ๆ่ด้๏ผ่ถ
่ฟ่ด้ๅณไฝฟๅญๅจๅๆๅ
ณ็ณป๏ผไนไผ่ขซๆๆถ็ฆๆญขๅๆ
]]
hitem = {
DEFAULT_SKILL_ITEM_SLOT = string.char2id("AInv"), -- ้ป่ฎค็ฉๅๆ ๆ่ฝ๏ผ่ฑ้6ๆ ผ้ฃไธช๏ผ้ป่ฎคๅ
จ้จ่ฎคๅฎ่ฟไธชๆ่ฝไธบ็ฉๅๆ ๏ผๅฆๆ้่ฆ่ช่กๆดๆน
FLEETING_IDS = {
GOLD = hslk.item_fleeting[1], -- ้ป่ฎค้ๅธ๏ผๆจกๅ๏ผ
LUMBER = hslk.item_fleeting[2], -- ้ป่ฎคๆจๅคด
... |
return {base_dirs = {{path = '~/Dotfiles/vile'}}, hidden_files = true}
-- '~/dev/src', {'~/dev/src2'}, {'~/dev/src3', max_depth = 4}, {path = '~/Dotfiles/vile', max_depth = 2}
|
local args = ...;
local EventManager = args.PiroGame.class("EventManager")
function EventManager:initialize()
self.eventListeners = {}
end
-- Adding an eventlistener to a specific event
function EventManager:addListener(eventName, listener, listenerFunction)
-- If there's no list for this event, we create a... |
natives["java.lang.Object"] = natives["java.lang.Object"] or {}
natives["java.lang.Object"]["toString()Ljava/lang/String;"] = function(this)
return toJString(tostring(this):sub(8))
end
natives["java.lang.Object"]["getClass()Ljava/lang/Class;"] = function(this)
return getJClass(this[1].name)
end
natives["java.... |
local L = Grid2Options.L
Grid2Options:RegisterIndicatorOptions("border", false, function(self, indicator)
local statuses, options = {}, {}
self:MakeIndicatorBorderCustomOptions(indicator, options)
self:MakeIndicatorStatusOptions(indicator, statuses)
self:AddIndicatorOptions(indicator, statuses, options )
en... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
fun... |
local U = require "togo.utility"
local P = require "Pickle"
local Core = require "src/Core"
local Layout = require "core/Layout"
local Page = require "core/Page"
local NavItem = require "core/NavItem"
local M = U.module("Composition")
local page_vf = P.ValueFilter("AllopoeiaPage")
:filter("article_class", "string")
:... |
-- Write luatrace traces to a file. Each line is one of
-- [S>] <filename> <linedefined> <lastlinedefined> -- Start or call into a trace at filename somewhere in the function defined at linedefined
-- < -- Return from a function
-- R <thread_id> ... |
TidyPlatesHubCache = {
["SavedTemplate"] = {
["TextShowOnlyOnActive"] = false,
["TextShowOnlyOnTargets"] = false,
["ColorFriendlyBarMode"] = 1,
["FrameBarWidth"] = 1,
["UnitSpotlightLookup"] = {
},
["WidgetsDebuff"] = true,
["OpacityFilterNonElite"] = false,
["SpellCastEnableFriendly"] = false,
["... |
local M = {}
local function utable(table, no, s)
for p, c in utf8.codes(s) do
table[c] = no
end
end
local match_wait_table = {}
utable(match_wait_table, 800, [=[ใ๏ผ]=])
utable(match_wait_table, 600, [=[๏ผ๏ผ]=])
utable(match_wait_table, 400, [=[ใ๏ผ๏ผ๏ผฝ๏ฝใใ]=])
utable(match_wait_table, -200, [=[ใปโฅโฆ]=])
utable... |
local rules = require "scripts.rules"
local animations = require "character.animations"
local Character = require "character.character"
local Imp = Character:new()
function Imp:new(o, control)
o = o or Character:new(o, control)
setmetatable(o, self)
self.__index = self
return o
end
function Imp:create()
C... |
local ffi = require( "ffi" )
local libs = ffi_luajit_libs or {
OSX = { x86 = "bin/luajit.dylib", x64 = "bin/luajit.dylib" },
Windows = { x86 = "bin/luajit32.dll", x64 = "bin/luajit64.dll" },
Linux = { x86 = "bin/luajit32.so", x64 = "bin/luajit64.so" },
BSD = { x86 = "bin/luajit32.so", x64... |
local v = Instance.new("BoolValue")
T.Pass(function() v[sym.Reference] = "foobar" end, "can be newindexed with symbols")
T.Pass(function() return v[sym.Reference] end , "can be indexed with symbols")
T.Fail(function() return v[T.DummySymbol] end , "can be indexed only with certain symbols")
|
local g = vim.g
local o = vim.o
-- Most filetypes
-- vim-polyglot
-- A solid language pack for Vim
-- https://github.com/sheerun/vim-polyglot
vim.cmd 'packadd vim-polyglot'
-- Haskell
-- haskell-vim (comes in vim-polyglot)
-- https://github.com/neovimhaskell/haskell-vim.git
-- indenting options
g.haskell_indent_if = ... |
vim.notify("This is the trace message not too long", "info", { title = " Hello Notify" })
|
local _lastId = 0
local _timeouts = {}
local _timeoutsN = 0
local _tremove = table.remove
---Runs callback after certain time. Returns cancellation ID.
---Note: all callbacks will be ran before `update()` call,
---and they would only ran when script runs. So if your script is executed each frame and AC runs at 60 FPS,... |
local _, CLM = ...
local MODELS = CLM.MODELS
-- local UTILS = CLM.UTILS
local CONSTANTS = CLM.CONSTANTS
local BiddingCommSubmitBid = {}
function BiddingCommSubmitBid:New(valueOrObject)
local isCopyConstructor = (type(valueOrObject) == "table")
local o = isCopyConstructor and valueOrObject or {}
setmetat... |
function onCreate()
makeLuaSprite('theSky','sky',-100,-200)
addLuaSprite('theSky',false)
setLuaSpriteScrollFactor('theSky', 0.2, 0.2);
makeLuaSprite('theCity','mountains',-100,-400)
addLuaSprite('theCity',false)
setLuaSpriteScrollFactor('theCity', 0.3, 0.6);
makeLuaSprite('t... |
function Auctionator.ReagentSearch.DoTradeSkillReagentsSearch()
local recipeIndex = TradeSkillFrame.RecipeList:GetSelectedRecipeID()
local recipeLevel = TradeSkillFrame.DetailsFrame:GetSelectedRecipeLevel()
local recipeInfo = C_TradeSkillUI.GetRecipeInfo(recipeIndex, recipeLevel)
local items = {recipeInfo.nam... |
local EVENT = {}
EVENT.Title = "... That's Lame."
EVENT.Description = "Nothing happens."
EVENT.id = "lame"
function EVENT:GetConVars()
local sliders = {}
for _, v in pairs({}) do
local name = "randomat_" .. self.id .. "_" .. v
if ConVarExists(name) then
local convar = GetConVar(nam... |
local M = {}
--
M.config = function()
O.plugin.nvimtree = {
side = "left",
show_icons = {
git = 1,
folders = 1,
files = 1,
folder_arrows = 1,
tree_width = 30,
},
ignore = { ".git", "node_modules", ".cache" },
auto_open = 1,
auto_close = 1,
quit_on_open = 0,
... |
return function()
local ActionType = require(script.Parent.ActionType)
local createSpy = require(script.Parent.Parent.Tests.createSpy)
describe("WHEN required", function()
local replicatePastChanges = require(script.Parent.replicatePastChanges)
it("SHOULD have the following interface", function()
expect(rep... |
unpack = unpack or table.unpack
function rawpairs(t)
return next, t, nil
end
function pairs(t)
local mt = getmetatable(t)
return (mt and mt.__pairs or rawpairs)(t)
end
function default_object_pairs(self)
return coroutine.wrap(function()
for k, v in rawpairs(self) do
if type(k) == 'st... |
//DAKloader SV Commands
//******************************************************************************************************************
//Extra Server Admin commands
//******************************************************************************************************************
local function OnCommandRCON(c... |
-------------------------------------
-- XAF Module - Utility:HTTPStream --
-------------------------------------
-- [>] This class represents the HTTP stream, which is used for connecting with HTTP servers and doing some actions with them.
-- [>] It was designed as each stream object may connect with only one server -... |
local ngx = ngx
local setmetatable = setmetatable
local _M = { _VERSION = '0.01' }
local mt = { __index = _M }
function _M.new(self, threshold_sec, ...)
return setmetatable({
_threshold_sec = threshold_sec,
_callbacks = {...},
}, mt)
end
function _M.collect(self)
local request_time = tonu... |
local osmose = require 'osmose'
local et = osmose.Model 'FuelInput'
----------
-- User parameters
----------
et.inputs = {
-- Energy prices
FUEL_PRICE_BUY = {default=0.6, unit='CHF/kg'},
-- Network capacity
MAX_INTAKE = {default=100000, unit='kW'},
FUEL_LHV = {default=40700, unit='kJ/k... |
local AceEvent = LibStub:GetLibrary("AceEvent-3.0");
local QLH = LibStub("QuestLogHelper-1.0");
local helper = LibStub:NewLibrary("QuestWatchHelper-1.0", 1);
local isWoWClassic = select(4, GetBuildInfo()) < 20000;
local BlizzardTrackerFrame = isWoWClassic and QuestWatchFrame or ObjectiveTrackerFrame;
local timers = {... |
-- Farewell infortality
-- Revamp by ImFrostic, Version 2.8
-- Objects
local ScreenGui = Instance.new("ScreenGui")
local main = Instance.new("Frame")
local bar1 = Instance.new("Frame")
local brack = Instance.new("TextButton")
local xuhro = Instance.new("TextButton")
local bypass = Instance.new("TextButton")
local... |
local LibClientBuild = Wheel("LibClientBuild")
assert(LibClientBuild, "UnitName requires LibClientBuild to be loaded.")
-- Lua API
local string_len = string.len
local string_split = string.split
-- WoW API
local GetQuestGreenRange = GetQuestGreenRange
local GetScalingQuestGreenRange = GetScalingQuestGreenRange
local ... |
-- list of adjectives you could use to describe a person
local result = {
['ษ'] = {
'abandoned',
'adorable',
'accomplished',
'adored',
'afraid',
'aggressive',
'agreeable',
'alarming',
'amazing',
'amused',
'amusing',
'another',
'ashamed',
'astonishing',
'att... |
local minetest = minetest
local modn = minetest.get_current_modname()
local modp = minetest.get_modpath(modn)
local register_node = minetest.register_node
local register_alias = minetest.register_alias
littoral.biota = {}
local biota = littoral.biota
biota.names_all = {}
biota.seagrass = {}
biota.bryozoan = {}
biota.as... |
local t = My.Translator.translate
My = My or {}
My.SideMissions = My.SideMissions or {}
local updateHint = function(mission)
local hint = t("side_mission_destroy_graveyard_hint", mission:countValidEnemies())
mission:setHint(hint)
mission:getPlayer():addToShipLog(hint, "255,127,0")
end
local randomDropCon... |
-- gen_dir_user_xml.lua
-- example script for generating user directory XML
-- comment the following line for production:
--freeswitch.consoleLog("notice", "Debug from gen_dir_user_xml.lua, provided params:\n" .. params:serialize() .. "\n")
local req_domain = params:getHeader("domain")
local req_key = par... |
return {'azuren','azuur','azuurblauw','azuursteen','azuki','azuurblauwe','azuurstenen','azukis'} |
local class = require 'middleclass'
local Tile = class('littletanks.Tile')
function Tile:initialize( options )
assert(options.atlasX and
options.atlasY)
self.atlasX = options.atlasX
self.atlasY = options.atlasY
self.collisionCategories = {}
end
function Tile:getCollisionCategories()
return self.c... |
require("moonsc").import_tags()
-- Test that any error raised by an element of executable content
-- causes all subsequent elements to be skipped.
-- The send tag will raise an error so var1 should not be incremented.
-- If it is fail, otherwise succeed
local function L(what) return _log{expr=what} end
local functio... |
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
-- Plugin: neoscroll.nvim
-- Github: github.com/karb94/neoscroll.nvim
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ--
--โโโโโโโโโโโโโโโโโ... |
--[[
Constructs a new computed state object, which follows the value of another
state object using a spring simulation.
]]
local Package = script.Parent.Parent
local Types = require(Package.Types)
local logError = require(Package.Logging.logError)
local unpackType = require(Package.Animation.unpackType)
local Spring... |
function replaceModel()
local col = engineLoadCOL ( "colfixes/1.col" )
engineReplaceCOL ( col, 11391 )
local col = engineLoadCOL ( "colfixes/2.col")
engineReplaceCOL ( col, 11393 )
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()),
function()
repla... |
-- We write save data to the general purpose buffer, until a save platform
-- is triggered.
-- DEBUG_BEGIN
g_debug = false
-- DEBUG_END
g_card_fade = 8
poke(0x5f5c, 15) -- set the initial delay before repeating.
poke(0x5f5d, 15) -- set the repeating delay.
function _init()
music(0, 3000)
g_tl = ztable([[
... |
function print(text)
print(text)
end |
local mod = DBM:NewMod(2347, "DBM-EternalPalace", nil, 1179)
local L = mod:GetLocalizedStrings()
mod:SetRevision("2019071740256")
mod:SetCreatureID(150653)
mod:SetEncounterID(2289)
mod:SetZone()
mod:SetHotfixNoticeRev(20190716000000)--2019, 7, 16
--mod:SetMinSyncRevision(16950)
--mod.respawnTime = 29
mod:RegisterCom... |
-- luacheck: ignore messenger stream freeswitch argv
-- usage
if not argv[1] then
stream:write(' message resend <message uuid>\n')
return
end
local action = argv[2]
if action == 'resend' then
local message_uuid = argv[3]
if not message_uuid then
stream:write('-ERR no message uuid')
else
local response = mes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.