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
gajop/Zero-K
lups/ParticleClasses/NanoLasers.lua
11
11424
-- $Id: NanoLasers.lua 3357 2008-12-05 11:08:54Z jk $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local NanoLasers = {} NanoLasers.__in...
gpl-2.0
gajop/Zero-K
effects/bulldozer.lua
16
9149
return { ["bull_flash"] = { usedefaultexplosions = false, groundflash = { circlealpha = 0.8, circlegrowth = 0, flashalpha = 1, flashsize = 125, ttl = 310, color = { [1] = 0.2, [2...
gpl-2.0
iainmerrick/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/custom.lua
25
1388
function extract_code(fn,s) local code = "" if fn then code = '\n$#include "'..fn..'"\n' end s= "\n" .. s .. "\n" -- add blank lines as sentinels local _,e,c,t = strfind(s, "\n([^\n]-)SCRIPT_([%w_]*)[^\n]*\n") while e do t = strlower(t) if t == "bind_begin" then _,e,c = strfind(s,"(.-)\n[^\n]...
mit
KayMD/Illarion-Content
npc/base/consequence/quest.lua
4
2027
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
ld-test/llui
testy/udev_utils.lua
3
1554
package.path = package.path..";../?.lua" local fun = require("fun")() local ctxt, err = require("UDVContext")() assert(ctxt ~= nil, "Error creating context") local function printField(name, value) if value ~= nil then print(string.format("\t\t%s = '%s';", name, value)); end end local function printBoolField(na...
mit
gajop/Zero-K
scripts/capturecar.lua
12
6694
include "constants.lua" local spGetUnitRulesParam = Spring.GetUnitRulesParam local base, front, bigwheel, rear = piece('base', 'front', 'bigwheel', 'rear') local turret, arm_1, arm_2, arm_3, dish, panel_a1, panel_b1, panel_a2, panel_b2, flare = piece('turret', 'arm_1', 'arm_2', 'arm_3', 'dish', 'panel_a1', 'panel_b1...
gpl-2.0
kooiot/kooweb
lwf/lwf/platform/skynet/response.lua
1
3985
local util = require 'lwf.util' local lwfdebug = require 'lwf.debug' local functional = require 'lwf.functional' local ltp = require 'lwf.template' local logger = require 'lwf.logger' local Response={ltp=ltp} local function new(lwf) local _res = lwf.ctx._res local ret={ lwf = lwf, headers = _res.headers,...
gpl-2.0
KayMD/Illarion-Content
npc/base/condition/talkmode.lua
3
1315
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
wangtianhang/UnityLuaTest
UnityLuaTest/Luajit/jit/v.lua
54
5783
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
duk3luk3/MoonGen
lua/include/proto/ah.lua
5
8699
------------------------------------------------------------------------ --- @file ah.lua --- @brief AH utility. --- Utility functions for the ah_header structs --- defined in \ref headers.lua . \n --- Includes: --- - AH constants --- - IPsec ICV --- - AH header utility --- - Definition of AH packets -----------------...
mit
wangtianhang/UnityLuaTest
UnityLuaTest/Assets/ToLua/Lua/UnityEngine/Quaternion.lua
4
14361
-------------------------------------------------------------------------------- -- Copyright (c) 2015 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" ------------------------------------------------------------------------...
mit
CodeAnxiety/premake-core
src/base/option.lua
16
3399
-- -- option.lua -- Work with the list of registered options. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- premake.option = {} local m = premake.option -- -- We can't control how people will type in the command line arguments, or how -- project scripts will define their custom options, so ca...
bsd-3-clause
cecile/Cecile_QuickLaunch
src/Cecile_QuickLaunch/config/config.lua
1
7395
---------------------------------------------------------------------------------------------------- -- Handle add-on configuration -- --get the engine & Add-on local Engine = select(2,...); local AddOn = Engine.AddOn; --load libraries local AceConfig = LibStub("AceConfig-3.0"); local AceConfigDialog = LibStub("AceCo...
artistic-2.0
nanobox-io/tag
test/test-mailbox.lua
2
1477
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 15 May 2015 by Daniel Barne...
mit
hacker44-h44/teleguard
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
alirezafodaji/tele-Avast
plugins/arabic_lock.lua
30
1090
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) 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']['lock_arabic'] then if data[tostring(msg.to.id...
gpl-2.0
Shayan123456/bottt
plugins/cpu.lua
244
1893
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
Mutos/NAEV-StarsOfCall
dat/missions/baron/baron_baron.lua
7
12984
--[[ -- This is the first mission in the crazy baron string. --]] -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english sysname1 = "Darkstone" sysname2 = "Ingot" planetname = "Varia" title = {} text = {} osd_msg = {} tit...
gpl-3.0
indexTM/index
plugins/italian_lang.lua
20
18700
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
squeek502/EarliestOfGames
autocommit.lua
1
1227
local DEBUG = false local DRY_RUN = false local function trim(s) return s:match'^()%s*$' and '' or s:match'^%s*(.*%S)' end local function printdebug(title, data) title = tostring(title) print(title.."-->\n"..tostring(data).."\n<--"..title.."\n") end local function commit(message_title) -- add any untracked file...
unlicense
KayMD/Illarion-Content
item/id_661_lectern.lua
3
2666
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
iainmerrick/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/basic.lua
24
9103
-- tolua: basic utility functions -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- Last update: Apr 2003 -- $Id: $ -- 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 maintenance...
mit
Mistranger/OpenRA
mods/cnc/maps/nod06c/nod06c.lua
7
7264
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
gajop/Zero-K
gamedata/sidedata.lua
25
1088
-- $Id: sidedata.lua 3708 2009-01-06 06:20:18Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: sidedata.lua -- brief: sidedata definitions -- -------------------------------...
gpl-2.0
hussian1997/bot-of-iraq
plugins/voice.lua
8
1050
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀...
agpl-3.0
casseveritt/premake
tests/actions/vstudio/test_vs2010_flags.lua
7
11973
T.vs2010_flags = { } local vs10_flags = T.vs2010_flags local sln, prj function vs10_flags.setup() _ACTION = "vs2010" sln = solution "MySolution" configurations { "Debug" } platforms {} prj = project "MyProject" language "C++" kind "ConsoleApp" uuid "AE61726D-187C-E440-BD07-2556188A6565" inc...
bsd-3-clause
ifoxhz/iFox
scripts/lua/modules/json.lua
10
4552
-- -- (C) 2013-15 - ntop.org -- --- Simple class for JSON parsing dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local parseElement local function skipWhitespaces(content, pos) local _,nend = content:find("^[ \n\r\t]+", pos) if (nend ~= nil) then retur...
gpl-3.0
CodeAnxiety/premake-core
tests/base/test_filename.lua
32
1690
-- -- tests/base/test_filename.lua -- Verify generation of project/workspace/rule filenames. -- Copyright (c) 2008-2014 Jason Perkins and the Premake project -- local suite = test.declare("project_filename") local p = premake -- -- Setup -- local wks function suite.setup() wks = test.createWorkspace() end...
bsd-3-clause
gajop/Zero-K
effects/unused_charlize.lua
25
30008
-- charlize_7 -- charlize_3 -- charlize_2 -- charlize_14 -- charlize_1 -- charlize_17 -- charlize_6 -- charlize_4 -- charlize_10 -- charlize_11 -- charlize_12 -- charlize_21 -- charlize -- charlize_18 -- charlize_8 -- charlize_19 -- charlize_ani -- charlize_9 -- charlize_15 -- charlize_13 -- charlize_5 -- charlize_16 -...
gpl-2.0
unek/loveframes-dark-theme
skin.lua
2
51426
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ local path = string.sub(..., 1, string.len(...) - string.len(".skins.Dark.skin")) local loveframes = require(path .. ".libraries....
mit
nobie/sesame_fw
feeds/luci/libs/nixio/dist/usr/lib/lua/nixio/util.lua
179
5824
--[[ nixio - Linux I/O library for lua 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...
gpl-2.0
theasp/awesome-config
lib/crappy/init.lua
1
1426
-- TODO: -- Error checking local pluginManager = require('crappy.pluginManager') local configManager = require('crappy.configManager') local functionManager = require('crappy.functionManager') local misc = require('crappy.misc') local lgi = require('lgi') local log = lgi.log.domain('crappy') -- The following need to ...
gpl-2.0
gajop/Zero-K
units/slowmort.lua
2
7943
unitDef = { unitname = [[slowmort]], name = [[Moderator]], description = [[Distruptor Skirmisher Walker]], acceleration = 0.2, activateWhenBuilt = true, brakeRate = 0.2, buildCostEnergy = 240, buildCostMetal = 240, builder = fal...
gpl-2.0
Mistranger/OpenRA
mods/cnc/maps/gdi07/gdi07.lua
6
6935
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
MOSAVI17/videobot
plugins/time.lua
16
1316
local command = 'time <location>' local doc = [[``` /time <location> Returns the time, date, and timezone for the given location. ```]] local triggers = { '^/time[@'..bot.username..']*' } local action = function(msg) local input = msg.text:input() if not input then if msg.reply_to_message and msg.reply_to_messa...
gpl-2.0
KayMD/Illarion-Content
item/id_220_barrel.lua
4
2893
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
matinbot/botgram
bot/utils.lua
646
23489
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
coral-framework/coral
tests/lua/modules/lua/componentManipulation/lua.componentManipulation.lua
1
1265
require "lua.test" local M = {} function M:initialize( module ) -- create a test component local object = co.new( "moduleA.TestComponent" ) -- test getting the 'component' port ASSERT_EQ( object.component.fullName, "moduleA.TestComponent" ) -- test setting the 'component' port ASSERT_ERROR( functi...
mit
aadddjj/testbotantispam
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
nobie/sesame_fw
feeds/luci/libs/sys/luasrc/sys/zoneinfo/tzoffset.lua
72
3904
--[[ LuCI - Autogenerated Zoneinfo Module 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.sys.zoneinfo.tzoffset" OFFSET = { gmt =...
gpl-2.0
rdelval/gorealis
vendor/git.apache.org/thrift.git/lib/lua/TJsonProtocol.lua
42
18656
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"), you ma...
apache-2.0
antoche/openvibe
openvibe-scenarios/trunc/share/openvibe-scenarios/bci/p300-magic-card/p300-magic-card-stimulations-targets.lua
2
1458
#!/bin/lua -- This Lua script generates target stimulations for the magic card demo -- -- Author : Yann Renard, INRIA -- Date : 2011-03-15 dofile("../share/openvibe-plugins/stimulation/lua-stimulator-stim-codes.lua") -- this function is called when the box is initialized function initialize(box) math.randomseed(o...
lgpl-2.1
dhotson/prosody-modules
mod_mam/mamprefsxml.lib.lua
36
1467
-- XEP-0313: Message Archive Management for Prosody -- Copyright (C) 2011-2013 Kim Alvefur -- -- This file is MIT/X11 licensed. local st = require"util.stanza"; local xmlns_mam = "urn:xmpp:mam:0"; local global_default_policy = module:get_option("default_archive_policy", false); local default_attrs = { always = true...
mit
ld-test/lua-nucleo
test/cases/0130-priority_queue.lua
2
9695
-------------------------------------------------------------------------------- -- 0130-priority_queue.lua: tests for priority queue -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ------------------------------------------------------------------...
mit
Flourish-Team/Flourish
Premake/source/modules/vstudio/vs2005_fsproj_user.lua
14
1945
-- -- vs2005_fsproj_user.lua -- Generate a Visual Studio 2005+ F# .user file. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake local m = p.vstudio.fs2005 local dn = p.vstudio.dotnetbase -- -- Generate a Visual Studio 200x C# user file. -- m.elements.userProjectPropertyGroup = function...
mit
nobie/sesame_fw
feeds/luci/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
78
7996
--[[ LuCI - Lua Configuration Interface Copyright 2010 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$ ]]-- lo...
gpl-2.0
lin-zhang/collision_avoidance
app_scripts/serial_PS2X_youbot_twist.lua
2
15177
#!/usr/bin/env luajit local ffi = require("ffi") local ubx = require "ubx" local ts = tostring time=require("time") ubx_utils = require("ubx_utils") require"strict" ni=ubx.node_create("testnode") ubx.load_module(ni, "std_types/stdtypes/stdtypes.so") ubx.load_module(ni, "std_types/testtypes/testtypes.so") ubx.load_mod...
gpl-2.0
INPStarfall/Starfall
lua/starfall/libs_sh/vehicle.lua
3
1057
-- Vehicle type and functions SF.Vehicles = {} --- Vehicle type for GMod Vehicles<br> -- They still behave exactly as <a href='./Entity.html'>Entities</a>, see Entities Type for defined functions local vehicle_methods, vehicle_metamethods = SF.Typedef( "Vehicle", SF.Entities.Metatable ) local vwrap = SF.WrapObject ...
bsd-3-clause
N3X15/spacebuild
lua/caf/stools/ls3_other_lights.lua
3
2420
TOOL.Category = "Life Support" TOOL.Name = "#Special Devices - Lights" TOOL.DeviceName = "Special Device" TOOL.DeviceNamePlural = "Special Devices" TOOL.ClassName = "ls3_other_lights" TOOL.DevSelect = true TOOL.CCVar_type = "other_lamp" TOOL.CCVar_sub_type = "small" TOOL.CCVar_model = "models/props_c17/FurnitureBoile...
apache-2.0
Mutos/NAEV-StarsOfCall
dat/missions/neutral/nebu_satellite.lua
5
5329
--[[ Nebula Satellite One-shot mission Help some independent scientists put a satellite in the nebula. ]]-- include "dat/scripts/numstring.lua" -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english bar_desc = "A bunch of scientists seem to b...
gpl-3.0
nobie/sesame_fw
feeds/luci/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua
23
1170
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Copyright 2010 Manuel Munz <freifunk@somakoma.de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
gpl-2.0
jzbontar/nn
ParallelCriterion.lua
18
1309
local ParallelCriterion, parent = torch.class('nn.ParallelCriterion', 'nn.Criterion') function ParallelCriterion:__init(repeatTarget) parent.__init(self) self.criterions = {} self.weights = {} self.gradInput = {} self.repeatTarget = repeatTarget end function ParallelCriterion:add(criterion, weight) ...
bsd-3-clause
litnimax/luci
applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua
6
2106
--[[ LuCI - Lua Configuration Interface Copyright 2012 Christian Gagneraud <chris@techworks.ie> 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$ ]]...
apache-2.0
KayMD/Illarion-Content
item/id_359_firefield.lua
1
3163
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
gajop/Zero-K
scripts/subarty.lua
6
1295
--by Chris Mackey local wake1 = piece "wake" local wake2 = piece "wake2" local base = piece "base" local tube1 = piece "tube1" local tube2 = piece "tube2" local tube = false function script.QueryWeapon1() if tube then return tube1 else return tube2 end end function script.AimFromWeapon1() return base end functio...
gpl-2.0
supertgteam/teamsofttelegram
plugins/antibadword.lua
7
1547
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']['antifosh'] then lock_fos...
gpl-2.0
hoelzl/Academia
Scenario/coordination/world.lua
1
15228
local tartaros = require "tartaros" local world, metaworld = tartaros.create() tartaros.load("sisyphos_graph") tartaros.load("tantalos", true) local json = require "dkjson" local getnode = tartaros.sisyphos_graph.getnode local getedge = tartaros.sisyphos_graph.getedge local getedges = tartaros.sisyphos_graph.getedges ...
mit
cecile/Cecile_QuickLaunch
src/Cecile_QuickLaunch/libs/AceDB-3.0/AceDB-3.0.lua
17
25099
--- **AceDB-3.0** manages the SavedVariables of your addon. -- It offers profile management, smart defaults and namespaces for modules.\\ -- Data can be saved in different data-types, depending on its intended usage. -- The most common data-type is the `profile` type, which allows the user to choose -- the active profi...
artistic-2.0
davidBelanger/nn
Criterion.lua
17
1247
local Criterion = torch.class('nn.Criterion') function Criterion:__init() self.gradInput = torch.Tensor() self.output = 0 end function Criterion:updateOutput(input, target) end function Criterion:forward(input, target) return self:updateOutput(input, target) end function Criterion:backward(input, target) ...
bsd-3-clause
CodeAnxiety/premake-core
tests/actions/vstudio/vc200x/test_compiler_block.lua
5
13282
-- -- tests/actions/vstudio/vc200x/test_compiler_block.lua -- Validate generation the VCCLCompiler element in Visual Studio 200x C/C++ projects. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local suite = test.declare("vs200x_compiler_block") local vc200x = premake.vstudio.vc200x --...
bsd-3-clause
CodeAnxiety/premake-core
src/actions/make/make_utility.lua
6
1439
-- -- 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
arya5123/tell
flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
abasshacker/abbas3
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
mhmjhamyargroup44233/hamyargroupveresion1.3
plugins/anti_fosh.lua
1
5201
local function run(msg, matches) if is_owner(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']['antifosh'] then lock_fos...
gpl-2.0
ifoxhz/iFox
scripts/lua/system_hosts_interaction.lua
2
9923
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" if(host_ip == nil) then host_ip = _GET["host"] end if(mode == nil) then mode = _GET["mode"] end if(host_name == nil) then host_name = _GET["name"] end ...
gpl-3.0
gajop/Zero-K
units/seismic.lua
2
4126
unitDef = { unitname = [[seismic]], name = [[Quake]], description = [[Seismic Missile]], buildCostEnergy = 400, buildCostMetal = 400, builder = false, buildingGroundDecalDecaySpeed = 30, bu...
gpl-2.0
MOSAVI17/Anchor
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
gajop/Zero-K
LuaUI/Widgets/chili/Themes/theme.lua
18
1465
--//============================================================================= --// Theme theme = {} theme.name = "default" --//============================================================================= --// Define default skins local defaultSkin = "Carbon" --local defaultSkin = "DarkGlass" theme.skin = { ...
gpl-2.0
jayman39tx/naev
dat/gui/slim.lua
4
38536
--[[ The new "slim" GUI --]] playerform = include "dat/scripts/playerform.lua" function create() --Get player pp = player.pilot() pfact = pp:faction() pname = player.name() pship = pp:ship() --Get sizes screen_w, screen_h = gfx.dim() deffont_h = gfx.fontSize() smallfont_h = gfx.fontSiz...
gpl-3.0
benjaminwinger/Feudalciv
dependencies/tolua-5.2/src/bin/lua/basic.lua
7
4807
-- tolua: basic utility functions -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- Last update: Apr 2003 -- $Id: basic.lua,v 1.4 2009/11/24 16:45:13 fabraham Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, a...
gpl-2.0
ld-test/lua-nucleo
lua-nucleo/typeassert.lua
2
2067
-------------------------------------------------------------------------------- --- Lua type assertions -- @module lua-nucleo.typeassert -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) -----------------------------------------------------------------...
mit
pdxmeshnet/mnigs
src/tunnels/ipip.lua
3
16901
--[[ @file ipip.lua @license The MIT License (MIT) @author Alex <alex@maximum.guru> @copyright 2016 Alex --]] --- @module free local ipip = {} local config = require("config") local db = require("db") local gateway = require("gateway") local shell = require("lib.shell") local shrunner = require("shrunner") local thre...
mit
jayman39tx/naev
dat/events/tutorial/tutorial-combat1.lua
4
11194
-- This is the tutorial: basic combat. include("dat/events/tutorial/tutorial-common.lua") -- localization stuff, translators would work here title1 = _("Tutorial: Basic Combat") message1 = _([[Welcome to the basic combat tutorial. Combat is an important aspect of Naev, and you will have to fight off enemies sooner o...
gpl-3.0
dansen/luacode
bin/release/lua/util/json.lua
3
18228
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.50 -- This module is released under the MIT License (MIT). -- Please see L...
mit
Flourish-Team/Flourish
Premake/source/modules/gmake2/tests/test_gmake2_pch.lua
11
4768
-- -- test_gmake2_pch.lua -- Validate the setup for precompiled headers in makefiles. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local p = premake local suite = test.declare("gmake2_pch") local p = premake local gmake2 = p.modules.gmake2 local project = p.project -- -- ...
mit
gajop/Zero-K
gamedata/modularcomms/clonedefs.lua
2
12559
-- just some comm cloning stuff (to avoid having to maintain multiple unitdefs) local statsByLevel = { mainstats = { [2] = { collisionvolumescales = [[50 59 50]], }, [3] = { collisionvolumescales = [[55 65 55]], explodeas = "estor_building", selfdestructas = "estor_building", footprintx = 3, ...
gpl-2.0
gajop/Zero-K
LuaUI/Widgets/gui_chili_nuke_warning.lua
2
4771
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Nuke Warning", desc = "Displays a warning to players whenever a nuke is launched.", ...
gpl-2.0
KayMD/Illarion-Content
quest/akaltuts_chamber_529_dungeon.lua
5
7582
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
gajop/Zero-K
LuaUI/Widgets/chili_new/controls/button.lua
18
1390
--//============================================================================= --- Button module --- Button fields. -- Inherits from Control. -- @see control.Control -- @table Button -- @string[opt="button"] caption caption to be displayed Button = Control:Inherit{ classname= "button", caption = 'button', ...
gpl-2.0
gajop/Zero-K
LuaRules/Gadgets/CAI/AllyTeamInfoHandler.lua
7
1456
--[[ Handles all the information about force composition and position for both an allyTeam and enemies of that allyTeam. --]] local AssetTracker = VFS.Include("LuaRules/Gadgets/CAI/AssetTracker.lua") local ScoutHeatmapHandler = VFS.Include("LuaRules/Gadgets/CAI/ScoutHeatmapHandler.lua") local spGetUnitAllyTeam = S...
gpl-2.0
jayman39tx/naev
dat/missions/neutral/cargo_rush.lua
4
8104
--[[ -- These are rush cargo delivery missions. They can be failed! But, pay is higher to compensate. -- These missions require fast ships, but higher tiers may also require increased cargo space. --]] include "dat/scripts/cargo_common.lua" include "dat/scripts/numstring.lua" misn_desc = _("%s in the %s system ...
gpl-3.0
ebernerd/WaveLite
src/lib/apis/tabmanager.lua
1
3010
local util = require "src.lib.util" local editor = require "src.elements.CodeEditor" local divisions = require "src.elements.Divisions" local log = require "src.lib.log" local function newTabManagerAPI(tabs) local tabmanager = require "src.elements.TabManager" local api = {} local public = util.protected_table(ap...
mit
KayMD/Illarion-Content
craft/intermediate/threshing.lua
3
1257
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
jayman39tx/naev
dat/landing.lua
2
9153
--[[ Prototype function: Parameter: pnt - Planet to set landing stuff about. Return: 1) Boolean whether or not can land 2) Land message which should be denial if can't land or acceptance if can 3) (optional) Bribe price or message that can't be bribed or nil in the case of no...
gpl-3.0
ifoxhz/iFox
scripts/lua/get_db_data.lua
1
3446
-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local json = require ("dkjson") local ifId = _GET["ifId"] local ip_version = _GET["version"] local host = _GET["host"] local epoch_begin = _GET["epo...
gpl-3.0
mardraze/prosody-modules
mod_limits/mod_limits.lua
31
3206
-- mod_limits: Rate-limiting for Prosody -- Version: Alpha -- Author: Matthew Wild <mwild1@gmail.com> -- Because we deal we pre-authed sessions and streams we can't be host-specific module:set_global(); local filters = require "util.filters"; local throttle = require "util.throttle"; local timer = require "util.timer...
mit
KayMD/Illarion-Content
item/id_339_barrel.lua
2
1065
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
gajop/Zero-K
units/neebcomm.lua
8
2422
unitDef = { unitname = [[neebcomm]], name = [[Neeb Comm]], description = [[Ugly Turkey]], acceleration = 0.2, brakeRate = 0.205, buildCostEnergy = 1200, buildCostMetal = 1200, buildDistance = 120, builder = true, buildopt...
gpl-2.0
arya5123/tell
tosuper.lua
3
2731
do local function returnids (extra, success, result) local receiver = extra.receiver local chatname = result.print_name local id = result.peer_id local text = ('ID for chat %s (%s):\n'):format(chatname, id) for k,user in ipairs(result.members) do local username = usernameinfo(user) local id = us...
gpl-2.0
Mistranger/OpenRA
mods/ra/maps/soviet-06b/soviet06b-reinforcements_teams.lua
14
1668
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
gajop/Zero-K
units/chicken_roc.lua
2
5548
unitDef = { unitname = [[chicken_roc]], name = [[Roc]], description = [[Heavy Attack Flyer]], acceleration = 1.2, airHoverFactor = 0, amphibious = true, brakeRate = 1, buildCostEnergy = 0, buildCostMetal = 0, builder ...
gpl-2.0
nanobox-io/tag
test/test-proc.lua
2
2203
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 20 May 2015 by Daniel Barne...
mit
mardraze/prosody-modules
mod_privilege/mod_privilege.lua
16
15855
-- XEP-0356 (Privileged Entity) -- Copyright (C) 2015 Jérôme Poisson -- -- This module is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- Some parts come from mod_remote_roster (module by Waqas Hussain and Kim Alvefur, see https://code.google.com/p/prosody-modules/) -...
mit
dhotson/prosody-modules
mod_privilege/mod_privilege.lua
16
15855
-- XEP-0356 (Privileged Entity) -- Copyright (C) 2015 Jérôme Poisson -- -- This module is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- Some parts come from mod_remote_roster (module by Waqas Hussain and Kim Alvefur, see https://code.google.com/p/prosody-modules/) -...
mit
KayMD/Illarion-Content
lte/introduction.lua
1
55288
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
KayMD/Illarion-Content
item/id_891_hedge.lua
4
1165
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope th...
agpl-3.0
nobie/sesame_fw
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua
80
1878
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
gpl-2.0
daz2yy/MyTools
DragAndRun/DragAndRun/Tools/encodeTools/luaToJit/win32/lua/jit/bc.lua
78
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
gpl-2.0
dansen/luacode
src/lua/luajit/LuaJIT-2.0.1/src/jit/bc.lua
78
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
mit
jinq0123/grpc-lua
src/lua/grpc_lua/client/service_stub/msg_cb_wrapper.lua
1
1469
--- Wrap message(table) callback into string callback. -- C module need callback `function(string)`, -- but user's callback is `function(table)`. -- So wrap user's callback to a new function. -- @module grpc_lua.client.service_stub.msg_cb_wrapper local M = {} local pb = require("luapbintf") --- Async msg callback....
bsd-3-clause