repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
ioiasff/mnb | plugins/welcome.lua | 114 | 3529 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
g0g0dancer/searework | effects/gundam_kampferimpact.lua | 25 | 7159 | -- kampferimpact
return {
["kampferimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0... | gpl-2.0 |
luakit/luakit | doc/luadoc/timer.lua | 4 | 1047 | --- Timer support for Luakit.
--
-- # Example usage:
--
-- local t = timer{ interval = 500 }
--
-- t:add_signal("timeout", function ()
-- print("500msec later!")
-- end)
--
-- t:start()
--
-- @class timer
-- @author Mason Larobina
-- @copyright 2010 Mason Larobina <mason.larobina@gmail.com>
---... | gpl-3.0 |
vslotman/EmptyEpsilon | scripts/tutorial_06_relay.lua | 4 | 9249 | -- Name: Relay
-- Description: [Station Tutorial]
--- -------------------
--- -Goes over relay station.
---
--- [Station Info]
--- -------------------
--- Sector Map:
--- -The Relay station can view a map of the sector, including space hazards and ships within short-range scanner range (5U). It can also see the short-... | gpl-2.0 |
g0g0dancer/searework | LuaUI/Widgets/camera_smoothcam.lua | 11 | 1846 | local versionNumber = "0.5"
function widget:GetInfo()
return {
name = "SmoothCam",
desc = "[v" .. string.format("%s", versionNumber ) .. "] Moves camera smoothly",
author = "very_bad_soldier",
date = "August, 8, 2010",
license = "GNU GPL, v2 or later",
layer = 0,
handler = true... | gpl-2.0 |
KohaiKhaos/modified-MWDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/gui/journal-details.lua | 2 | 12955 | local gui = require 'gui'
local dialog = require 'gui.dialogs'
local widgets =require 'gui.widgets'
local guiScript = require 'gui.script'
local utils = require 'utils'
local split = utils.split_string
args = {...}
if args[1] == 'Creatures' then
showList = {'All Creatures','GOOD Creatures','EVIL Creatures','... | mit |
g0g0dancer/searework | LuaUI/Widgets/dbg_stuckkeys.lua | 18 | 1634 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Stuck Keys",
desc = "v0.01 Alerts user when a key is stuck.",
author = "CarRepairer",
... | gpl-2.0 |
g0g0dancer/searework | effects/corpun.lua | 25 | 1956 | -- corpun_shockwave
return {
["corpun_shockwave"] = {
clouds0 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 0,
water = false,
properties = {
aird... | gpl-2.0 |
g0g0dancer/searework | LuaUI/Widgets/gui_chili_rejoin_progress.lua | 9 | 16494 | function widget:GetInfo()
return {
name = "Chili Rejoining Progress Bar",
desc = "v1.132 Show the progress of rejoining and temporarily turn-off Text-To-Speech while rejoining",
author = "msafwan (use UI from KingRaptor's Chili-Vote) ",
date = "Oct 10, 2012",
license = "GNU GPL... | gpl-2.0 |
alomina007/botsgp | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | mit |
jcdenton/mono-ui-cfg | AddOns/m_ActionBars/elements/HoverBind.lua | 1 | 12562 | -- Huge props to Nightcracker for coming up with this version of KeyBound!
if IsAddOnLoaded("Dominos") then return end
local m_ActionBars = CreateFrame("Frame","m_ActionBars")
local bind, localmacros = CreateFrame("Frame", "ncHoverBind", UIParent), 0
-- SLASH COMMAND
m_ActionBars.MouseOverBind = function()
if In... | mit |
salamader/ffxi-a | scripts/globals/weaponskills/vorpal_blade.lua | 6 | 1261 | -----------------------------------
-- Vorpal Blade
-- Sword weapon skill
-- Skill Level: 200
-- Delivers a four-hit attack. Chance of params.critical varies with TP.
-- Stacks with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: ... | gpl-3.0 |
g0g0dancer/searework | LuaUI/Widgets/gui_specialmaphidedecals.lua | 17 | 1103 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Specialmap Hide Decals",
desc = "Show decals when in normal view, hide in other views.",
a... | gpl-2.0 |
salamader/ffxi-a | scripts/globals/weaponskills/blade_metsu.lua | 2 | 1796 | -----------------------------------
-- Blade Metsu
-- Katana weapon skill
-- Skill Level: N/A
-- Additional effect: Paralysis
-- Hidden effect: temporarily enhances Subtle Blow effect.
-- One hit weapon skill, despite non single-hit animation.
-- This weapon skill is only available with the stage 5 relic ... | gpl-3.0 |
whinis/OpenRA | lua/sandbox.lua | 84 | 5098 | local sandbox = {
_VERSION = "sandbox 0.5",
_DESCRIPTION = "A pure-lua solution for running untrusted Lua code.",
_URL = "https://github.com/kikito/sandbox.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to an... | gpl-3.0 |
CapsAdmin/goluwa | core/lua/modules/websocket/frame.lua | 1 | 5378 | -- Following Websocket RFC: http://tools.ietf.org/html/rfc6455
local band = bit.band
local bxor = bit.bxor
local bor = bit.bor
local tremove = table.remove
local srep = string.rep
local ssub = string.sub
local sbyte = string.byte
local schar = string.char
local band = bit.band
local rshift = bit.rshift
local tinsert = ... | gpl-3.0 |
mahdib9/mah4 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
g0g0dancer/searework | effects/roach.lua | 25 | 1044 | -- roachplosion
return {
["roachplosion"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = 0,
explosiongenerator = ... | gpl-2.0 |
nublet/WoWCache | WTF/Account/869497#2/SavedVariables/Details_DataStorage.lua | 1 | 95793 |
DetailsDataStorage = {
[14] = {
},
[16] = {
},
[15] = {
[2305] = {
{
["time"] = 1567708306,
["guild"] = "At Least We Took Stables",
["servertime"] = 1567708301,
["date"] = "19:31 05/09/19",
["healing"] = {
["Zomgaggro"] = {
5875052, -- [1]
442.75, -- [2]
5, -- [3]
... | mit |
salamader/ffxi-a | scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Chest.lua | 7 | 2760 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Treasure Chest
-- @zone 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure")... | gpl-3.0 |
CapsAdmin/goluwa | core/lua/modules/nattlua/nattlua/types/types.lua | 1 | 1067 | local types = {}
function types.Initialize()
types.Table = require("nattlua.types.table").Table
types.Union = require("nattlua.types.union").Union
types.Nilable = require("nattlua.types.union").Nilable
types.Tuple = require("nattlua.types.tuple").Tuple
types.VarArg = require("nattlua.types.tuple").VarArg
types.N... | gpl-3.0 |
cardentity/DarkRP | entities/weapons/gmod_tool/stools/shareprops.lua | 6 | 1634 | TOOL.Category = "Falco Prop Protection"
TOOL.Name = "Share props"
TOOL.Command = nil
TOOL.ConfigName = ""
function TOOL:RightClick(trace)
if not IsValid(trace.Entity) or CLIENT then return true end
local ply = self:GetOwner()
trace.Entity.SharePhysgun1 = nil
trace.Entit... | mit |
JohnAdders/domoticz | scripts/dzVents/examples/notify for dead system-alive check devices.lua | 19 | 1621 | -- this script can be used in conjunction with the System-alive checker plug-in.
-- the plugin pings a list of devices and creates switches for these devices
-- the reason for this script is to not treat devices as dead immediately after they
-- do not respond. More often than not, the second ping atempt does work. So ... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/spells/holy_ii.lua | 2 | 1122 | -----------------------------------------
-- Spell: Holy II
-- Deals light damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/items/nopales_salad_+1.lua | 3 | 1082 | -----------------------------------------
-- ID: 5702
-- Item: Nopales Salad +1
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Strength 2
-- Agility 7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Windurst_Woods/npcs/Tesch_Garanjy.lua | 36 | 4446 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tesch_Garanjy
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage"... | gpl-3.0 |
g0g0dancer/searework | LuaUI/Widgets/api_grabinput.lua | 4 | 2524 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Grab Input",
desc = "Implements grab input option",
author = "GoogleFrog",
date = "11 N... | gpl-2.0 |
SirFrancisBillard/stupid-ttt | stupid-ttt/lua/autorun/sh_ttt_shellshock.lua | 1 | 2982 |
local shockDistance = 50 -- Maximum distance, within which you will be effected.
local maxShock = 10 -- Maximum shocked you can be. Probably don't change this.
local defaultFadeSpeed = 2 -- Speed at which shock goes away.
if SERVER then
CreateConVar( "shell_fadespeed", defaultFadeSpeed, _, "How quickly should shel... | gpl-3.0 |
ioiasff/mnb | plugins/webshot.lua | 110 | 1424 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
salamader/ffxi-a | scripts/zones/Dragons_Aery/npcs/relic.lua | 4 | 1836 | -----------------------------------
-- Area: Dragon's Aery
-- NPC: <this space intentionally left blank>
-- @pos -20 -2 61 154
-----------------------------------
package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dragons_Aery/TextIDs");
------------... | gpl-3.0 |
Baylamon/Illarion-Content | item/id_2709_armourershammer.lua | 2 | 1051 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
salamader/ffxi-a | scripts/globals/items/lizard_egg.lua | 2 | 1121 | -----------------------------------------
-- ID: 4362
-- Item: lizard_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 5
-- Magic 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
Piotr3k1447/forgottenserver | data/creaturescripts/scripts/drop_loot.lua | 7 | 1279 | function onDeath(player, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
if player:hasFlag(PlayerFlag_NotGenerateLoot) or player:getVocation():getId() == VOCATION_NONE then
return true
end
local amulet = player:getSlotItem(CONST_SLOT_NECKLACE)
local isRedOrBlack = table.contains({SKU... | gpl-2.0 |
g0g0dancer/searework | LuaUI/Widgets/unit_teleport_ai_2.lua | 5 | 29450 | local version = "v0.845"
function widget:GetInfo()
return {
name = "Teleport AI (experimental) v2",
desc = version .. " Automatically scan any units around teleport beacon " ..
"(up to 600elmo, HLT range) and teleport them when it shorten travel time. "..
"This only apply to your unit & alli... | gpl-2.0 |
Myll/Dota-2-Building-Helper | game/dota_addons/samplerts/scripts/vscripts/libraries/timers.lua | 8 | 6313 | TIMERS_VERSION = "1.02"
--[[
-- A timer running every second that starts immediately on the next frame, respects pauses
Timers:CreateTimer(function()
print ("Hello. I'm running immediately and then every second thereafter.")
return 1.0
end
)
-- A timer running every second that starts 5 seconds... | gpl-3.0 |
Alathad/j-vfm | plugins/TH3BOSS2.lua | 3 | 2236 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ HELP2 : 2مساعدة ... | gpl-2.0 |
salamader/ffxi-a | scripts/zones/Temple_of_Uggalepih/npcs/_mf1.lua | 2 | 1379 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Door blocked by Temple Guardian
-- @pos -62 0 -99 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ke... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Balgas_Dais/bcnms/rank_2_mission.lua | 10 | 1783 | -----------------------------------
-- Area: Horlais Peak
-- Name: Mission Rank 2
-- @pos 299 -123 345 146
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Balgas_Dais/TextIDs... | gpl-3.0 |
jcdenton/mono-ui-cfg | AddOns/m_UI/elements/modules/slash_cmd.lua | 1 | 10679 | local addon, ns = ...
local cfg = ns.cfg
local A = ns.A
-- TABLE OF CONTENTS
--[[
/pnl shows grid for frame adjustments
/rl reload UI
/rc ready check
/cr class roles check
/gm open gm ticket
/dis <ADDONNAME> disables <ADDONNAME> add-on
/en <ADDONNAME> enables <ADDONNAME> add-o... | mit |
salamader/ffxi-a | scripts/zones/Southern_San_dOria/npcs/Aravoge_TK.lua | 2 | 5235 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aravoge, T.K.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run M... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/mobskills/MP_Absorption.lua | 10 | 1189 | ---------------------------------------------------
-- MP Absorption
-- Single target MP Drain. (Ignores shadows.)
-- Type: Magical
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
---------------------------------------------------
require("/scripts/globals/settings");
requ... | gpl-3.0 |
luakit/luakit | tests/async/test_clib_luakit.lua | 4 | 4241 | --- Test luakit clib functionality.
--
-- @copyright 2012 Mason Larobina <mason.larobina@gmail.com>
local assert = require "luassert"
local test = require "tests.lib"
local T = {}
T.test_luakit = function ()
assert.is_table(luakit)
-- Check metatable
local mt = getmetatable(luakit)
assert.is_function... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Southern_San_dOria/npcs/Mokop-Sankop.lua | 2 | 1456 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Mokop-sankop
-- Type: Conquest Troupe
-- @zone 230
-- @pos 104.232, 8.499, -63.834
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
jb1717/Algorithm-Implementations | Memoization/Lua/Yonaba/memoize_test.lua | 26 | 1080 | -- Tests for memoize.lua
local memoize = require 'memoize'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local... | mit |
salamader/ffxi-a | scripts/zones/Metalworks/npcs/Romualdo.lua | 2 | 1463 | -----------------------------------
-- Area: Metalworks
-- NPC: Romualdo
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Metalworks/TextI... | gpl-3.0 |
nublet/WoWCache | WTF/Account/869497#2/SavedVariables/ElvUI_SLE.lua | 1 | 117296 |
SLE_ArmoryDB = {
[80000] = {
["Specialization"] = {
[0] = {
},
[62] = {
22458, -- [1]
22461, -- [2]
22464, -- [3]
23072, -- [4]
22443, -- [5]
16025, -- [6]
22444, -- [7]
22445, -- [8]
22447, -- [9]
22453, -- [10]
22467, -- [11]
22470, -- [12]
22907, -- [1... | mit |
rnewton/tag | player.lua | 1 | 2605 | -- init class
Player = {}
Player.__index = Player
-- creates a new Player
function Player.create()
local self = {}
setmetatable(self,Player)
self:reset()
return self
end
-- inits/resets status
function Player:reset()
self.frame = 0
self.x = 224
self.y = 512
self.status = 0
end
-- checks for user input and ha... | mit |
itsTheFae/FaesMudlet2 | src/mudlet-lua/lua/GUIUtils.lua | 4 | 34056 | ----------------------------------------------------------------------------------
--- Mudlet GUI Utils
----------------------------------------------------------------------------------
--- The <i>gaugesTable table</i>. First we need to make this table which will be
--- used later to store important data in.
---
---... | gpl-2.0 |
salamader/ffxi-a | scripts/zones/Ifrits_Cauldron/npcs/Flame_Spout.lua | 2 | 1640 | ----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Flame Spout
-- @pos 205
-- @pos 193.967 -0.400 19.492 205
-----------------------------------
require("scripts/zones/Ifrits_Cauldron/TextIDs");
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
matinbot/installbot | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
g0g0dancer/searework | LuaUI/Widgets/chili/Controls/button.lua | 17 | 1147 | --//=============================================================================
Button = Control:Inherit{
classname= "button",
caption = 'button',
defaultWidth = 70,
defaultHeight = 20,
}
local this = Button
local inherited = this.inherited
--//============================================================... | gpl-2.0 |
nublet/WoWCache | WTF/Account/Poesboi/SavedVariables/DataStore_Garrisons.lua | 1 | 252435 |
DataStore_GarrisonsDB = {
["profileKeys"] = {
["Talambelen - Neptulon"] = "Poesboi",
["Grimsheepér - Neptulon"] = "Poesboi",
["Bonniè - Darksorrow"] = "Poesboi",
["Hanibull - Neptulon"] = "Poesboi",
["Bonrambo - Darksorrow"] = "Poesboi",
["Sickem - Darksorrow"] = "Poesboi",
["Shreduction - Neptulon"] = ... | mit |
kyle-wang/skynet | test/testpipeline.lua | 30 | 1265 | local skynet = require "skynet"
local redis = require "skynet.db.redis"
local conf = {
host = "127.0.0.1",
port = 6379,
db = 0
}
local function read_table(t)
local result = { }
for i = 1, #t, 2 do result[t[i]] = t[i + 1] end
return result
end
skynet.start(function()
local db = redis.connect(conf)
d... | mit |
Thermadyle/ships | entities/entities/ship_steer/shared.lua | 1 | 1565 | ENT.Base = "base_anim"
ENT.Model = Model("models/freeman/ship/steering_wheel_stand.mdl")
function ENT:SetupDataTables()
self:NetworkVar("Int", 0, "TurnDirection")
end
function ENT:Initialize()
self.turn_value = 0
self:SetModel(self.Model)
if SERVER then
self:PhysicsInit(SOLID_VPHYSI... | mit |
g0g0dancer/searework | units/cormist.lua | 3 | 5391 | unitDef = {
unitname = [[cormist]],
name = [[Slasher]],
description = [[Deployable Missile Vehicle (must stop to fire)]],
acceleration = 0.0354,
brakeRate = 0.0358,
buildCostEnergy = 140,
buildCostMetal = 140,
builder ... | gpl-2.0 |
TBSHRichard/ROBLOX-Markup-Language | lib/com/blacksheepherd/customobject/SpriteSheet.lua | 1 | 1739 | return {
Create = function(self)
local frame = Instance.new("Frame")
frame.ClipsDescendants = true
frame.Name = "SpriteSheetFrame"
frame.BackgroundTransparency = 1
frame.BorderSizePixel = 0
local spriteSheet = Instance.new("ImageLabel", frame)
spriteSheet.Name = "SpriteSheet"
spriteShe... | mit |
poire-z/koreader | spec/unit/switch_plugin_spec.lua | 13 | 5658 | describe("SwitchPlugin", function()
require("commonrequire")
local SwitchPlugin = require("ui/plugin/switch_plugin")
local createTestPlugin = function(default_enable, start, stop)
return SwitchPlugin:new({
name = "test_plugin",
menu_item = "test_plugin_menu",
men... | agpl-3.0 |
salamader/ffxi-a | scripts/globals/abilities/pets/spring_water.lua | 6 | 1103 | ---------------------------------------------------
-- Spring Water
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function OnAbilit... | gpl-3.0 |
Baylamon/Illarion-Content | monster/race_2_halfling/default.lua | 2 | 1189 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
salamader/ffxi-a | scripts/globals/items/tidal_talisman.lua | 6 | 2208 | -----------------------------------------
-- ID: 11290
-- Item: tidal talisman
--
-----------------------------------------
function onItemCheck(target)
local result = 56;
local zone = target:getZone();
if (zone == 238 or zone == 239 or zone == 240 or zone == 241 or zone == 242 or -- Windurst
zo... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Northern_San_dOria/npcs/Voidwatch_Purveyor.lua | 2 | 1087 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Voidwatch Purveyor
-- Type: Voidwatch NPC
-- @zone 231
-- @pos -241.000, 8.000, 62.000
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Southern_San_dOria/npcs/Carautia.lua | 36 | 2067 | -----------------------------------
-- Area: Carautia
-- NPC: Southern San d'Oria
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 39
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Aht_Urhgan_Whitegate/npcs/Runic_Portal.lua | 2 | 2651 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Runic Portal
-- Aht Urhgan Teleporter to Other Areas
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
package.loaded["scripts/globals/besieged"] = nil;
-------------------------------... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/weaponskills/one_inch_punch.lua | 6 | 1435 | -----------------------------------
-- One Inch Punch
-- Hand-to-Hand weapon skill
-- Skill level: 75
-- Delivers an attack that ignores target's defense. Amount ignored varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None ... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Windurst_Waters_[S]/npcs/Pelftrix.lua | 3 | 1209 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pelftrix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters_[S]/TextIDs");
-----------... | gpl-3.0 |
ESX-Org/es_extended | config/default/config.lua | 1 | 1739 | -- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... | gpl-3.0 |
g0g0dancer/searework | effects/nanobomb.lua | 25 | 1716 | -- nanobomb
return {
["nanobomb"] = {
usedefaultexplosions = false,
groundflash = {
alwaysvisible = false,
circlealpha = 1,
circlegrowth = 10,
flashalpha = 0.5,
flashsize = 100,
ttl = 15,
color = {
[1] = 0,
... | gpl-2.0 |
salamader/ffxi-a | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fayeewah.lua | 3 | 1163 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fayeewah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
--------... | gpl-3.0 |
fastturtle/torch-distributions | distributions/tests/testCauchy.lua | 3 | 2258 | require 'distributions'
require 'totem'
local myTest = {}
local tester = totem.Tester()
function myTest.cauchyPDF()
tester:assertalmosteq(distributions.cauchy.pdf(-0.5, 0, 1), 0.254648, 1e-5)
tester:assertalmosteq(distributions.cauchy.pdf(0, 0, 1), 1.0/math.pi, 1e-5)
tester:assertalmosteq(distributions.... | bsd-3-clause |
felixguendling/osrm-backend | profiles/lib/pprint.lua | 20 | 14688 | -- Easy way to print data structes
-- From https://github.com/jagt/pprint.lua, file is license as pubic domain
local pprint = { VERSION = '0.1' }
pprint.defaults = {
-- type display trigger, hide not useful datatypes by default
-- custom types are treated as table
show_nil = true,
show_boolean = true,... | bsd-2-clause |
raboof/notion | contrib/scripts/tabmenu.lua | 3 | 1642 | -- Authors: Tuomo Valkonen
-- License: Unknown
-- Last Changed: 2007
--
-- tabmenu.lua
--
-- By Tuomo Valkonen, 2007.
--
-- This script introduces a tabmenu function that can be used to
-- display a grabmenu corresponding to the tabs of a frame. It can
-- be useful if you choose to disable the tab-bars of frames, to
--... | lgpl-2.1 |
CapsAdmin/goluwa | engine/lua/libraries/graphics/render3d/shadow_map.lua | 1 | 2556 | local render3d = ... or _G.render3d
local SHADER = {
name = "shadow_map",
force = true,
vertex = {
mesh_layout = {
{pos = "vec3"},
{uv = "vec2"},
{normal = "vec3"},
},
source = "gl_Position = g_projection_view_world * vec4(pos, 1.0);",
},
fragment = {
mesh_layout = {
{uv = "vec2"},
},
sourc... | gpl-3.0 |
disslove/J.R-Bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
CapsAdmin/goluwa | game/lua/modules/luacheck/stages/detect_bad_whitespace.lua | 1 | 2912 | local stage = {}
stage.warnings = {
["611"] = {message_format = "line contains only whitespace", fields = {}},
["612"] = {message_format = "line contains trailing whitespace", fields = {}},
["613"] = {message_format = "trailing whitespace in a string", fields = {}},
["614"] = {message_format = "trailing whitespace ... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Port_Bastok/npcs/Galvin.lua | 36 | 1464 | -----------------------------------
-- Area: Port Bastok
-- NPC: Galvin
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Newton_Movalpolos/TextIDs.lua | 4 | 1343 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6375; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6378; -- Obtained: <item>
GIL_OBTAINED = 6379; -- Obtained <number> gil
KEYITEM_OBTAINED = 6381; -- Obtain... | gpl-3.0 |
KohaiKhaos/modified-MWDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/functions/entity.lua | 2 | 33412 | --entity based functions, version 42.06a
--[[
changeCreature(entity,stype,mobj,sobj,direction,verbose) - Changes the creatures available to the entity
changeInorganic(entity,stype,mobj,sobj,direction,verbose) - Changes the inorganics available to the entity
changeItem(entity,stype,mobj,sobj,direction,verbose) - ... | mit |
salamader/ffxi-a | scripts/zones/Sacrificial_Chamber/bcnms/temple_of_uggalepih.lua | 4 | 2929 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: Zilart Mission 4
-- @pos 299 0 349 163
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyit... | gpl-3.0 |
KohaiKhaos/modified-MWDF | MWDF Project/Dwarf Fortress/hack/scripts/modtools/syndrome-trigger.lua | 2 | 3418 | -- triggers scripts when a syndrome is applied
--author expwnent
local usage = [====[
modtools/syndrome-trigger
=========================
Triggers dfhack commands when syndromes are applied to units.
Arguments::
-clear
clear all triggers
-syndrome name
specify the name of a syndr... | mit |
male-puppies/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
Baylamon/Illarion-Content | monster/race_52_raptor/id_524_fire_raptor.lua | 1 | 1656 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
salamader/ffxi-a | scripts/globals/items/timbre_timbers_taco.lua | 2 | 1505 | -----------------------------------------
-- ID: 5173
-- Item: timbre_timbers_taco
-- Food Effect: 1hour, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 3
-- Ranged Accuracy % 8 (cap 15)
-----------------------------------------
requir... | gpl-3.0 |
ArmanIr/olalala | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
salamader/ffxi-a | scripts/zones/Cloister_of_Storms/npcs/Lightning_Protocrystal.lua | 2 | 1524 | -----------------------------------
-- Area: Cloister of Storms
-- NPC: Lightning Protocrystal
-- Involved in Quests: Trial by Lightning
-- @zone 202
-- @pos 534.5 -13 492
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Halvung/npcs/Mining_Point.lua | 6 | 1076 | -----------------------------------
-- Area: Halvung
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Halvung/TextIDs");
-------------------------... | gpl-3.0 |
CapsAdmin/goluwa | framework/lua/libraries/graphics/fonts/fonts/gmod.lua | 1 | 2307 | if PLATFORM ~= "gmod" then return end
local cam_PushModelMatrix = gmod.cam.PushModelMatrix
local cam_PopModelMatrix = gmod.cam.PopModelMatrix
local GetGmodWorldMatrix = GetGmodWorldMatrix
local prettytext = gmod.requirex("pretty_text")
local fonts = ... or _G.fonts
local META = prototype.CreateTemplate("gmod_font")
f... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/spells/cure_iii.lua | 2 | 3712 | -----------------------------------------
-- Spell: Cure III
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/global... | gpl-3.0 |
igwtech/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
jb1717/Algorithm-Implementations | Quick_Sort/Lua/Yonaba/quick_sort.lua | 27 | 1335 | -- (In-place) Quicksort implementation
-- See : http://en.wikipedia.org/wiki/Quicksort#In-place_version
-- Partitions a portion of a list
local function partition(list, comp, left, right, pivot_index)
local pivot_value = list[pivot_index]
list[pivot_index], list[right] = list[right], list[pivot_index]
local store_i... | mit |
CapsAdmin/goluwa | core/lua/modules/nattlua/nattlua/other/coverage.lua | 1 | 3354 | local coverage = {}
_G.__COVERAGE = _G.__COVERAGE or {}
coverage.collected = {}
local nl = require("nattlua")
function coverage.Preprocess(code, key)
local expressions = {}
local function inject_call_expression(parser, node, start, stop)
local call_expression = parser:ParseString(" Æ(" .. start .. "," .. stop .. ... | gpl-3.0 |
nemerle/Segs | Data/scripts/Hazard_01_01/Spawndefs/Hellions_Perez.spawndef.lua | 3 | 5408 | --This is a rank table
--There could be multiple tables to generate spawns from
local Hellions_Ranks_01 = {
["Underlings"] = {
--NA
},
["Minions"] = {
"Thug_Hellion_01", "Thug_Hellion_02", "Thug_Hellion_03",
"Thug_Hellion_04", "Thug_Hellion_05", "Thug_H... | bsd-3-clause |
GreatBigBushyBeard/PAYDAY-2-BeardLib | Classes/UI/Dialogs/MenuDialog.lua | 1 | 6624 | MenuDialog = MenuDialog or class()
MenuDialog.type_name = "MenuDialog"
local Managers = BeardLib.Managers
function MenuDialog:init(params, menu)
if self.type_name == MenuDialog.type_name then
params = params and clone(params) or {}
end
self._default_width = self._default_width or 420
self._no_... | mit |
jcdenton/mono-ui-cfg | AddOns/m_Bags/cargBags/base-add/filters.sieve.lua | 1 | 4436 | --[[
LICENSE
cargBags: An inventory framework addon for World of Warcraft
Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com>
cargBags is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Founda... | mit |
GTWCode/GTW-RPG | [resources]/GTWgrouplogs/logs.lua | 2 | 3499 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: El Med, Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.co... | bsd-2-clause |
g0g0dancer/searework | LuaUI/Widgets/unit_waypoint_dragger_2.lua | 7 | 11908 | local sprGetActiveCommand = Spring.GetActiveCommand
local sprGetDefaultCommand = Spring.GetDefaultCommand
local sprGetGameSeconds = Spring.GetGameSeconds
local sprGetSelectedUnits = Spring.GetSelectedUnits
local sprGetCommandQueue = Spring.GetCommandQueue
local sprGetMouseState = Spring.GetMouseS... | gpl-2.0 |
Baylamon/Illarion-Content | quest/pesnar_rolemnes_213_runewick.lua | 3 | 163716 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
GTWCode/GTW-RPG | [resources]/GTWcore/s_core.lua | 2 | 11281 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
salamader/ffxi-a | scripts/globals/weaponskills/Cataclysm.lua | 12 | 1353 | -----------------------------------
-- Skill level: 290
-- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP.
-- Generates a significant amount of Enmity.
-- Does not stack with Sneak Attack
-- Aligned with Aqua Gorget.
-- Aligned with Aqua Belt.
-- Properties:
-- Eleme... | gpl-3.0 |
salamader/ffxi-a | scripts/zones/Bastok_Markets/npcs/_6j4.lua | 2 | 1043 | -----------------------------------
-- Area: Bastok Markets
-- Door: "House"
-- @zone 235
-- @pos -96, -6, -90
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/TextIDs");
-------------... | gpl-3.0 |
g0g0dancer/searework | scripts/cormist.lua | 2 | 7966 | include "constants.lua"
local base, aim, rockbase, body, turret, arms, firepoint1, firepoint2, exhaust1, exhaust2, gun, cab, connection,
rwheel1, rwheel2, rwheel3,
lwheel1, lwheel2, lwheel3,
gs1r, gs2r, gs3r,
gs1l, gs2l, gs3l
= piece(
"base", "aim", "rockbase", "body", "turret", "arms", "firepoint1", "firepoint2... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.