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
MOSAVI17/Security1
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
murdemon/domoticz_codesys
scripts/lua/dzVents/Device.lua
1
7302
local TimedCommand = require('TimedCommand') local function Device(domoticz, name, state, wasChanged) local changedAttributes = {} -- storage for changed attributes local self = { ['name'] = name, ['changed'] = wasChanged, ['_States'] = { on = { b = true, inv='Off'}, open = { b = true, inv='Closed'}, ...
gpl-3.0
WACcCKER/Anti_Wacccker
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
alikineh/ali_kineh
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
Fatalerror66/ffxi-a
scripts/globals/items/cluster_of_paprika.lua
3
1172
----------------------------------------- -- ID: 5740 -- Item: Cluster of Paprika -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -3 -- Defense -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
kidaa/FFXIOrgins
scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua
4
1130
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil; package.loaded["scripts/globals/harvesting"] = nil; ------------------------------------- require("scripts/globals/harvesting"); ...
gpl-3.0
wounds1/zaza.bot
tg/test.lua
210
2571
started = 0 our_id = 0 function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'tab...
gpl-2.0
pquentin/wesnoth
data/lua/wml/items.lua
23
2857
local helper = wesnoth.require "lua/helper.lua" local wml_actions = wesnoth.wml_actions local game_events = wesnoth.game_events local scenario_items = {} local function add_overlay(x, y, cfg) wesnoth.add_tile_overlay(x, y, cfg) local items = scenario_items[x * 10000 + y] if not items then items = {} scenario_i...
gpl-2.0
kidaa/FFXIOrgins
scripts/zones/Lower_Jeuno/npcs/Faursel.lua
38
7011
----------------------------------- -- Area: Lower Jeuno -- NPC: Faursel -- Type: Aht Urhgan Quest NPC -- Involved in Quests: The Road to Aht Urhgan -- @pos 37.985 3.118 -45.208 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/setti...
gpl-3.0
murdemon/domoticz_codesys
scripts/lua/dzVents/tests/testScriptDeviceMain.lua
1
1059
local _ = require 'lodash' package.path = package.path .. ";../?.lua" package.path = package.path .. ";../../?.lua" -- two folders up describe('script_time_main', function() setup(function() _G.TESTMODE = true _G.timeofday = { Daytime = 'dt', Nighttime = 'nt', SunriseInMinutes = 'sunrisemin', Suns...
gpl-3.0
emadni/emadoso
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
capr/fbclient-alien
lua/fbclient/service_class.lua
2
18634
--[=[ Service Manager API, objectual interface based on service.lua connect([hostname],[username],[password],[timeout_sec],[libname|fbapi],[svc_class]) -> svo connect_ex([hostname],[spb_options_t],[libname|fbapi],[svc_class) -> svo service_class -> the LOOP class that svo objects inherit. svo.sv -> the status_v...
mit
gunzino/forgottenserver
data/talkactions/scripts/buyhouse.lua
20
1149
function onSay(player, words, param) local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE) if housePrice == -1 then return true end if player:getPremiumDays() <= 0 then player:sendCancelMessage("You need a premium account.") return false end local position = player:getPosition() position:get...
gpl-2.0
Segs/Segs
Data/scripts/City_01_02/TimeCop.lua
3
1824
--TimeCop controls auto-refreshing of map spawners (spawndef-based) local TimeCop = {}; TimeCop.spawned = false; TimeCop.name = "Time Cop"; TimeCop.model = "MaleNpc_230"; TimeCop.location = {}; TimeCop.location.coordinates = vec3.new(-790, 32, 1450.5); TimeCop.location.orientation = vec3.new(0, 3.14, 0); TimeCop.varia...
bsd-3-clause
Puccio7/bot-telegram
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...
apache-2.0
emoses/hammerspoon
extensions/expose/init.lua
5
26724
--- === hs.expose === --- --- **WARNING**: This module depends on the EXPERIMENTAL hs.window.filter. It can undergo breaking API changes or *go away entirely* **at any point and without notice**. --- (Should you encounter any issues, please feel free to report them on https://github.com/Hammerspoon/hammerspoon/issues -...
mit
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/talents/uber/uber.lua
1
3332
-- 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
LuaRules/Utilities/glVolumes.lua
4
7733
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Exported Functions: -- gl.Utilities.DrawMyBox(minX,minY,minZ, maxX,maxY,maxZ) -- gl.Utilities.DrawMyCylinder(x,y,z, height,radius,divs) -- gl.Utilities....
gpl-2.0
electricpandafishstudios/Spoon
game/engines/te4-1.4.1/engine/Autolevel.lua
1
1728
-- TE4 - T-Engine 4 -- 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 version....
gpl-3.0
musenshen/SandBoxLua
src/cocos/ui/GuiConstants.lua
38
2802
ccui = ccui or {} ccui.BrightStyle = { none = -1, normal = 0, highlight = 1, } ccui.TextureResType = { localType = 0, plistType = 1, } ccui.TouchEventType = { began = 0, moved = 1, ended = 2, canceled = 3, } ccui.SizeType = { absolute = 0, percent = 1, } ccui.PositionTy...
mit
Blackdutchie/Zero-K
LuaRules/Gadgets/weapon_noexplode_stopper.lua
4
2149
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
nimaghorbani/nimatelegram
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
liamneit/Cornucopia
Cornucopia/Libs/Sushi-3.0/Classes/CallHandler.lua
1
1398
--[[ Copyright 2008-2015 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi 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, ...
gpl-3.0
xAleXXX007x/Witcher-RolePlay
nutscript/gamemode/core/libs/cl_hud.lua
5
1058
nut.hud = {} local owner, w, h, ceil, ft, clmp ceil = math.ceil clmp = math.Clamp local aprg, aprg2 = 0, 0 function nut.hud.drawDeath() owner = LocalPlayer() ft = FrameTime() w, h = ScrW(), ScrH() if (owner:getChar()) then if (owner:Alive()) then if (aprg != 0) then aprg2 = clmp(aprg2 - ft*1.3, 0, 1) ...
mit
teslamint/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
68
2502
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") local devices = luci.sys.net.devices() m = Map("luci_statistics", translate("Netlink Plugin Configuration"), translate( "The netlink plugin collects extended informa...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/town-gates-of-morning/traps.lua
1
3592
-- 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
sleepingwit/premake-core
mobdebug.lua
14
68852
-- -- MobDebug -- Lua remote debugger -- Copyright 2011-15 Paul Kulchenko -- Based on RemDebug 1.0 Copyright Kepler Project 2005 -- -- use loaded modules or load explicitly on those systems that require that local require = require local io = io or require "io" local table = table or require "table" local string = str...
bsd-3-clause
tdubourg/geobombing
mobileapp/corona/utils.lua
1
3441
local json = require "json" local socket = require "socket" -- table.indexOf( array, object ) returns the index -- of object in array. Returns 'nil' if not in array. table.indexOf = function( t, object ) local result if "table" == type( t ) then for i=1,#t do if object == t[i] then result = i break e...
lgpl-3.0
backupify/qless
lib/qless/lua/qless.lua
1
70768
-- Current SHA: 20dc687832ad472f0a00899d26c285b893ff466c -- This is a generated file local Qless = { ns = 'ql:' } local QlessQueue = { ns = Qless.ns .. 'q:' } QlessQueue.__index = QlessQueue local QlessWorker = { ns = Qless.ns .. 'w:' } QlessWorker.__index = QlessWorker local QlessJob = { ns = Qless.ns .. 'j...
mit
liamneit/Cornucopia
Cornucopia/Libs/Sushi-3.0/Classes/Header.lua
1
2487
--[[ Copyright 2008-2015 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi 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, ...
gpl-3.0
Blackdutchie/Zero-K
LuaUI/Widgets/gui_chili_keyboardmenu.lua
5
33932
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Keyboard Menu", desc = "v0.035 Chili Keyboard Menu", author = "CarRepairer", ...
gpl-2.0
thurt/arangodb
3rdParty/V8-4.3.61/tools/gcmole/gccause.lua
157
2313
-- Copyright 2011 the V8 project authors. 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 ...
apache-2.0
Dyelan/API-Rues
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
Blackdutchie/Zero-K
effects/lasers.lua
5
34173
-- gatorlaserflash -- flash1red2 -- flashlazer -- lasers_sparks1 -- lasers_melt1 -- flash1orange -- comlaserflash -- flash1purple -- lasers_melt3 -- flash1blue -- flash1green -- flash1red -- lasers_melt2 -- lasers_sparksr1 -- flash1yellow -- flash1white -- coregreen return { ["gatorlaserflash"] = { usedefaultexp...
gpl-2.0
jjimenezg93/ai-behaviours
esqueleto/sample/test.lua
1
1276
MOAISim.openWindow("game", 1024, 768) viewport = MOAIViewport.new() viewport:setSize (1024, 768) viewport:setScale (1024, -768) layer = MOAILayer2D.new() layer:setViewport(viewport) MOAISim.pushRenderPass(layer) texture_name = "dragon.png" gfxQuad = MOAIGfxQuad2D.new() gfxQuad:setTexture(texture_name) char_size = 64...
mit
alireza1998/gfx2
plugins/anti-procrastination.lua
1
1176
-- Spam / Procrastination check -- Admonish someone if he sends more than N_MESSAGES messages in TIME_INTERVAL -- Useful for group chats, particulary work chats and similar local TIME_INTERVAL = 180 -- seconds local N_MESSAGES = 4 function store_message(msg) key = 'chat:'..msg.to.id..':flood:'..msg.from.id..':'..m...
gpl-2.0
protomech/epgp-dkp-reloaded
libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
24
5432
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(...
bsd-3-clause
AmyBSOD/ToME-SX
src/lua/code.lua
1
1739
-- tolua: code class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1999 -- $Id: code.lua,v 1.2 2001/11/26 23:00:23 darkgod 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...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/lore/age-pyre.lua
1
1447
-- 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
donat-b/The-Powder-Toy
src/luascripts/scriptmanager.lua
1
39709
--Cracker64's Autorun Script Manager --The autorun to end all autoruns --Version 3.5 --TODO: --manual file addition (that can be anywhere and any extension) --Moving window (because why not) --some more API functions --prettier, organize code --CHANGES: --Version 3.5: Lua5.2 support, TPT 91.0 platform API support, []...
gpl-3.0
Blackdutchie/Zero-K
scripts/spherecloaker.lua
15
2991
local head = piece 'head' local hips = piece 'hips' local chest = piece 'chest' local rthigh = piece 'rthigh' local lthigh = piece 'lthigh' local lshin = piece 'lshin' local rshin = piece 'rshin' local rfoot = piece 'rfoot' local lfoot = piece 'lfoot' local disc = piece 'disc' local cloaker = piece 'cloaker' ...
gpl-2.0
teslamint/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua
75
1236
-- 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. f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status.")) f.reset...
apache-2.0
Blackdutchie/Zero-K
units/trem.lua
5
6415
unitDef = { unitname = [[trem]], name = [[Tremor]], description = [[Heavy Saturation Artillery Tank]], acceleration = 0.05952, brakeRate = 0.124, buildCostEnergy = 1500, buildCostMetal = 1500, builder = false...
gpl-2.0
xAleXXX007x/Witcher-RolePlay
witcherrp/plugins/crafting/sh_recipies.lua
1
41057
local PLUGIN = PLUGIN --Алхимия local RECIPE = {} RECIPE.uid = "priparka_making" RECIPE.name = "Целебная припарка" RECIPE.category = "Алхимия" RECIPE.model = Model( "models/items/jewels/purses/big_purse.mdl" ) RECIPE.desc = "Останавливает заражение и ускоряет заживление раны." RECIPE.noBlueprint = true RECIPE.plac...
mit
gwash/ion-3
build/mkman.lua
3
7982
-- -- build/mkman.lua -- -- Translates bindings from Ion configuration into a listing for -- manual pages. -- -- Translations {{{ local translations={} local function gettext(x) local t=translations[x] if not t or t=="" then return x else return t end end local function TR(x, ...) ...
lgpl-2.1
kuoruan/lede-luci
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua
7
6487
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local http = require("luci.http") m = SimpleForm("edit", translate("Edit Wireless Uplink Configuration")) m.su...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/south-beach/objects.lua
1
1185
-- 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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/achievements/lore.lua
1
2899
-- 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
wilbefast/snowman-ludumdare31
src/gameobjects/Particle.lua
1
3161
--[[ (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
hexahedronic/basewars
basewars_free/gamemode/modules/player_util.lua
2
3897
MODULE.Name = "Util_Player" MODULE.Author = "Q2F2 & Ghosty" local tag = "BaseWars.Util_Player" local PLAYER = debug.getregistry().Player if SERVER then util.AddNetworkString(tag) end function MODULE:HandleNetMessage(len, ply) local Mode = net.ReadUInt(1) if CLIENT then local ply = LocalPlayer() i...
mit
imblackman/bot
plugins/myinfo.lua
1
1563
-- Begin myinfo.lua local function run(msg, matches) if matches[1]:lower() == 'اطلاعات من' then function get_id(arg, data) local username if data.first_name_ then if data.username_ then username = '@'..data.username_ else username = 'یوزرنیم وجود ندارد❌❗️' end local telNum...
gpl-3.0
kuoruan/lede-luci
applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua
36
2367
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" m = Map("qos", translate("Quality of Service"), translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " .. "can prioritize n...
apache-2.0
saraedum/luci-packages-old
applications/luci-statistics/luasrc/statistics/i18n.lua
9
2465
--[[ Luci statistics - diagram i18n helper (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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/licen...
apache-2.0
tdelc/EmptyEpsilon
scripts/scenario_51_deliverAmbassador.lua
1
53027
-- Name: Deliver Ambassador Gremus -- Description: Unrest on Goltin 7 requires the skills of ambassador Gremus. Your mission: transport the ambassador wherever needed. You may encounter resistance. --- --- You are not flying a destroyer bristling with weapons. You are on a transport freighter with weapons bolted on as ...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/chats/last-hope-melinda-father.lua
1
9433
-- 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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/zones/lake-nur/npcs.lua
1
1361
-- 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
AmyBSOD/ToME-SX
lib/scpt/s_divin.lua
1
5389
-- Handles thhe divination school STARIDENTIFY = add_spell { ["name"] = "Greater Identify", ["school"] = {SCHOOL_DIVINATION}, ["level"] = 35, ["mana"] = 30, ["mana_max"] = 30, ["fail"] = 80, ["spell"] = function() if get_check("Cast on yourself?") == TRUE then self_knowledge() else identif...
gpl-2.0
mahdibagheri/aqa-mp3
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
saraedum/luci-packages-old
protocols/6x4/luasrc/model/network/proto_6x4.lua
78
1602
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 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 http://www.apache.org/licenses/L...
apache-2.0
froggatt/openwrt-luci
protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
59
3798
--[[ LuCI - Lua Configuration Interface Copyright 2011 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 http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/chats/shertul-fortress-butler.lua
1
11366
-- 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
xAleXXX007x/Witcher-RolePlay
nutscript/gamemode/core/derma/cl_dev_icon.lua
4
9508
ICON_INFO = ICON_INFO or {} ICON_INFO.camPos = ICON_INFO.camPos or Vector() ICON_INFO.camAng = ICON_INFO.camAng or Angle() ICON_INFO.FOV = ICON_INFO.FOV or 50 ICON_INFO.w = ICON_INFO.w or 1 ICON_INFO.h = ICON_INFO.h or 1 ICON_INFO.modelAng = ICON_INFO.modelAng or Angle() ICON_INFO.modelName = ICON_INFO.modelName or "mo...
mit
protomech/epgp-dkp-reloaded
libs/AceComm-3.0/ChatThrottleLib.lua
22
15434
-- -- ChatThrottleLib by Mikk -- -- Manages AddOn chat output to keep player from getting kicked off. -- -- ChatThrottleLib:SendChatMessage/:SendAddonMessage functions that accept -- a Priority ("BULK", "NORMAL", "ALERT") as well as prefix for SendChatMessage. -- -- Priorities get an equal share of available bandwidth...
bsd-3-clause
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua
7
3037
-------------------------------- -- @module ArmatureAnimation -- @extend ProcessBase -- @parent_module ccs -------------------------------- -- @function [parent=#ArmatureAnimation] getSpeedScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [pa...
gpl-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/texts/tutorial/stats/stats3.lua
1
1161
-- 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
MOHAMMAD-MOSAVI/Security
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
behrouz-mansoori/faranesh
libs/dateparser.lua
1
6216
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-3.0
froggatt/openwrt-luci
applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
76
2144
--[[ Luci diag - Diagnostics controller module (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 ]]-- module("luci.cont...
apache-2.0
nonchip/moon-mission
locco/markdown.lua
2
44764
#!/usr/bin/env lua --[[ # markdown.lua -- version 0.40 **Author:** Niklas Frykholm, <niklas@frykholm.se> **Date:** 31 May 2008 See the following page for changes to the original file https://github.com/speedata/luamarkdown This is an implementation of the popular text markup language Markdown in pure Lua. Markdown...
mit
g10101k/GEDKeeper
scripts/sofonov_import.lua
3
4330
-- выбрать внешний файл csv_name = gk_select_file(); if (csv_name == "") then gk_print("Файл не выбран"); return end -- загрузка файла данных csv_load(csv_name, true); cols = csv_get_cols(); rows = csv_get_rows(); gk_print("Файл: "..csv_name..", столбцов: "..cols..", строк: "..rows); prev_vid = "...
gpl-3.0
UPTOSKYPROJECT/UPTOSKY
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
HandsomeCharming/RPG
Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Sprite.lua
5
7894
-------------------------------- -- @module Sprite -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- @overload self, cc.SpriteFrame -- @overload self, string -- @function [parent=#Sprite] setSpriteFrame -- @param self -- @param #string str --------------------...
gpl-2.0
dongguangming/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
enricozhang/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
mrichards42/xword
scripts/libs/pl/app.lua
8
5787
--- Application support functions. -- See @{01-introduction.md.Application_Support|the Guide} -- -- Dependencies: `pl.utils`, `pl.path` -- @module pl.app local io,package,require = _G.io, _G.package, _G.require local utils = require 'pl.utils' local path = require 'pl.path' local app = {} local function check_script...
gpl-3.0
froggatt/openwrt-luci
applications/luci-asterisk/luasrc/asterisk/cc_idd.lua
92
7735
--[[ LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes 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 ]]-- module "luci.asteri...
apache-2.0
rigeirani/emc1
plugins/admin.lua
60
6680
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
sinavafa/test5
plugins/admin.lua
60
6680
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
LuaDist2/lua-nucleo
test/cases/0330-tpretty.lua
2
9053
-------------------------------------------------------------------------------- -- 0330-tpretty.lua: tests for pretty-printer -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -------------------------------------------------------------------------...
mit
froggatt/openwrt-luci
modules/niu/luasrc/controller/niu/traffic.lua
49
1218
--[[ 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$ ]]-- local...
apache-2.0
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/events/damp-cave.lua
1
3489
-- 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
electricpandafishstudios/Spoon
game/modules/Spoon/data/general/npcs/Virus.lua
1
1319
-- ToME - Tales of Middle-Earth -- Copyright (C) 2009 - 2015 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 la...
gpl-3.0
BooM-amour/king
bot/utils.lua
473
24167
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
kobyov/dst_brook
scripts/prefabs/swordcane.lua
1
3826
local assets = { Asset("ANIM", "anim/swordcane.zip"), Asset("ANIM", "anim/swap_swordcane.zip"), Asset("ATLAS", "images/inventoryimages/swordcane.xml"), Asset("IMAGE", "images/inventoryimages/swordcane.tex"), } local function ontakefuel(inst) inst.SoundEmitter:PlaySound("dontstarve/common/night...
unlicense
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/general/objects/egos/robe.lua
1
17375
-- 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
saraedum/luci-packages-old
applications/luci-asterisk/luasrc/model/cbi/asterisk/dialzones.lua
91
3529
--[[ LuCI - Lua Configuration Interface Copyright 2008 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 http://www.apache.org/licenses/LICENSE-2.0 $Id: trunks.l...
apache-2.0
musenshen/SandBoxLua
src/framework/cc/ui/UIScrollView.lua
9
26436
--[[ 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, di...
mit
enginix/lua-websockets
spec/client_ev_spec.lua
3
9088
local websocket = require'websocket' local socket = require'socket' local client = require'websocket.client' local ev = require'ev' local frame = require'websocket.frame' local port = os.getenv('LUAWS_WSTEST_PORT') or 11000 local req_ws = ' (requires external websocket server @port '..port..')' local url = 'ws://127.0....
mit
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/rooms/interstice.lua
1
1033
-- 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
kuoruan/lede-luci
applications/luci-app-ltqtapi/luasrc/controller/ltqtapi.lua
73
1071
-- Copyright 2019 John Crispin <blogic@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ltqtapi", package.seeall) function index() if not nixio.fs.access("/etc/config/telephony") then return end page = node("admin", "telephony") page.target = firstchild() page.title...
apache-2.0
kuoruan/lede-luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua
73
1191
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Unixsock Plugin Configuration"), translate( "The unixsock plugin creates a unix socket which can be used " .. "to read collected data from a running...
apache-2.0
teslamint/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua
68
1060
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("Interface Plugin Configuration"), translate( "The interface plugin collects traffic statistics on " .. "selected interfaces." ...
apache-2.0
kuoruan/lede-luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua
68
1060
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") m = Map("luci_statistics", translate("Interface Plugin Configuration"), translate( "The interface plugin collects traffic statistics on " .. "selected interfaces." ...
apache-2.0
Blackdutchie/Zero-K
LuaUI/i18nlib/i18n/init.lua
5
5957
local i18n = {} local store local locale local pluralizeFunction local defaultLocale = 'en' local fallbackLocale = defaultLocale local path = "LuaUI/i18nlib/i18n/" local plural = VFS.Include(path .. 'plural.lua') local interpolate = VFS.Include(path .. 'interpolate.lua') local variants = VFS.Include(path .. ...
gpl-2.0
Blackdutchie/Zero-K
units/tawf114.lua
2
6919
unitDef = { unitname = [[tawf114]], name = [[Banisher]], description = [[Heavy Riot Support Tank]], acceleration = 0.02181, brakeRate = 0.04282, buildCostEnergy = 520, buildCostMetal = 520, builder = false, buildPic = [...
gpl-2.0
Blackdutchie/Zero-K
units/armdeva.lua
3
5556
unitDef = { unitname = [[armdeva]], name = [[Stardust]], description = [[Anti-Swarm Turret]], activateWhenBuilt = true, buildCostEnergy = 220, buildCostMetal = 220, builder = fals...
gpl-2.0
Blackdutchie/Zero-K
LuaRules/Gadgets/unit_AA_anti_bait.lua
12
6520
local versionNumber = "v0.1" function gadget:GetInfo() return { name = "AA anti-bait", desc = versionNumber .. " Managed Allowed Weapon Target for Hacksaw and Screamer to ignore bait when other AA is present nearby", author = "Jseah", date = "04/26/13", license = "GNU GPL, v2 ...
gpl-2.0
Blackdutchie/Zero-K
effects/gundam_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
electricpandafishstudios/Spoon
game/thirdparty/socket/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 $ ----------------------------------------------------------------------------- --------------------------...
gpl-3.0
hexahedronic/basewars
basewars_free/gamemode/modules/drugs.lua
2
7625
MODULE.Name = "Drugs" MODULE.Author = "Q2F2 & Ghosty" local tag = "BaseWars.Drugs" local PLAYER = debug.getregistry().Player local DRUG_REMOVE = 0 local DRUG_FAILED = 1 MODULE.EffectTable = { ["Stun"] = { Apply = function(ply, dur) ply.StunDuration = dur if ply.StunDuration > 70 then ply.StunDuration =...
mit