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 |
|---|---|---|---|---|---|
RebootRevival/FFXI_Test | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_2.lua | 28 | 3113 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 2 (Tarutaru)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mis... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/serving_of_leadafry.lua | 12 | 1190 | -----------------------------------------
-- ID: 5161
-- Item: serving_of_leadafry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Agility 5
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Waters_[S]/npcs/Pahpe_Rauulih.lua | 3 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pahpe Rauulih
-- Type: Standard NPC
-- @zone 94
-- !pos -39.740 -4.499 53.223
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Lower_Jeuno/npcs/Yin_Pocanakhu.lua | 3 | 1375 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yin Pocanakhu
-- Involved in Quest: Borghertz's Hands (1st quest only)
-- @zone 245
-- !pos 35 4 -43
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
mzguanglin/LuCI | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 1 | 3025 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.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$
]]--
req... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/abilities/stutter_step.lua | 1 | 7923 | -----------------------------------
-- Ability: Stutter Step
-- Applies Weakened Daze. Lowers the targets magic resistance. If successful, you will earn two Finishing Moves.
-- Obtained: Dancer Level 40
-- TP Required: 10%
-- Recast Time: 00:05
-- Duration: First Step lasts 1 minute, each following Step extends its cur... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/commands/completequest.lua | 1 | 1855 | ---------------------------------------------------------------------------------------------------
-- func: completequest <logID> <questID> <player>
-- desc: Completes the given quest for the GM or target player.
---------------------------------------------------------------------------------------------------
requi... | gpl-3.0 |
mzguanglin/LuCI | libs/web/luasrc/http.lua | 5 | 8064 | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.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 co... | apache-2.0 |
sjmGithub/csi280LearningExperience | share/lua/meta/art/01_googleimage.lua | 30 | 1659 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 2007 the VideoLAN team
This program 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 2 of the License, or
(at your option) any la... | gpl-2.0 |
petoju/awesome | lib/awful/widget/common.lua | 3 | 7109 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @classmod awful.widget.common
---------------------------------------------------------------------------
-- Grab environment we need
local type = typ... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Mhaura/npcs/Radhika.lua | 3 | 1093 | -----------------------------------
-- Area: Mhaura
-- NPC: Radhika
-- Type: Standard NPC
-- !pos 34.124 -8.999 39.629 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
---------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/mobskills/auroral_drape.lua | 1 | 1081 | ---------------------------------------------
-- Auroral Drape
--
-- Description: Silence and Blind Area of Effect (10.0')
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
requi... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Arrapago_Reef/TextIDs.lua | 3 | 1225 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6386; -- Obtained: <item>
GIL_OBTAINED = 6387; -- Obtained <number> gil
KEYITEM_OBTAINED = 6389; -- Obtain... | gpl-3.0 |
geoffleyland/lua-geometry2d | src-lua/geometry2d/polyline_offset.lua | 1 | 8761 | --- @module nz.co.incremental.geometry2d.polyline_offset
-- (c) Copyright 2013-2016 Geoff Leyland.
--local math_sqrt, math_min, math_max, math_atan2, math_pi =
-- math.sqrt, math.min, math.max, math.atan2, math.pi
local math_abs, math_atan2, math_cos, math_floor, math_pi, math_sin, math_sqrt =
math.abs, ma... | mit |
moteus/lua-lluv | test/test-defer-error.lua | 4 | 1061 | local RUN = lunit and function()end or function ()
local res = lunit.run()
if res.errors + res.failed > 0 then
os.exit(-1)
end
return os.exit(0)
end
local lunit = require "lunit"
local TEST_CASE = assert(lunit.TEST_CASE)
local skip = lunit.skip or function() end
local uv = require "lluv.un... | mit |
SinisterRectus/Discordia | libs/containers/abstract/GuildChannel.lua | 1 | 7455 | --[=[
@c GuildChannel x Channel
@t abc
@d Defines the base methods and properties for all Discord guild channels.
]=]
local json = require('json')
local enums = require('enums')
local class = require('class')
local Channel = require('containers/abstract/Channel')
local PermissionOverwrite = require('containers/Permiss... | mit |
babymannen/theforgottenserver-7.4 | server/data/npc/lib/npcsystem/modules.lua | 1 | 39265 | -- Advanced NPC System by Jiddo
if Modules == nil then
-- default words for greeting and ungreeting the npc. Should be a table containing all such words.
FOCUS_GREETWORDS = {"hi", "hello"}
FOCUS_FAREWELLWORDS = {"bye", "farewell"}
-- The words for requesting trade window.
SHOP_TRADEREQUEST = {"trade"}
-- The w... | gpl-2.0 |
abbasgh12345/extreme11 | plugins/inpm.lua | 14 | 3149 | 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 |
gowadbd/DevDroid | data/config.lua | 2 | 8378 | do local _ = {
about_text = "lcome to KING_TELE \n DEV1: @ll_B5 \n DEV2: @sadikal_knani10 \n\n الاصدار :- V 3.0 \n CH1: @illOlli \n CH2: @KINGTELE1 \n it is Bakury ",
enabled_plugins = {
"admin",
"all",
"anti_spam",
"ar-banhammer",
"ar-broadcast",
"ar-getfile",
"ar-help",
"ar-info",
"... | gpl-2.0 |
TheRikyHUN/fooniks | resources/phoenix_Skills/achievements_c.lua | 2 | 7104 | AchievementDraw = {
rootElement,
thePlayer,
sx, sy, scale,
positions = { },
imagepos = { },
labelpos = { },
textpos = { },
coinspos = { },
xppos = { },
messageLoop = { },
white = tocolor( 255, 255, 255, 255 ),
labelColor = tocolor( 254, 201, 7, 255 ),
textColor = tocolor( 255, 2... | gpl-3.0 |
shahabsaf1/fucker | 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 |
naader1380/Dragon1 | 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 |
RebootRevival/FFXI_Test | scripts/globals/items/caedarva_frog.lua | 12 | 1478 | -----------------------------------------
-- ID: 5465
-- Item: Caedarva Frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Jugner_Forest_[S]/npcs/Larkin_CA.lua | 3 | 1044 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Larkin, C.A.
-- Type: Campaign Arbiter
-- !pos 50.217 -1.769 51.095 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/RuAun_Gardens/npcs/relic.lua | 3 | 1868 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: <this space intentionally left blank>
-- !pos -241 -12 332 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
-----... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Port_Bastok/npcs/Styi_Palneh.lua | 3 | 4322 | -----------------------------------
-- Area: Port Bastok
-- NPC: Styi Palneh
-- Title Change NPC
-- !pos 28 4 -15 236
-----------------------------------
require("scripts/globals/titles");
local title2 = { NEW_ADVENTURER , BASTOK_WELCOMING_COMMITTEE , BUCKET_FISHER , PURSUER_OF_THE_PAST , MOMMYS_HELPER , HOT_DOG ,
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Abyssea-Konschtat/npcs/qm5.lua | 3 | 1347 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm5 (???)
-- Spawns Keratyrannos
-- !pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Northern_San_dOria/npcs/Aurege.lua | 3 | 1969 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aurege
-- Type: Quest Giver NPC
-- Starts Quest: Exit the Gambler
-- @zone 231
-- !pos -156.253 11.999 253.691
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua | 30 | 1807 | -----------------------------------
-- Area: Horlias peak
-- Name: double_dragonian
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
vyacht/carambola2 | package/vyacht-web/files/lib/lib/sys.lua | 3 | 5640 | local io = require "io"
local os = require "os"
local nixio = require "nixio"
--- stolen from luci
local type, table, tonumber, print
= type, table, tonumber, print
module "vyacht.sys"... | gpl-2.0 |
vyacht/carambola2 | package/vyacht-web/files/lib/sys.lua | 3 | 5640 | local io = require "io"
local os = require "os"
local nixio = require "nixio"
--- stolen from luci
local type, table, tonumber, print
= type, table, tonumber, print
module "vyacht.sys"... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Wajaom_Woodlands/Zone.lua | 12 | 4137 | -----------------------------------
--
-- Zone: Wajaom_Woodlands (51)
--
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
ashang/koreader | frontend/ui/message/messagequeue.lua | 6 | 2531 | local ffi = require("ffi")
local util = require("ffi/util")
local Event = require("ui/event")
local DEBUG = require("dbg")
local dummy = require("ffi/zeromq_h")
local czmq = ffi.load("libs/libczmq.so.1")
local zyre = ffi.load("libs/libzyre.so.1")
local MessageQueue = {}
function MessageQueue:new(o)
o = o or {}
... | agpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Windurst_Waters/npcs/Kerutoto.lua | 3 | 12516 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kerutoto
-- Starts Quest Food For Thought
-- Involved in Quest: Riding on the Clouds
-- @zone 238
-- !pos 13 -5 -157
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Bastok_Markets/npcs/Peritrage.lua | 15 | 1527 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Peritrage
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Xarcabard_[S]/mobs/Fusty_Gnole.lua | 17 | 1823 | -----------------------------------
-- Area: Xarcabard (S)
-- NPC: Fusty Gnole
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-------------------------------... | gpl-3.0 |
wskplho/sl4a | lua/json4lua/json/json.lua | 20 | 15751 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public Licen... | apache-2.0 |
AmirPGA/pgahide | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Xarcabard/npcs/Magumo-Yagimo_WW.lua | 3 | 3329 | -----------------------------------
-- Area: Xarcabard
-- NPC: Magumo-Yagimo, W.W.
-- Type: Outpost Conquest Guards
-- !pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
binesiyu/hammerspoon | hs/_asm/undocumented/spaces/init.lua | 6 | 22220 | --- === hs._asm.undocumented.spaces ===
---
--- These functions utilize private API's within the OS X internals, and are known to have unpredictable behavior under Mavericks and Yosemite when "Displays have separate Spaces" is checked under the Mission Control system preferences.
---
-- some of the commands can really... | mit |
RebootRevival/FFXI_Test | scripts/zones/Apollyon/mobs/Borametz.lua | 23 | 1130 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Borametz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Northern_San_dOria/npcs/Malfine.lua | 3 | 1036 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Malfine
-- Type: Standard Dialogue NPC
-- @zone 231
-- !pos 136.943 0.000 132.305
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
-... | gpl-3.0 |
JunichiWatanuki/wireshark | test/lua/field.lua | 20 | 6064 | -- test script for wslua Field/FieldInfo functions
-- use with dhcp.pcap in test/captures directory
------------- helper funcs ------------
local packet_count = 0
local function incPktCount(name)
packet_count = packet_count + 1
end
local function testing(...)
print("---- Testing "..tostring(...).." for packe... | gpl-2.0 |
chen0031/sysdig | userspace/sysdig/chisels/iobytes_net.lua | 18 | 1667 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 8 | 2249 | -----------------------------------
-- Area: Waughroon Shrine
-- NPC: Burning Circle
-- Waughroon Shrine Burning Circle
-- !pos -345 104 -260 144
-------------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");... | gpl-3.0 |
openwrt-es/openwrt-luci | libs/luci-lib-ipkg/luasrc/model/ipkg.lua | 16 | 5309 | -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local os = require "os"
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local type = type
local pairs = pai... | apache-2.0 |
TheRikyHUN/fooniks | resources/admin/server/admin_server.lua | 2 | 43995 | --[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* admin_server.lua
*
* Original File by lil_Toady
*
**************************************]]
_root = getRootElement()
_types = { "player", "team", "vehicle", "resource", "bans", "server", "admin" }
_settings = nil
aPlayers = {}
... | gpl-3.0 |
LGCaerwyn/QSanguosha-V2-mod | lang/zh_CN/Package/LingPackge.lua | 2 | 3735 | -- translation for Ling Package
return {
["ling"] = "翼包",
["neo_guanyu"] = "关云长",
["&neo_guanyu"] = "关羽",
["designer:neo_guanyu"] = "官方,凌天翼",
["yishi"] = "义释",
[":yishi"] = "每当你使用【杀】对目标角色造成伤害时,若该角色区域内有牌,你可以防止此伤害,然后获得其区域内的一张牌。",
["#Yishi"] = "%from 发动了“%arg”,防止了对... | lgpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Kazham/npcs/Haih_Ahmpagako.lua | 17 | 1072 | -----------------------------------
-- Area: Kazham
-- NPC: Haih Ahmpagako
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Davoi/Zone.lua | 13 | 3403 | -----------------------------------
--
-- Zone: Davoi (149)
--
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
solotimes/lsyncd | tests/churn-rsync.lua | 13 | 1092 | #!/usr/bin/lua
-- a heavy duty test.
-- makes thousends of random changes to the source tree
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************")
cwriteln(" Testing default.rsync with random data activity ")
cwriteln("********************************... | gpl-2.0 |
dannybloe/domoticz | dzVents/runtime/tests/testUtils.lua | 5 | 13152 | local _ = require 'lodash'
--package.path = package.path .. ";../?.lua"
local scriptPath = ''
package.path = ";../?.lua;" .. scriptPath .. '/?.lua;../device-adapters/?.lua;../../../scripts/lua/?.lua;' .. package.path
local LOG_INFO = 2
local LOG_DEBUG = 3
local LOG_ERROR = 1
describe('event helpers', function()
lo... | gpl-3.0 |
hanxi/LoveClear | 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 |
RebootRevival/FFXI_Test | scripts/globals/mobskills/venom.lua | 32 | 1043 | ---------------------------------------------
-- Venom
--
-- Description: Deals damage in a fan shaped area. Additional effect: poison
-- Type: Magical Water
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' cone
-- Notes: Additional effect can be removed with Poisona.
--------------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Gustav_Tunnel/mobs/Goblin_Reaper.lua | 3 | 1165 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Reaper
-- Note: Place holder Goblinsavior Heronox
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
------------------... | gpl-3.0 |
rafradek/wire | lua/entities/gmod_wire_egp/lib/egplib/parenting.lua | 5 | 8587 | --------------------------------------------------------
-- Parenting functions
--------------------------------------------------------
local EGP = EGP
EGP.ParentingFuncs = {}
local function addUV( v, t ) -- Polygon u v fix
if (v.verticesindex) then
local t2 = v[v.verticesindex]
for k,v in ipairs( t ) do
t[k]... | apache-2.0 |
petoju/awesome | spec/gears/table_spec.lua | 2 | 3375 |
local gtable = require("gears.table")
describe("gears.table", function()
it("table.keys_filter", function()
local t = { "a", 1, function() end, false}
assert.is.same(gtable.keys_filter(t, "number", "function"), { 2, 3 })
end)
it("table.reverse", function()
local t = { "a", "b", c ... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua | 3 | 2129 | -----------------------------------
-- Area: Batallia Downs [S]
-- NPC: Cavernous Maw
-- !pos -48 0 435 84
-- Teleports Players to Batallia Downs
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/teleports... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Sacrarium/npcs/Stale_Draft.lua | 16 | 3975 | -----------------------------------
-- NPC: Stale Draft
-- Area: Sacrarium
-- Notes: Used to spawn Swift Belt NM's
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/TextIDs");
-------------------... | gpl-3.0 |
moteus/lua-lluv | test/test-gc-basic.lua | 4 | 1918 | local uv = require "lluv"
local function gc(n) for i = 1, (n or 10) do collectgarbage("collect") end end
local function weak_ptr(v) return setmetatable({value = v}, {__mode = "v"}) end
local HANDLES = {
check = uv.check;
prepare = uv.prepare;
idle = uv.prepare;
fs_event = uv.fs_event;
fs_poll = uv... | mit |
bttscut/skynet | lualib/skynet/debug.lua | 7 | 2611 | local table = table
local extern_dbgcmd = {}
local function init(skynet, export)
local internal_info_func
function skynet.info_func(func)
internal_info_func = func
end
local dbgcmd
local function init_dbgcmd()
dbgcmd = {}
function dbgcmd.MEM()
local kb, bytes = collectgarbage "count"
skynet.ret(sk... | mit |
ZakariaRasoli/VenusHelper | bot/methods.lua | 3 | 6031 | function send_msg(chat_id, text, reply_to_message_id, markdown)
local url = send_api .. '/sendMessage?chat_id=' .. chat_id .. '&text=' .. URL.escape(text..''..BDApi)
if reply_to_message_id then
url = url .. '&reply_to_message_id=' .. reply_to_message_id
end
if markdown == 'md' or markdown == 'markdown' then
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Jugner_Forest/npcs/Taumiale_RK.lua | 3 | 3326 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Taumiale, R.K.
-- Border Conquest Guards
-- !pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/webapi/Services.lua | 1 | 20765 | module("luci.webapi.Services", package.seeall)
require("luci.sys")
require('luci.util')
local common = require("luci.webapi.common")
ServiceTypes =
{
"SAMBA", -- 0
"DLNA", -- 1
"FTP", -- 2
"RILD" -- 3
}
ServiceTypes = common.CreateEnumTable(ServiceTypes, 0)
--[[
Request data:
@Req param "S... | gpl-2.0 |
CCAAHH/telegram-bot-supergroups | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Dynamis-San_dOria/bcnms/dynamis_sandoria.lua | 14 | 1309 | -----------------------------------
-- Area: Dynamis San d'Oria
-- Name: Dynamis San d'Oria
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaSandoria]UniqueID",os.time());
SetServerVariable("[DynaSan... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Temenos/mobs/Water_Elemental.lua | 28 | 1791 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
zzh442856860/skynet | test/testmongodb.lua | 62 | 2661 | local skynet = require "skynet"
local mongo = require "mongo"
local bson = require "bson"
local host, db_name = ...
function test_insert_without_index()
local db = mongo.client({host = host})
db[db_name].testdb:dropIndex("*")
db[db_name].testdb:drop()
local ret = db[db_name].testdb:safe_insert({test_key = 1});
... | mit |
RebootRevival/FFXI_Test | scripts/globals/weaponskills/stardiver.lua | 22 | 1598 | -----------------------------------
-- Stardiver
-- Polearm weapon skill
-- Skill Level: MERIT
-- Delivers a fourfold attack. Damage varies with TP.
-- Will stack with Sneak Attack. reduces params.crit hit evasion by 5%
-- Element: None
-- Modifiers: STR:73~85%
-- 100%TP 200%TP 300%TP
-- 0.75 1.25 ... | gpl-3.0 |
petoju/awesome | lib/naughty/dbus.lua | 2 | 19687 | ---------------------------------------------------------------------------
-- DBUS/Notification support
-- Notify
--
-- @author koniu <gkusnierz@gmail.com>
-- @copyright 2008 koniu
-- @module naughty.dbus
---------------------------------------------------------------------------
-- Package environment
local pa... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/divine_sword.lua | 1 | 1107 | -----------------------------------------
-- ID: 16549
-- Item: Divine Sword
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
-- onAdditionalEffect Action... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Northern_San_dOria/npcs/Pepigort.lua | 3 | 1040 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pepigort
-- Type: Standard Dialogue NPC
-- @zone 231
-- !pos -126.739 11.999 262.757
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");... | gpl-3.0 |
CCAAHH/telegram-bot-supergroups | plugins/media.lua | 297 | 1590 | 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 |
RebootRevival/FFXI_Test | scripts/zones/Arrapago_Remnants/instances/arrapago_remnants.lua | 29 | 3716 | -----------------------------------
--
-- Salvage: Arrapago Remnants
--
-----------------------------------
require("scripts/globals/instance")
package.loaded["scripts/zones/Arrapago_Remnants/IDs"] = nil;
local Arrapago = require("scripts/zones/Arrapago_Remnants/IDs");
-----------------------------------
-- afterI... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Mhaura/npcs/Jikka-Abukka.lua | 3 | 1530 | -----------------------------------
-- Area: Mhaura
-- NPC: Jikka-Abukka
-- Involved in Quest: Riding on the Clouds
-- !pos -13 -15 58 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
ashang/koreader | frontend/apps/reader/modules/readerlink.lua | 4 | 4947 | local InputContainer = require("ui/widget/container/inputcontainer")
local GestureRange = require("ui/gesturerange")
local LinkBox = require("ui/widget/linkbox")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Screen = require("device").screen
local Device = require("device")
local E... | agpl-3.0 |
MRAHS/SuperGpSupporter | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Abyssea-Tahrongi/npcs/qm8.lua | 3 | 1338 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm8 (???)
-- Spawns Abas
-- !pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
sajadaltaie/sejobot | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
lenovor/BBRL | scripts/lua_scripts/data/experiments_accurate.lua | 3 | 1675 |
-- ============================================================================
-- This script describes the experiments to perform for the 'accurate' case
-- (prior distribution = test distribution)
--
-- An experiment is described as follows:
--
-- ...
-- {
-- -- Short name of the prior distribution... | gpl-2.0 |
jthomasbarry/aafmt | archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/layered/cycle_removal.lua | 3 | 4560 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/g... | gpl-2.0 |
padrinoo1/telegeek | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
zeus-ff/d | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
Afforess/Factorio-Stdlib | stdlib/event/modules/dump_event_data.lua | 1 | 2387 | local inspect = _ENV.inspect
local function setup_event_data(Event, valid_event_id, id_to_name)
local function get_registered_counts(reg_type)
local core, nth, on_events = 0, 0, 0
local events = {}
for id, registry in pairs(Event.registry) do
if tonumber(id) then
... | isc |
RebootRevival/FFXI_Test | scripts/zones/Norg/Zone.lua | 12 | 2309 | -----------------------------------
--
-- Zone: Norg (252)
--
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones... | gpl-3.0 |
Jimdo/thrift | lib/lua/TTransport.lua | 115 | 2800 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/slice_of_salted_hare.lua | 12 | 1263 | -----------------------------------------
-- ID: 5737
-- Item: slice_of_salted_hare
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 10
-- Strength 1
-- hHP +1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
ashang/koreader | frontend/ui/widget/buttontable.lua | 4 | 2666 | local VerticalGroup = require("ui/widget/verticalgroup")
local HorizontalGroup = require("ui/widget/horizontalgroup")
local VerticalSpan = require("ui/widget/verticalspan")
local LineWidget = require("ui/widget/linewidget")
local Button = require("ui/widget/button")
local Screen = require("device").screen
local Geom = ... | agpl-3.0 |
rudolfmleziva/AdministratorTeritorial | cocos2d/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua | 6 | 10363 |
--------------------------------
-- @module Scale9Sprite
-- @extend Node
-- @parent_module ccui
--------------------------------
--
-- @function [parent=#Scale9Sprite] disableCascadeColor
-- @param self
--------------------------------
-- @overload self, cc.Sprite, rect_table, bool, vec2_table, size_table,... | gpl-3.0 |
LGCaerwyn/QSanguosha-V2-mod | lua/ai/ling-ai.lua | 2 | 1404 | sgs.ai_skill_invoke.yishi = function(self, data)
local damage = data:toDamage()
local target = damage.to
if self:isFriend(target) then
if self:getDamagedEffects(target, self.players, true) or self:needToLoseHp(target, self.player, true) then return false
elseif target:isChained() and self:isGoodChainTarget(targe... | lgpl-3.0 |
tommo/mock | 3rdparty/icosphere.lua | 1 | 3364 | -- lovr-icosphere v0.0.1
-- https://github.com/bjornbytes/lovr-icosphere
--[[
Copyright (c) 2017 Bjorn Swenson
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 w... | mit |
openwrt-es/openwrt-luci | applications/luci-app-ocserv/luasrc/controller/ocserv.lua | 29 | 1838 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ocserv", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ocserv") then
return
end
local page
page = entry({"admin", "services", "ocserv... | apache-2.0 |
tommo/mock | mock/gfx/AuroraSprite.lua | 1 | 5717 | --[[
* MOCK framework for Moai
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved.
*
* 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
*... | mit |
RebootRevival/FFXI_Test | scripts/globals/items/holy_maul_+1.lua | 1 | 1108 | -----------------------------------------
-- ID: 17114
-- Item: Holy Maul +1
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
-- onAdditionalEffect Action... | gpl-3.0 |
gmarek/contrib | ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http_headers.lua | 69 | 1716 | local rawget, rawset, setmetatable =
rawget, rawset, setmetatable
local str_gsub = string.gsub
local str_lower = string.lower
local _M = {
_VERSION = '0.01',
}
-- Returns an empty headers table with internalised case normalisation.
-- Supports the same cases as in ngx_lua:
--
-- headers.content_lengt... | apache-2.0 |
hanxi/LoveClear | Resources/Cocos2dConstants.lua | 8 | 7778 | local CCConstants = {}
CCConstants.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff
CCConstants.TMX_ORIENTATION_HEX = 0x1
CCConstants.TMX_ORIENTATION_ISO = 0x2
CCConstants.TMX_ORIENTATION_ORTHO = 0x0
CCConstants.Z_COMPRESSION_BZIP2 = 0x1
CCConstants.Z_COMPRESSION_GZIP = 0x2
CCConstants.Z_COMPRESSION_NONE = 0x3
CCCo... | mit |
khoshhal/Fighterbot | plugins/expire.lua | 32 | 1772 | local filename='data/expire.lua'
local cronned = load_from_file(filename)
local function save_cron(msg, text,date)
local origin = get_receiver(msg)
if not cronned[date] then
cronned[date] = {}
end
local arr = { origin, text } ;
table.insert(cronned[date], arr)
serialize_to_file(cronned, filename)
re... | gpl-2.0 |
lrmssc/dlaqdpc | dianliwangguomanyouji/cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
rudolfmleziva/AdministratorTeritorial | cocos2d/cocos/scripting/lua-bindings/auto/api/AudioEngine.lua | 10 | 6277 |
--------------------------------
-- @module AudioEngine
-- @parent_module ccexp
--------------------------------
--
-- @function [parent=#AudioEngine] lazyInit
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- Sets the current playback position of an audio in... | gpl-3.0 |
tommo/mock | mock/ai/BTScript.lua | 1 | 14192 | module 'mock'
local match = string.match
local trim = string.trim
local gsplit = string.gsplit
local function calcIndent( l )
local k = match( l, '^\t*' )
if not k then return 0 end
return #k
end
--------------------------------------------------------------------
local ParseContextProto = {}
local ParseContext... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.