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
infernal1200/infernal
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
kidaa/FFXIOrgins
scripts/commands/addeffect.lua
2
1659
--------------------------------------------------------------------------------------------------- -- func: addeffect -- auth: Lautan -- desc: Adds the given effect to the given player. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1,...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/items/goblin_mushpot.lua
2
1239
----------------------------------------- -- ID: 4543 -- Item: goblin_mushpot -- Food Effect: 180Min, All Races ----------------------------------------- -- Mind 10 -- Charisma -5 -- Dark Resist 10 ----------------------------------------- require("scripts/globals/status"); -------------------------------...
gpl-3.0
Fatalerror66/ffxi-a
scripts/globals/items/tavnazian_taco.lua
2
1808
----------------------------------------- -- ID: 5174 -- Item: tavnazian_taco -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- HP Recovered While Healing 1 -- MP Recovered While Hea...
gpl-3.0
frutjus/OpenRA
mods/cnc/maps/gdi05a/gdi05a.lua
19
6681
RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 } ActorRemovals = { Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 }, Normal = { Actor167, Actor194, Actor196, Actor197 }, Hard = { }, } GdiTanks = { "mtnk", "mtnk" } GdiApc = { "apc" } GdiInfantry = { "e1",...
gpl-3.0
roboxt/ss
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
soheil22222222/xx
plugins/xkcd.lua
1
1719
do function get_last_id(msg) local res,code = https.request('http://xkcd.com/info.0.json') if code ~= 200 then reply_msg(msg.id, 'HTTP ERROR', ok_cb, true) end local data = json:decode(res) return data.num end function get_xkcd(msg, id) local res,code = http.request('http://xk...
gpl-2.0
dromozoa/dromozoa-unix
test/lua/test_selfpipe.lua
1
2143
-- Copyright (C) 2016,2018 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-unix. -- -- dromozoa-unix 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,...
gpl-3.0
Blackdutchie/Zero-K
LuaUI/Widgets/unit_cloakfirestate.lua
5
5191
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Cloak Fire State", desc = "Sets units to Hold Fire when cloaked, reverts to original state whe...
gpl-2.0
Dyelan/API-Rues
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
imblackman/bot
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-3.0
companyrad/company
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...
lgpl-2.1
Blackdutchie/Zero-K
Objects3d/pw_techlab.lua
14
2513
pw_techlab = { pieces = { base = { wheel1 = {offset = {0, 24.778, -51.046},}, wheel2 = {offset = {0, 24.778, 51.046},}, slider = { sliderturret = {}, }, armabase = { offset = {47.316, 32.656, 30.519}, arma = { offset = {-8.605, 29.659, 0}, armapick = { offset = {-26.401, 4....
gpl-2.0
kuoruan/lede-luci
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua
4
8520
-- Copyright 2014 Aedan Renner <chipdankly@gmail.com> -- Copyright 2018 Florian Eckert <fe@dev.tdt.de> -- Licensed to the public under the GNU General Public License v2. dsp = require "luci.dispatcher" arg[1] = arg[1] or "" m5 = Map("mwan3", translatef("MWAN Interface Configuration - %s", arg[1])) m5.redirect = dsp...
apache-2.0
xAleXXX007x/Witcher-RolePlay
witcherrp/plugins/crafting/sh_recipies_smithing.lua
1
64246
local PLUGIN = PLUGIN local RECIPE = {} RECIPE.uid = "ognivo_making" RECIPE.name = "Огниво" RECIPE.category = "Кузнечное ремесло: разное" RECIPE.model = Model( "models/items/special/lockpicks/lockpick_02.mdl" ) RECIPE.desc = "С помощью этой вещицы можно разжечь костер." RECIPE.noBlueprint = true RECIPE.place = 1 ...
mit
kuoruan/lede-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
apache-2.0
githabbot/server85
plugins/lock_sticker.lua
17
19859
-- 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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/objects/random-artifacts/ammo.lua
1
13651
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
khavnu/VLCLIB
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
vaughamhong/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
jeffsantos/GraphProver
Util/utility.lua
1
1657
------------------------------------------------------------------------------- -- Utility Module -- -- Contain functions that can be used by all the aplication. Normaly functions -- for string manipulation or for debuging. -- This is provided by the grafic module to all others that want to use this -- functi...
gpl-2.0
amirilk1414/i4bot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
rigeirani/tele
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
OutlawGameTools/Lime2DTileEngine
lime/lime-object.lua
1
19544
---------------------------------------------------------------------------------------------------- ---- Lime - 2D Tile Engine for Corona SDK. (Original author: Graham Ranson) ---- http://OutlawGameTools.com ---- Copyright 2013 Three Ring Ranch ---- The MIT License (MIT) (see LICENSE.txt for details) -----------------...
mit
Blackdutchie/Zero-K
effects/gundam_kampferimpact.lua
25
7159
-- kampferimpact return { ["kampferimpact"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0.1 0.1 0.1 1.0 0...
gpl-2.0
NanoSmasher/lua-fractal-set
DragonsCurve_Remastered/main.lua
1
7641
--[[ <<Program 6b: Arbitrary starting line>> Take one line and choose [A] or [B] [A] "curl" it to the right. meaning: --- expands to R \/ L [B] "curl" it to the left. meaning: --- expands to R /\ L The endpoints are the same, we are just adding a midpoint that is shared between both lines. The expansion makes th...
mit
protomech/epgp-dkp-reloaded
libs/AceGUI-3.0/AceGUI-3.0.lua
47
23674
--- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs. -- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself -- to create any custom GUI. There are more extensive examples in the test suite in the Ace3 -- stand-alone distribution. -- -- **Note**:...
bsd-3-clause
weinrank/wireshark
test/lua/dir.lua
31
6467
-- test script for wslua Dir functions ------------- helper funcs ------------ local total_tests = 0 local function testing(name) print("---- Testing "..name.." ---- ") end local function test(name, ...) total_tests = total_tests + 1 io.stdout:write("test "..name.."-"..total_tests.."...") if (...) =...
gpl-2.0
notcake/xlit
lua/xlit/ui/textentryextender.lua
1
5182
local self = {} Xlit.TextEntryExtender = Xlit.MakeConstructor (self) function self:ctor () self.FocusedPanel = nil self.TextEntry = nil self.Button = nil self.Leetspeak = Xlit.CharacterReplacementMap () self.Leetspeak:SetCharacterReplacement ("a", "4") self.Leetspeak:SetCharacterReplacement ("e", "3") self.Le...
gpl-3.0
kuoruan/lede-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
4
9094
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local tpl = require "luci.template" local ntm = require "luci.model.network".init() local fwm = require "luci.model.firewall".ini...
apache-2.0
wilbefast/snowman-ludumdare31
src/gameobjects/Torch.lua
1
4848
--[[ (C) Copyright 2014 William Dyce All rights reserved. This program and the accompanying materials are made available under the terms of the GNU Lesser General Public License (LGPL) version 2.1 which accompanies this distribution, and is available at http://www.gnu.org/licenses/lgpl-2.1.html This library is distri...
mit
mahdib9/77
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
mhh1378/pika
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
sina7skk/start
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
xAleXXX007x/Witcher-RolePlay
witcherrp/entities/weapons/nut_axe_hatchet.lua
1
4422
AddCSLuaFile() SWEP.PrintName = "Топор" SWEP.Author = "Dr. Towers" SWEP.Instructions = "" SWEP.Category = "WitcherRP" SWEP.HoldType = "melee" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.Spawnable = true SWEP.ViewModel = Model( "models/weapons/HL2meleepack/v_axe.mdl" ) SWEP.WorldModel = Model( "mod...
mit
Blackdutchie/Zero-K
LuaRules/Configs/cai/assetTrackerConfig.lua
6
8892
local heatmapNames = { mobileAntiAir = { ["armjeth"] = {mult = 1}, ["corcrash"] = {mult = 1}, ["vehaa"] = {mult = 1}, ["corsent"] = {mult = 1}, ["hoveraa"] = {mult = 1}, ["spideraa"] = {mult = 1}, ["armaak"] = {mult = 1}, ["amphaa"] = {mult = 1}, ["shipaa"] = {mult = 1}, ["gunship11"] = {mult = 1},...
gpl-2.0
Robertdebrus/ANLEra
utils/diplomacy.lua
1
29218
-- << magic marker. For Lua it's a comment, for the WML preprocessor an opening quotation sign. --[[ This file contains: * the diplomacy menu and submenus * code to determine who/what is listed in the submenus * code to determine offered negotiation options * code to choose a new recruit Structure of the menu: -> (1...
gpl-2.0
sina7skk/start
plugins/webshot.lua
110
1424
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
githabbot/server85
plugins/stats.lua
12
6289
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/dialogs/Donation.lua
1
4311
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
ladc/lgsl
lgsl/vegas.lua
1
4935
-- vegas.lua -- -- Create a function that can perform a VEGAS Monte Carlo multidimensional -- numerical integration. -- -- Copyright (C) 2009-2015 Lesley De Cruz & Francesco Abbate -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as pub...
gpl-3.0
Blackdutchie/Zero-K
effects/gundam_vulcanhit.lua
26
2034
-- tracerpop return { ["tracerpop"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 0.0, circlegrowth = 8, flashalpha = 0.9, flashsize = 20, ground = true, ttl = 10, ...
gpl-2.0
imblackman/bot
plugins/expiretimes.lua
5
2695
--[[ # # # Allen - GPMod # Expire Time plugin # # ]] local function pre_process(msg) msg.text = msg.content_.text local timetoexpire = 'unknown' local expiretime = redis:hget ('expiretime', msg.chat_id_) local now = tonumber(os.time()) if expiretime then timet...
gpl-3.0
AmyBSOD/ToME-SX
lib/scpt/s_tulkas.lua
1
1873
-- Handle Tulkas magic school TULKAS_AIM = add_spell { ["name"] = "Divine Aim", ["school"] = {SCHOOL_TULKAS}, ["level"] = 1, ["mana"] = 30, ["mana_max"] = 500, ["fail"] = 20, -- Uses piety to cast ["piety"] = TRUE, ["stat"] = A_WIS, ["random"] = SKILL_SPIRITUALITY, ["spell"] = ...
gpl-2.0
xAleXXX007x/Witcher-RolePlay
nutscript/gamemode/core/hooks/sh_hooks.lua
1
9084
function GM:PlayerNoClip(client) return client:IsAdmin() or client:getChar():hasFlag("N") end HOLDTYPE_TRANSLATOR = {} HOLDTYPE_TRANSLATOR[""] = "normal" HOLDTYPE_TRANSLATOR["physgun"] = "smg" HOLDTYPE_TRANSLATOR["ar2"] = "smg" HOLDTYPE_TRANSLATOR["crossbow"] = "shotgun" HOLDTYPE_TRANSLATOR["rpg"] = "shotgun" HOLDTYP...
mit
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EventDispatcher.lua
6
2552
-------------------------------- -- @module EventDispatcher -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#EventDispatcher] pauseEventListenersForTarget -- @param self -- @param #cc.Node node -- @param #bool bool -------------------------------- -- @function [pare...
gpl-2.0
qifuluo/Humble
Bin/lua/public/init.lua
1
9977
--ÈÎÎñ³õʼ»¯ ÿ¸öÈÎÎñ¶¼Òªrequire require("macros") local humble = require("humble") local hotfix = require("hotfix") local debugtcp = require("debugtcp") local utile = require("utile") local cjson = require("cjson") local string = string local table = table local load = load local m_taskName = g_taskName -...
mit
LuaDist2/lua-nucleo
lua-nucleo/misc.lua
3
1241
-------------------------------------------------------------------------------- --- Various useful stuff -- @module lua-nucleo.misc -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) ----------------------------------------------------------------------...
mit
sleepingwit/premake-core
modules/vstudio/tests/vc2010/test_extension_settings.lua
16
1709
-- -- tests/actions/vstudio/vc2010/test_extension_settings.lua -- Check the import extension settings block of a VS 2010 project. -- Copyright (c) 2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs2010_extension_settings") local vc2010 = p.vstudio.vc2010 local project = ...
bsd-3-clause
mrichards42/xword
lua/luapuz/bind/namespace.lua
2
6489
require 'base' require 'type' -- -------------------------------------------------------------------------- -- Namespace class -- -------------------------------------------------------------------------- local mt = bind.base_mt:subclass() local GLOBAL_NAME = "__G" function mt:isglobal() return self.nam...
gpl-3.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/chats/pre-charred-scar.lua
1
1499
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
Blackdutchie/Zero-K
effects/gundam_beam_explosion.lua
26
1598
-- beam_explosion return { ["beam_explosion"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 0.5, circlegrowth = 10, circlesize = 10, flashalpha = 0.9, flashsize = 120, ground ...
gpl-2.0
vaughamhong/vlc
share/lua/modules/sandbox.lua
96
4375
--[==========================================================================[ sandbox.lua: Lua sandboxing facilities --[==========================================================================[ Copyright (C) 2007 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This program is f...
gpl-2.0
nimaghorbani/nimatelegram
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
lua-cloner/lua-cloner
LUA-Clone/src/main.lua
1
2192
require'lfs' local class = require 'middleclass' screen = { ["clear"] = function() end, ["setPos"] = function(x, y) end, ["getPos"] = function() end, ["read"] = function() end } local function main() init() result, i = Menu:showMain() if i==1 then Menu:showCreateImage()...
mit
sorblack-x/gold_bot
plugins/setrank.lua
1
9097
do local Dev = 134843111 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.id, '😐مقام کار...
gpl-2.0
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua
6
6486
-------------------------------- -- @module Scale9Sprite -- @extend Node -- @parent_module cc -------------------------------- -- @function [parent=#Scale9Sprite] resizableSpriteWithCapInsets -- @param self -- @param #rect_table rect -- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite) -...
gpl-2.0
teslamint/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua
22
3988
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") featuremap = cbimap:section(TypedSection, "featuremap", "Feature Key maps", "") featuremap.anonymous = true featurema...
apache-2.0
kuoruan/lede-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua
22
3988
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") featuremap = cbimap:section(TypedSection, "featuremap", "Feature Key maps", "") featuremap.anonymous = true featurema...
apache-2.0
Blackdutchie/Zero-K
effects/annabelle.lua
25
4477
-- annabelle -- annabelle_smokejet return { ["annabelle"] = { boom = { air = true, class = [[CExpGenSpawner]], count = 1, ground = true, water = true, properties = { delay = [[0 i1]], ...
gpl-2.0
mahdibagheri/aqa-mp3
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/quests/grave-necromancer.lua
1
2067
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
tarantonio/TheForgottenServer
data/talkactions/scripts/kills.lua
14
1396
function onSay(cid, words, param) local player = Player(cid) local fragTime = configManager.getNumber(configKeys.FRAG_TIME) if fragTime <= 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.") return false end local skullTime = player:getSkullTime() if skullTime...
gpl-2.0
kuoruan/lede-luci
applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua
4
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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/birth/classes/none.lua
1
1163
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
Blackdutchie/Zero-K
LuaUI/Widgets/chili/Controls/colorbars.lua
25
2469
--//============================================================================= Colorbars = Control:Inherit{ classname = "colorbars", color = {1,1,1,1}, defaultWidth = 100, defaultHeight = 20, OnChange = {}, } local this = Colorbars local inherited = this.inherited --//=============================...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/traps/teleport.lua
1
1461
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
tarantonio/TheForgottenServer
data/npc/lib/npc.lua
15
3407
-- Including the Advanced NPC System dofile('data/npc/lib/npcsystem/npcsystem.lua') isPlayerPremiumCallback = isPremium function msgcontains(message, keyword) local message, keyword = message:lower(), keyword:lower() if message == keyword then return true end return message:find(keyword) and not message:find('...
gpl-2.0
Cat5TV/tps_skyblock
mods/default/init.lua
15
1623
-- Minetest 0.4 mod: default -- See README.txt for licensing and other information. -- The API documentation in here was moved into game_api.txt -- Definitions made by this mod that other mods can use too default = {} default.LIGHT_MAX = 14 -- GUI related stuff default.gui_bg = "bgcolor[#080808BB;true]" default.gui...
lgpl-2.1
mwharris1313/AutoSheet
img/sheet24.lua
4
13072
local options = { frames = { {x=0,y=0,width=24,height=24,}, -- frame 1 {x=24,y=0,width=24,height=24,}, -- frame 2 {x=48,y=0,width=24,height=24,}, -- frame 3 {x=72,y=0,width=24,height=24,}, -- frame 4 {x=96,y=0,width=24,height=24,}, -- frame 5 {x=120,y=0,width=24,height=24,}, -- frame 6 ...
apache-2.0
JCBauza/NginX
1.4.5/nginx-1.4.5/debian/modules/nginx-http-push/tests/test.lua
16
4254
print("The test 'framework' used here is still a touch wonky. A test failure need not mean that things are actually broken...") require "httpest" --fyi, the test "framework" used here is still wonky. math.randomseed(os.time()) local request=httpest.request local sendurl, listenurl = "http://localhost:8082/broadcast/pub...
bsd-3-clause
powernitro/secure
tg/tdcli.lua
102
88571
--[[ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
anfractuosity/lanes
tests/timer.lua
6
2574
-- -- TIMER.LUA -- -- Sample program for Lua Lanes -- -- On MSYS, stderr is buffered. In this test it matters. io.stderr:setvbuf "no" local lanes = require "lanes".configure() local linda= lanes.linda() local function PRINT(str) io.stderr:write(str.."\n") end local T1= "1s" -- these keys can be anything... l...
mit
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/old-forest/zone.lua
1
4296
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
cracker64/Crackbot
plugins/filters.lua
1
19317
module("filters", package.seeall) local filters = {} local activeFilters = {} local badWordFilt = nil local bannedChans = {['nickserv']=true,['chanserv']=true,['memoserv']=true} setmetatable(activeFilters,{__index = function(t,k) t[k]={t = {},lock = false} return t[k] end}) local function add_filt(f,name,sane,help,lev...
mit
xAleXXX007x/Witcher-RolePlay
witcherrp/schema/hooks/sv_hooks.lua
1
3589
--[[ function SCHEMA:PlayerSpawnSENT(ply, class) if class == "nut_vendor" and !ply:IsSuperAdmin() then return false end end ]] function SCHEMA:PlayerSpray(player) return true; end; function SCHEMA:PlayerSpawnNPC(ply, npcclass, wep) if npcclass == "npc_goat" or npcclass == "npc_deer" then return false end end ...
mit
zhuanshicong/myopenwrt
feeds/luci/applications/luci-app-qos_gargoyle/luasrc/controller/qos_gargoyle.lua
9
1033
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: qos.lua 9...
gpl-2.0
RatchetJ/cqui
UI/Screens/CivicsTree.lua
2
85082
-- =========================================================================== -- CivicsTree -- Tabs set to 4 spaces retaining tab. -- -- Items exist in one of 7 "rows" that span horizontally and within a -- "column" based on the era and cost. -- -- Rows Start Eras-> -- -3 _____ ____...
mit
saraedum/luci-packages-old
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-app.lua
137
15546
cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "") app_alarmreceiver:value("yes", "Load") app_alarmreceiver:value("no", "Do Not Load") app_al...
apache-2.0
aliasIsolation/aliasIsolation
tools/tundra2/scripts/tundra/tools/msvc.lua
22
2788
-- msvc.lua - common definitions for all flavors of MSVC module(..., package.seeall) function apply(env, options) -- load the generic C toolset first tundra.unitgen.load_toolset("generic-cpp", env) -- load support for win32 resource compilation tundra.unitgen.load_toolset("win32-rc", env) env:set_many { ...
unlicense
sleepingwit/premake-core
modules/gmake/gmake_utility.lua
15
1409
-- -- make_utility.lua -- Generate a C/C++ project makefile. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- local p = premake p.make.utility = {} local make = p.make local utility = p.make.utility local project = p.project local config = p.config local fileconfig = p.fileco...
bsd-3-clause
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/slazish-fen/zone.lua
1
4661
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0
sqmedeiros/lpeglabel
relabel.lua
1
10045
-- $Id: re.lua $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local pcall = pcall local setmetatable = setmetatable local tinsert, concat = table.insert, table.concat local rep = string.rep local m = require"lpeglabel" -- 'm' will be used to parse expressions, an...
mit
teslamint/luci
applications/luci-app-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
92
6917
-- wizard rewrite wip local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk") local mesh_network = ip.IPv4(uci:get_first(community, "community", "...
apache-2.0
sleepingwit/premake-core
modules/vstudio/tests/vc200x/test_assembly_refs.lua
16
1548
-- -- tests/actions/vstudio/vc200x/test_assembly_refs.lua -- Validate managed assembly references in Visual Studio 2010 C/C++ projects. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs200x_assembly_refs") local vc200x = p.vstudio.vc200x -- -- Setup --...
bsd-3-clause
RockySeven3161/SeedBot
bot/utils.lua
26
22439
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")() JSON = (loadfile "./libs/...
gpl-2.0
daququ/nginx-lua-upload-module
tests/test_http_utils.lua
2
14778
local lunit = require("lunit") local http_utils = require("nginx_upload.http_utils") local table = table module("p", lunit.testcase) -- tests taken from here http://greenbytes.de/tech/tc2231/ function test_inline_only() disp_type, disp_params = http_utils.parse_content_disposition("inline") lunit.assert_equ...
gpl-2.0
moononournation/nodemcu-webide
bin/httpserver.lua
1
7343
-- httpserver -- Author: Marcos Kirsch -- Starts web server in the specified port. return function (port) local s = net.createServer(net.TCP, 10) -- 10 seconds client timeout s:listen( port, function (connection) -- This variable holds the thread (actually a Lua coroutine) used ...
gpl-2.0
3scale/apicast
spec/resty/concurrent/event_spec.lua
2
2059
local Event = require('resty.concurrent.event') local yield = function () ngx.sleep(0) end describe('Event', function() local threads = {} local spawn = function(fun) -- helper function to track all threads and kill them between tests local thread = ngx.thread.spawn(assert(fun)) table.insert(...
apache-2.0
Blackdutchie/Zero-K
effects/mary_sue.lua
25
5718
-- mary_sue_fireball1 -- mary_sue_fireball3 -- mary_sue -- mary_sue_fireball2 return { ["mary_sue_fireball1"] = { wezels = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, ...
gpl-2.0
Facerafter/starcitizen-tools
extensions/Scribunto/engines/LuaCommon/lualib/libraryUtil.lua
7
1820
local libraryUtil = {} function libraryUtil.checkType( name, argIdx, arg, expectType, nilOk ) if arg == nil and nilOk then return end if type( arg ) ~= expectType then local msg = string.format( "bad argument #%d to '%s' (%s expected, got %s)", argIdx, name, expectType, type( arg ) ) error( msg, 3 ) end...
gpl-3.0
Blackdutchie/Zero-K
scripts/armbrtha.lua
11
1839
local ground = piece 'ground' local base = piece 'base' local flare = piece 'flare' local muzzle = piece 'muzzle' local turret = piece 'turret' local barrel = piece 'barrel' local barrel_back = piece 'barrel_back' local sleeve = piece 'sleeve' include "constants.lua" include "pieceControl.lua" local spGetUnit...
gpl-2.0
froggatt/openwrt-luci
libs/httpclient/luasrc/httpclient/receiver.lua
93
6049
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
apache-2.0
LuaDist2/lua-nucleo
lua-nucleo/checker.lua
3
2062
-------------------------------------------------------------------------------- --- Complex validation helper -- @module lua-nucleo.checker -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------------------------...
mit
3scale/apicast
spec/backend/cache_handler_spec.lua
2
2610
local _M = require('apicast.backend.cache_handler') local lrucache = require('resty.lrucache') describe('Cache Handler', function() describe('.new', function() it('has a default handler', function() local handler = _M.new() assert.equal(assert(_M.handlers.default), handler.handler) end) it('...
apache-2.0
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRatchet.lua
7
1329
-------------------------------- -- @module PhysicsJointRatchet -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- @function [parent=#PhysicsJointRatchet] getAngle -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [par...
gpl-2.0
amirilk1414/i4bot
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
jjimenezg93/ai-behaviours
moai/3rdparty/luasocket-2.0.2/src/tp.lua
146
3608
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $ ----------------------------------------------------------------------------- --------------------------...
mit
Blackdutchie/Zero-K
effects/slam.lua
5
37667
-- slam -- slam_sparks_smokejets -- slam_flash -- slam_ray -- slam_heat_pillar -- slam_landcloud -- slam_landcloud_ring -- slam_landcloud_topcap -- slam_landcloud_cap -- slam_landcloud_pillar -- slam_landcloud_topsuction -- slam_seacloud -- slam_seacloud_topcap -- slam_seacloud_ring -- slam_seacloud_cap -- slam_seaclou...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/temporal-rift/zone.lua
1
6812
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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 ...
gpl-3.0