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 |
|---|---|---|---|---|---|
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/HomePoint#2.lua | 17 | 1262 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#2
-- @pos 10 -0.2 95 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Northern_San_dOria/TextIDs");
require(... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Core/DBM-Flash.lua | 1 | 1263 | -- globals
DBM.Flash = {}
-- locals
local flashFrame = DBM.Flash
local r, g, b, t, a
local duration
local elapsed = 0
local totalRepeat = 0
--------------------
-- Create Frame --
--------------------
local frame = CreateFrame("Frame", "DBMFlash", UIParent)
frame:Hide()
frame:SetBackdrop({bgFile = "Interface\\Toolt... | gpl-2.0 |
Python1320/wire | lua/wire/stools/digitalscreen.lua | 9 | 1091 | WireToolSetup.setCategory( "Visuals/Screens" )
WireToolSetup.open( "digitalscreen", "Digital Screen", "gmod_wire_digitalscreen", nil, "Digital Screens" )
if CLIENT then
language.Add( "tool.wire_digitalscreen.name", "Digital Screen Tool (Wire)" )
language.Add( "tool.wire_digitalscreen.desc", "Spawns a digital screen,... | apache-2.0 |
mortezamosavy999/monsterm | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
lcfx/etet-dev-utils | itemdef.lua | 1 | 5152 | dofile("lib/parser.lua")
function printf(fmt, ...)
io.stdout:write(string.format(fmt, ...))
end
function stringParser(value)
if value == "NULL" then
return ""
end
return value
end
function intParser(value)
if value == "NULL" then
return -1
end
return tonumber(value) or -1
end
-- 一番長いのが13文字なので
-- 16文字目に合わ... | unlicense |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/Skins/skins/DBM.lua | 1 | 11953 | ----------------------------------------------------------------------------------------
-- DBM skin(by Affli)
----------------------------------------------------------------------------------------
if not Qulight["addonskins"].DBM == true then return end
local forcebosshealthclasscolor = false -- Forces BossHealth ... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Meriphataud_Mountains/Zone.lua | 17 | 4713 | -----------------------------------
--
-- Zone: Meriphataud_Mountains (119)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Meriphatau... | gpl-3.0 |
adamjedlicka/ForgeUI | ForgeUI_InterfaceMenuList/ForgeUI_InterfaceMenuList.lua | 1 | 16603 | -----------------------------------------------------------------------------------------------
-- Client Lua Script for ForgeUI_InterfaceMenuList
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
require "GameL... | mit |
Python1320/wire | lua/wire/gates/memory.lua | 17 | 11088 | --[[
Memory Gates
]]
GateActions("Memory")
GateActions["latch"] = {
name = "Latch (Edge triggered)",
inputs = { "Data", "Clk" },
output = function(gate, Data, Clk)
local clk = (Clk > 0)
if (gate.PrevValue ~= clk) then
gate.PrevValue = clk
if (clk) then
gate.LatchStore = Data
end
end
return g... | apache-2.0 |
n0xus/darkstar | scripts/zones/Giddeus/npcs/Harvesting_Point.lua | 29 | 1095 | -----------------------------------
-- Area: Giddeus
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Giddeus/TextIDs");
-----------------... | gpl-3.0 |
realglobe-Inc/edo-auth | lib/table.lua | 1 | 2281 | -- Copyright 2015 realglobe, Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to... | apache-2.0 |
RockySeven3161/Unknown.. | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Azurithenkel/dotfiles | .config/awesome/rc.lua | 1 | 19931 | -- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = r... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/libs/nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | gpl-2.0 |
n0xus/darkstar | scripts/globals/abilities/call_beast.lua | 18 | 1073 | -----------------------------------
-- Ability: Call Beast
-- Calls a beast to fight by your side.
-- Obtained: Beastmaster Level 23
-- Recast Time: 5:00
-- Duration: Dependent on jug pet used.
-----------------------------------
require("scripts/globals/common");
require("scripts/globals/status");
---------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Kazham/npcs/Ronta-Onta.lua | 19 | 4061 | -----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- @pos 100 -15 -97 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
TheDialord/plugin-httpcheck | init.lua | 2 | 1508 |
cal framework = require('./modules/framework.lua')
local Plugin = framework.Plugin
local DataSourcePoller = framework.DataSourcePoller
local WebRequestDataSource = framework.WebRequestDataSource
local PollerCollection = framework.PollerCollection
local url = require('url')
local auth = framework.util.auth
local para... | apache-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-pbx/luasrc/model/cbi/pbx.lua | 146 | 4360 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 Foundation, either version 3 of the License, or
... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua | 59 | 3379 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
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
]]--
loc... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Crawlers_Nest/npcs/Treasure_Chest.lua | 17 | 3197 | -----------------------------------
-- Area: Crawler Nest
-- NPC: Treasure Chest
-- Involved In Quest: Enveloped in Darkness
-- @pos 41 0.1 -314 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Cloister_of_Flames/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: Cloister_of_Flames (207)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Flames/TextIDs");
---... | gpl-3.0 |
n0xus/darkstar | scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua | 19 | 2214 | -----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- @pos 334 19 -60 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/La_Thei... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WoD/IronDocks/Nokgar.lua | 1 | 2853 | local mod = DBM:NewMod(1235, "DBM-Party-WoD", 4, 558)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 12458 $"):sub(12, -3))
mod:SetCreatureID(81297, 81305)
mod:SetEncounterID(1749)
mod:SetZone()
mod:SetBossHPInfoToHighest(false)
mod:RegisterCombat("combat")
mod:SetBossHealthInfo(81297)
mod:Regist... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Bastok_Mines/npcs/Conrad.lua | 17 | 1874 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Conrad
-- Outpost Teleporter NPC
-- @pos 94.457 -0.375 -66.161 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
n0xus/darkstar | scripts/globals/effects/fan_dance.lua | 18 | 1201 | -----------------------------------
--
-- EFFECT_FAN_DANCE
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/src/base/table.lua | 4 | 3340 | --
-- table.lua
-- Additions to Lua's built-in table functions.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
--
-- Returns true if the table contains the specified value.
--
function table.contains(t, value)
for _, v in pairs(t) do
if v == value then return true end
end
return false
... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/apple_pie_+1.lua | 35 | 1305 | -----------------------------------------
-- ID: 4320
-- Item: Apple Pie +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 4
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Nashmau/npcs/Neneroon.lua | 38 | 1033 | ----------------------------------
-- Area: Nashmau
-- NPC: Neneroon
-- Type: Item Deliverer
-- @pos -0.866 -5.999 36.942 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-------------------... | gpl-3.0 |
LuaDist2/lua-cassandra | spec/01-unit/02-buffer_spec.lua | 2 | 2293 | local Buffer = require("cassandra.cql").buffer
describe("Buffer", function()
-- protocol types (different than CQL types)
local fixtures = {
byte = {1, 2, 3},
int = {0, 4200, -42},
short = {0, 1, -1, 12, 13},
string = {"hello world"},
long_string = {string.rep("blob", 1000), ""},
uuid = {"1... | mit |
crscardellino/torch-ml-tools | SparseDataset.lua | 1 | 3946 | --[[
Copyright (c) 2016, Cristian Cardellino.
This work is licensed under the "New BSD License".
See LICENSE for more information.
]]--
local SparseDataset = torch.class('mltools.SparseDataset')
function SparseDataset:__init(fname_or_indices, zero_based_or_values, target, shape)
if type(fname_or_indices) == 's... | bsd-3-clause |
gpedro/server | data/scripts/otstd/actions/make_bread.lua | 3 | 2544 | otstd.make_bread = {}
otstd.ovens = {
[1786] = {},
[1788] = {},
[1790] = {},
[1792] = {},
[6356] = {},
[6358] = {},
[6360] = {},
[6362] = {}
}
function otstd.make_bread.use_wheat_on_mill_callback(event)
local player = event.player
local item = event.item
local toPos = event.targetPosition
local ... | gpl-2.0 |
Python1320/wire | lua/wire/client/hlzasm/hc_syntax.lua | 8 | 48757 | --------------------------------------------------------------------------------
-- ZASM2 compatible syntax
--------------------------------------------------------------------------------
-- Syntax lookup for vector definitions
local VectorSyntax = {
FLOAT = { {} },
SCALAR = { {} },
VECTOR1F = { {"x"} }... | apache-2.0 |
n0xus/darkstar | scripts/globals/spells/yurin_ichi.lua | 18 | 1597 | -----------------------------------------
-- Spell: Yurin: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
xubigshu/skynet | service/multicastd.lua | 47 | 5408 | local skynet = require "skynet"
local mc = require "multicast.core"
local datacenter = require "datacenter"
local harbor_id = skynet.harbor(skynet.self())
local command = {}
local channel = {}
local channel_n = {}
local channel_remote = {}
local channel_id = harbor_id
local NORET = {}
local function get_address(t, i... | mit |
MHPG/MHP | plugins/Boobs.lua | 150 | 1613 | 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 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/UF/Raid/elements/RaidDebuffs.lua | 1 | 6546 |
----------------------------------------------------------------------------------------
-- Based on oUF_RaidDebuffs(by Yleaf)
----------------------------------------------------------------------------------------
local _, ns = ...
local oUF = ns.oUF
local CleanseName = GetSpellInfo(4987)
local bossDebuffPrio = 99... | gpl-2.0 |
Python1320/wire | lua/wire/stools/simple_explosive.lua | 9 | 1897 | WireToolSetup.setCategory( "Physics" )
WireToolSetup.open( "simple_explosive", "Explosives (Simple)", "gmod_wire_simple_explosive", nil, "Simple Explosives" )
if CLIENT then
language.Add( "tool.wire_simple_explosive.name", "Simple Wired Explosives Tool" )
language.Add( "tool.wire_simple_explosive.desc", "Creates a s... | apache-2.0 |
n0xus/darkstar | scripts/zones/The_Eldieme_Necropolis/TextIDs.lua | 9 | 2300 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6543; -- Obtained: <item>
GIL_OBTAINED = 6544; -- Obtained <number> gil
KEYITEM_OBTAINED = 6546; -- Obtain... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/UF/Raid/elements/range.lua | 1 | 4933 | local parent, ns = ...
local oUF = ns.oUF or oUF
-- oUF range element with code sniplets from TomTom
local _FRAMES = {}
local OnRangeFrame
local update = .20
local UnitInRange, UnitIsConnected = UnitInRange, UnitIsConnected
local SetMapToCurrentZone, WorldMapFrame = SetMapToCurrentZone, WorldMapFrame
local GetPlayer... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/samples/scribble.wx.lua | 4 | 28449 | -------------------------------------------------------------------------=---
-- Name: scribble.wx.lua
-- Purpose: 'Scribble' wxLua sample
-- Author: J Winwood, John Labenski
-- Modified by: Thanks to Peter Prade and Nick Trout for fixing
-- the bug in the for loop in DrawPoints()
-- Create... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/npcs/Armoury_Crate.lua | 25 | 8574 | -----------------------------------
-- Area: Temenos
-- NPC: Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Temenos/Text... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Windurst_Walls/npcs/Pakke-Pokke.lua | 38 | 1040 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Pakke-Pokke
-- Type: Standard NPC
-- @zone: 239
-- @pos -3.464 -17.25 125.635
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
---------... | gpl-3.0 |
sprinkler/rainmachine-developer-resources | api-lua/log.lua | 1 | 1725 | debugMode = true
_PLUGIN_NAME = "rainmachine-api"
local function dump(t)
if t == nil then return "nil" end
local sep = ""
local str = "{ "
for k,v in pairs(t) do
local val
if type(v) == "table" then
val = dump(v)
elseif type(v) == "function" then
val = "(... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua | 16 | 2985 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- Teleports Players to Sauromugue_Champaign_S
-- @pos 369 8 -227 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 17 | 2294 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- @pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
alexandre-mbm/SimTools | RandomWeather/Lua/vstruct/io/f.lua | 4 | 3238 | -- IEEE floating point floats, doubles and quads
local struct = require "vstruct"
local io = require "vstruct.io"
local sizes = {
[4] = {1, 8, 23};
[8] = {1, 11, 52};
[16] = {1, 15, 112};
}
local function reader(data, size_exp, size_fraction)
local fraction, exponent, sign
local endian = io("endianness"... | mit |
n0xus/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
Python1320/wire | lua/wire/stools/adv_input.lua | 9 | 2315 | WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" )
WireToolSetup.open( "adv_input", "Adv. Input", "gmod_wire_adv_input", nil, "Adv Inputs" )
if CLIENT then
language.Add( "tool.wire_adv_input.name", "Adv. Input Tool (Wire)" )
language.Add( "tool.wire_adv_input.desc", "Spawns a adv. input for use with t... | apache-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Highmaul/localization.en.lua | 1 | 3110 | local L
---------------
-- Kargath Bladefist --
---------------
L= DBM:GetModLocalization(1128)
L:SetTimerLocalization({
timerSweeperCD = DBM_CORE_AUTO_TIMER_TEXTS.next:format((GetSpellInfo(177776)))
})
L:SetOptionLocalization({
timerSweeperCD = DBM_CORE_AUTO_TIMER_OPTIONS.next:format(177776),
countdownSweepe... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua | 35 | 1549 | -----------------------------------------
-- ID: 4601
-- Item: Bowl of Sopa de Pez Blanco
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 12
-- Dexterity 6
-- Mind -4
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
requir... | gpl-3.0 |
chawan/RepHelper | content.lua | 1 | 128311 | function RPH_InitEnFactionGains(guildName, guildCapBase)
local zone = {}
-- Kalimdor
zone.Mulgore = 7
zone.Darkshore = 62
zone.Thunder_Bluff = 88
zone.The_Exodar = 103
zone.Echo_Isles = 463
zone.Camp_Narache = 462
zone.Silithus = 81
zone.Felwood = 77
zone.Mount_Hyjal = 198
zone.Teldrassil = 57
zone.Moonglade = 80
zone.... | gpl-3.0 |
xennygrimmato/nmt | src/OpenNMT/onmt/utils/Parallel.lua | 8 | 5209 | --[[
This file provides generic parallel class - allowing to run functions
in different threads and on different GPU
]]--
local Parallel = {
_pool = nil,
count = 1,
gradBuffer = torch.Tensor()
}
-- Synchronizes the current stream on dst device with src device. This is only
-- necessary if we are not on the ... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Porter_Moogle.lua | 41 | 1553 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 50
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urh... | gpl-3.0 |
Azmaedus/GarrisonJukeBox | libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua | 7 | 20244 | --[[-----------------------------------------------------------------------------
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 41
local AceGUI = LibStub and LibStub("A... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/modules/Power.lua | 1 | 3840 |
Skada:AddLoadableModule("Power", function(Skada, L)
if Skada.db.profile.modulesBlocked.Power then return end
local mod = Skada:NewModule(L["Mana gained"])
local playermod = Skada:NewModule(L["Mana gain spell list"])
local function log_gain(set, gain)
-- Get the player from set.
local player = Skada:get_playe... | gpl-2.0 |
umbrellaTG/self | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackTemple/ShadeOfAkama.lua | 1 | 1050 | local mod = DBM:NewMod("Akama", "DBM-BlackTemple")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 501 $"):sub(12, -3))
mod:SetCreatureID(23421, 22841, 23215, 23216)
mod:SetModelID(21357)
mod:SetZone()
mod:RegisterCombat("combat")
mod:SetWipeTime(30)
mod:RegisterEventsInCombat(
"UNIT_DIED"
)
loca... | gpl-2.0 |
lduboeuf/lit | libs/db.lua | 4 | 6459 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
n0xus/darkstar | scripts/zones/Bastok_Mines/npcs/Davyad.lua | 17 | 1205 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Davyad
-- Involved in Mission: Bastok 3-2
-- @zone 234
-- @pos 83 0 30
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackwingDescent/localization.ru.lua | 1 | 9088 | if GetLocale() ~= "ruRU" then return end
local L
-------------------------------
-- Dark Iron Golem Council --
-------------------------------
L = DBM:GetModLocalization(169)
L:SetWarningLocalization({
SpecWarnActivated = "Смена цели на: %s!",
specWarnGenerator = "Генератор энергии - Двигайтесь %s!"
})
L:S... | gpl-2.0 |
MOSAVI17/Informationbot | plugins/weater.lua | 1 | 1444 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
local b, c, h = http.request(url)
if c ~= 200 then return nil end
local weather = ... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/plate_of_boiled_barnacles_+1.lua | 36 | 1282 | -----------------------------------------
-- ID: 5981
-- Item: Plate of Boiled Barnacles +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Charisma -2
-- Defense % 26 Cap 135
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Bastok_Markets/npcs/Rabid_Wolf_IM.lua | 28 | 4892 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Rabid Wolf, I.M.
-- 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 Mis... | gpl-3.0 |
n0xus/darkstar | scripts/globals/weaponskills/black_halo.lua | 30 | 1536 | -----------------------------------
-- Black Halo
-- Club weapon skill
-- Skill level: 230
-- In order to obtain Black Halo, the quest Orastery Woes must be completed.
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Thunder Gorget & Breeze ... | gpl-3.0 |
misterdustinface/gamelib-common-polyglot | src/param-adjuster/layout-partials/int32-editor.lua | 1 | 17137 | local datastore = require 'datastore'
local constants = require 'constants'
local widgets = require 'widgets'
local style = require 'style'
local fonts = require 'fonts'
local rects = require 'rects'
local icons = require 'icons'
local new_action = require 'touch-action'
local txtfield = require 'layout-partials.txt-fi... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Selbina/npcs/Mendoline.lua | 17 | 1185 | -----------------------------------
-- Area: Selbina
-- NPC: Mendoline
-- Guild Merchant NPC: Fishing Guild
-- @pos -13.603 -7.287 10.916 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
QVaucher/Gwynt-Lua | lib/suit/imagebutton.lua | 8 | 1338 | -- This file is part of SUIT, copyright (c) 2016 Matthias Richter
local BASE = (...):match('(.-)[^%.]+$')
return function(core, normal, ...)
local opt, x,y = core.getOptionsAndSize(...)
opt.normal = normal or opt.normal or opt[1]
opt.hovered = opt.hovered or opt[2] or opt.normal
opt.active = opt.active or opt[3] ... | mit |
n0xus/darkstar | scripts/zones/Gustav_Tunnel/npcs/qm2.lua | 19 | 2008 | -----------------------------------
-- Area: Gustav tunnel
-- NPC: qm2 (???)
-- bastok 9-1
-- @zone 212
-- @pos -130 1.256 252.696
-----------------------------------
package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
Python1320/wire | lua/wire/client/texteditor.lua | 3 | 111941 | --
-- Expression 2 Text Editor for Garry's Mod
-- Andreas "Syranide" Svensson, me@syranide.com
--
local string_Explode = string.Explode
local table_concat = table.concat
local string_sub = string.sub
local table_remove = table.remove
local math_floor = math.floor
local math_Clamp = math.Clamp
local math_ceil = math.ce... | apache-2.0 |
n0xus/darkstar | scripts/zones/Port_San_dOria/npcs/Anton.lua | 17 | 1776 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Anton
-- @zone 232
-- @pos -19 -8 27
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyite... | gpl-3.0 |
mahdidoraj/secretbot | plugins/anti_chat.lua | 62 | 1069 |
antichat = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_chat'] then
if data[tostring(msg.to.id)]['... | gpl-2.0 |
Python1320/wire | lua/wire/stools/clutch.lua | 9 | 10091 | WireToolSetup.setCategory( "Physics" )
WireToolSetup.open( "clutch", "Clutch", "gmod_wire_clutch", nil, "Clutchs" )
if CLIENT then
language.Add( "Tool.wire_clutch.name", "Clutch Tool (Wire)" )
language.Add( "Tool.wire_clutch.desc", "Control rotational friction between props" )
language.Add( "Tool.wire_clut... | apache-2.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 69 | 2769 | --[[
Luci statistics - interface plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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.... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-DragonSoul/localization.kr.lua | 1 | 6756 | if GetLocale() ~= "koKR" then return end
local L
-------------
-- Morchok --
-------------
L= DBM:GetModLocalization(311)
L:SetWarningLocalization({
KohcromWarning = "%s: %s"
})
L:SetTimerLocalization({
KohcromCD = "크초르모 시전: %s"
})
L:SetOptionLocalization({
KohcromWarning = "$journal:4262가 사용한 주문 알림 보기(영웅 난이도)... | gpl-2.0 |
alirezanile/Ldcxvx | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
erfan01311/supergroups | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
shayanchabok007/antispamfox | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
Primordus/lua-quickcheck | lqc/threading/thread_pool.lua | 2 | 2446 |
--- Module for creating a thread pool, based on Lua Lanes.
-- @module lqc.threading.thread_pool
-- @alias ThreadPool
local MsgProcessor = require 'lqc.threading.msg_processor'
local map = require 'lqc.helpers.map'
local lanes = require('lanes').configure { with_timers = false }
--- Checks if x is a positive intege... | mit |
MOSAVI17/Informationbot | plugins/dice.lua | 16 | 1228 | local command = 'roll <nDr>'
local doc = [[```
/roll <nDr>
Returns a set of dice rolls, where n is the number of rolls and r is the range. If only a range is given, returns only one roll.
```]]
local triggers = {
'^/roll[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text_lower:input()
if... | gpl-2.0 |
qllpa/TAEFWN | plugins/addsudo.lua | 1 | 1973 |
--[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Quicksand_Caves/npcs/qm7.lua | 17 | 1904 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ???
-- Involved in Mission: The Mithra and the Crystal (Zilart 12)
-- @pos -504 20 -419 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Cid.lua | 17 | 11184 | -----------------------------------
-- Area: Metalworks
-- NPC: Cid
-- Starts & Finishes Quest: Cid's Secret, The Usual, Dark Puppet (start)
-- Involved in Mission: Bastok 7-1
-- @pos -12 -12 1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_iz2.lua | 19 | 1971 | -----------------------------------
-- Area: The Garden of RuHmet
-- NPC: _iz2 (Ebon_Panel)
-- @pos 422.351 -5.180 -100.000 35 | Hume Tower
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Garden_o... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-Cataclysm/localization.de.lua | 1 | 16391 | if GetLocale() ~= "deDE" then return end
local L
-------------------------
-- Blackrock Caverns --
--------------------------
-- Rom'ogg Bonecrusher --
--------------------------
L= DBM:GetModLocalization(105)
-------------------------------
-- Corla, Herald of Twilight --
-------------------------------
L= DBM:Ge... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luajson/lua/json/encode/strings.lua | 3 | 1990 | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local string_char = require("string").char
local pairs = pairs
local util_merge = require("json.util").merge
module("json.encode.strings")
local normalEncodingMap = {
['"'] = '\\"',
['\\'] = '\\\\',
['/']... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Windurst_Walls/npcs/_6n8.lua | 17 | 1309 | -----------------------------------
-- Area: Windurst Walls
-- Door: Priming Gate
-- Involved in quest: Toraimarai Turmoil
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
-----------------------------... | gpl-3.0 |
goblinor/BomBus1 | plugins/list1.lua | 1 | 2495 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : reza < @Yagop >
# our channel: @Ntflight
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do
local ... | gpl-2.0 |
n0xus/darkstar | scripts/globals/weaponskills/flat_blade.lua | 18 | 1513 | -----------------------------------
-- Flat Blade
-- Sword weapon skill
-- Skill Level: 75
-- Stuns enemy. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300... | gpl-3.0 |
lduboeuf/lit | deps/require.lua | 2 | 8854 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
mstorchak/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/cpu.lua | 74 | 1429 | -- stat/cpu collector
local function scrape()
local stat = get_contents("/proc/stat")
-- system boot time, seconds since epoch
metric("node_boot_time_seconds", "gauge", nil,
string.match(stat, "btime ([0-9]+)"))
-- context switches since boot (all CPUs)
metric("node_context_switches_total", "counter", n... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/samples/calculator.wx.lua | 2 | 14664 | -------------------------------------------------------------------------=---
-- Name: Calculator.wx.lua
-- Purpose: Calculator wxLua sample
-- Author: J Winwood
-- Based on the wxWidgets sample by Marco Ghislanzoni
-- Created: March 2002
-- Updated January 2003 to use XML resource... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Air_Elemental.lua | 16 | 1706 | -----------------------------------
-- Area: Temenos E T
-- NPC: Air_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Five_of_Spades.lua | 17 | 1483 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Five of Spades
-- Invloved in quests: A Greeting Cardian
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/... | gpl-3.0 |
DEVOmarReal/Omar-Real | plugins/weclome.lua | 1 | 3355 | do
local function run(msg, matches)
local r = get_receiver(msg)
local welc = 'oo:'..msg.to.id
local bay = 'zz:'..msg.to.id
local xxxx = redis:get(welc)
local zzzz = redis:get(bay)
if is_momod(msg) and matches[1]== 'ضع الترحيب' then
redis:set(welc, matches[2])
local text ... | gpl-2.0 |
Azmaedus/GarrisonJukeBox | libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 7 | 9849 | local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local pairs, assert, type = pairs, assert, type
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame, UIParent = CreateFrame, UIParent
-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
-- List them here for Mikk's FindGlobals... | gpl-2.0 |
RyanTech/LoveLink | Resources/Deprecated.lua | 8 | 32784 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of _G will be deprecated begin
local function ccpLineIntersect(a,b,c,d,s,t)
deprecatedTip("ccpLineIntersect","CCPoint:isLineIntersect")
... | mit |
n0xus/darkstar | scripts/globals/items/warm_egg.lua | 35 | 1186 | -----------------------------------------
-- ID: 4602
-- Item: warm_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 18
-- Magic 18
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/libs/json/luasrc/json.lua | 50 | 13333 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
ht... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Cape_Teriggan/npcs/Cermet_Headstone.lua | 17 | 3797 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Wind Headstone)
-- @pos -107 -8 450 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.