content stringlengths 5 1.05M |
|---|
#!/usr/bin/env lua
--------------------------------------------------------------------------
-- Lmod License
--------------------------------------------------------------------------
--
-- Lmod is licensed under the terms of the MIT license reproduced below.
-- This means that Lmod is free software and can be used... |
function OnCastThunderstorm3(event, plr, spellid)
if (spellid == 59158) then
plr:CastSpell(11903)
end
end
RegisterServerHook(10, "OnCastThunderstorm3") |
--[[
Loads our library and all of its dependencies, then run a set of benchmarks.
]]
-- If you add any dependencies, add them to this table so they'll be loaded!
local LOAD_MODULES = {
{"lib", "Roact"},
}
-- This makes sure we can load Lemur and other libraries that depend on init.lua
package.path = package.path ..... |
return Def.Quad {
InitCommand = function(self)
self:zoomto(4, 22):diffuse(color("#AABBDD"))
end
}
|
-- alnbox, alignment viewer based on the curses library
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use
describe("alnbox", function()
it("provides all submodules as fields", function()
local alnbox = require 'alnbox'
local makeAlignment = require 'alnbox.makeAlignment'
... |
require('unitevents.generic.spell')
require('unitevents.generic.entermap') |
local require = require
local builder = require "oil.builder"
local arch = require "oil.arch.cooperative"
module "oil.builder.cooperative"
BasicSystem = arch.BasicSystem{ require "loop.thread.SocketScheduler" }
OperationInvoker = arch.OperationInvoker{
invoker = require "oil.kernel.cooperative.Invoker",
mutex ... |
require("bootstrap")
require('editor').setup()
require('lsp').setup()
|
local utils = require("utils")
local json = require("dkjson")
local hasHttps, https = utils.tryrequire("https")
local github = {}
github._cache = {}
github._cacheTime = 300
github._baseUrl = "https://api.github.com"
github._baseReleasesUrl = github._baseUrl .. "/repos/%s/%s/releases"
local function getUrlJsonData(u... |
return { sharp = { 20, 9, 16 }, sharpp = { 20, 9, 25, 2 } } |
local AddonName, AddonTable = ...
-- Legion Leatherworking
AddonTable.leatherworking = {
-- Recipe's
142407, -- Recipe: Drums of the Mountain (Rank 1)
}
|
local ansi = require("tlcli.ansi")
Colorscheme = {}
local M = {}
local default = {
dir_name = ansi.bright.blue,
normal_log = ansi.bright.cyan,
verbose_log = ansi.bright.cyan,
error_log = ansi.bright.red,
warning_log = ansi.bright.yellow,
debug_log = ansi.bright.green,
file_name = ansi.bright.... |
-- mod-version:3
local core = require "core"
local command = require "core.command"
local common = require "core.common"
local config = require "core.config"
local core_syntax = require "core.syntax"
local DocView = require "core.docview"
local Doc = require "core.doc"
local cache = setmetatable({}, { __mode = "k" })
... |
local config = {
manaCost = 300,
soulCost = 2,
}
local spheres = {
[7759] = {3, 7},
[7760] = {1, 5},
[7761] = {2, 6},
[7762] = {4, 8}
}
local enchantableGems = {2147, 2146, 2149, 2150}
local enchantableItems = {2383, 7383, 7384, 7406, 7402, 2429, 2430, 7389, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905}... |
-- Like dropout, but with random square crops
require 'nn'
local Crop, Parent = torch.class('nn.Crop', 'nn.Module')
function Crop:__init(p, rescale, r)
-- Args:
-- `p`: 0 <= p < 1. Fraction of the image to be cropped (by area). So p = .5 => a random crop with area "0.5 * area of the input" will be dropped
-- `s... |
slot0 = class("WSEntranceTpl", import("...BaseEntity"))
slot0.Fields = {
markSigns = "table",
portCamp = "number",
world = "table",
transform = "userdata",
tfMap = "userdata",
entrance = "table",
markTFs = "table",
tfArea = "userdata"
}
slot0.Listeners = {
onUpdateDisplayMarks = "OnUpdateDisplayMarks"
}
slot0.... |
--[[--ldoc desc
定义大厅需要用到的全局对象
]]
local Global = {};
setmetatable(Global, {
__newindex = function(_, name, value)
cc.exports[name] = value;
end,
__index = function(_, name)
return cc.exports[name]
end
})
-----------------------------------------------------
-- -- 定义业务会用到的全局数据
-- 加载自定义... |
function range(x, v1, v2)
return x > v1 and x < v2
end
function checkRow(y, num)
for x = 0,8 do
if grid[x][y] == num then
return false
end
end
return true
end
function checkColumn(x, num)
for y = 0, 8 do
if grid[x][y] == num then
return false
end
end
return true
end
function checkBox(x,y,num)
f... |
local system_name
if vim.fn.has("mac") == 1 then
system_name = "macOS"
elseif vim.fn.has("unix") == 1 then
system_name = "Linux"
elseif vim.fn.has('win32') == 1 then
system_name = "Windows"
else
print("Unsupported system for sumneko")
end
local sumneko_root_path = vim.fn.stdpath('data')..'/lsp-servers/lua-lang... |
-- variadic
function add(...)
local sum = 0
for _, val in ipairs({...}) do
sum = sum + val
end
return sum
end
print(add(1, 22, 53, 9))
-- 5.1
function combine(...)
base = ''
for _, val in ipairs({...}) do
base = base .. val
end
return base
end
print(combine('first', ' second', ' third'))
-... |
EditorSpecialObjectiveGroup = EditorSpecialObjectiveGroup or class(MissionScriptEditor)
function EditorSpecialObjectiveGroup:create_element()
self.super.create_element(self)
self._element.class = "ElementSpecialObjectiveGroup"
self._element.values.base_chance = 1
self._element.values.use_instigator = false
self... |
bhamuka_all_consuming_god_malignant_growth = class({})
function bhamuka_all_consuming_god_malignant_growth:OnSpellStart()
--- Get Caster, Victim, Player, Point ---
local caster = self:GetCaster()
local caster_loc = caster:GetAbsOrigin()
local playerID = caster:GetPlayerOwnerID()
local player = PlayerResource:... |
local class = require 'middleclass'
local lume = require 'lume'
-- 基底クラス
local Super = require 'Scene'
-- インゲーム クラス
local Scene = class('InGame', Super)
-- 初期化
function Scene:initialize(t)
Super.initialize(self)
self.app = t.app or {}
end
-- 破棄
function Scene:destroy()
end
-- 更新
function Scene:update(dt)... |
-- general
lvim.format_on_save = true
lvim.lint_on_save = true
lvim.colorscheme = "palenight"
lvim.transparent_window = true
-- keymappings
lvim.leader = "space"
-- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
lvim.keys.normal_mode = {
-- Page down/up
-- {'[d', '<Page... |
local analyse = require "analyse"
local M = {}
function M:init()
analyse.init()
end
-- 随机洗牌
function M:shuffle()
local t = {}
for i=1,27 do
table.insert(t,i)
table.insert(t,i)
table.insert(t,i)
table.insert(t,i)
end
self.cards = t
end
function M:start()
print("===============新的一局游戏开始=============... |
local read_frd = require('FRD/read_frd')
local frd_exo_map = require('FRD/frd_exo_map')
local usage = [[
Usage: lua5.3 frd2exo.lua [options] frd_file exo_file
Options:
-1: use netCDF-1 format (default)
-2: use netCDF-2 format
-f: use float (real*4) type instead of default
-d: use double (real*8) type instead of defa... |
local qcfg = require 'Q/UTILS/lua/qcfg'
local Q = require 'Q'
local lVector = require 'Q/RUNTIME/VCTR/lua/lVector'
local tests = {}
tests.t1 = function()
local vec1 = lVector({qtype = "I4"})
assert(vec1:is_memo() == true) -- default value of qconsts.is_memo is true
Q.set_memo(false) -- value of qconsts... |
return
{
nodes =
{
-- gound
{x = 50, y = 750}, --1
{x = 300, y = 750}, --2
--platform 1
{x = 330, y = 656}, --3
{x = 420, y = 656}, --4
--platform 2
{x = 464, y = 592}, --5
{x = 537, y = 592}, --6
--platform 3
{x = 588, y = 498}, --7
{x = 665, y = 498}, --8
--platform 4
{x = 670, ... |
--- Provide a simple HTTP handler for Lua tables.
-- This handler allows to access and maintian a Lua table.
-- Exposes a table content throught HTTP REST APIs.
-- @module jls.net.http.handler.TableHttpHandler
-- @pragma nostrip
local logger = require('jls.lang.logger')
local json = require('jls.util.json')
local tabl... |
scales[WeaponType.LancerLaser] = {
{from = 0, to = 24, size = 0.5, usedSlots = 1},
{from = 25, to = 35, size = 1.0, usedSlots = 2},
{from = 36, to = 46, size = 1.5, usedSlots = 3},
{from = 47, to = 49, size = 2.0, usedSlots = 4},
{from = 50, to = 52, size = 3.5, usedSlots = 6},
}
possibleSpecialtie... |
Number_Properties_Priority = 2.0
Number_Properties = {
SquadronSize = 3,
buildBatch = 0,
}
String_Properties_Priority = 2.0
String_Properties = {
}
|
scr = FoneOSScreen.new()
function setPhoneNumber(text)
width = scr:width()
height = scr:height()
phoneNumber = scr:getId("phoneNumber")
phoneNumber:text(text)
phoneNumber:create()
phoneNumber:x((width-phoneNumber:width()) / 2) -- center text
phoneNumber:create()
end
function addNumber(text)
phoneNumber ... |
--- A Dropdown Button
--
-- If you define the `onSelect` function, it runs when the user selects something
-- @module DropdownButton
local cwd = string.sub(..., 1, string.len(...) - string.len('components.dropdownButton'))
local class = require(cwd .. '.lib.middleclass')
local FlatButton = require(cwd .. '.componen... |
FarmingTask = {}
FarmingTask.__index = FarmingTask
function FarmingTask:new(superSurvivor, BringHere)
local o = {}
setmetatable(o, self)
self.__index = self
o.BringHereSquare = BringHere
o.parent = superSurvivor
o.group = superSurvivor:getGroup()
o.Name = "Farming"
o.FarmingTaskType = ""
o.JustHarvested = ... |
local Velocity = Component:extend("Velocity")
function Velocity:initialize()
assert(self:hasComponent("Transformable"), "Entity needs a Transformable component")
self.velocity = {}
self.velocity.x = 0
self.velocity.y = 0
self.velocity.max = 250
end
function Velocity:getVelocity()
retu... |
--====================================================================--
-- dmc_widget/widget_popover/popover_mixin.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2015 David McCuskey. All Rights... |
map = {}
map.startX = 0
map.startY = 300
map.width = 25
map.height = 25
map.destinations = {
{x = 200, y = 300},
{x = 200, y = 200},
{x = 100, y = 200},
{x = 100, y = 300},
{x = 400, y = 300},
{x = 400, y = 200},
{x = 300, y = 200},
{x = 300, y = 300},
{x = 600, y = 300},
{x = 600, y = 200},
{x = ... |
-- This is a demonstration of a simple Java/Lua bridge which
-- allows to create JVx GUIs directly in Lua.
-- You can edit this code and preview your changes live on
-- the right.
-- Introduction
local sibVisionsLogo = UIImage.getImage("/com/sibvisions/lualive/images/sib-visions.png")
local sibVisionsIcon =... |
return function() --Create new peripheral api
local p = {}
function p.isPresent() return false end --Nothing
function p.getType() end --Nothing
function p.getMethods() end --Nothing
function p.call() return error("No peripheral attached") end --Simple
return p
end |
data.raw.item["carbon"].fuel_value = "2.5MJ"
data.raw.item["liquid-fuel-canister"].fuel_value = "50MJ"
|
helpers = require "helpers"
impl = require 'love_wrapper'
local function prop_style(element, parent)
for prop, val in pairs(element.style or {}) do
if type(prop) ~= type(0) and element[prop] == nil then
element[prop] = val
end
end
end
local function prop_width(element, parent)
... |
local ContextCBow, parent = torch.class('onmt.ContextCBow', 'onmt.Network')
--[[ Construct an encoder layer.
Parameters:
* `inputNetwork` - input module.
* `rnn` - recurrent module.
]]
function ContextCBow:__init(inputNetwork, cbowNetwork, inputSize)
self.name = 'ContextCBow'
self.inputNet = inputNetwork
s... |
do
local package = require("package")
assert(package.preload)
print("preload:")
for k,v in pairs(package.preload) do print(type(v), k) end
print("")
assert(package.loaded)
print("loaded:")
for k,v in pairs(package.loaded) do print(type(v), k) end
print("")
local function verboserequire(name)
print("")
print("loadin... |
--[[
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local allowlist = {}
local mattata = require('mattata')
local redis = require('libs.redis')
function allowlist:init()
allowlist.commands = mattata.commands(self.info.username):... |
PlayerData = {}
local done = false
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
PlayerData = ESX.GetPlayerData()
while PlayerData.job == nil do
Citizen.Wait(10)
end
i... |
-- Exact search terms
Auctionator.Search.Filters.ExactMixin = {}
function Auctionator.Search.Filters.ExactMixin:Init(filterTracker, browseResult, match)
self.match = match
Auctionator.AH.GetItemKeyInfo(browseResult.itemKey, function(itemKeyInfo)
filterTracker:ReportFilterComplete(self:ExactMatchCheck(itemKe... |
require "Client.Scripts.Modulus.Entity.Const.FsmFlag"
require "Client.Scripts.Modulus.Entity.Const.SkillEventConst" |
local common = require("dvdlualib/common")
local trace = {}
local mtSale = {}
local function cityPermutationMinSum(oSelf)
local tP = common.getPermute()
end
function trace.newSale(W)
if(not common.isTable(W)) then return nil end
local sy = #W; if(sx == 0) then return nil end
local sx = #W[1]; if(s... |
local ACTIONS = BreedActions.greenskin_squig
BreedBehaviors.greenskin_squig = {
"BTSelector",
{
"BTSpawningAction",
condition = "spawn",
name = "spawn"
},
{
"BTInVortexAction",
condition = "in_vortex",
name = "in_vortex"
},
{
"BTSelector",
{
"BTSmashDoorAction",
name = "smash_door",
cond... |
--[[
######### Ata Revals 2020-2021 #########
https://discord.gg/xcSdurg
https://github.com/atarevals
]]--
Citizen.CreateThread(function()
while true do
Citizen.Wait(500)
SetWeatherTypePersist("CLEAR")
SetWeatherTypeNowPersist("CLEAR")
SetWeatherTypeNow("CLEAR")
SetOverrideWeather("CLEAR")
SetTim... |
local redis = require "resty.redis"
local red = redis:new()
--red:set_timeout(1000) -- 1 sec
-- or connect to a unix domain socket file listened
-- by a redis server:
-- local ok, err = red:connect("unix:/path/to/redis.sock")
local ok, err = red:connect("127.0.0.1", 6379)
if not ok then
ngx.say("failed to co... |
include("shared.lua")
--Shamefully stolen from lua rollercoaster. I'M SO SORRY. I HAD TO.
local function Bezier(a, b, c, d, t)
local ab, bc, cd, abbc, bccd
ab = LerpVector(t, a, b)
bc = LerpVector(t, b, c)
cd = LerpVector(t, c, d)
abbc = LerpVector(t, ab, bc)
bccd = LerpVector(t, bc, cd)
dest = LerpVector(t, ab... |
local csv = require "csv"
local LOG = require("logging")
LOG:DEBUG(csv.loadfile("./Excel.csv"))
LOG:DEBUG(csv.writefile("./Excel-1.csv", csv.loadfile("./Excel.csv")))
|
local constant = require "constant"
--local srp = require "srp"
local uuid = require "uuid"
local account = {}
local connection_handler
function account.init (ch)
connection_handler = ch
end
local function make_key (account_name, platform)
local name = platform .. "_" .. account_name
return connection_handler ... |
local M = {}
local utf8 = require('utf8'):init()
local wcwidth = require('wcwidth.init')
function M.display_len(str)
local dlen = 0
for _, rune in utf8.codes(str) do
local w = wcwidth(rune)
if w < 0 then
return -1
end
dlen = dlen + w
end
return dlen
end
-- Get the UTF-8 character at... |
local skynet = require "skynet"
local cluster = require "lkcluster"
require "skynet.manager" -- inject skynet.forward_type
local node, address = ...
skynet.register_protocol {
name = "system",
id = skynet.PTYPE_SYSTEM,
unpack = function (...) return ... end,
}
local forward_map = {
[skynet.PTYPE_SNAX] = skynet.P... |
collectgarbage()
print("RAM before", node.heap())
require "dateformatEurope";
df.setEuropeTime(1463145687, 3600)
print(string.format("%04u-%02u-%02u %02u:%02u:%02d",
df.year, df.month, df.day, df.hour, df.min, df.sec))
print("DayOfWeek: ", df.dayOfWeek)
collectgarbage()
print("RAM after", node.heap()) |
wLicense, licenseList, bAcceptLicense, bCancel = nil
local ped = createPed(71, 356.29598999023, 161.48677062988, 1008.3762207031)
setPedRotation(ped, 271.4609375)
setElementDimension(ped, 125)
setElementInterior(ped, 3)
function showLicenseWindow()
local width, height = 300, 400
local scrWidth, scrHeight = g... |
BOT.Elisah = {
img = "163137ccd95.png",
chair = "shaman",
medal = "elisah",
victory = 45000,
eventWelcome = function ()
BOT.Elisah.chat = false
BOT.Elisah.ice = false
BOT.Elisah.shoe = false
BOT.Elisah.thorn = false
BOT.Elisah.poison = false
BOT.Elisah.anvil = false
BOT.Elisah.time = false
quote("E... |
local log = ngx.log
local ERR = ngx.ERR
local setmetatable = setmetatable
local _M = {}
local mt = { __index = _M }
local function error_log(...)
log(ERR, "Redis: ", ...)
end
function _M : close(redis_connector,redis)
local ok, err = redis_connector:set_keepalive(redis)
if not ok then
redis:clos... |
function storeCountInListNo(rec,listNo)
--[=====[
Documentation:
if(!baseCopy)
create baseCopy & initialise
else (after t1)
update currentCopy
copyTn = currentCopy - baseCopy
baseCopy = currentCopy
--]=====]
local myVal2 = ""
if(rec.pogIdHitMap == nil)
then
myVal2 = "------------pogIdHitM... |
do
local _ = {
['spidertron-equipment-grid'] = {
name = 'spidertron-equipment-grid',
height = 6,
equipment_categories = {'armor'},
width = 10,
type = 'equipment-grid'
},
['small-equipment-grid'] = {
name = 'small-equipme... |
function givePlayerMoney (...)
return exports.database:givePlayerMoney (...);
end
function takePlayerMoney (...)
return exports.database:takePlayerMoney (...);
end
function setPlayerMoney (...)
return exports.database:takePlayerMoney (...);
end
g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThis... |
--[[
NPC Spawn Platforms - lua/entities/sent_spawnplatform/sv_duplication.lua
Copyright 2009-2017 Lex Robinson
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.ap... |
domesticated_merek = Creature:new {
objectName = "@mob/creature_names:domesticated_merek",
socialGroup = "self",
faction = "",
level = 49,
chanceHit = 0.5,
damageMin = 395,
damageMax = 500,
baseXp = 4734,
baseHAM = 10000,
baseHAMmax = 12000,
armor = 0,
resists = {160,-1,0,180,140,0,140,0,-1},
meatType = "m... |
--[[- Provides a "pretty printer", for rendering data structures in an
aesthetically pleasing manner.
In order to display something using @{cc.pretty}, you build up a series of
@{Doc|documents}. These behave a little bit like strings; you can concatenate
them together and then print them to the screen.
However, docum... |
local function closePrompt()
return {
type = "closePrompt",
}
end
return closePrompt |
require "config"
function NewCharLocationEvent(name, location)
local self = {}
self.name = name
self.location = location
self.update = function (self, scene, dt)
scene.characterLocations[self.location] = scene.characters[self.name]
return false
end
return self
end
function N... |
require "busted.runner"()
describe("PlayerTools", function()
-- setup
local match
-- before_each test data
local inst
local player_dead, player_hopping, player_over_water, player_running, player_sinking, players
-- before_each initialization
local devtools, world
local PlayerTools, pl... |
local ig = require 'imgui'
local float = 0
local str = 'hello'
return function()
ig.pushStyleColor('TitleBgActive', 1, 0, 0, 1)
ig.setNextWindowSizeConstraints({
sizeMinX = 100,
sizeMinY = 100,
sizeMaxX = 400,
sizeMaxY = 400,
})
ig.beginWindow('Hello World!')
loc... |
local M = {}
M.telescope = {
n = {
["<leader>fs"] = {
":Telescope grep_string<CR>",
" grep string",
},
["<leader>ft"] = {
":Telescope treesitter<CR>",
" search symbol",
},
},
}
M.symbols_outline = {
n = {
["<leader>j"] = {
"<cmd> :SymbolsOutline<CR>",
" List the symbols outline... |
local state, switchState, extra
require 'init'
love.math.setRandomSeed( os.time() )
-- Set a "good" random
for i=1, 10 do
love.math.random()
end
function love.load()
initializeConfiguration()
state = love.filesystem.load('game/main.lua')
state = state()
state:load()
end
function love.update(dt)
... |
local generator = {}
local services = kong.db.services
local routes = kong.db.routes
local plugins = kong.db.plugins
function generator.generateService(endpoint)
local host = endpoint:match("[http|https]://([^/]*)/.*")
local port = endpoint:match("[http|https]://[^/:]*:([^/]*)/.*")
local protocol = ... |
--[[
Chance to Destroy Parent
v1.0
by: standardcombo
A simple script that has a chance to destroy its parent as soon as
the script initializes.
--]]
local CHANCE = script:GetCustomProperty("ChanceToDestroy")
if math.random() < CHANCE then
script.parent:Destroy()
end |
object_mobile_som_coyn_commando = object_mobile_som_shared_coyn_commando:new {
}
ObjectTemplates:addTemplate(object_mobile_som_coyn_commando, "object/mobile/som/coyn_commando.iff")
|
util.init_hosted()
node.set_flag("no_clear")
NATIVE_ASPECT = NATIVE_WIDTH / NATIVE_HEIGHT
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
DISPLAY_ASPECT = 16 / 9
DISPLAY_HEIGHT = HEIGHT
DISPLAY_WIDTH = DISPLAY_HEIGHT * DISPLAY_ASPECT
rawset(_G, "_DEBUG_", 2) -- <5 will only print to stdout, >= 5 also adds visual changes to the... |
cfg_map_monster_waves = {
[101] = {
{waveID = 10101, waveGroup = 101, nextTime = 25, attack = -0.25, maxHP = 0, bodyHit = -0.25, monsters = {101, 101, 101}},
{waveID = 10102, waveGroup = 101, nextTime = 22, attack = -0.25, maxHP = 0, bodyHit = -0.25, monsters = {203, 203}},
{waveID = 10103, ... |
local class = require("pl.class")
local Logger = require "core.Logger"
---@class Scriptable
---@field hasBehavior fun(name:string):boolean
---@field setupBehaviors fun(manager:EventManager)
---@field getBehavior fun(name:string):EventManager
---create a Class use pl.class which inherited from *base*
---and add some me... |
-- Local
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83... |
local http = require "resty.http"
local server = require "spec.support.server"
describe("allow_domain", function()
before_each(server.stop)
after_each(server.stop)
it("verifies domain from remote server", function()
server.start({
auto_ssl_pre_new = [[
options["allow_domain"] = function(domain... |
--- Access to dialplan applications.
--
-- This module provides access to various dialplan applications. An
-- understanding of how these applications are used in FreeSWITCH dialplans is
-- essential in order to properly use the actions in this module.
--
-- @module dialplan_tools
-- @author Chad Phillips
-- @copyright... |
local name = "fission"
local version = "1.14.1"
local githubReleaseDownloadURL = "https://github.com/fission/fission/releases/download"
food = {
name = name,
description = "Fast Serverless Functions for Kubernetes",
license = "Apache-2.0",
homepage = "https://github.com/fission/fission",
version = ... |
ITEM.Name = 'Hoverball "Basic" Ball'
ITEM.Price = 1000
ITEM.Model = 'models/maxofs2d/hover_basic.mdl'
ITEM.ModelScale = 0.2
Guildhall.SetItemRarity(ITEM, Guildhall.RARITY_3)
local CATEGORY = CATEGORY
function ITEM:CanPlayerEquip(ply)
return CATEGORY:CanPlayerEquip(self, ply)
end
function ITEM:OnEquip(ply, modifica... |
--[[
itemData {}
--> identifying information <--
int id
--> generic information <--
string name
string rarity
string image
string description
--> tool information <--
CFrame grip
--> stats information <--
number baseDamage
bonusStats {}
int str = 0
int sta = 0
int dex = 0
i... |
local CATEGORY_NAME = "PHX MapVote"
------------------------------ VoteMap ------------------------------
function PHX_MapVote( calling_ply, votetime, should_cancel )
if MapVote ~= nil then
if not should_cancel then
MapVote.Start(votetime, nil, nil, nil)
ulx.fancyLogAdmin( calling_ply, "#A called a votemap!" )... |
---------------------------
-- gruv awesome theme --
---------------------------
local theme_name = "gruv"
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local home = os.getenv("HOME");
local theme_folder = "~/.config/awesome/... |
fx_version 'cerulean'
game 'gta5'
author 'Redutzu'
description 'Simple standalone subtitles script'
version '1.0.0'
ui_page 'nui/index.html'
shared_script 'config.lua'
client_script 'client.lua'
files {
'nui/**'
}
lua54 'yes' |
---------------------------------------------
-- Soul Voice
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------------------
function onMobSkillCheck(target, mob, skill)
return 0
en... |
function _init()
t = 0
ship = {sp=1, x=60, y=60, health=4, points=0, imm=true, t=0, can_shoot=true, st=0, shooting=false, recharge=100, box={x1=0, y1=0, x2=7, y2=7} }
bullets = {}
enemies = {}
explosions = {}
stars = {}
-- add stars
for i = 1, 128 do
add(stars, {x=rnd(128), y=rnd(128), s=rnd(2)+1 ... |
--[[
emoteDisplay
Display's message of what emote someone did
]]--
-- Variables --
emotes = {}
emotes["0"] = "dance"
emotes["1"] = "laugh"
emotes["2"] = "cry"
emotes["3"] = "kiss"
emotes["4"] = "rage"
emotes["5"] = "clap"
emotes["6"] = "sleep"
emotes["7"] = "facepalm"
emotes["8"] = "sit"
emotes["9"] = "confette"
-- ... |
-----------------------------------
-- Area: Windurst Walls (239)
-- NPC: Shantotto
-- !pos 122 -2 112 239
-- CSID's missing in autoEventID please check the old forums under resources for all of shantotto's csid's. I found them all manually.
-----------------------------------
require("scripts/globals/keyitems")
requi... |
local tutil = require('yode-nvim.tests.util')
local eq = assert.are.same
describe('go to alternate buffer -', function()
local fileBufferId = 1
local seditorBufferId = 2
local smallBufId = 3
it('from seditor in full view to file buffer', function()
vim.cmd('e ./testData/basic.js')
vi... |
--[=[
Represents a camera state at a certain point. Can perform math on this state.
@class CameraFrame
]=]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Debug = require(ReplicatedStorage.Knit.Util.Additions.Debugging.Debug)
local QFrame = require(ReplicatedStorage.Knit.Util.Additions.Vendor.QF... |
local moon = require("moon")
local conf = ...
moon.start(function()
if conf.slave then
moon.quit()
else
moon.repeated(50, 100, function()
moon.new_service("lua", {
name = "create_service",
file = "create_service.lua",
slave = true
... |
require "tundra.syntax.glob"
require "tundra.syntax.files"
local native = require "tundra.native"
ExternalLibrary {
Name = "defaultConfiguration",
Pass = "CompileGenerator",
Propagate = {
Libs = {Config="win32-*-*"; "User32.lib", "Gdi32.lib", "Ws2_32.lib", "shell32.lib", "winmm.lib"},
},
}
... |
EnemyDeathEffect = GameObject:extend()
function EnemyDeathEffect:new(area, x, y, opts)
EnemyDeathEffect.super.new(self, area, x, y, opts)
self.depth = 80
self.current_color = default_color
self.timer:after(0.1, function()
self.current_color = self.color
self.timer:after(0.15, functi... |
-- Editors:
-- EarthSalamander #42, 02.04.2017
--------------------------
-- Entrangling Roots --
--------------------------
LinkLuaModifier("modifier_imba_entrangling_roots", "components/abilities/heroes/hero_malfurion", LUA_MODIFIER_MOTION_NONE)
imba_malfurion_entrangling_roots = imba_malfurion_entrangling_roo... |
--[[
This file is concerned primarily with the data
structures that are used to make the various
ioctl calls to the v4l2 drivers
Contained here are the data structures and various
constants of interest to make those calls.
--]]
local ffi = require("ffi")
local bit = require("bit")
local lshift, rshift, band, bor... |
class = require 'middleclass'
Spinner = class("Spinner")
function Spinner:initialize( x , y )
self.position = Vector2:new( x , y )
self.radius = 15 * ScreenSizeRatio
self.MaxRadius = 30 * ScreenSizeRatio
self.angle = 0
self.ratio = math.tan( self.angle )
self.LastShotTime = os.clock()
self.alive = true
self.... |
local t = require(script.Parent:WaitForChild("t"))
local module = {
deprecatedWarning = "%s is deprecated. %s"
}
function module.DEPRECATED(func, funcName, reason)
warn(module.deprecatedWarning:format(funcName, reason))
return func
end
function module.TryCatch(funcTry, catch)
local succ, err = pcall(funcTry... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.