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 |
|---|---|---|---|---|---|
bn7/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Donmo-Boronmo_WW.lua | 14 | 3362 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Donmo-Boronmo, W.W.
-- Type: Outpost Conquest Guards
-- @pos -294.470 15.806 420.117 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
LuaDist2/kong | spec/03-plugins/10-key-auth/02-access_spec.lua | 2 | 16651 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local meta = require "kong.meta"
local utils = require "kong.tools.utils"
describe("Plugin: key-auth (access)", function()
local client
setup(function()
helpers.run_migrations()
local anonymous_user = assert(helpers.dao.consumers:insert ... | apache-2.0 |
bn7/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 12 | 1814 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c14021.lua | 1 | 3332 | --欢迎回来 梦幻馆
function c14021.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c14021.target)
e1:SetOperation(c14021.activate)
c:RegisterEffect(e1)
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(14021... | gpl-2.0 |
gaoxiaojun/symphony | src/vm/util/bytecode/bc.lua | 78 | 5620 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | bsd-3-clause |
bn7/darkstar | scripts/globals/items/meat_chiefkabob.lua | 12 | 1457 | -----------------------------------------
-- ID: 4574
-- Item: meat_chiefkabob
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 22
-- Attack Cap 65
-----------------------------------------
require("scripts/globals/status");
---------... | gpl-3.0 |
bn7/darkstar | scripts/globals/effects/str_down.lua | 34 | 1111 | -----------------------------------
--
-- EFFECT_STR_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_STR) - effect:ge... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/uskumru.lua | 12 | 1322 | -----------------------------------------
-- ID: 5452
-- Item: Uskumru
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
frankyifei/koreader | frontend/device/key.lua | 18 | 2147 | --[[
an interface for key presses
]]
local Key = {}
function Key:new(key, modifiers)
local o = { key = key, modifiers = modifiers }
-- we're a hash map, too
o[key] = true
for mod, pressed in pairs(modifiers) do
if pressed then
o[mod] = true
end
end
setmetatable(o,... | agpl-3.0 |
Arashbrsh/trea | bot/bot.lua | 6 | 7103 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
bn7/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua | 27 | 1270 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#2
-- @pos 48 -12.000 -105 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | gpl-2.0 |
magamplus/test1 | plugins/linkpv.lua | 107 | 31031 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Adjutant.lua | 14 | 1061 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Adjutant
-- Type: Standard NPC
-- @zone 94
-- @pos -67.819 -4.499 58.997
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
---... | gpl-3.0 |
davidmarshall15/Healbot | HealBot_Data/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 22 | 8073 | --[[ $Id: CallbackHandler-1.0.lua 1186 2018-07-21 14:19:18Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 7
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/bowl_of_vegetable_gruel.lua | 12 | 1502 | -----------------------------------------
-- ID: 4489
-- Item: bowl_of_vegetable_gruel
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 2
-- Ranged Accuracy % 15 (cap 10)
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/global... | gpl-3.0 |
frankyifei/koreader | frontend/apps/reader/pluginloader.lua | 2 | 1561 | local lfs = require("libs/libkoreader-lfs")
local DEBUG = require("dbg")
local PluginLoader = {
plugin_path = "plugins"
}
function PluginLoader:loadPlugins()
if self.plugins then return self.plugins end
self.plugins = {}
for f in lfs.dir(self.plugin_path) do
local path = self.plugin_path.."/"... | agpl-3.0 |
bn7/darkstar | scripts/globals/items/timbre_timbers_salad.lua | 12 | 1467 | -----------------------------------------
-- ID: 4321
-- Item: timbre_timbers_salad
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 20
-- Agility 5
-- Vitality -1
-- Ranged ACC % 8
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
McDaived/Zafer | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
simonemainardi/ntopng | scripts/lua/test_locales.lua | 1 | 1166 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/?/init.lua;" .. package.path
if (ntop.isPro()) then
package.path = dirs.installdir .. "/pro/scripts/callbacks/?.lua;" .. packa... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c24152.lua | 1 | 2472 | --无意识的破坏因子
function c24152.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,24152)
e1:SetTarget(c24152.target)
e1:SetOperation(c24152.activate)
c:RegisterEffect(e1)
--c... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Walls/npcs/Trail_Markings.lua | 7 | 3073 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Trail Markings
-- Dynamis-Windurst Enter
-- @pos -216 0 -94 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
pthreadself/muduo | premake4.lua | 58 | 2093 | solution "muduo"
projectdir = basedir()
builddir = path.join(projectdir, '../build')
installdir = path.join(projectdir, '../install')
bindir = path.join(installdir, 'bin')
libdir = path.join(installdir, 'lib')
includedir = path.join(installdir, 'include')
curheadersdir = includedir
-- s... | bsd-3-clause |
shizhai/wprobe | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
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 ... | gpl-2.0 |
Bilibili/vlc | share/lua/playlist/liveleak.lua | 91 | 1883 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: Ludovic Fauvet <etix@videolan.org>
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 optio... | gpl-2.0 |
bn7/darkstar | scripts/zones/Carpenters_Landing/npcs/qm8.lua | 14 | 2786 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: ??? (qm2)
-- Involved in Missions: Calm Before the Storm (CoP 7-4)
-- @pos 120.615 -5.457 -390.133 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
---... | gpl-3.0 |
bn7/darkstar | scripts/zones/Southern_San_dOria/npcs/Foletta.lua | 17 | 1458 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Foletta
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c19030.lua | 1 | 2232 | --噬魂的噩梦体✿哆来咪&幽香
function c19030.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x273),aux.FilterBoolFunction(Card.IsFusionSetCard,0x3208),true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:Set... | gpl-2.0 |
Klius/love2dtestpong | main.lua | 1 | 8139 | function love.load()
--baseclass to all objects
Object = require "libs/classic"
--Objects
require "Objects/drawable"
require "Objects/pala"
require "Objects/bola"
require "Objects/powerup"
require "Objects/powerup-speed"
require "Objects/powerup-wall"
require "Objects/powerup-minimize-ball"
requir... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/regurgitation.lua | 25 | 2017 | -----------------------------------------
-- Spell: Regurgitation
-- Deals Water damage to an enemy. Additional Effect: Bind
-- Spell cost: 69 MP
-- Monster Type: Lizards
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: INT+1 MND+1 MP+3
-- Level: 68
-- Casting Time: 5 seconds
-- Recast Time: 24 sec... | gpl-3.0 |
gaoxiaojun/symphony | ref/luajit/src/jit/dis_x86.lua | 7 | 32546 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | bsd-3-clause |
HuangYuNan/thcsvr | expansions/script/c27106.lua | 1 | 2060 | --入魔『过剩走火入魔』
function c27106.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c27106.cost)
e1:SetTarget(c27106.target)
e1:SetOperation(c27106.activate)
c:RegisterEffect(e1)
end
function ... | gpl-2.0 |
bn7/darkstar | scripts/zones/Northern_San_dOria/npcs/Grilau.lua | 14 | 6142 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Grilau
-- @pos -241.987 6.999 57.887 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyi... | gpl-3.0 |
bn7/darkstar | scripts/zones/Western_Adoulin/npcs/Bilp.lua | 14 | 1948 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Bilp
-- Type: Standard NPC and Quest NPC
-- Starts and Involved with Quest: 'Scaredy-Cats'
-- @zone 256
-- @pos -91 3 0 256
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Ac... | gpl-3.0 |
frankyifei/koreader | spec/unit/spore_spec.lua | 7 | 3602 | require("commonrequire")
local UIManager = require("ui/uimanager")
local HTTPClient = require("httpclient")
local DEBUG = require("dbg")
--DEBUG:turnOn()
local service = [[
{
"base_url" : "http://httpbin.org",
"name" : "api",
"methods" : {
"get_info" : {
"path" : "/get",
"me... | agpl-3.0 |
bn7/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Tome_of_Magic.lua | 14 | 1154 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Tome of Magic
-- Involved In Windurst Mission 7-2 (Optional Dialogue)
-- @pos 346 0 343 159 <many>
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
nolansingroy/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocosbuilder/CCBReaderLoad.lua | 79 | 5530 | ccb = ccb or {}
function CCBReaderLoad(strFilePath,proxy,owner)
if nil == proxy then
return nil
end
local ccbReader = proxy:createCCBReader()
local node = ccbReader:load(strFilePath)
local rootName = ""
--owner set in readCCBFromFile is proxy
if nil ~= owner then
--C... | mit |
Incredibly-Incorporated/Cloud9 | sessions/Cloud 9 Development/computer/0/unused/bios.lua | 1 | 18433 |
--[[
-- Install safe versions of various library functions
-- These will not put cfunctions on the stack, so don't break serialisation
xpcall = function( _fn, _fnErrorHandler )
local typeT = type( _fn )
assert( typeT == "function", "bad argument #1 to xpcall (function expected, got "..typeT..")" )
local co... | mit |
bn7/darkstar | scripts/globals/spells/poisonga_iii.lua | 27 | 1133 | -----------------------------------------
-- Spell: Poisonga III
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
bn7/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/16.lua | 9 | 1612 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: Blank (TOAU-20 Cutscene, TOAU-27 Cutscene)
-- @pos -298 36 -38 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
requir... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c20216.lua | 1 | 3869 | --西行妖守护者✿魂魄妖梦
function c20216.initial_effect(c)
--sol
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20216,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:... | gpl-2.0 |
LuaDist2/kong | spec/helpers.lua | 2 | 29817 | ------------------------------------------------------------------
-- Collection of utilities to help testing Kong features and plugins.
--
-- @copyright Copyright 2016-2017 Mashape Inc. All rights reserved.
-- @license [Apache 2.0](https://opensource.org/licenses/Apache-2.0)
-- @module spec.helpers
local BIN_PATH = "... | apache-2.0 |
bn7/darkstar | scripts/zones/Apollyon/mobs/Dark_Elemental.lua | 17 | 2742 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
tltneon/freeciv-web | freeciv/data/webperimental/script.lua | 6 | 2853 | -- Freeciv - Copyright (C) 2007 - The Freeciv Project
-- 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, or (at your option)
-- any later version.
--
-- This program ... | agpl-3.0 |
bn7/darkstar | scripts/zones/Xarcabard/TextIDs.lua | 2 | 1396 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6392; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6398; -- Obtained: <item>.
GIL_OBTAINED = 6399; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6401; -- Obtained... | gpl-3.0 |
bn7/darkstar | scripts/zones/The_Shrouded_Maw/mobs/Diabolos.lua | 23 | 9084 | -----------------------------------
-- Area: The Shrouded Maw
-- MOB: Diabolos
-----------------------------------
-- TODO: CoP Diabolos
-- 1) Make the diremites in the pit all aggro said player that falls into region. Should have a respawn time of 10 seconds.
-- 2) Diremites also shouldnt follow you back to the figh... | gpl-3.0 |
AsteroidOS/android_external_skia | tools/lua/skia.lua | 207 | 1863 | -- Experimental helpers for skia --
function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
----------------... | bsd-3-clause |
bn7/darkstar | scripts/zones/Castle_Oztroja/npcs/_47u.lua | 14 | 1292 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47u (Handle)
-- Notes: Opens door _474 from behind
-- @pos -60 24 -77 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/T... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 80 | 1260 | --[[
LuCI - Lua Configuration Interface
(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$
]]--
m = Map("mactodevinfo", lu... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c23045.lua | 1 | 1988 | --漂溺「光辉水底的心伤」
function c23045.initial_effect(c)
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c23045.target)
e1:SetOperation(c23045.operation)
c:RegisterEffect(e1)
end
function c23045.filter(c)
return c:IsFaceup() and c:IsSetCard(0x817)
end
f... | gpl-2.0 |
nenonahar/GENERAAL | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
LuaDist2/kong | kong/plugins/aws-lambda/handler.lua | 1 | 2747 | -- Copyright (C) Mashape, Inc.
local BasePlugin = require "kong.plugins.base_plugin"
local aws_v4 = require "kong.plugins.aws-lambda.v4"
local responses = require "kong.tools.responses"
local utils = require "kong.tools.utils"
local http = require "resty.http"
local cjson = require "cjson.safe"
local public_utils = re... | apache-2.0 |
McDaived/Zafer | plugins/anti_spam.lua | 1 | 5755 | --An empty table for solving multiple kicking problem(thanks to @mc_dev1 )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
... | gpl-2.0 |
Asdonne/OpenRA | lua/sandbox.lua | 84 | 5098 | local sandbox = {
_VERSION = "sandbox 0.5",
_DESCRIPTION = "A pure-lua solution for running untrusted Lua code.",
_URL = "https://github.com/kikito/sandbox.lua",
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to an... | gpl-3.0 |
bn7/darkstar | scripts/zones/AlTaieu/npcs/Dimensional_Portal.lua | 15 | 1646 | -----------------------------------
-- Area: AlTaieu
-- NPC: Dimensional Portal
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
-----------------------------------
-- onTrade Action
--------------... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua | 7 | 2403 |
--------------------------------
-- @module JumpTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- brief Get the amplitude rate of the effect.<br>
-- return Return the amplitude rate of the effect.
-- @function [parent=#JumpTiles3D] getAmplitudeRate
-- @param self
-- @retur... | mit |
HuangYuNan/thcsvr | expansions/script/c999511.lua | 1 | 3925 | --冬符『花之凋零』
local M = c999511
local Mid = 999511
function M.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetDescription(aux.Stringid(Mid, 0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:Set... | gpl-2.0 |
Tarjei400/Howl | lexer/TokenList.lua | 1 | 3860 | --- Provides utilities for reading tokens from a 'stream'
-- @module lexer.TokenList
--- Stores a list of tokens
-- @type TokenList
-- @tfield table tokens List of tokens
-- @tfield number pointer Pointer to the current
-- @tfield table savedPointers A save point
local TokenList = {}
--- Get this element in the token... | mit |
HuangYuNan/thcsvr | expansions/script/c71101.lua | 1 | 2702 | --N0 Name 逆回十六夜
function c71101.initial_effect(c)
c:SetUniqueOnField(1,0,71101)
c:EnableReviveLimit()
--redirect 战破除外
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCondition(c71101.spcon)
e4:SetCode(EFFECT_BATTLE_DESTROY_REDIRECT)
e4:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e4)
--... | gpl-2.0 |
bn7/darkstar | scripts/globals/mobskills/chains_of_arrogance.lua | 9 | 1300 | ---------------------------------------------
-- Chains of Arrogance
--
---------------------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
---------------------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/monstertpmoves")... | gpl-3.0 |
RobertZenz/minetest-australopithecus-terragenitor | mods/terragenitor/caelum.lua | 2 | 5695 | --[[
Copyright (c) 2014, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
bn7/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm11.lua | 14 | 1379 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm11 (???)
-- Spawns Muscaliet
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[... | gpl-3.0 |
Julzso23/SpaceVenture | lib/loveframes/objects/imagebutton.lua | 12 | 8320 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.imagebutton"))
local l... | mit |
bn7/darkstar | scripts/globals/mobskills/spirit_tap.lua | 32 | 1401 | ---------------------------------------------------
-- Spirit Tap
-- Attempts to absorb one buff from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any buff... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/loaf_of_iron_bread.lua | 12 | 1184 | -----------------------------------------
-- ID: 4499
-- Item: loaf_of_iron_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 4
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
bn7/darkstar | scripts/zones/Southern_San_dOria/npcs/Paunelie.lua | 14 | 1169 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ilita
-- Linkshell merchant
-- @pos -142 -1 -25 236
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/South... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22049.lua | 1 | 3039 | --红魔 七曜的魔女
function c22049.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x813),1)
c:EnableReviveLimit()
--Attribute
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(EFFECT_ADD_ATTRIBUTE)
e2:SetRan... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/foe_requiem_iii.lua | 26 | 1631 | -----------------------------------------
-- Spell: Foe Requiem III
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
Asdonne/OpenRA | mods/cnc/maps/gdi04b/gdi04b.lua | 29 | 5792 | BhndTrigger = { CPos.New(39, 21), CPos.New(40, 21), CPos.New(41, 21) }
Atk1Trigger = { CPos.New(35, 37) }
Atk2Trigger = { CPos.New(9, 44), CPos.New(10, 44), CPos.New(11, 44), CPos.New(12, 44), CPos.New(13, 44) }
AutoTrigger = { CPos.New(5, 30), CPos.New(6, 30), CPos.New(7, 30), CPos.New(8, 30), CPos.New(9, 30), CPos.Ne... | gpl-3.0 |
yinjun322/quick-ng | quick/framework/toluaEx.lua | 11 | 1691 |
function tolua.cloneTable(src)
if type(src)~="table" then
return nil
end
local dest = {}
for k, v in pairs(src) do
dest[k] = v
end
local mt = getmetatable(src)
if mt then
setmetatable(dest, mt)
end
return dest
end
if CCPoint then
tolua.default_gc_classes__ = {
-- ... | mit |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua | 7 | 5739 |
--------------------------------
-- @module ParticleBatchNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ParticleBatchNode] setTexture
-- @param self
-- @param #cc.Texture2D texture
-- @return ParticleBatchNode#ParticleBatchNode self (return value:... | mit |
bbinet/GoIoT | core/services/start.lua | 2 | 6508 | #!/usr/bin/env lua
--- A services server which accept an lua string task, and will report the running status
-- Which could abort the task
local m_path = os.getenv('KOOIOT_DIR') or "."
local m_package_path = package.path
package.path = string.format("%s;%s/?.lua;%s/?/init.lua", m_package_path, m_path, m_path)
re... | gpl-2.0 |
bn7/darkstar | scripts/zones/Behemoths_Dominion/mobs/Behemoth.lua | 2 | 1906 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: Behemoth
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize
-----------------------------------
... | gpl-3.0 |
LuaDist2/kong | kong/plugins/statsd/handler.lua | 1 | 4582 | local BasePlugin = require "kong.plugins.base_plugin"
local basic_serializer = require "kong.plugins.log-serializers.basic"
local statsd_logger = require "kong.plugins.statsd.statsd_logger"
local ngx_log = ngx.log
local ngx_timer_at = ngx.timer.at
local string_gsub = string.gsub
local pairs ... | apache-2.0 |
nikai3d/ce-challenges | hard/message_decoding.lua | 1 | 1514 | function div(a, b) return math.floor(a/b) end
function binary(sl, a)
if a == 0 then
return string.rep("0", sl)
else
local b, c, ret = 0, a, ""
while a > 0 do
b, a = b * 2 + a % 2, div(a, 2)
end
while c > 0 do
ret = ret .. tostring(b % 2)
b, c = div(b, 2), div(c, 2)
end
... | bsd-3-clause |
never615/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/rmi.lua | 2 | 47339 | --- Library method for communicating over RMI (JRMP + java serialization)
--
-- This is a not complete RMI implementation for Lua, which is meant to be able
-- to invoke methods and parse returnvalues which are simple, basically the java primitives.
-- This can be used to e.g dump out the registry, and perform authent... | mit |
bearpaw/pose-attention | train/train.lua | 1 | 6310 | -- Track accuracy
opt.lastAcc = opt.lastAcc or 0
opt.bestAcc = opt.bestAcc or 0
-- We save snapshots of the best model only when evaluating on the full validation set
trackBest = (opt.validIters * opt.validBatch == ref.valid.nsamples)
-- The dimensions of 'final predictions' are defined by the opt.task file
-- This al... | bsd-3-clause |
bn7/darkstar | scripts/zones/Metalworks/npcs/_6lg.lua | 14 | 1311 | -----------------------------------
-- Area: Metalworks
-- Door: _6lg (Cornelia's Room)
-- @pos 114 -20 -7 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Metalworks/TextIDs... | gpl-3.0 |
gaoxiaojun/symphony | src/vm/util/profile/v.lua | 78 | 5755 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | bsd-3-clause |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-domy/domy_opcje.lua | 1 | 3248 | local function getPlayerDBID(plr)
local c=getElementData(plr,"character")
if not c then return nil end
return tonumber(c.id)
end
local function getGID(player)
local c=getElementData(player,"character")
if (not c) then return nil end
return c.gg_nazwa,c.gg_tag,c.gg_rank_name,c.gg_rank_id,c.gg_id
end
ad... | mit |
nenonahar/GENERAAL | DevTSHAKE/DevTSHAKE.lua | 1 | 7299 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./DevTSHAKE/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This functi... | gpl-2.0 |
AntonioModer/Algorithm-Implementations | Fibonacci_series/Lua/Yonaba/fib_test.lua | 27 | 1042 | -- Tests for fib.lua
local fib = (require 'fib').fib
local fib_iter = (require 'fib').fib_iter
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 o... | mit |
yinjun322/quick-ng | quick/framework/init.lua | 8 | 5870 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
HuangYuNan/thcsvr | expansions/script/c20178.lua | 1 | 3310 | --庭师剑-裂魂红缨刀
function c20178.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c20178.target)
e1:SetOperation(c20178.operation)
c:RegisterEffect(e1)
--Spi... | gpl-2.0 |
abbasgh12345/extremeseed | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
magamplus/test1 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Arashbrsh/trea | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
aymanhaider/Demonic_bot | plugins/plugins.lua | 1 | 6752 | --[[
____ ___ _____
| __ ) / _ \_ _|
| _ \| | | || |
| |_) | |_| || |
|____/ \___/ |_|
Demonic bot (BY @Mostank_GT)
--]]
do
local function plugin_enabled( name )
for k,v in pairs(_config.enab... | gpl-2.0 |
bn7/darkstar | scripts/zones/Riverne-Site_B01/npcs/_0t2.lua | 17 | 1368 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_B01/TextIDs");
... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/LayerMultiplex.lua | 7 | 1408 |
--------------------------------
-- @module LayerMultiplex
-- @extend Layer
-- @parent_module cc
--------------------------------
-- release the current layer and switches to another layer indexed by n.<br>
-- The current (old) layer will be removed from it's parent with 'cleanup=true'.<br>
-- param n The layer inde... | mit |
yinjun322/quick-ng | quick/samples/ui/src/app/scenes/TestUIButtonScene.lua | 8 | 8760 |
local TestUIButtonScene = class("TestUIButtonScene", function()
return display.newScene("TestUIButtonScene")
end)
TestUIButtonScene.CHECKBOX_BUTTON_IMAGES = {
off = "CheckBoxButtonOff.png",
off_pressed = "CheckBoxButtonOffPressed.png",
off_disabled = "CheckBoxButtonOffDisabled.png",
on = "CheckBox... | mit |
XJMLN/MTA-PSZ | resources/[web]/performancebrowser/targetManager.lua | 5 | 2578 | --
-- targetmanager.lua
--
---------------------------------------------------------------------------
--
-- Target manager
--
--
--
---------------------------------------------------------------------------
targetList = {}
addEvent('onNotifyTargetEnabled', true)
addEventHandler('onNotifyTargetEnabled', resourceRoo... | mit |
bn7/darkstar | scripts/globals/weaponskills/upheaval.lua | 24 | 1571 | -----------------------------------
-- Upheaval
-- Great Axe weapon skill
-- Skill Level: 357
-- Delivers a four-hit attack. Damage varies with TP.
-- In order to obtain Upheaval, the quest Martial Mastery must be completed.
-- Aligned with Flame Gorget, Light Gorget & Shadow Gorget.
-- Aligned with Flame Belt, Light B... | gpl-3.0 |
bn7/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua | 22 | 2655 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NM: Mother Globe
-- TODO: Looked like pets had an additional effect: stun with an unknown proc rate
-- TODO: "Links with Slave Globes, and Slave Globes link with Defenders. Defenders do not link with Slave Globes or Mother Globe."
---------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c29006.lua | 1 | 2863 |
--辘轳首的怪奇✿赤蛮奇
function c29006.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(29006,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c29006.cost)
e1:SetTarget(c29006.t... | gpl-2.0 |
aymanhaider/Demonic_bot | plugins/get.lua | 1 | 1290 | --[[
____ ___ _____
| __ ) / _ \_ _|
| _ \| | | || |
| |_) | |_| || |
|____/ \___/ |_|
Demonic bot (BY @Mostank_GT)
--]]
local function get_variables_hash(msg)
if msg.to.type == 'chat' or msg.... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/agaricus_mushroom.lua | 12 | 1160 | -----------------------------------------
-- ID: 5680
-- Item: agaricus mushroom
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- STR -4
-- MND +2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
lagerstrom/urpuppet | modules/awesome/files/awesome_config_old/vicious/widgets/mpd.lua | 4 | 2205 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
... | apache-2.0 |
frankyifei/koreader | spec/unit/readerpaging_spec.lua | 2 | 1915 | describe("Readerpaging module", function()
local sample_pdf = "spec/front/unit/data/sample.pdf"
local readerui
local paging
setup(function() require("commonrequire") end)
describe("Page mode", function()
setup(function()
readerui = require("apps/reader/readerui"):new{
... | agpl-3.0 |
DBReinitialized/SafeGuard | src/SGWebServices/deps/pathjoin.lua | 20 | 2808 | --[[lit-meta
name = "creationix/pathjoin"
description = "The path utilities that used to be part of luvi"
version = "2.0.0"
tags = {"path"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local getPrefix, splitPath, joinParts
local isWindows
if _G.jit then
isWindows = _G.jit.os == "Windows"
else
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.