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 |
|---|---|---|---|---|---|
SHIELDTM/shield5 | plugins/antifa.lua | 8 | 1293 | ntifa = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['antifa'] then
if data... | gpl-2.0 |
adriamarcet/WG_premium_text-files | tuto_ger.lua | 1 | 4130 | --<< Textos del tutorial >>--
local tableText = {
blancas = {
--<< START translate >>--
btnSetSalir = "Das Tutorial verlassen",
btnSetContinuar = "Weiter spielen",
btnFinAcabar = "Beenden",
btnFinContinuar = "weiterführen"
--<< END translate >>--
},
negras = {
--<< START translate // transform... | mit |
haiderqwwq2/-haiderqwwq | data/config.lua | 2 | 8378 | do local _ = {
about_text = "lcome to KING_TELE \n DEV1: @ll_B5 \n DEV2: @sadikal_knani10 \n\n الاصدار :- V 3.0 \n CH1: @illOlli \n CH2: @KINGTELE1 \n it is Bakury ",
enabled_plugins = {
"admin",
"all",
"anti_spam",
"ar-banhammer",
"ar-broadcast",
"ar-getfile",
"ar-help",
"ar-info",
"... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Rabao/Zone.lua | 27 | 1541 | -----------------------------------
--
-- Zone: Rabao (247)
--
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
ghoghnousteam/ghoghnous | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
A-N-bot/anonymous | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
LORDMEHDI/testertard | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Jeuno/npcs/Veujaie.lua | 14 | 1041 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Veujaie
-- Type: Item Deliverer
-- @zone 246
-- @pos -20.349 7.999 -2.888
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kuftal_Tunnel/npcs/qm1.lua | 14 | 1162 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ??? (qm1)
-- Note: Used to spawn Phantom Worm
-- @pos 75.943 29.916 118.854 174
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kuftal_Tunnel/T... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Credaurion_RK.lua | 14 | 3393 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Credaurion, R.K.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/poultry_pitaru.lua | 12 | 1347 | -----------------------------------------
-- ID: 5890
-- Item: poultry_pitaru
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- MP +7% (cap 110)
-- Increases rate of magic skill gains by 40%
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Door_Acolyte_hostel.lua | 14 | 2077 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Door Acolyte hostel
-- @pos 125 -2 216 94
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/sett... | gpl-3.0 |
keneo/swarm | startup.lua | 1 | 2492 | -- this startup should download fresh startup.second.lua and call it
--exports:
--require
--require_try
-- Loads a table from file
function loadTable()
sPath="gitget.cfg"
if not fs.exists(sPath) then
--error("loadTable() file not found: " .. sPath)
saveString(textutils.serialize({user=githubUser or "keneo... | mit |
DEVSEIKO/seikodev | plugins/plugins.lua | 5 | 7369 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
d... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Styi_Palneh.lua | 27 | 4322 | -----------------------------------
-- Area: Port Bastok
-- NPC: Styi Palneh
-- Title Change NPC
-- @pos 28 4 -15 236
-----------------------------------
require("scripts/globals/titles");
local title2 = { NEW_ADVENTURER , BASTOK_WELCOMING_COMMITTEE , BUCKET_FISHER , PURSUER_OF_THE_PAST , MOMMYS_HELPER , HOT_DOG ,
... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/North_Gustaberg/npcs/Kuleo.lua | 14 | 1914 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Kuleo
-- Type: Outpost Vendor
-- @pos -586 39 61 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/con... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Rockwell.lua | 13 | 2288 | -----------------------------------
-- Area: Maze of Shakhrami
-- Quest: Your Crystal Ball
-- @pos -18 -13 181 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/title... | gpl-3.0 |
ejoy/ejoy2d | examples/asset/birds.lua | 21 | 9809 | return {
{
["type"] = "picture",
[1] = {
["screen"] = {
240, 1280, -240, 1280, -240, -1280, 240, -1280,
},
["tex"] = 1,
["src"] = {
1009, 354, 979, 354, 979, 194, 1009, 194,
},
},
["export"]... | mit |
Scavenge/darkstar | scripts/zones/Al_Zahbi/npcs/Salaifa.lua | 14 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Salaifa
-- Type: Standard NPC
-- @zone 48
-- @pos -37.462 -7 -41.665
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Western_Altepa_Desert/mobs/Desert_Dhalmel.lua | 14 | 1048 | -----------------------------------
-- Area: Western Altepa Desert
-- MOB: Desert Dhalmel
-- Note: Place holder for Celphie
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Western_Altepa_Desert/MobIDs");
-----------------------------------
-- onMobDeath
----------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/bluemagic/mandibular_bite.lua | 33 | 1716 | -----------------------------------------
-- Spell: Mandibular Bite
-- Damage varies with TP
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: INT+1
-- Level: 44
-- Casting Time: 0.5 seconds
-- Recast Time: 19.25 seconds
-- Skillchain property(ies): I... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua | 14 | 2241 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Windy Ambassador
-- Windurst Mission 3.3 "A New Journey"
-- @pos 636 16 59 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
1yvT0s/luvit | tests/test-fs-readfile-zero-byte-liar.lua | 8 | 1577 | --[[
Copyright 2012-2015 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... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Mushosho.lua | 14 | 1935 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Mushosho
-- Type: Outpost Vendor
-- @pos -290 16 415 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scr... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Amfafa.lua | 14 | 1057 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Amfafa
-- Type: Standard NPC
-- @zone 94
-- @pos -24.938 -2 -185.729
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/bluemagic/queasyshroom.lua | 31 | 1990 | -----------------------------------------
-- Spell: Queasyshroom
-- Additional effect: Poison. Duration of effect varies with TP
-- Spell cost: 20 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 8
-- Casting Time: 2 seconds
-- Recast Time: 15 ... | gpl-3.0 |
zozaiq/DEV_ZOZO | plugins/lock_badword.lua | 2 | 1181 | local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['fosh'] then
lock_fosh = ... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Gawful.lua | 14 | 1103 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gawful
-- Type: Item Deliverer
-- @zone 234
-- @pos -22.416 -3.999 -56.076
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("script... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Cloister_of_Flames/npcs/Fire_Protocrystal.lua | 27 | 1942 | -----------------------------------
-- Area: Cloister of Flames
-- NPC: Fire Protocrystal
-- Involved in Quests: Trial by Fire, Trial Size Trial by Fire
-- @pos -721 0 -598 207
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/utility_two.lua | 17 | 1410 | -- Utility function for ZK
-- Will try to read LUA content from target file and create BACKUP if have a successful read (in user's Spring folder) OR DELETE them if have a failure read
-- This prevent corrupted file from being used.
-- Note: currently only a "table" is considered a valid file
function CheckLUAFileAndBa... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Port_Bastok/npcs/Dehlner.lua | 17 | 1208 | -----------------------------------
-- Area: Port Bastok
-- NPC: Dehlner
-- Standard Info NPC
-- Invlolved in Quest: A Foreman's Best Friend
-----------------------------------
require("scripts/globals/quests");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
--... | gpl-3.0 |
jiffyjeff/mongrel2 | examples/bbs/ui.lua | 96 | 2026 | local coroutine = coroutine
module 'ui'
local SCREENS = {
['welcome'] = [[
__ __ ____ ____ ____ ____
| \/ |___ \| __ )| __ ) ___|
| |\/| | __) | _ \| _ \___ \
| | | |/ __/| |_) | |_) |__) |
|_| |_|_____|____/|____/____/
Welcome to the Mongrel2 BBS.
]],
['name']... | bsd-3-clause |
Scavenge/darkstar | scripts/zones/Port_San_dOria/npcs/Ilgusin.lua | 14 | 1051 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ilgusin
-- Type: Standard NPC
-- @zone 232
-- @pos -68.313 -6.5 -36.985
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-------------... | gpl-3.0 |
xebecnan/UniLua | Assets/StreamingAssets/LuaRoot/test/main.lua | 9 | 5880 | # testing special comment on first line
-- most (all?) tests here assume a reasonable "Unix-like" shell
if _port then return end
print ("testing lua.c options")
assert(os.execute()) -- machine has a system command
prog = os.tmpname()
otherprog = os.tmpname()
out = os.tmpname()
do
local i = 0
while arg[i] do ... | mit |
Scavenge/darkstar | scripts/zones/Windurst_Woods/npcs/Cayu_Pensharhumi.lua | 14 | 1472 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Cayu Pensharhumi
-- Type: Standard NPC
-- @pos 39.437 -0.91 -40.808 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requir... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/gui_recv_indicator.lua | 12 | 20188 | local versionName = "v1.294"
function widget:GetInfo()
return {
name = "Receive Units Indicator",
desc = versionName .. " Notify users of received units from unit transfer",
author = "msafwan",
date = "Jan 30, 2012", --minor clean up: June 25, 2013
license = "GNU GPL, v2 or la... | gpl-2.0 |
omid1212/spam | plugins/groupmanager.lua | 8 | 19076 | -- data saved to data/moderation.json
do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, grou... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Temenos/npcs/Armoury_Crate.lua | 21 | 8373 | -----------------------------------
-- Area: Temenos
-- NPC: Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Temenos/TextIDs");
re... | gpl-3.0 |
kirubz/Penlight | tests/test-pylib.lua | 7 | 1826 | -- test-pylib.lua
local List = require 'pl.List'
local text = require 'pl.text'
local Template = text.Template
local asserteq = require 'pl.test' . asserteq
l = List{10,20,30,40,50}
s = List{1,2,3,4,5}
-- test using: lua pylist.lua
local lst = List()
lst:append(10)
lst:extend{20,30,40,50}
asserteq (lst,List{10,20,30,... | mit |
Scavenge/darkstar | scripts/zones/Gustav_Tunnel/mobs/Doom_Warlock.lua | 14 | 1091 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Doom Warlock
-- Note: Place holder Taxim
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
----------------------------------... | gpl-3.0 |
nmacs/lm3s-uclinux | lib/liblua/bitstring-1.0/tests/test_helpers.lua | 1 | 2174 | require "os"
require "package"
require "bitstring"
--print = function(...) end
local run_test = function(name, f)
print(string.rep("-", 32))
print("started "..name)
print(string.rep("-", 32))
f()
print(string.rep("-", 32))
print("ended "..name)
print(string.rep("-", 32))
end
local hexdump... | gpl-2.0 |
PredatorMF/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/verbatim.lua | 44 | 1667 | -- tolua: verbatim class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: verbatim.lua,v 1.3 2000/01/24 20:41:16 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to prov... | mit |
pavel-odintsov/shogun | examples/undocumented/lua_modular/serialization_complex_example.lua | 21 | 2932 | require 'os'
require 'modshogun'
require 'load'
parameter_list={{5,1,10, 2.0, 10}, {10,0.3,2, 1.0, 0.1}}
function check_status(status)
assert(status == true)
-- if status:
-- print "OK reading/writing .h5\n"
--else:
-- print "ERROR reading/writing .h5\n"
end
function concatenate(...)
local result = ...
for... | gpl-3.0 |
oceancn/luci-nwan | luci/applications/luci-dnsfilter/luasrc/model/cbi/dnsfilter.lua | 2 | 8054 | local fs = require "nixio.fs"
local util = require "nixio.util"
local dnsfilter_status=(luci.sys.call("[ -f /etc/dnsmasq.d/dnsfilter.conf ]") == 0)
local button=""
------------------------------------------------------------------------
if dnsfilter_status then
m = Map("dnsfilter", translate("dnsfilter"), translate("F... | mit |
smanolache/kong | spec/plugins/galileo/02-buffer_spec.lua | 1 | 5280 | local Buffer
local function reload_buffer()
package.loaded["spec.plugins.galileo.ngx"] = nil
package.loaded["kong.plugins.galileo.buffer"] = nil
_G.ngx = require "spec.plugins.galileo.ngx"
Buffer = require "kong.plugins.galileo.buffer"
end
describe("ALF Buffer", function()
local conf, _ngx
before_each(fu... | apache-2.0 |
BibakBangTeam/Tabchi | fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Nashmau/npcs/Yoyoroon.lua | 17 | 1709 | -----------------------------------
-- Area: Nashmau
-- NPC: Yoyoroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
---------------------... | gpl-3.0 |
wjhandboy/Atlas | examples/tutorial-union.lua | 40 | 1614 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Shikoko_WW.lua | 14 | 3344 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Shikoko, W.W.
-- Type: Border Conquest Guards
-- @pos 536.291 23.517 694.063 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
mamaddeveloper/jjhw | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/mobskills/Everyones_Rancor.lua | 55 | 1603 | ---------------------------------------------
-- Everyones Grudge
--
-- Notes: Invokes collective hatred to spite a single target.
-- Damage done is 5x the amount of tonberries you have killed! For NM's using this it is 50 x damage.
---------------------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua | 17 | 1688 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Proud Beard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/events/harvest_... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
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 |
Zomis/FactorioMods | deprecated/treasures_0.16.0/treasure-config.lua | 1 | 1460 | local function possible_treasures()
return {
{
name = "start",
frequency = 1000,
distanceFrequencyBonus = -20,
minimumDistance = 0,
items = {
{ name = "lab", min = 1, max = 3 },
{ name = "science-pack-1", probability = 0.42, min = 10, max = 100 },
{ name = "sc... | mit |
Zero-K-Experiments/Zero-K-Experiments | units/chickenf.lua | 3 | 3923 | unitDef = {
unitname = [[chickenf]],
name = [[Talon]],
description = [[Flying Spike Spitter]],
acceleration = 0.8,
airHoverFactor = 0,
brakeRate = 0.32,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic ... | gpl-2.0 |
flux-framework/flux-core | t/job-manager/exec-service.lua | 7 | 2713 | #!/usr/bin/env lua
-------------------------------------------------------------
-- Copyright 2019 Lawrence Livermore National Security, LLC
-- (c.f. AUTHORS, NOTICE.LLNS, COPYING)
--
-- This file is part of the Flux resource manager framework.
-- For details, see https://github.com/flux-framework.
--
-- SPDX-License-I... | lgpl-3.0 |
nmacs/lm3s-uclinux | lib/liblua/xavante-2.2.1/src/webdav/davFileProps.lua | 3 | 1676 | -----------------------------------------------------------------------------
-- Xavante webDAV Properties with file backend
-- Author: Javier Guerra
-- Copyright (c) 2005 Javier Guerra
-----------------------------------------------------------------------------
require "lfs"
module (arg and arg[1])
local props_mt ... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Metalworks/npcs/Lutia.lua | 14 | 1047 | -----------------------------------
-- Area: Metalworks
-- NPC: Lutia
-- Type: Standard NPC
-- @zone 237
-- @pos 24.076 -17 -33.060
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/Met... | gpl-3.0 |
shayanchabok007/antispam_fox | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
mahdib9/mahdi4 | 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 |
ghoghnousteam/ghoghnous | 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 |
cyclonetm/XmakanX | 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 |
Scavenge/darkstar | scripts/zones/Cloister_of_Gales/bcnms/trial-size_trial_by_wind.lua | 30 | 2126 | -----------------------------------
-- Area: Cloister of Gales
-- BCNM: Trial-size Trial by Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/shop");
require("scripts/globals/... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Bastok_Markets/npcs/Belizieg.lua | 14 | 1140 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Belizieg
-- Type: Item Deliverer
-- @zone 235
-- @pos -323.673 -16.001 -49.930
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Marke... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Northern_San_dOria/npcs/Capiria.lua | 14 | 1684 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Capiria
-- Type: Involved in Quest (Flyers for Regine)
-- @zone 231
-- @pos -127.355 0.000 130.461
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
seblindfors/ConsolePort | ConsolePort/Widget/Helpers.lua | 1 | 14943 | local db = select(2, ...)
---------------------------------------------------------------
-- Indexed widget pool
---------------------------------------------------------------
CPIndexPoolMixin = {};
function CPIndexPoolMixin:OnLoad()
self.Registry = {};
end
function CPIndexPoolMixin:CreateFramePool(type, template, ... | artistic-2.0 |
Zero-K-Experiments/Zero-K-Experiments | gamedata/modularcomms/weapons/slamrocket.lua | 6 | 1642 | local name = "commweapon_slamrocket"
local weaponDef = {
name = [[S.L.A.M.]],
avoidFeature = false,
avoidGround = false,
collideFriendly = false,
areaOfEffect = 160,
burnblow = false,
cegTag = [[slam_trail]],
collisio... | gpl-2.0 |
PredatorMF/Urho3D | bin/Data/LuaScripts/06_SkeletalAnimation.lua | 6 | 10175 | -- Skeletal animation example.
-- This sample demonstrates:
-- - Populating a 3D scene with skeletally animated AnimatedModel components
-- - Moving the animated models and advancing their animation using a script object
-- - Enabling a cascaded shadow map on a directional light, which allows high-quali... | mit |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/gui_spectate_selected_team.lua | 16 | 5033 | function widget:GetInfo()
return {
name = "Spectate Selected Team",
desc = "Automatically spectate team based on selected units, and other spectate options.",
author = "SirMaverick",
version = "0.205", --has added options
date = "2010", --2013
license = "GNU GPL, v2 or later",
... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | units/hoverskirm.lua | 3 | 3472 | unitDef = {
unitname = [[hoverskirm]],
name = [[Trisula]],
description = [[Light Assault/Battle Hovercraft]],
acceleration = 0.03,
brakeRate = 0.043,
buildCostEnergy = 180,
buildCostMetal = 180,
builder = false,
buildPic ... | gpl-2.0 |
1yvT0s/luvit | deps/stream/stream_transform.lua | 7 | 6829 | --[[
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 |
Zero-K-Experiments/Zero-K-Experiments | gamedata/modularcomms/weapons/heatray.lua | 4 | 1404 | local name = "commweapon_heatray"
local weaponDef = {
name = [[Heat Ray]],
accuracy = 512,
areaOfEffect = 20,
coreThickness = 0.5,
craterBoost = 0,
craterMult = 0,
customParams = {
slot = [[5]],
light_camera_height... | gpl-2.0 |
SHIELDTM/shield5 | plugins/music.lua | 8 | 2712 | do
-- Base search URL
local BASE_URL = 'http://pleer.com/mobile/search?q='
-- Base download URL
local BASE_DL_URL = 'http://pleer.com/mobile/files_mobile/'
local htmlparser = require 'htmlparser'
-- Provide download link
local function getDownloadLink(id)
return BASE_DL_URL .. id .. '.mp3'... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Malfud.lua | 17 | 1325 | -----------------------------------
-- Area: Aht Urhfan Whitegate
-- NPC: Malfud
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/g... | gpl-3.0 |
Grade-A-Software/Comcast-DASH-VLC | share/lua/sd/icecast.lua | 82 | 2757 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot 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
... | gpl-2.0 |
seblindfors/ConsolePort | ConsolePort/Controller/Hooks.lua | 1 | 9115 | ---------------------------------------------------------------
-- Hooks
---------------------------------------------------------------
-- Context-aware bridge module for other internal modules,
-- processing based on multiple factors in an isolated sandbox.
local _, db = ...; local L = db.Locale;
local Hooks = db:Re... | artistic-2.0 |
Scavenge/darkstar | scripts/globals/items/bowl_of_whitefish_stew.lua | 12 | 1544 | -----------------------------------------
-- ID: 4440
-- Item: Bowl of Whitefish Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 10
-- Dexterity 3
-- Mind -3
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Dho_Gates/Zone.lua | 17 | 1213 | -----------------------------------
--
-- Zone: Foret de Hennetiel
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dho_Gates/TextIDs"] = nil;
require("scripts/zones/Dho_Gates/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Foret_de_Hennetiel/npcs/HomePoint#1.lua | 27 | 1282 | -----------------------------------
-- Area: Foret de Hennetiel
-- NPC: HomePoint#1
-- @pos -193 -0.5 -252 262
-----------------------------------
package.loaded["scripts/zones/Foret_de_Hennetiel/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Foret_de_Hennetiel/TextIDs");
require("scrip... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 14 | 3333 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/game_over.lua | 3 | 15415 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Misareaux/npcs/qm11.lua | 14 | 1348 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm11 (???)
-- Spawns Tuskertrap
-- @pos ? ? ? 216
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/weaponskills/burning_blade.lua | 23 | 1317 | -----------------------------------
-- Burning Blade
-- Sword weapon skill
-- Skill Level: 30
-- Desription: Deals Fire elemental damage to enemy. Damage varies with TP.
-- Aligned with the Flame Gorget.
-- Aligned with the Flame Belt.
-- Element: Fire
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.... | gpl-3.0 |
smanolache/kong | spec/plugins/rate-limiting/access_spec.lua | 1 | 9886 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local timestamp = require "kong.tools.timestamp"
local cjson = require "cjson"
local env = spec_helper.get_env()
local dao_factory = env.dao_factory
local STUB_GET_URL = spec_helper.STUB_GET_URL
local function wait()... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 14 | 1078 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @pos -176.212 -9 -25.049 235
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;... | gpl-3.0 |
seblindfors/ConsolePort | ConsolePort/View/UIHandle/UIHandle.lua | 1 | 4460 | local _, db = ...;
local Control = db:Register('UIHandle', ConsolePortUIHandle);
----------------------------------
-- Hint bar
----------------------------------
-- The bar appears at the bottom of the screen and displays
-- button function hints local to the focused frame.
-- Hints are controlled from the UI modules... | artistic-2.0 |
Scavenge/darkstar | scripts/globals/items/emerald_quiche.lua | 12 | 1392 | -----------------------------------------
-- ID: 5171
-- Item: emerald_quiche
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 15
-- Agility 1
-- Ranged ACC % 7
-- Ranged ACC Cap 20
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Majjih_Bakrhamab.lua | 30 | 1383 | -----------------------------------
-- Area: Kazham
-- NPC: Majjih Bakrhamab
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
----------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/mobskills/Guillotine.lua | 26 | 1058 | ---------------------------------------------
-- Guillotine
--
-- Description: Delivers a four-hit attack. Silences enemy. Duration of effect varies with TP.
-- Type: Physical
-- Number of hits
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Lower_Jeuno/npcs/Ruslan.lua | 14 | 2119 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ruslan
-- Involved In Quest: Wondering Minstrel
-- Working 100%
-- @zone = 245
-- @pos = -19 -1 -58
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/gundam_greencannonimpact.lua | 25 | 7046 | -- greencannonimpact
-- yellowcannonimpact
return {
["greencannonimpact"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 1,
circlegrowth = 5.5,
flashalpha = 0.8,
flashsize = 120,
ground = ... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/buttered_nebimonite.lua | 12 | 1394 | -----------------------------------------
-- ID: 4267
-- Item: Buttered Nebimonite
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- defense % 25
-- defense Cap 75
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/armspy.lua | 11 | 4109 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local barrel = piece 'barrel'
local flare = piece 'flare'
local lfrontleg = piece 'lfrontleg'
local lfrontleg1 = piece 'lfrontleg_1'
local rfrontleg = piece 'rfrontleg'
local rfrontleg1 = piece 'rfrontleg_1'
local laftleg = piec... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Metalworks/npcs/Malduc.lua | 14 | 3722 | -----------------------------------
-- Area: Metalworks
-- NPC: Malduc
-- Type: Mission Giver
-- @pos 66.200 -14.999 4.426 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
shayanchabok007/antispam_fox | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
PredatorMF/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/array.lua | 42 | 6551 | -- tolua: array class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: array.lua,v 1.1 2000/11/06 22:03:57 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide ma... | mit |
Scavenge/darkstar | scripts/zones/Norg/npcs/HomePoint#2.lua | 27 | 1236 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#2
-- @pos -65 -5 54 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
----------------------... | gpl-3.0 |
DebugClub/slua | build/luajit-2.1.0/src/host/genlibbc.lua | 51 | 4965 | ----------------------------------------------------------------------------
-- Lua script to dump the bytecode of the library functions written in Lua.
-- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (... | mit |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/start_boxes.lua | 1 | 10628 | if not gadgetHandler:IsSyncedCode() or VFS.FileExists("mission.lua") then return end
function gadget:GetInfo() return {
name = "Startbox handler",
desc = "Handles startboxes",
author = "Sprung",
date = "2015-05-19",
license = "PD",
layer = -math.huge + 10,
enabled = true,
} end
local gaiaAll... | gpl-2.0 |
seblindfors/ConsolePort | ConsolePort/View/Cursors/Mime.lua | 1 | 2342 | CPCursorMimeMixin = {};
-- External
---------------------------------------------------------------
function CPCursorMimeMixin:OnLoad()
self.Parent = self:GetParent()
self.Fonts = CreateFontStringPool(self, 'OVERLAY')
self.Textures = CreateTexturePool(self, 'OVERLAY')
end
function CPCursorMimeMixin:SetNode(no... | artistic-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.