repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
aa65535/luci | applications/luci-app-minidlna/luasrc/model/cbi/minidlna.lua | 60 | 5493 | -- Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
m = Map("minidlna", translate("miniDLNA"),
translate("MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP-AV clients."))
m:section(SimpleSection).template = "minidln... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/homemade_rice_ball.lua | 35 | 1129 | -----------------------------------------
-- ID: 5224
-- Item: homemade_rice_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
billypu/lua-lab | tolua_codegen/src/tolua_codegen_templates.lua | 1 | 6487 | #!/home/billypu/bin/lua
module("tolua_codegen_templates", package.seeall)
------------------- *.h -------------------------
parent_class_def = " : public CFarmColumnBase<$ColumnDataStruct$, $ColumnId$>"
column_single_class_header = [=[
/* *
* Tmem Data Column Object
*
* */
class $ColumnClassName$ $ParentClass... | mit |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 3 | 1027 | -----------------------------------------
-- Bluemagic: Animating Wail
-- Increases attack speed.
-- HP +20
-- Lv: 79 MP Cost: 53 Blue Points: 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- onMagicCastingCheck
--------------------... | gpl-3.0 |
hj3938/wax | lib/stdlib/ext/table.lua | 19 | 3199 | function table.clone(t, nometa)
local u = {}
if not nometa then
setmetatable(u, getmetatable(t))
end
for i, v in pairs(t) do
if type(v) == "table" then
u[i] = table.clone(v)
else
u[i] = v
end
end
return u
end
function table.merge(t, u)
local r = table.clone(t)
for i, v i... | mit |
Kthulupwns/darkstar | scripts/zones/Bastok_Mines/npcs/Medicine_Eagle.lua | 19 | 1474 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Medicine Eagle
-- Involved in Mission: Bastok 6-1, 8-1
-- @pos -40 0 38 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions"... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/serving_of_flint_caviar.lua | 35 | 1434 | -----------------------------------------
-- ID: 4276
-- Item: serving_of_flint_caviar
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Magic 10
-- Dexterity 4
-- Mind -1
-- Charisma 4
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
xvaara/kong | spec/integration/proxy/realip_spec.lua | 3 | 1618 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local stringy = require "stringy"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local IO = require "kong.tools.io"
local FILE_LOG_PATH = os.tmpname()
describe("Real IP", function()
setup(fun... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ugrihd.lua | 12 | 10675 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ugrihd
-- Coin Exchange Vendor
-- @pos -63.079 -6 -28.571 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");... | gpl-3.0 |
aa65535/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua | 68 | 2203 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.sys.zoneinfo"
cbimap = Map("asterisk", "Voicemail - Common Settings")
voicegeneral = cbimap:section(TypedSection, "voicegeneral",
"General Voicemail Options", "Common settings for all mailboxes... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Markets/npcs/Carmelide.lua | 36 | 1551 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Carmelide
-- 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;
requir... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Cheupirudaux.lua | 12 | 2006 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Cheupirudaux
-- Type: Woodworking Guildmaster NPC
-- Involved in Quest: It's Raining Mannequins!
-- @pos -138 12 250 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------------... | gpl-3.0 |
xvaara/kong | kong/plugins/oauth2/daos.lua | 2 | 3574 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local BaseDao = require "kong.dao.cassandra.base_dao"
local function generate_if_missing(v, t, column)
if not v or stringy.strip(v) == "" then
return true, nil, { [column] = utils.random_string()}
end
return true
end
local function g... | apache-2.0 |
azukiapp/luasocket | src/url.lua | 78 | 11036 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
--------------------------------------------------------------... | mit |
Kthulupwns/darkstar | scripts/globals/titles.lua | 31 | 46695 | -----------------------------------
--
-- TITLES IDs
--
-----------------------------------
FODDERCHIEF_FLAYER = 1;
WARCHIEF_WRECKER = 2;
DREAD_DRAGON_SLAYER = 3;
OVERLORD_EXECUTIONER = 4;
DARK_DRAGON_SLAYER ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/elshimo_frog.lua | 17 | 1477 | -----------------------------------------
-- ID: 4290
-- Item: elshimo_frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
mafi-hamyarbott/hamyargroup | plugins/plugins.lua | 1 | 6267 | 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 |
rsergiu2003/Jump-Engine | Bullet.lua | 1 | 2190 | --[[
Created by Rosu Sergiu on 27/Jun/2011
Jump Engine it's a game engine for createing jumping games for mobile devices.
This file is part of Jump Engine.
Jump Engine 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... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/slice_of_tavnazian_ram_meat.lua | 17 | 1334 | -----------------------------------------
-- ID: 5208
-- Item: slice_of_tavnazian_ram_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Shrouded_Maw/npcs/MementoCircle.lua | 12 | 1419 | -----------------------------------
-- Area: The_Shrouded_Maw
-- NPC: MementoCircle
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/glob... | gpl-3.0 |
JamesWilko/Payday-2-BLT-Lua | mods/base/req/BLTLogs.lua | 1 | 1171 |
BLTLogs = blt_class(BLTModule)
BLTLogs.__type = "BLTLogs"
function BLTLogs:init()
BLTLogs.super.init(self)
self.logs_location = "mods/logs/"
self.logs_lifetime = {
[1] = { 1, "blt_logs_one_day" },
[2] = { 3, "blt_logs_three_days" },
[3] = { 7, "blt_logs_one_week" },
[4] = { 14, "blt_logs_two_weeks" },
... | mit |
Kthulupwns/darkstar | scripts/globals/items/plate_of_squid_sushi.lua | 35 | 1598 | -----------------------------------------
-- ID: 5148
-- Item: plate_of_squid_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Dexterity 6
-- Agility 5
-- Mind -1
-- Accuracy % 15
-- Ranged ACC % 15
-- Sleep Resist 5
-----------------------------------------
... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/bosses/cursed_zeld/shadows_curse.lua | 1 | 2714 | LinkLuaModifier("modifier_boss_cursed_zeld_shadows_curse", "heroes/bosses/cursed_zeld/shadows_curse.lua", LUA_MODIFIER_MOTION_NONE)
boss_cursed_zeld_shadows_curse = {
GetIntrinsicModifierName = function() return "modifier_boss_cursed_zeld_shadows_curse" end,
}
modifier_boss_cursed_zeld_shadows_curse = {
IsPurgable... | mit |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Rugiette.lua | 19 | 2279 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Rugiette
-- Involved in Quests: Riding on the Clouds, Lure of the Wildcat (San d'Oria)
-- @pos 71 -9 -73 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ruirara.lua | 38 | 1045 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ruirara
-- Type: Standard NPC
-- @zone: 94
-- @pos -87.378 -2 -158.019
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/test/test.lua | 18 | 89565 | -- test suite for ljsyscall.
-- TODO stop using globals for tests
arg = arg or {}
-- only use this installation for tests
package.path = "./?.lua;"
local strict = require "include.strict.strict"
local helpers = require "syscall.helpers"
local assert = helpers.assert
local S
local tmpabi
local short
if arg[1] ==... | apache-2.0 |
telbbs/luci-0.12 | applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua | 147 | 5025 | require("luci.tools.webadmin")
m = Map("multiwan", translate("Multi-WAN"),
translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover."))
s = m:section(NamedSection, "config", "multiwan", "")
e = s:option(Flag, "enabled", translate("Enable"))
e.rmempty = false
e.default = e.enabled
... | apache-2.0 |
kayru/tundra | examples/generator-simple/tundra.lua | 7 | 2324 |
local common = {
Env = {
GENSCRIPT = "generate-file.py",
},
}
Build {
Units = function()
-- A rule to call out to a python file generator.
DefRule {
-- The name by which this rule will be called in source lists.
Name = "GenerateFile",
-- All invocations of this rule will run in this ... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | tests/test-dgram.lua | 3 | 1442 | --[[
Copyright 2014 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 or agr... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Ashene.lua | 36 | 2059 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ashene
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 61
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_mushroom_paella_+1.lua | 36 | 1339 | -----------------------------------------
-- ID: 5971
-- Item: Plate of Mushroom Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 43
-- Mind 6
-- Magic Accuracy 6
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
Velkon/DarkRP | entities/weapons/keys/cl_menu.lua | 4 | 7670 | local function AddButtonToFrame(Frame)
Frame:SetTall(Frame:GetTall() + 110)
local button = vgui.Create("DButton", Frame)
button:SetPos(10, Frame:GetTall() - 110)
button:SetSize(180, 100)
Frame.buttonCount = (Frame.buttonCount or 0) + 1
Frame.lastButton = button
return button
end
DarkRP.st... | mit |
Kthulupwns/darkstar | scripts/zones/PsoXja/npcs/_09b.lua | 9 | 1609 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09b (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/f1menu/cl_f1menupanel.lua | 8 | 3332 | local PANEL = {}
AccessorFunc(PANEL, "m_bgColor", "BackgroundColor")
function PANEL:Init()
self:SetFocusTopLevel(true)
self:SetSize(ScrW() * 0.9, ScrH() * 0.9)
self:SetBackgroundColor(Color(0, 0, 0, 220))
self:SetPos(-self:GetWide(), ScrH() * 0.05)
-- Can be removed once https://github.com/garryn... | mit |
GabrielNicolasAvellaneda/luvit-upstream | deps/stream/stream_duplex.lua | 9 | 1812 | --[[
Copyright 2014 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 or agr... | apache-2.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/farming/nodes.lua | 1 | 4121 | minetest.override_item("default:dirt", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt",
dry = "farming:soil",
wet = "farming:soil_wet"
}
})
minetest.override_item("default:dirt_with_grass", {
groups = {crumbly=3,soil=1},
soil = {
base = "default:dirt_with_grass",
dry = "farming:soil",
we... | lgpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Cavernous_Maw.lua | 29 | 1949 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Cavernous Maw
-- @pos -28.597, 46.056, -685.754 117
-- Teleports Players to Abyssea - Tahrongi
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
billypu/lua-lab | anapurna/json4lua/rpcserver.lua | 1 | 3145 | -----------------------------------------------------------------------------
-- JSONRPC4Lua: JSON RPC server for exposing Lua objects as JSON RPC callable
-- objects via http.
-- json.rpcserver Module.
-- Author: Craig Mason-Jones
-- Homepage: http://github.com/craigmj/json4lua/
-- Version: 1.0.0
-- This modul... | mit |
Kthulupwns/darkstar | scripts/zones/Chateau_dOraguille/npcs/Nachou.lua | 38 | 1046 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Nachou
-- Type: Standard NPC
-- @zone: 233
-- @pos -39.965 -3.999 34.292
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
---... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/shall_shell.lua | 35 | 1338 | -----------------------------------------
-- ID: 4484
-- Item: shall_shell
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defense % 16.4
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Nashmau/npcs/Nanaroon.lua | 38 | 1029 | ----------------------------------
-- Area: Nashmau
-- NPC: Nanaroon
-- Type: Item Deliverer
-- @pos -2.404 -6 37.141 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fo.lua | 34 | 2569 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: North Plate
-- @pos 174 -32 50 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Metalworks/npcs/Manilam.lua | 38 | 1375 | -----------------------------------
-- Area: Metalworks
-- NPC: Manilam
-- Type: Quest NPC
-- @pos -57.300 -11 22.332 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Meta... | gpl-3.0 |
cedlemo/blingbling | config_example/calendar_rc.lua | 2 | 16953 | local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
if awesome.startup_errors then
naughty.notify({ p... | gpl-2.0 |
siilaas/TiGER | system/libs/feedparser.lua | 36 | 11976 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./system/libs/XMLElement.lua")()
local dateparser = (loadfile "./system/libs/dateparser.lua")()
local URL = (loadfile "./system/libs/url.lua")()
local tinsert, tremove, t... | gpl-2.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/cocos2d/bitExtend.lua | 104 | 1590 | -- bit operation
bit = bit or {}
bit.data32 = {}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit._b2d(arg)
local nr=0
for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
end
end
return nr
end
function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + a... | mit |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/cocos/cocos2d/bitExtend.lua | 104 | 1590 | -- bit operation
bit = bit or {}
bit.data32 = {}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit._b2d(arg)
local nr=0
for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
end
end
return nr
end
function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + a... | mit |
Kthulupwns/darkstar | scripts/zones/Al_Zahbi/npcs/Biyaada.lua | 38 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Biyaada
-- Type: Rughadjeen's Attendant
-- @zone: 48
-- @pos -65.802 -6.999 69.273
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
--------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/berry_snowcone.lua | 39 | 1200 | -----------------------------------------
-- ID: 5710
-- Item: Berry Snowcone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 30 Cap 30
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Castle_Zvahl_Keep/Zone.lua | 28 | 4006 | -----------------------------------
--
-- Zone: Castle_Zvahl_Keep (162)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Castle_Zvahl_Keep/TextIDs");
------... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/neutral/runaway/runaway_search.lua | 11 | 6322 | --[[
This is the second half of "The Runaway"
Here, Cynthia's father pays you to track down his daughter.
It is alluded to that Cynthia ran away due to her abusive mother.
The father has been named after me, Old T. Man.
I'm joking about the last line a little. If you want to name him, feel free.
--]]
la... | gpl-3.0 |
xvaara/kong | spec/unit/rockspec_spec.lua | 2 | 1377 | local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Rockspec file", function()
it("should include all the Lua modules", function()
local rockspec_path
for _, filename in ipairs(fs.list_dir(".")) do
if stringy.endswith(filename, "rockspec") th... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Tides/bcnms/trial_by_water.lua | 13 | 1766 | -----------------------------------
-- Area: Cloister of Tides
-- BCNM: Trial by Water
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/zones/... | gpl-3.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/Jeija-minetest-mod-mesecons-d19e975/mesecons_compatibility/init.lua | 1 | 4624 | doors = {}
-- Registers a door - REDEFINITION ONLY | DOORS MOD MUST HAVE BEEN LOADED BEFORE
-- name: The name of the door
-- def: a table with the folowing fields:
-- description
-- inventory_image
-- groups
-- tiles_bottom: the tiles of the bottom part of the door {front, side}
-- tiles_top: the tile... | lgpl-3.0 |
AttacqueSuperior/Engine | mods/ra/maps/soviet-06b/soviet06b-reinforcements_teams.lua | 4 | 1611 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-wshaper/luasrc/model/cbi/wshaper.lua | 36 | 2050 | --[[
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
http://www.apache.org/licenses/LICENSE-2.0
]]--
r... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/West_Sarutabaruta/npcs/Ryokei_IM.lua | 30 | 3063 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Ryokei, I.M.
-- Type: Outpost Conquest Guards
-- @pos -11.322 -13.459 317.696 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/chocobiscuit.lua | 36 | 1431 | -----------------------------------------
-- ID: 5934
-- Item: Chocobiscuit
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Magic Regen While Healing 3
-- Charisma 3
-- Evasion 2
-- Aquan Killer 10
-- Silence Resist 10
-----------------------------------------
require("scripts/globals/stat... | gpl-3.0 |
AttacqueSuperior/Engine | mods/d2k/scripts/campaign.lua | 2 | 6045 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Mleaf/mleaf_luci | applications/luci-freifunk-widgets/luasrc/controller/freifunk/widgets.lua | 78 | 1124 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Manuel Munz <freifunk at somakoma 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
http://www.apache.org/licenses/LICENSE-2.0
]]--
local... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/gravity_ii.lua | 11 | 1085 | -----------------------------------------
-- Spell: Gravity II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
LubyRuffy/haka | modules/protocol/icmp/icmp.lua | 3 | 1665 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local ipv4 = require("protocol/ipv4")
local icmp_dissector = haka.dissector.new{
type = haka.helper.EncapsulatedPac... | mpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua | 13 | 1770 | -----------------------------------
-- 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 |
Kthulupwns/darkstar | scripts/globals/spells/dextrous_etude.lua | 13 | 1759 | -----------------------------------------
-- Spell: Dextrous Etude
-- Static DEX Boost, BRD 32
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onM... | gpl-3.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/collectd.lua | 68 | 2082 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Collectd Settings"),
translate(
"Collectd is a small daemon for collecting data from " ..
"various sources through different p... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Fontoumant.lua | 17 | 4406 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Fontoumant
-- Starts Quest: The Brugaire Consortium
-- Involved in Quests: Riding on the Clouds
-- @zone 232
-- @pos -10 -10 -122
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
package.loade... | gpl-3.0 |
xvaara/kong | spec/integration/admin_api/cache_routes_spec.lua | 2 | 2761 | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local cache = require "kong.tools.database_cache"
local GET_URL = spec_helper.STUB_GET_URL
describe("Admin API", function()
setup(function()
spec_helper.prepare_db()
spec_helper... | apache-2.0 |
LubyRuffy/haka | modules/protocol/udp/udp.lua | 3 | 2698 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local ipv4 = require("protocol/ipv4")
local function compute_checksum(pkt)
local checksum = ipv4.inet_checksum()
... | mpl-2.0 |
geog-opensource/geog-linino | package/dragino/luci-app-iot-webpanel/usr/lib/lua/luci/controller/arduino/index.lua | 1 | 24139 | --[[
This file is part of YunWebUI.
YunWebUI 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 later version.
This program is distributed in the hope that i... | gpl-2.0 |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/AirCraft.lua | 2 | 1265 | require("GameEntity")
require("AudioEngine")
local AirCraft = class("AirCraft", function()
return require("GameEntity").new()
end)
AirCraft.moveModeDefault = 1
AirCraft.moveModeTurn = 2
function AirCraft:ctor()
self._alive = true
self._HP = 0.0
self._score = 0
end
---------------------------
--@retu... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TMXTiledMap.lua | 8 | 3676 |
--------------------------------
-- @module TMXTiledMap
-- @extend Node
-- @parent_module ccexp
--------------------------------
--
-- @function [parent=#TMXTiledMap] setObjectGroups
-- @param self
-- @param #array_table groups
--------------------------------
-- return the value for the specific property... | mit |
jlopenwrtluci/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | 132 | 1057 | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i1... | apache-2.0 |
aa65535/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua | 3 | 4841 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eo_zdei.lua | 3 | 1906 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- MOB: Eo'Zdei
-- Animation Sub 0 Pot Form
-- Animation Sub 1 Pot Form (reverse eye position)
-- Animation Sub 2 Bar Form
-- Animation Sub 3 Ring Form
-----------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/openvpn.lua | 30 | 1359 | -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.sys"
local m, s, o
m = Map("luci_statistics",
translate("OpenVPN Plugin Configuration"),
translate("The OpenVPN plugin gathers information about the current vpn connection status."))
s = m:se... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/PsoXja/npcs/_099.lua | 9 | 1670 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _099 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
matinbot/antispamgram | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Arrapago_Reef/npcs/_jic.lua | 30 | 3664 | -----------------------------------
-- Area: Arrapago Reef
-- Door: Runic Seal
-- @pos 36 -10 620 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Follow.lua | 6 | 1518 |
--------------------------------
-- @module Follow
-- @extend Action
-- @parent_module cc
--------------------------------
-- alter behavior - turn on/off boundary
-- @function [parent=#Follow] setBoundarySet
-- @param self
-- @param #bool value
--------------------------------
--
-- @function [parent=#F... | mit |
Kthulupwns/darkstar | scripts/zones/Upper_Jeuno/npcs/Glyke.lua | 37 | 1491 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Glyke
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fpp/pp/server/ownability.lua | 1 | 19131 | FPP = FPP or {}
local plyMeta = FindMetaTable("Player")
local entMeta = FindMetaTable("Entity")
--[[-------------------------------------------------------------------------
Entity data explanation.
Every ent has a field FPPCanTouch. This is a table with one entry per player.
Every bit in FPPCanTouch represents a type... | mit |
telbbs/luci-0.12 | build/setup.lua | 99 | 1114 | local SYSROOT = os.getenv("LUCI_SYSROOT")
-- override uci access
local uci_core = require "uci"
local uci_model = require "luci.model.uci"
uci_model.cursor = function(config, save)
return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
uci_model.cursor_state = function()
re... | apache-2.0 |
Mleaf/mleaf_luci | build/setup.lua | 99 | 1114 | local SYSROOT = os.getenv("LUCI_SYSROOT")
-- override uci access
local uci_core = require "uci"
local uci_model = require "luci.model.uci"
uci_model.cursor = function(config, save)
return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
uci_model.cursor_state = function()
re... | apache-2.0 |
mafi-hamyarbott/hamyargroup | plugins/ingroup.lua | 50 | 48862 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
kuoruan/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua | 2 | 1624 | -- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local o = section:taboption("general", ListValue, "reqaddress",
translate("Request IPv6-address"))
o:value("try", translate("try"))
o:value("force", translate("force"))
o:value("... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua | 10 | 1085 |
--------------------------------
-- @module EaseBezierAction
-- @extend ActionEase
-- @parent_module cc
--------------------------------
--
-- @function [parent=#EaseBezierAction] setBezierParamer
-- @param self
-- @param #float p0
-- @param #float p1
-- @param #float p2
-- @param #float p3
---------------... | mit |
Kthulupwns/darkstar | scripts/globals/mobskills/Absolute_Terror.lua | 6 | 1324 | ---------------------------------------------------
-- Absolute Terror
-- Causes Terror, which causes the victim to be stunned for the duration of the effect, this can not be removed.
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
re... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Selbina/npcs/Aleria.lua | 34 | 1076 | -----------------------------------
-- Area: Selbina
-- NPC: Aleria
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTrade Ac... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/holy_bolt.lua | 1 | 1230 | -----------------------------------------
-- ID: 18153
-- Item: Holy Bolt
-- Additional Effect: Light Damage
-- Bolt dmg is affected by light/dark staves and Chatoyant
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Knapsack/Lua/Yonaba/knapsack_test.lua | 26 | 1841 | -- Tests for knapsack.lua
local knapsack = require 'knapsack'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
lo... | mit |
tboox/xmake | xmake/plugins/project/main.lua | 1 | 2468 | --!A cross-platform build utility based on Lua
--
-- 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 Apach... | apache-2.0 |
MaliciouZzHD/AndroidChromeCastControl | files/nmap/nse_main.lua | 2 | 47190 | -- Arguments when this file (function) is called, accessible via ...
-- [1] The NSE C library. This is saved in the local variable cnse for
-- access throughout the file.
-- [2] The list of categories/files/directories passed via --script.
-- The actual arguments passed to the anonymous main function:
-- [1... | gpl-3.0 |
tboox/xmake | xmake/rules/wdk/sign/xmake.lua | 1 | 6745 | --!A cross-platform build utility based on Lua
--
-- 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 Apach... | apache-2.0 |
Oliveryo/Interface | AddOns/enemyFrames/globals/resources/spells.lua | 1 | 33898 | SPELLINFO_TRADECASTS_TO_TRACK = {
-- MISC
['Fishing'] = {['icon'] = [[Interface\Icons\Trade_Fishing]], ['casttime'] = 30},
-- ALCHEMY
['Greater Healing Potion'] = {['icon'] = [[Interface\Icons\Inv_potion_52]], ['casttime'] = 3},
['Greater Fire Protection Potion'] = {['icon'] = [[Interface... | gpl-3.0 |
githubmereza/alilotfi7777 | libs/JSON.lua | 3765 | 34843 | -- -*- 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/licenses... | gpl-2.0 |
alfred-bot/phmbot | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/AI/AI_Cargo_Dispatcher_Airplane.lua | 1 | 7256 | --- **AI** - Models the intelligent transportation of infantry and other cargo using Planes.
--
-- ## Features:
--
-- * The airplanes will fly towards the pickup airbases to pickup the cargo.
-- * The airplanes will fly towards the deploy airbases to deploy the cargo.
--
-- ===
--
-- ## Test Missions:
--
-- Te... | gpl-3.0 |
slayerrensky/luci | modules/luci-base/luasrc/sgi/uhttpd.lua | 79 | 1956 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "nixio.util"
require "luci.http"
require "luci.sys"
require "luci.dispatcher"
require "luci.ltn12"
function handle_request(env)
exectime = os.clock()
local renv = {
CONTENT_LENGTH = env.CONTENT_LEN... | apache-2.0 |
leecrest/luvit | deps/stream/stream_writable.lua | 6 | 12788 | --[[
Copyright 2014 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 or agr... | apache-2.0 |
slayerrensky/luci | applications/luci-app-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua | 68 | 1703 | -- Copyright 2011 Manuel Munz <freifunk at somakoma de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. "..
"This... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.