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 |
|---|---|---|---|---|---|
nimaghorbani/user102 | plugins/banhammer.lua | 7 | 12350 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/La_Vaule_[S]/Zone.lua | 5 | 1211 | -----------------------------------
--
-- Zone: La_Vaule_[S] (85)
--
-----------------------------------
package.loaded["scripts/zones/La_Vaule_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/La_Vaule_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
PierrotLC/optim | ConfusionMatrix.lua | 6 | 11215 | --[[ A Confusion Matrix class
Example:
conf = optim.ConfusionMatrix( {'cat','dog','person'} ) -- new matrix
conf:zero() -- reset matrix
for i = 1,N do
conf:add( neuralnet:forward(sample), label ) -- accumulate errors
end
print(conf) ... | bsd-3-clause |
nimaghorbani/user102 | plugins/inrealm.lua | 12 | 17415 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_group_ch... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/nirvana.lua | 3 | 4631 | -----------------------------------------
-- ID: 19005
-- Item: Nirvana
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPONS... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/serving_of_squirrels_delight.lua | 3 | 1068 | -----------------------------------------
-- ID: 5554
-- Item: serving_of_squirrels_delight
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP % 13 (cap 95)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
ignacio/LuaNode | test/simple/test-net-binary.lua | 3 | 1419 | module(..., lunit.testcase, package.seeall)
common = dofile("common.lua")
net = require("luanode.net")
function test()
local binaryString = ""
for i = 255, 0, -1 do
binaryString = binaryString .. string.char(i)
end
-- safe constructor
local echoServer = net.createServer(function (self, connection)
connection:setE... | mit |
HeavensSword/darkstar | scripts/globals/items/sweet_rice_cake.lua | 3 | 1451 | -----------------------------------------
-- ID: 4270
-- Item: sweet_rice_cake
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 17
-- Vitality 2
-- Intelligence 3
-- Mind 1
-- HP Recovered While Healing 2
-- MP Recovered While Healing 2
-- Evasion 5
-- Resist Silence 4
------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Duke_Berith.lua | 7 | 1330 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Duke Berith
-----------------------------------
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
require("scripts/globals/dynamis");
require("scripts/globals/status");
-----------------------------------
function onMobEngaged(mob,target)
end;
... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_1.lua | 5 | 2022 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_1)
-- !pos -245.000 -18.100 660.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/ques... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/blade_rin.lua | 26 | 1394 | -----------------------------------
-- Blade Rin
-- Katana weapon skill
-- Skill Level: 5
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/geohelix.lua | 3 | 1982 | --------------------------------------
-- Spell: Geohelix
-- Deals earth damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/mag... | gpl-3.0 |
ld-test/lunamark | lunamark/util.lua | 2 | 5819 | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- Utility functions for lunamark.
local M = {}
local cosmo = require("cosmo")
local rep = string.rep
local insert = table.insert
local lpeg = require("lpeg")
local Cs, P, S, lpegmatch = lpeg.Cs, lpeg.P... | mit |
imashiam/WORLD | plugins/anti_spam.lua | 417 | 3978 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
vmercierfr/kong | spec/integration/admin_api/apis_routes_spec.lua | 11 | 14121 | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
local send_content_types = require "spec.integration.admin_api.helpers"
describe("Admin API", function()
setup(function()
spec_helper.prepare_db()
spec_helper.start_kong()
end)... | mit |
Openarl/PathOfBuilding | Modules/ConfigOptions.lua | 1 | 79281 | -- Path of Building
--
-- Module: Config Options
-- List of options for the Configuration tab.
--
local m_min = math.min
local m_max = math.max
return {
-- Section: General options
{ section = "General", col = 1 },
{ var = "resistancePenalty", type = "list", label = "Resistance penalty:", ifVer = "3_0", list = {{v... | mit |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/flying_hip_press.lua | 34 | 1384 | -----------------------------------------
-- Spell: Flying Hip Press
-- Deals wind damage to enemies within range
-- Spell cost: 125 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+1
-- Level: 58
-- Casting Time: 5.75 seconds
-- Recast Time: 34.5 seconds
-- Magic Bu... | gpl-3.0 |
Xyrak/XyrakBoostLite | libs/GeminiLocale-1.0/GeminiLocale.lua | 16 | 7227 | -------------------------------------------------------------------------------
-- GeminiLocale
-- Author: daihenka
-- Localization library based on AceLocale.
-- Parts of this library was inspired and/or contains snippets from
-- AceLocale-3.0.lua by Kaelten
-----------------------------------------------------------... | bsd-2-clause |
HeavensSword/darkstar | scripts/zones/Port_Windurst/npcs/Drozga.lua | 5 | 1130 | -----------------------------------
-- Area: Port Windurst
-- NPC: Drozga
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_Windurst/TextIDs");
------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/frostreaper.lua | 7 | 1028 | -----------------------------------------
-- ID: 16784
-- Item: Frostreaper
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(pla... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Patient_Wheel.lua | 5 | 1090 | -----------------------------------
-- Area: Port Bastok
-- NPC: Patient Wheel
-- Type: Quest NPC
-- !pos -107.988 3.898 52.557 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Cape_Teriggan/npcs/Cermet_Headstone.lua | 5 | 3291 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Wind Headstone)
-- !pos -107 -8 450 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
varpeti/Yasumihar | server.lua | 1 | 1716 | require "enet"
require('fa')
env = require('env')
server = {}
function server:init()
--szerver beállítása
local file = "port"
if not love.filesystem.exists(file) then error([[Hiányzik a "]]..file..[[" file]]) end
server.host = enet.host_create("*:"..love.filesystem.read(file))
--env beállításai
... | bsd-2-clause |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-splash/luasrc/model/cbi/splash/splash.lua | 23 | 2958 | --[[
LuCI - Lua Configuration Interface
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
]]--
require("luci.model.uci")
m = Map("luci_splash", translate... | apache-2.0 |
N3X15/VoxelSim | ODE/OpenDynamicsEngine/build/premake.lua | 2 | 4371 | project.name = "ode"
-- We no longer support VC++ 6.0; too many incompatibilities
if (options["target"] == "vs6") then
error("Visual Studio 6 is no longer supported; please upgrade to Visual Studio 2005 C++ Express.")
end
-- Define the build configurations. You can also use the flags
-- `--enable-shared-on... | bsd-3-clause |
LuaDevelopmentTools/luadocumentor | models/ldparser.lua | 4 | 21281 | -------------------------------------------------------------------------------
-- Copyright (c) 2011-2013 Sierra Wireless and others.
-- All rights reserved. This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License v1.0
-- which accompanies this distribution, and ... | epl-1.0 |
HeavensSword/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Ahko_Mhalijikhari.lua | 3 | 1661 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Ahko Mhalijikhari
-- Type: Quest NPC
-- !pos -344.617 -12.226 -166.233 198
-- 61 62 0x003f 64 65
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
pd2-linux/tina | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/html/form.lua | 18 | 15642 | --------------------------------------------------------------------------------
-- form.lua
--
-- Description: library of framework
-- Library to manipulate forms
--
-- Author(s) [in order of work date]:
-- Fabián Omar Franzotti .
--
-- Configuration files referenced:
-- none
-----------------------------... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/spells/valor_minuet_iii.lua | 5 | 1539 | -----------------------------------------
-- Spell: Valor Minuet III
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return ... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Throne_Room/mobs/Shadow_Lord.lua | 3 | 4843 | -----------------------------------
-- Area: Throne Room
-- MOB: Shadow Lord
-- Mission 5-2 BCNM Fight
-----------------------------------
require("scripts/zones/Throne_Room/MobIDs");
require("scripts/globals/status");
require("scripts/globals/titles");
function onMobSpawn(mob)
end;
function onMobFight(mob,target)
... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/light_arts.lua | 2 | 1612 | -----------------------------------
-- Ability: Light Arts
-- Optimizes white magic capability while lowering black magic proficiency. Grants a bonus to divine, enhancing, enfeebling, and healing magic. Also grants access to Stratagems.
-- Obtained: Scholar Level 10
-- Recast Time: 1:00
-- Duration: 2:00:00
-----------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/serving_of_cibarious_cilbir.lua | 3 | 1234 | -----------------------------------------
-- ID: 5643
-- Item: serving_of_cibarious_cilbir
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 150)
-- MP % 6 (cap 100)
-- HP recovered while healing 3
-- MP recovered while healing 4
-----------------------------------------
require("... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/saucepan.lua | 63 | 1046 | ---------------------------------------------
-- Saucepan
-- Force feeds an unsavory dish.
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCh... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/spiral_hell.lua | 25 | 1738 | -----------------------------------
-- Spiral Hell
-- Scythe weapon skill
-- Skill level: 240 QUESTED
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:50% ; INT:50%
-- 100%TP 200%TP 300%TP
-- 1.375 2.75 4.75
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
qwook/dpsht | libs/loveframes/objects/internal/modalbackground.lua | 9 | 2458 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- modalbackground class
local newobject = loveframes.NewObject("modalbackground", "loveframes_object_modalbackground", true... | mit |
HeavensSword/darkstar | scripts/globals/spells/poisonga.lua | 3 | 1315 | -----------------------------------------
-- Spell: Poisonga
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
fun... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWcivilians/misc/data.lua | 3 | 16070 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/items/dried_date.lua | 3 | 1083 | -----------------------------------------
-- ID: 5567
-- Item: dried_date
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Magic 20
-- Agility -1
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
cogwerkz/gUI4 | gUI4_Objectives/shared/themes.lua | 1 | 6221 | local addon,ns = ...
local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true)
if not gUI4 then return end
local parent = gUI4:GetModule("gUI4_Objectives", true)
if not parent then return end
local L = GP_LibStub("GP_AceLocale-3.0"):GetLocale("gUI4")
parent:RegisterTheme("Warcraft", {
errorfram... | mit |
Deiz/naev | dat/gui/slimv2.lua | 16 | 18215 | --[[
The revamped version of the slim GUI
]]--
function create()
--Get player
pp = player.pilot()
pfact = pp:faction()
pname = player.name()
pship = pp:ship()
--Get sizes
screen_w, screen_h = gfx.dim()
deffont_h = gfx.fontSize()
smallfont_h = gfx.fontSize(true)
gui.viewport( 0, 0, sc... | gpl-3.0 |
Wedmer/luci | applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua | 3 | 6474 | -- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local _up = getfenv(3)
local ut = require("luci.util")
local sys = require("luci.sys")
local ds = require("luci.dispatcher")
local nw = require("luci.model.network")
nw.init()
module("luci.model.shadowsocks-l... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/screwdriver.lua | 35 | 1877 | -----------------------------------------
-- Spell: Screwdriver
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 21 MP
-- Monster Type: Aquans
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1, CHR+1, HP+10
-- Level: 26
-- Casting Time: 0.5 seconds
-- Recast T... | gpl-3.0 |
ZhouYzzz/cqui | UI/Screens/GovernmentScreen.lua | 1 | 119131 | -- ===========================================================================
-- GovernmentScreen
-- Set Government and the civic policies.
--
-- "k" is for key
--
-- Original Author: Tronster
-- ===========================================================================
include("DragSupport");
include("InstanceM... | mit |
HeavensSword/darkstar | scripts/zones/Chamber_of_Oracles/bcnms/shattering_stars.lua | 5 | 2038 | -----------------------------------
-- Area: Qu'Bia Arena
-- Name: Shattering stars - Maat Fight
-- !pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
--... | gpl-3.0 |
qwook/dpsht | entities_/core/player.lua | 1 | 18413 |
DEACCELERATION_SPEED = 600 -- how much you're able to deaccelerate after jumping
IMPULSE_AFTER_JUMPING = 7.5 -- how much you're able to "nudge" after jumping
PLAYER_FRICTION = 0.75 -- friction
PLAYER_FRICTION_SLIDING = 0.01 -- friction while sliding
MOVING_ACCELERATION = 20 -- how much it should accelerate
MOVING_SPE... | mit |
404rq/GTW-RPG | [resources]/GTWtrucker/data.lua | 2 | 6578 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
jbp4444/ToggleGame | corona/scripts/UtilityFuncs.lua | 1 | 2544 | --
-- Copyright 2013 John Pormann
--
-- 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... | apache-2.0 |
xtao/ntopng | third-party/LuaJIT-2.0.3/dynasm/dasm_ppc.lua | 61 | 37064 | ------------------------------------------------------------------------------
-- DynASM PPC module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-3.0 |
HeavensSword/darkstar | scripts/commands/setplayermodel.lua | 22 | 1655 | ---------------------------------------------------------------------------------------------------
-- func: setplayermodel <modelid> <slot> <player>
-- desc: Sets the look of the user or target player based on model id offset and slot (for testing).
---------------------------------------------------------------------... | gpl-3.0 |
Openarl/PathOfBuilding | Launch.lua | 1 | 9799 | #@ SimpleGraphic
-- Path of Building
--
-- Module: Launch
-- Program entry point; loads and runs the Main module within a protected environment
--
SetWindowTitle("Path of Building")
ConExecute("set vid_mode 8")
ConExecute("set vid_resizable 3")
launch = { }
SetMainObject(launch)
function launch:OnInit()
self.devMod... | mit |
Deiz/naev | dat/events/tutorial/tutorial-comms.lua | 11 | 4514 | -- This is tutorial: communications.
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Communications"
message1 = [[Welcome to the communications tutorial.
This tutorial... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Temenos/mobs/Goblin_Warlord.lua | 28 | 1174 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Warlord
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
marcoag/awesome-config | themes/worm/theme.lua | 2 | 2838 | -- worm, awesome3 theme, inspired by Adobe Kuler
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png")... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/effects/dark_arts.lua | 65 | 2045 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect:get... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/earth_maneuver.lua | 2 | 1722 | -----------------------------------
-- Ability: Earth Maneuver
-- Enhances the effect of earth attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
r... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/pork_cutlet_rice_bowl.lua | 3 | 1784 | -----------------------------------------
-- ID: 6406
-- Item: pork_cutlet_rice_bowl
-- Food Effect: 180Min, All Races
-----------------------------------------
-- HP +60
-- MP +60
-- STR +7
-- VIT +3
-- AGI +5
-- INT -7
-- Fire resistance +20
-- Attack +23% (cap 125)
-- Ranged Attack +23% (cap 125)
-- Store TP +4
----... | gpl-3.0 |
vmercierfr/kong | kong/api/routes/kong.lua | 13 | 1053 | local constants = require "kong.constants"
local route_helpers = require "kong.api.route_helpers"
return {
["/"] = {
GET = function(self, dao, helpers)
local db_plugins, err = dao.plugins_configurations:find_distinct()
if err then
return helpers.responses.send_HTTP_INTERNAL_SERVER_ERROR(err)
... | mit |
ind9/kong | kong/api/routes/kong.lua | 13 | 1053 | local constants = require "kong.constants"
local route_helpers = require "kong.api.route_helpers"
return {
["/"] = {
GET = function(self, dao, helpers)
local db_plugins, err = dao.plugins_configurations:find_distinct()
if err then
return helpers.responses.send_HTTP_INTERNAL_SERVER_ERROR(err)
... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Stone_Picture_Frame.lua | 4 | 3310 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Stone Picture Frame
-- Notes: Opens door to Den of Rancor using Painbrush of Souls
-- !pos -52.239 -2.089 10.000 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
------------------------... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/failsafe/luasrc/controller/failsafe/failsafe.lua | 38 | 5205 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2012 Daniel Golle <dgolle@allnet.de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Navukgo_Execution_Chamber/npcs/_1s1.lua | 17 | 1389 | -----------------------------------
-- Area: Navukgo Execution Chamber
-- NPC: Cast Bronze Gate (Inside BCNM)
-- @zone 282 -123 380 64
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-----------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/prominence_axe.lua | 5 | 1217 | -----------------------------------------
-- ID: 18220
-- Item: Prominence Axe
-- Additional Effect: Fire Damage
-- Enchantment: Enfire
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
func... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/frightful_roar.lua | 5 | 1302 | -----------------------------------------
-- Spell: Frightful Roar
-- Weakens defense of enemies within range
-- Spell cost: 32 MP
-- Monster Type: Demon
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+2
-- Level: 50
-- Casting Time: 2 seconds
-- Recast Time: 20 seconds
-- Magic Bursts on: Deto... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Middle_Delkfutts_Tower/npcs/Treasure_Chest.lua | 5 | 3335 | -----------------------------------
-- Area: Middle Delkfutt's Tower
-- NPC: Treasure Chest
-- Involved In Quest: Wings of Gold
-- @zone 157
-----------------------------------
package.loaded["scripts/zones/Middle_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
Openarl/PathOfBuilding | Data/3_0/StatDescriptions/skill_stat_descriptions.lua | 1 | 289195 | return {[1]={stats={[1]="base_actor_scale_+%"}},[2]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Sacrifices %1%%% of Skeleton's Life to deal that much Chaos Damage"}}},name="skeletal_chains_aoe_health_percent",stats={[1]="skeletal_chains_aoe_%_health_dealt_as_chaos_damage"}},[3]={lang={English={[1]={limit={... | mit |
chai2010/qingcloud-go | lakefile.lua | 1 | 1419 | -- Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
-- Use of this source code is governed by a Apache
-- license that can be found in the LICENSE file.
-- https://github.com/chai2010/qingcloud-go
local qc = require("qingcloud.iaas")
local config = qc.LoadJSON("~/.qingcloud/qcli.json")
local client = ... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Kazham/npcs/Ronta-Onta.lua | 5 | 4073 | -----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- !pos 100 -15 -97 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/pets/thunderstorm.lua | 4 | 1340 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
f... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/North_Gustaberg/npcs/Butsutsu_WW.lua | 3 | 2973 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Butsutsu, W.W.
-- Type: Border Conquest Guards
-- !pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest... | gpl-3.0 |
hfjgjfg/yagop54 | plugins/remind.lua | 279 | 1873 | local filename='data/remind.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 |
zhaozg/luvi | samples/gdbm.app/main.lua | 1 | 3407 | -- test gdbm binding
local gdbm=require"gdbm"
-- support code --------------------------------------------------------------
gdbm.version=string.gsub(gdbm.version,"\n.*version (.-). .*$","using GDBM %1")
do
local M= {
__index=function (t,k) return t.gdbm:fetch(k) end,
__newindex=function (t,k,v)
if v~=nil then ... | apache-2.0 |
DaemonEleuel/avorionpack | data/scripts/entity/merchants/equipmentdock.lua | 1 | 2037 | package.path = package.path .. ";data/scripts/lib/?.lua"
require ("utility")
require ("randomext")
require ("faction")
local ShopAPI = require ("shop")
local UpgradeGenerator = require("upgradegenerator")
-- Don't remove or alter the following comment, it tells the game the namespace this script lives in. If you remov... | mit |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Sawyer.lua | 5 | 1284 | -----------------------------------
-- Area: Port Bastok
-- NPC: Sawyer
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
xtao/ntopng | scripts/lua/aggregated_hosts_stats.lua | 2 | 2377 | --
-- (C) 2013-14 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
active_page = "hosts"
dofile(dirs.installdir .. "/sc... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/sidewinder.lua | 10 | 1436 | -----------------------------------
-- Sidewinder
-- Archery weapon skill
-- Skill level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Aligned with the Aqua Gorget, Light Gorget & Breeze Gorget.
-- Aligned with the Aqua Belt, Light Belt & Breeze Belt.
-- El... | gpl-3.0 |
natuan241/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning.lua | 26 | 1052 | -- Alpha-beta pruning search implementation
-- See: http://en.wikipedia.org/wiki/Alpha%E2%80%93beta_pruning
-- Internal recursive alpha-beta pruning search
local function alphabeta(tree, node, depth, alpha, beta, maximize)
if depth == 0 or tree:isLeaf(node) then
return tree:heuristic(node)
end
local children... | mit |
404rq/GTW-RPG | [resources]/GTWsmoke/smoke.lua | 2 | 4179 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/spells/knights_minne_iii.lua | 5 | 1473 | -----------------------------------------
-- Spell: Knight's Minne III
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
retu... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/FeiYin/npcs/Treasure_Chest.lua | 5 | 3226 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Treasure Chest
-- @zone 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/treas... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/East_Sarutabaruta/TextIDs.lua | 5 | 1561 | -- 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 |
xtao/ntopng | third-party/LuaJIT-2.0.3/dynasm/dasm_arm.lua | 60 | 34483 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Southern_San_dOria/npcs/Alivatand.lua | 5 | 2851 | -----------------------------------
-- Area: South San d'Oria
-- NPC: Alivatand
-- Type: Guildworker's Union Representative
-- @zone 230
-- !pos -179.458 -1 15.857
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dangruf_Wadi/npcs/_5b1.lua | 5 | 2864 | -----------------------------------
-- Area: Dangruf Wadi
-- NPC: Strange Apparatus
-- !pos -494 -4 -100 191
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dangruf_Wadi/TextIDs");
require("scripts/globals/strang... | gpl-3.0 |
Deiz/naev | dat/ai/trader.lua | 5 | 1838 | include("dat/ai/tpl/generic.lua")
include("dat/ai/personality/trader.lua")
-- Sends a distress signal which causes faction loss
function sos ()
msg = {
"Mayday! We are under attack!",
"Requesting assistance. We are under attack!",
"Merchant vessel under attack! Requesting help!",
"Help! Shi... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Woods/npcs/Varun.lua | 5 | 1908 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Varun
-- Type: Standard NPC
-- !pos 7.800 -3.5 -10.064 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/TextIDs");
require(... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Ghebi_Damomohe.lua | 5 | 4145 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ghebi Damomohe
-- Type: Standard Merchant
-- Starts and Finishes Quest: Tenshodo Membership
-- @zone 245
-- !pos 16 0 -5
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settin... | gpl-3.0 |
yongkangchen/slua | build/luajit-2.1.0/dynasm/dynasm.lua | 120 | 30989 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | mit |
HeavensSword/darkstar | scripts/globals/gear_sets.lua | 13 | 27960 | -----------------------------------
-- Gear sets
-- Allows the use of gear sets with modifiers
-----------------------------------
require("scripts/globals/status");
-----------------------------------
local matchtype = {
any = 0,
earring_weapon = 1,
weapon_weapon = 2
}
-- placeholder for unkno... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua | 5 | 1800 | -----------------------------------
-- 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 |
lhsazevedo/LIKO-12 | Peripherals/TouchControls.lua | 1 | 10975 | local events = require("Engine.events")
local onMobile = love.system.getOS() == "Android" or love.system.getOS() == "iOS"
return function(config)
local CPUKit = config.CPUKit
if not CPUKit then error("TouchControls Peripheral can't work without the CPUKit passed") end
local GPUKit = config.GPUKit
if not GP... | mit |
gwx/tome-grayswandir-illusion | data/quests/illusory-woods.lua | 1 | 5877 | -- 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 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
gwx/tome-grayswandir-illusion | data/autoloads/trickster/talents/illusion.lua | 1 | 12194 | -- Gray's Illusions, for Tales of Maj'Eyal.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- This program is... | gpl-3.0 |
githubmereza/telejack | plugins/Auto_Leave.lua | 2 | 1027 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
Openarl/PathOfBuilding | Data/2_6/EnchantmentGloves.lua | 3 | 2629 | -- Item data (c) Grinding Gear Games
return {
["NORMAL"] = {
"Cast Word of Blades on Hit",
"Cast Word of Flames on Hit",
"Attack with Word of Force on Hit",
"Cast Word of Frost on Kill",
"Attack with Word of Fury on Hit",
"Cast Word of Inferno on Kill",
"Attack with Word of Ire when Hit",
"Attack with... | mit |
HeavensSword/darkstar | scripts/zones/Bastok_Mines/npcs/Gelzerio.lua | 5 | 1442 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Galzerio
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
-------... | gpl-3.0 |
DaemonEleuel/avorionpack | configs/dockBuildingConfig.lua | 1 | 2682 | --Contains the configuration for stations that could be implemented.
--Name = Name of the stations
--Costs = Amount the player/alliance will have to pay
--Volume = Minimum volume for the ship founding the station (volume is volume in-game/1000)
--Scripts = Configures which options the player will have when interacting ... | mit |
morgan3d/misc | platformer/player-min.lua | 1 | 3091 | -- pico8/lua platformer player character code
-- by Morgan McGuire. See README.md.
run_speed, air_control, wall_jump_x_impulse, terminal_velocity, gravity, jump_impulse, jump_late_grace, jump_early_grace = 0.5, 0.015625, 0.5, 1.5, 0.03125, -1.03125, 8, 8
-- runs at 120 hz to allow better physics stepping. i.e.,
-- c... | mit |
HeavensSword/darkstar | scripts/zones/Batallia_Downs/npcs/Cavernous_Maw.lua | 4 | 2583 | -----------------------------------
-- Area: Batallia Downs
-- NPC: Cavernous Maw
-- !pos -48 0.1 435 105
-- Teleports Players to Batallia Downs [S]
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Prince_Seere.lua | 7 | 1295 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Prince Seere
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobFight(mob,target)
en... | gpl-3.0 |
jcadduono/kali-nethunter | nethunter-installer/update/system/bin/scripts/parameters.lua | 27 | 1267 |
-- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
usage = "script run parameters.lua -a 1 -blala -c -de"
author = "Martin Holst Swende"
desc =[[
This is an example script to demonstrate handle parameters in scripts.
For more info, check the ... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.