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 |
|---|---|---|---|---|---|
davymai/CN-QulightUI | Interface/AddOns/DBM-DragonSoul/localization.fr.lua | 1 | 5201 | if GetLocale() ~= "frFR" then return end
local L
-------------
-- Morchok --
-------------
L= DBM:GetModLocalization(311)
L:SetWarningLocalization({
KohcromWarning = "%s : %s"
})
L:SetTimerLocalization({
KohcromCD = "Kohcrom mimicks %s"
})
L:SetOptionLocalization({
KohcromWarning = "Alerte lorsque Kohcrom imite... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Olaf.lua | 34 | 1194 | -----------------------------------
-- Area: Metalworks
-- NPC: Olaf
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Metalworks/TextIDs");
----... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-AQ40/TwinEmps.lua | 1 | 1205 | local mod = DBM:NewMod("TwinEmpsAQ", "DBM-AQ40", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 502 $"):sub(12, -3))
mod:SetCreatureID(15276, 15275)
mod:SetModelID(15778)
mod:RegisterCombat("combat")
mod:SetBossHealthInfo(
15276, L.Veklor,
15275, L.Veknil
)
mod:RegisterEvents(
"SPELL_AURA_APPL... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Lower_Jeuno/npcs/Vhana_Ehgaklywha.lua | 17 | 3186 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vhana Ehgaklywha
-- Standard Info NPC
-- @pos -122.853 0.000 -195.605
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
package.loaded["scripts/globals/pa... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Metatron_Torment.lua | 19 | 1100 | ---------------------------------------------
-- Metatron Torment
--
-- Description: Lowers target's defense. Additional effect: temporarily lowers damage taken from enemies.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
xennygrimmato/nmt | src/OpenNMT/onmt/data/AliasMultinomial.lua | 8 | 4522 |
--[[
Copied with small adjustments from:
https://github.com/nicholas-leonard/torchx/blob/master/AliasMultinomial.lua (7eeb6ae)
]]
--[[
Copyright (c) 2014, Nikopia (Nicholas Léonard)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/spells/mages_ballad_iii.lua | 31 | 1187 | -----------------------------------------
-- Spell: Mage's Ballad III
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCh... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/!BaudErrorFrame/BaudErrorFrame.lua | 1 | 4975 | local SelectedError = 1
local ErrorList = {}
local SoundTime = 0
local QueueError = {}
local EnableSound = false
function BaudErrorFrame_OnLoad(self)
self:RegisterEvent("VARIABLES_LOADED")
self:RegisterEvent("ADDON_ACTION_BLOCKED")
self:RegisterEvent("MACRO_ACTION_BLOCKED")
self:RegisterEvent("ADDON_ACTION_FORBIDD... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Cirdas_Caverns/Zone.lua | 34 | 1247 | -----------------------------------
--
-- Zone: Cirdas Caverns
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cirdas_Caverns/TextIDs"] = nil;
require("scripts/zones/Cirdas_Caverns/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Castle_Oztroja/npcs/_m72.lua | 16 | 2269 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m72 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- @pos -60 -72 -139 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/clump_of_batagreens.lua | 35 | 1214 | -----------------------------------------
-- ID: 4367
-- Item: clump_of_batagreens
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
Yevano/weegui | weegui/test/WeeGuiDemo.lua | 1 | 1831 | --@import weegui.util.GuiManager
--@import weegui.element.Button
--@import weegui.element.Element
--@import weegui.element.Label
--@import weegui.element.Window
--@import weegui.element.SelectionList
--@import weegui.element.MenuBar
--@import weegui.element.Menu
--@import weegui.element.Panel
--@import see.concurrent... | mit |
kaltura/nginx-vod-module | tools/persist_proxy/metrics.lua | 1 | 2230 |
--[[
- exposes metrics on server performance in prom format
--]]
local log = ngx.log
local ERR = ngx.ERR
local ngx_var = ngx.var
local ngx_now = ngx.now
local start_time = ngx.req.start_time
local pairs = pairs
local concat = table.concat
local HTTP_STATUS_KEY_PREFIX = 'http_status_'
local HTTP_TIME_KEY_PREFIX ... | agpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua | 36 | 10604 | --[[ $Id: AceGUIWidget-DropDown-Items.lua 996 2010-12-01 18:34:17Z nevcairiel $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local select, assert = select, assert
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame = CreateFrame
local function fixlevels(parent,...)
local i = 1
local child = select(... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/Loot.lua | 1 | 9219 | if not Qulight["loot"].lootframe == true then return end
local L = {
fish = "Fishy loot",
empty = "Empty slot",
}
local addon = CreateFrame("Button", "Butsu")
local title = addon:CreateFontString(nil, "OVERLAY")
local iconSize = 30
local frameScale = 1
local sq, ss, sn
local OnEnter = function(self)
local slot =... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm2.lua | 17 | 3461 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm2)
-- Involved In Quest: Ayame and Kaede
-- @pos -208 -9 176 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Apollyon/mobs/Fir_Bholg.lua | 16 | 1276 | -----------------------------------
-- Area: Apollyon SW
-- NPC: Fir Bholg
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/array2d.lua | 13 | 13375 | --- Operations on two-dimensional arrays.
-- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide}
--
-- Dependencies: `pl.utils`, `pl.tablex`
-- @module pl.array2d
local require, type,tonumber,assert,tostring,io,ipairs,string,table =
_G.require, _G.type,_G.tonumber,_G.assert,_G.tostring,_G.io,_G.ipairs,... | apache-2.0 |
LuaDist2/lua-aplicado | test/cases/0050-test-decorators.lua | 2 | 5171 | --------------------------------------------------------------------------------
-- test/cases/0050-decorators.lua: tests for decorators
-- This file is a part of Lua-Aplicado library
-- Copyright (c) Lua-Aplicado authors (see file `COPYRIGHT` for the license)
-----------------------------------------------------------... | mit |
n0xus/darkstar | scripts/zones/Dynamis-Xarcabard/bcnms/dynamis_xarcabard.lua | 16 | 1180 | -----------------------------------
-- Area: Dynamis Xarcabard
-- Name: Dynamis Xarcabard
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaXarcabard]UniqueID",player:getDynamisUniqueID(1285));
SetServerVariab... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Throne_Room_[S]/Zone.lua | 28 | 1324 | -----------------------------------
--
-- Zone: Throne_Room_[S] (156)
--
-----------------------------------
package.loaded["scripts/zones/Throne_Room_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Throne_Room_[S]/TextIDs");
------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Port_Jeuno/npcs/Raging_Lion.lua | 17 | 1316 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Raging Lion
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
---------------... | gpl-3.0 |
sam1i/Turres-Monacorum | love2d/layer/notification.lua | 1 | 1164 | local o = {}
--code shamelessly taken from missionBriefing.lua
o.text = ""
o.guiMenu = love.gui.newGui()
o.init = function(text, disableUpdate, disableDraw, disableMouse)
o.text = text or "Somebody called for a notification without providing any text. This was surely unintentional"
o.noUpdate = disableUpdate or fals... | mit |
erfan01311/supergroups | plugins/youtube.lua | 644 | 1722 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
function get_yt_data (yt_code)
local url = 'https://www.googleapis.com/yo... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/youtube.lua | 644 | 1722 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
function get_yt_data (yt_code)
local url = 'https://www.googleapis.com/yo... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Fire_Elemental.lua | 16 | 1659 | -----------------------------------
-- Area: Temenos E T
-- NPC: Fire_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------... | gpl-3.0 |
xennygrimmato/nmt | src/OpenNMT/onmt/data/DynamicDataset.lua | 5 | 2863 | --[[ Dynamic Dataset class ]]
local DynamicDataset, _ = torch.class("DynamicDataset", "SampledVocabDataset")
function DynamicDataset:__init(opt, ddr)
self.ddr = ddr
self.opt = opt
end
--[[ define batch size ]]
function DynamicDataset:setBatchSize(maxBatchSize, uneven_batches)
-- time to build first sample
lo... | lgpl-3.0 |
hnakamur/couv | test/test-fs.lua | 1 | 5328 | local uv = require 'couv'
local Buffer = uv.Buffer
local exports = {}
exports['uv.fs.open.sync.OK'] = function(test)
local fd = uv.fs.open('couv.lua', 'r', '0666')
test.is_number(fd)
uv.fs.close(fd)
-- try to close twice
local ok, err = pcall(uv.fs.close, fd)
test.ok(not ok)
test.equal(string.sub(err,... | mit |
n0xus/darkstar | scripts/zones/Upper_Jeuno/npcs/Chocobo.lua | 15 | 5582 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Chocobo
-- Finishes Quest: Chocobo's Wounds
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Horn.lua | 16 | 1473 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Horn
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Beadeaux/npcs/Treasure_Coffer.lua | 17 | 4024 | -----------------------------------
-- Area: Beadeaux
-- NPC: Treasure Coffer
-- @zone 147
-- @pos 215 40 69
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems"... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Party-WotLK/ForgeofSouls/DevourerofSouls.lua | 1 | 2187 | local mod = DBM:NewMod(616, "DBM-Party-WotLK", 14, 280)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 158 $"):sub(12, -3))
mod:SetCreatureID(36502)
mod:SetEncounterID(831, 832)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START",
"SPELL_AURA_APPLIED",
"SPELL_AURA_REMOVE... | gpl-2.0 |
n0xus/darkstar | scripts/globals/abyssea.lua | 15 | 8694 | -----------------------------------
-- Abyssea functions, vars, tables
-- DO NOT mess with the order
-- or change things to "elseif"!
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- getMaxTravStones
-- returns Traverser Stone KI cap
-------... | gpl-3.0 |
lduboeuf/lit | deps/coro-channel.lua | 6 | 3007 | exports.name = "creationix/coro-channel"
exports.version = "1.2.0"
exports.homepage = "https://github.com/luvit/lit/blob/master/deps/coro-channel.lua"
exports.description = "An adapter for wrapping uv streams as coro-streams and chaining filters."
exports.tags = {"coro", "adapter"}
exports.license = "MIT"
exports.autho... | apache-2.0 |
LuffyPan/skynet | 3rd/lpeg/test.lua | 46 | 43600 | #!/usr/bin/env lua5.1
-- $Id: test.lua,v 1.105 2014/12/12 17:00:39 roberto Exp $
-- require"strict" -- just to be pedantic
local m = require"lpeg"
-- for general use
local a, b, c, d, e, f, g, p, t
-- compatibility with Lua 5.2
local unpack = rawget(table, "unpack") or unpack
local loadstring = rawget(_G, "lo... | mit |
davymai/CN-QulightUI | Interface/AddOns/Skada/modules/CC.lua | 1 | 4982 |
Skada:AddLoadableModule("CC", function(Skada, L)
if Skada.db.profile.modulesBlocked.CC then return end
local mod = Skada:NewModule(L["CC breakers"])
local CLIENT_VERSION = tonumber((select(4, GetBuildInfo())))
local WoW5 = CLIENT_VERSION > 50000
local IsInRaid = IsInRaid or function() return GetNumRaidMembers(... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua | 38 | 1104 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
httc://www.apache.org/licenses/LICENSE-2.0
]]--
l... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/dish_of_spaghetti_melanzane_+1.lua | 35 | 1389 | -----------------------------------------
-- ID: 5214
-- Item: dish_of_spaghetti_melanzane_+1
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- HP % 25 (cap 105)
-- Vitality 2
-- Store TP 4
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Geotic_Breath.lua | 14 | 1272 | ---------------------------------------------
-- Geotic Breath
--
-- Description: Deals Earth damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Ouryu
---------------------------------------------
require("sc... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackrockFoundry/Blackhand.lua | 1 | 12474 | local mod = DBM:NewMod(959, "DBM-BlackrockFoundry", nil, 457)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 12912 $"):sub(12, -3))
mod:SetCreatureID(77325)--68168
mod:SetEncounterID(1704)
mod:SetZone()
mod:SetUsedIcons(2, 1)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_ST... | gpl-2.0 |
adamlerer/nn | Container.lua | 27 | 1769 | -- This is code common to container modules, which are collections of
-- smaller constituent modules like Parallel, Sequential, etc.
local Container, parent = torch.class('nn.Container', 'nn.Module')
function Container:__init(...)
parent.__init(self, ...)
self.modules = {}
end
function Container:add(module)
... | bsd-3-clause |
linmajia/dlbench | synthetic/experiments/torch/cnn/alexnet/opts.lua | 2 | 2917 | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local M = { }
f... | mit |
n0xus/darkstar | scripts/globals/groundsofvalor.lua | 12 | 27788 | -------------------------------------------------
-- Largely based on the existing fieldsofvalor.lua
--
-- Info from:
-- http://www.bg-wiki.com/bg/Grounds_Tome
-- http://wiki.ffxiclopedia.org/wiki/Grounds_Tome
--
-------------------------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Rock_Smash.lua | 13 | 1215 | ---------------------------------------------
-- Rock Smash
--
-- Description: Damages a single target. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luacom/demo/server/inproc.lua | 4 | 1924 | require("luacom")
local obj = {}
function obj:Sum(i1, i2)
print("Calling Sum...",i1,i2)
return i1 + i2
end
function obj:I2A(i1)
print("Calling I2A...",i1)
return tostring(i1)
end
function obj:IntDivide(i1, i2)
print("Calling IntDivide...",i1,i2)
quot, rest = {}, {}
quot.Type = "int"
quot.Value = mat... | lgpl-3.0 |
alirezanile/Ldcxvx | plugins/giphy.lua | 633 | 1796 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
loca... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/cinna-cookie.lua | 35 | 1343 | -----------------------------------------
-- ID: 4397
-- Item: cinna-cookie
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic Regen While Healing 4
-- Vermin Killer 5
-- Poison Resist 5
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Yorcia_Weald/Zone.lua | 34 | 1237 | -----------------------------------
--
-- Zone: Yorcia Weald
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Enhanced_Slime.lua | 16 | 1045 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Slime
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/GnomishVendorShrinker/GnomishVendorShrinker.lua | 1 | 13610 |
local myname, ns = ...
local ItemSearch = LibStub('LibItemSearch-1.0')
local NUMROWS, ICONSIZE, GAP, SCROLLSTEP = 14, 17, 4, 5
for _,f in pairs{MerchantNextPageButton, MerchantPrevPageButton, MerchantPageText} do
f:Hide()
f.Show = f.Hide
end
local GVS = CreateFrame("frame", nil, MerchantFrame)
GVS:SetWidth(31... | gpl-2.0 |
NekoNova/Communicator | Message.lua | 2 | 6108 | ---------------------------------------------------------------------------------------------------
-- Message
--
-- This package represents a single message that can be send to players.
-- They are being wrapped in a single class to hide the entire functionality of sett... | gpl-2.0 |
Primordus/lua-quickcheck | lqc/helpers/fs.lua | 2 | 3118 |
--- Helper module for everything filesystem related.
-- @module lqc.helpers.fs
-- @alias lib
local lfs = require 'lfs'
local Vector = require 'lqc.helpers.vector'
local lib = {}
--- Concatenates multiple strings together into 1 big string
-- @param strings array of strings to be concatenated together
-- @return th... | mit |
n0xus/darkstar | scripts/globals/items/boiled_tuna_head.lua | 35 | 1602 | -----------------------------------------
-- ID: 4540
-- Item: Boiled Tuna Head
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 20
-- Dexterity 3
-- Intelligence 4
-- Mind -3
-- Magic Regen While Healing 2
-- Accuracy 5
-- Evasion 5
--------------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Northern_San_dOria/npcs/Charlaimagnat.lua | 17 | 2826 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Charlaimagnat
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/q... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Caedarva_Mire/npcs/Nareema.lua | 19 | 2005 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nareema
-- Type: Assault
-- @pos 518.387 -24.707 -467.297 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts... | gpl-3.0 |
privatesource/Vira_max | plugins/warn2.lua | 2 | 7681 | local function warn_by_username(extra, success, result) -- /warn <@username>
if success == 1 then
local msg = result
local target = extra.target
local receiver = extra.receiver
local hash = 'warn:'..target
local value = redis:hget(hash, msg.id)
local text = ''
local name = ''
if msg.first_name then... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Rabao/npcs/Generoit.lua | 37 | 1363 | -----------------------------------
-- Area: Rabao
-- NPC: Generoit
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Root/Layout.lua | 1 | 9533 | buttonsize = Qulight["actionbar"].buttonsize
buttonspacing = Qulight["actionbar"].buttonspacing
petbuttonsize = Qulight["actionbar"].petbuttonsize
petbuttonspacing = Qulight["actionbar"].petbuttonspacing
if Qulight["general"].topbottompanel then
local BottomPanel = CreateFrame("Frame", "BottomPanel", UIParent)
Creat... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Konschtat_Highlands/npcs/Plaiaude.lua | 28 | 1794 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Plaiaude
-- Type: Chocobo Renter
-- @pos 244.705 24.034 296.973 108
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
lukrop/GCICAP | GCICAP.lua | 2 | 61937 | --[[
Copyright (c) 2016 Snafu, Stonehouse, Rivvern, Chameleon Silk, lukrop.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, cop... | mit |
coderpunch/evolvemod | lua/evolve/plugins/sh_report.lua | 1 | 1569 | --[[-----------------------------------------------------------------------------------------------------------------------
Report something
-----------------------------------------------------------------------------------------------------------------------]]--
local PLUGIN = {}
PLUGIN.Title = "Report"
PLUGIN.Desc... | apache-2.0 |
safchain/contrail-controller | src/analytics/uvedelete.lua | 3 | 1144 | --
-- Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
--
local function sub_del(_values)
local lres = redis.call('hgetall',_values)
local iter = 1
while iter <= #lres do
local attr = lres[iter]
local val = lres[iter+1]
if string.byte(val,1) ~= 60 then
loca... | apache-2.0 |
kaltura/nginx-vod-module | tools/prefetch_proxy/prefetcher.lua | 1 | 1307 | local http = require 'resty.http'
local ngx_ERR = ngx.ERR
local ngx_log = ngx.log
local ngx_req = ngx.req
local ngx_req_get_headers = ngx_req.get_headers
local ngx_timer = ngx.timer
local ngx_var = ngx.var
local base_url = '127.0.0.1'
local _M = {}
local function fetch_url(premature, uri, headers)
local httpc =... | agpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/freifunk/luasrc/controller/freifunk/remote_update.lua | 90 | 1679 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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
]]--
module(... | gpl-2.0 |
n0xus/darkstar | scripts/globals/weaponskills/smash_axe.lua | 18 | 1540 | -----------------------------------
-- Smash Axe
-- Axe weapon skill
-- Skill level: 40
-- Stuns enemy. Duration of stun varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Snow Gorget & Aqua Gorget.
-- Aligned with the Snow Belt & Aqua Belt.
-- Element: None
-- Modifiers: STR:100%
-- 100%TP ... | gpl-3.0 |
n0xus/darkstar | scripts/globals/spells/absorb-int.lua | 18 | 1299 | --------------------------------------
-- Spell: Absorb-INT
-- Steals an enemy's intelligence.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lrexlib/test/pcre_sets.lua | 5 | 6834 | -- See Copyright Notice in the file LICENSE
local luatest = require "luatest"
local N = luatest.NT
local function norm(a) return a==nil and N or a end
local function fill (n, m)
local t = {}
for i = n, m, -1 do table.insert (t, i) end
return t
end
local function set_named_subpatterns (lib, flg)
return {
... | lgpl-3.0 |
arman110110/beatbot | plugins/groupmanager.lua | 24 | 7646 | do
local function add_by_reply(extra, success, result)
result = backward_msg_format(result)
local msg = result
local chat = msg.to.id
local user = msg.from.id
if msg.to.type == 'chat' then
chat_add_user('chat#id'..chat, 'user#id'..user, ok_cb, false)
elseif msg.to.type == 'channel' then... | gpl-2.0 |
nbryansky/fastnetmon | src/netflow_hooks.lua | 12 | 2044 | package.path = package.path .. ";/usr/share/lua/5.1/?.lua"
local json = require("json")
-- We have this library bundled only in luajit:
-- g++ lua_integration.cpp -lluajit-5.1
-- Before production use, please call your code with luajit CLI
local ffi = require("ffi")
-- Load declaration from the inside separate head... | gpl-2.0 |
ppriest/mame | scripts/src/devices.lua | 3 | 1909 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- devices.lua
--
-- Rules for building device cores
--
---------------------------------------------------------------------------
function devicesProject(_target, _subtarget)
... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Mhaura/npcs/Wilhelm.lua | 27 | 2363 | -----------------------------------
-- Area: Mhaura
-- NPC: Wilhelm
-- Type: Standard NPC
-- @pos -22.746 -5 17.157 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/armor_upgrade");
---------------------------... | gpl-3.0 |
gpedro/server | data/scripts/otstd/classes/events.lua | 3 | 2370 |
function Event:type()
return "Event"
end
-------------------------------------------------------------------------------
-- Wrapper for OnUseItem that will take care of moving to the item and if necessary pickup the item
function registerOnUseItemNearby(method, filter, callback)
function onUseItemNearby(evt)
if... | gpl-2.0 |
kurthuwig/faces | Watchfaces/lokifish_marz/miltek_utc/face.lua | 1 | 3525 | -- This file is part of the Watchfaces project.
-- Read the file README.md for copyright and other information
function about()
local result = {}
result.author = "Lokifish Marz"
result.name = "Miltek UTC"
return result
end
COLOR_INACTIVE = 0x80ffffff
COLOR_ACTIVE = 0x80ff3d3d
function init()
... | apache-2.0 |
n0xus/darkstar | scripts/zones/Windurst_Woods/npcs/Valeriano.lua | 36 | 1752 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Valeriano
-- Standard Merchant NPC
-- Working 100%
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zone... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/whale_staff.lua | 42 | 1075 | -----------------------------------------
-- ID: 17533
-- Item: Whale Staff
-- Additional Effect: Water Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/QuBia_Arena/mobs/Rojgnoj_s_Left_Hand.lua | 18 | 1236 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
-----------------------------------
-- onMobSpawn A... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-p2pblock/luasrc/model/cbi/luci_fw/p2pblock.lua | 78 | 2276 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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
$Id$
]]--
lo... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Hurr_the_Betrayer.lua | 19 | 3375 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Hurr the Betrayer
-- Type: Involved in the "Sahagin Key Quest"
-- @zone: 176
-- @pos 305.882 26.768 234.279
--
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
RockySeven3161/Unknown.. | plugins/weather.lua | 351 | 1443 | 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 |
xubigshu/skynet | examples/client.lua | 4 | 2097 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
local socket = require "clientsocket"
local bit32 = require "bit32"
local proto = require "proto"
local sproto = require "sproto"
local host = sproto.new(proto.s2c):host "package"
local request = host:attach(sproto.new(proto.c2s))
local fd =... | mit |
filipeaneto/magicia-prototype | zoetrope/core/globals.lua | 7 | 6637 | -- Section: Globals
-- Variable: the
-- This is a repository table for the current app, view, keys, and mouse.
-- You can use this for other objects that are useful to track. This should
-- be considered read-only; references here are for convenience and changing
-- things here will have no effect.
the = {}
-- Consta... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lua-pb/pb.lua | 2 | 5754 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-... | lgpl-3.0 |
ozhanf/ozhanf--bot | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
alirezanile/Ldcxvx | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Selbina/npcs/Romeo.lua | 17 | 2415 | -----------------------------------
-- Area: Selbina
-- NPC: Romeo
-- Starts and Finishes Quest: Donate to Recycling
-- @zone 248
-- @pos -11 -11 -6
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/T... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e6.lua | 43 | 1693 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Dem
-- @pos -243.723 -41.482 -289.937 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transf... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Hypothermal_Combustion.lua | 14 | 1029 | ---------------------------------------------
-- Hypothermal Combustion
-- Self-destructs, releasing ice at nearby targets.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Notes: Damage is based on remaining HP
---------------------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/qm2.lua | 17 | 1085 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ??? (Uggalepih Offering ITEM)
-- @pos 388 0 269 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Temple_of_Uggalepih/Tex... | gpl-3.0 |
tossp/lede-k3 | package/lean/luci-app-v2ray-server/luasrc/controller/v2ray_server.lua | 1 | 2066 | -- Copyright 2018-2019 Lienol <lawlienol@gmail.com>
module("luci.controller.v2ray_server", package.seeall)
local http = require "luci.http"
local v2ray = require "luci.model.cbi.v2ray_server.api.v2ray"
function index()
if not nixio.fs.access("/etc/config/v2ray_server") then return end
entry({"admin", "services... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/luabalanced.lua | 3 | 7585 | -- luabalanced.lua
-- Extracted delimited Lua sequences from strings.[1]
-- Inspired by Damian Conway's Text::Balanced[2] in Perl.
--
-- [1] http://lua-users.org/wiki/LuaBalanced
-- [2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm
--
-- (c) 2008, David Manura, Licensed under the same terms as Lua ... | lgpl-3.0 |
The404Hacking/TGSeeD | plugins/admin.lua | 1 | 6876 | 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(receiver, '... | agpl-3.0 |
qllpa/TAEFWN | libs/JSON.lua | 33 | 34844 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/license... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Upper_Jeuno/npcs/_6s2.lua | 17 | 3829 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Galmut's door
-- Starts and Finishes Quest: A Clock Most Delicate, Save the Clock Tower, The Clockmaster
-- @zone 244
-- @pos -80 0 104
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
package.loaded["... | gpl-3.0 |
LuffyPan/skynet | lualib/http/httpd.lua | 3 | 3537 | local internal = require "http.internal"
local table = table
local httpd = {}
local http_status_msg = {
[100] = "Continue",
[101] = "Switching Protocols",
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-Authoritative Information",
[204] = "No Content",
[205] = "Reset Content",
[206] = "Par... | mit |
n0xus/darkstar | scripts/zones/Kazham/npcs/Toeh_Leddenbah.lua | 15 | 1101 | -----------------------------------
-- Area: Kazham
-- NPC: Toeh Leddenbah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Fort_Ghelsba/Zone.lua | 28 | 1666 | -----------------------------------
--
-- Zone: Fort_Ghelsba (141)
--
-----------------------------------
package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Fort_Ghelsba/TextIDs");
---------------------... | gpl-3.0 |
janlou2/TeleA | plugins/inpm.lua | 2 | 3127 | 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/Zmini/Quickie.lua | 1 | 2051 | ----------------- > Cloak / Helm toggle check boxes at PaperDollFrame
local GameTooltip = GameTooltip
local helmcb = CreateFrame("CheckButton", nil, PaperDollFrame)
helmcb:ClearAllPoints()
helmcb:SetSize(32,32)
helmcb:SetFrameLevel(10)
helmcb:SetPoint("TOPLEFT", CharacterHeadSlot, "BOTTOMRIGHT", 9, 0)
helmcb:SetScript... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/socket/etc/dispatch.lua | 57 | 10272 | -----------------------------------------------------------------------------
-- A hacked dispatcher module
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $$
-----------------------------------------------------------------------------
local base = _G
local table = require("table")
local socket = require("... | lgpl-3.0 |
ppriest/mame | 3rdparty/genie/tests/actions/vstudio/vc2010/test_pch.lua | 57 | 1388 | --
-- tests/actions/vstudio/vc2010/test_pch.lua
-- Validate generation of files block in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_pch = { }
local suite = T.vstudio_vs2010_pch
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local sln... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.