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
lumidify/Lord-of-the-Test
mods/lottmobs/trader.lua
2
7514
--This code comes almost exclusively from the trader and inventory of mobf, by Sapier. --The copyright notice bellow is from mobf: ------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- ...
lgpl-2.1
Houshalter/Tattletale
socket/http.lua
45
12330
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ---------------------------------------------------------------------...
mit
vhpham80/luci
applications/luci-minidlna/luasrc/controller/minidlna.lua
73
1448
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
apache-2.0
WolfGaming/OpenRA
mods/d2k/maps/atreides-04/atreides04-AI.lua
4
2110
--[[ Copyright 2007-2019 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
napcode/ardour
share/scripts/s_thin_automation.lua
4
1340
ardour { ["type"] = "Snippet", name = "Thin Fader Automation" } -- --TODO-- -- For a fully fledged EditorAction this script should -- offer a dropdown to select automation of all paramaters -- (not just the fader) -- see scripts/midi_cc_to_automation.lua and -- scripts/mixer_settings_store.lua -- Thinning Area should ...
gpl-2.0
Abu0Ali/abu0alibot
plugins/banhammer.lua
1
13436
--[[ ban hammer : الطرد والحظر --]] local function pre_process(msg) local data = load_data(_config.moderation.data) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local u...
gpl-2.0
WolfGaming/OpenRA
mods/ra/maps/soviet-04b/soviet04b-reinforcements_teams.lua
4
3151
--[[ Copyright 2007-2019 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
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/MenuItemFont.lua
11
2660
-------------------------------- -- @module MenuItemFont -- @extend MenuItemLabel -- @parent_module cc -------------------------------- -- Returns the name of the Font.<br> -- js getFontNameObj<br> -- js NA -- @function [parent=#MenuItemFont] getFontNameObj -- @param self -- @return string#string ret (return value:...
mit
alech/libquvi-scripts
share/playlist/soundcloud.lua
3
2324
-- libquvi-scripts -- Copyright (C) 2012-2013 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- 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 Fre...
agpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua
18
3398
-------------------------------- -- @module cc -------------------------------------------------------- -- the cc Control -- @field [parent=#cc] Control#Control Control preloaded module -------------------------------------------------------- -- the cc ControlButton -- @field [parent=#cc] ControlButton#ControlButton...
bsd-3-clause
aaiijmrtt/nn
Linear.lua
11
2622
local Linear, parent = torch.class('nn.Linear', 'nn.Module') function Linear:__init(inputSize, outputSize) parent.__init(self) self.weight = torch.Tensor(outputSize, inputSize) self.bias = torch.Tensor(outputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) self.gradBias = torch.Tensor(output...
bsd-3-clause
ashdnazg/Zero-K
LuaRules/Configs/cai/accessory/no_stuck_in_factory.lua
4
3087
-- function widget:GetInfo() -- return { -- name = "UnitNoStuckInFactory", -- desc = "Always move unit away from factory's build yard & Remove an accidental build unit command from unit from factory. Prevent case of unit stuck in factory & to make sure unit can complete their move queue.", -- au...
gpl-2.0
mitterdoo/wire
lua/wire/client/cl_modelplug.lua
8
32507
--Msg("=== Loading Wire Model Packs ===\n") CreateConVar("cl_showmodeltextbox", "0") --[[ -- Loads and converts model lists from the old WireModelPacks format do local converted = {} MsgN("WM: Loading models...") for _,filename in ipairs( file.Find("WireModelPacks/*", "DATA") ) do --for _,filename in ipairs{"b...
apache-2.0
ashdnazg/Zero-K
units/hoverassault.lua
2
3711
unitDef = { unitname = [[hoverassault]], name = [[Halberd]], description = [[Blockade Runner Hover]], acceleration = 0.048, activateWhenBuilt = true, brakeRate = 0.043, buildCostMetal = 240, builder = false, buildPic = [[...
gpl-2.0
kinotrip/HelloRuby
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Action.lua
10
2861
-------------------------------- -- @module Action -- @extend Ref -- @parent_module cc -------------------------------- -- called before the action start. It will also set the target. -- @function [parent=#Action] startWithTarget -- @param self -- @param #cc.Node target -------------------------------- -- ...
gpl-2.0
sjznxd/luci-0.11.1
applications/luci-statistics/luasrc/statistics/i18n.lua
5
2446
--[[ 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
ashdnazg/Zero-K
units/athena.lua
5
2776
unitDef = { unitname = [[athena]], name = [[Athena]], description = [[Airborne SpecOps Engineer, Builds at 15 m/s]], acceleration = 0.1, airStrafe = 0, autoHeal = 20, brakeRate = 0.08, buildCostMetal = 600, buildDistance ...
gpl-2.0
WolfGaming/OpenRA
lua/scriptwrapper.lua
4
1461
--[[ Copyright 2007-2019 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
vhpham80/luci
libs/core/luasrc/model/network.lua
47
33988
--[[ LuCI - Network model Copyright 2009-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 Unless required by app...
apache-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/ArmatureData.lua
19
1045
-------------------------------- -- @module ArmatureData -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#ArmatureData] addBoneData -- @param self -- @param #ccs.BoneData boneData -- @return ArmatureData#ArmatureData self (return value: ccs.ArmatureData) ------...
mit
GiuseppeGorgoglione/mame
3rdparty/genie/tests/base/test_api.lua
54
11362
-- -- tests/base/test_api.lua -- Automated test suite for the project API support functions. -- Copyright (c) 2008-2011 Jason Perkins and the Premake project -- T.api = { } local suite = T.api local sln function suite.setup() sln = solution "MySolution" end -- -- premake.getobject() tests -- function suite...
gpl-2.0
ircluzar/RTC3
Real-Time Corruptor/BizHawk_RTC/Assets/Lua/UnitTests/TestCommunication_Simple.lua
1
2167
print("##########################################################") getUrl = comm.httpGetGetUrl() print("GET URL: " .. getUrl) postUrl = comm.httpGetPostUrl() print("POST URL: " .. postUrl) print("\nChecking GET URL change") error = false comm.httpSetGetUrl('a') if (getUrl ~= comm.httpGetGetUrl()) then comm.httpSe...
mit
aqasaeed/antispam
plugins/GroupManager.lua
39
11325
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "This service is private for SUDO (@shayansoft)" end local group_creator = msg.from.print_name ...
gpl-2.0
AlexeySa/rspamd
contrib/torch/nn/hessian.lua
3
16617
---------------------------------------------------------------------- -- hessian.lua: this file appends extra methods to modules in nn, -- to estimate diagonal elements of the Hessian. This is useful -- to condition learning rates individually. ---------------------------------------------------------------------- nn....
bsd-2-clause
sjznxd/luci-0.11.1
applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
11
3280
--[[ 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: dialplan...
apache-2.0
Phoib/truewar
mods/ra/maps/fort-lonestar/fort-lonestar.lua
9
8618
Patrol = { "e1", "e2", "e1" } Infantry = { "e4", "e1", "e1", "e2", "e1", "e2" } Vehicles = { "arty", "ftrk", "ftrk", "apc", "apc" } Tank = { "3tnk" } LongRange = { "v2rl" } Boss = { "4tnk" } SovietEntryPoints = { Entry1, Entry2, Entry3, Entry4, Entry5, Entry6, Entry7, Entry8 } PatrolWaypoints = { Entry2, Entry4, Entry...
gpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/TintBy.lua
11
1793
-------------------------------- -- @module TintBy -- @extend ActionInterval -- @parent_module cc -------------------------------- -- initializes the action with duration and color -- @function [parent=#TintBy] initWithDuration -- @param self -- @param #float duration -- @param #short deltaRed -- @param #short del...
bsd-3-clause
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/TintBy.lua
11
1793
-------------------------------- -- @module TintBy -- @extend ActionInterval -- @parent_module cc -------------------------------- -- initializes the action with duration and color -- @function [parent=#TintBy] initWithDuration -- @param self -- @param #float duration -- @param #short deltaRed -- @param #short del...
mit
disslove/DJ-BOT
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
ashdnazg/Zero-K
effects/gundam_burn.lua
18
2285
-- burn return { ["burn"] = { groundflash = { circlealpha = 0.1, circlegrowth = 3, flashalpha = 1, flashsize = 12, ttl = 8, color = { [1] = 0.80000001192093, [2] = 0.10000000149012, [3] = 0, }, }...
gpl-2.0
ahmedalobaidyshado/ahmed_98
tg-c841f197b7eb9ef829e499a3e8b283a2d45ae023/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
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_physics3d_auto_api.lua
11
2391
-------------------------------- -- @module cc -------------------------------------------------------- -- the cc Physics3DShape -- @field [parent=#cc] Physics3DShape#Physics3DShape Physics3DShape preloaded module -------------------------------------------------------- -- the cc Physics3DObject -- @field [parent=#c...
bsd-3-clause
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua
11
1132
-------------------------------- -- @module ActionTimelineData -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#ActionTimelineData] setActionTag -- @param self -- @param #int actionTag -- @return ActionTimelineData#ActionTimelineData self (return value: ccs.ActionTimeli...
bsd-3-clause
sjznxd/luci-0.11.1
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-func.lua
11
1262
--[[ 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...
apache-2.0
andreaskoepf/matrixwalk
simple_mlp.lua
1
2669
require 'nn' require 'nngraph' require 'optim' local INPUT_SIZE = 3 local NEURONS_PER_LAYER = 5 local OUTPUT_NEURONS = 2 function create_xor_mlp(input_count, hidden_neuron_count, output_count) local input = nn.Identity()() -- declare the neural network input node -- add a inner product (fully connected layer...
mit
WolfGaming/OpenRA
mods/d2k/maps/harkonnen-06b/harkonnen06b.lua
4
8700
--[[ Copyright 2007-2019 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
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua
3
9084
-------------------------------- -- @module ActionTimeline -- @extend Action -- @parent_module ccs -------------------------------- -- -- @function [parent=#ActionTimeline] clearFrameEndCallFuncs -- @param self -- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline) ---------------...
mit
ashdnazg/Zero-K
LuaRules/Configs/StartBoxes/Melt_V2.lua
17
2902
return { [0] = { startpoints = { {6796, 3900}, {6828, 6819}, {6729, 976}, {6744, 5419}, {7393, 2418}, }, boxes = { { {6375, 3672}, {6226, 3864}, {6262, 4098}, {6163, 4157}, {6202, 4308}, {6364, 4360}, {6379, 4361}, {6551, 4322}, {6764, 4428}, {6775, 4426}...
gpl-2.0
Reda9991/dev-monster
plugins/ar-anti_spam.lua
2
5339
--[[ --]] kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save user on Redis if msg.from.type == 'user' t...
gpl-2.0
mabako/mta-paradise
resources/job-taxi/help_c.lua
1
1595
--[[ Copyright (c) 2010 MTA: Paradise 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. This program is distributed in the hope ...
gpl-3.0
vhpham80/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
80
1397
--[[ Luci configuration model for statistics - collectd ping plugin configuration (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 ...
apache-2.0
cedricporter/everlost
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EaseBezierAction.lua
6
1045
-------------------------------- -- @module EaseBezierAction -- @extend ActionEase -------------------------------- -- @function [parent=#EaseBezierAction] setBezierParamer -- @param self -- @param #float float -- @param #float float -- @param #float float -- @param #float float ----------------------------...
apache-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Menu.lua
6
3221
-------------------------------- -- @module Menu -- @extend Layer -- @parent_module cc -------------------------------- -- initializes a Menu with a NSArray of MenuItem objects -- @function [parent=#Menu] initWithArray -- @param self -- @param #array_table arrayOfItems -- @return bool#bool ret (return value: bool)...
bsd-3-clause
mitterdoo/wire
lua/wire/stools/forcer.lua
9
1431
WireToolSetup.setCategory( "Physics/Force" ) WireToolSetup.open( "forcer", "Forcer", "gmod_wire_forcer", nil, "Forcers" ) if CLIENT then language.Add( "tool.wire_forcer.name", "Forcer Tool (Wire)" ) language.Add( "tool.wire_forcer.desc", "Spawns a forcer prop for use with the wire system." ) language.Add( "tool.wir...
apache-2.0
Evane-S-cencE/mrx
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
teleRoOt3r/RoOt3r08
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
agpl-3.0
KratosTeam/terminator
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
agpl-3.0
ircluzar/RTC3
Real-Time Corruptor/BizHawk_RTC/Assets/Lua/UnitTests/Joypad_RoundTrip.lua
7
3118
console.clear() console.writeline("Unit test for joypad.get and joypad.set") console.writeline("Core Required: NES (or any multi-player core with U,D,L,R,select,start,A,B as buttons)") console.writeline("") local test_event local test_function local test_frame = 0 function test_1() -- clear previous input if test...
mit
chroteus/Polandball-Arena
lib/amo.lua
2
2510
local amo = { x = love.window.getWidth()/2, y = love.window.getHeight()/2, scale = 1, } amo.__index = amo local function new(x,y, zoom) x,y = x or love.window.getWidth()/2, y or love.window.getHeight()/2 zoom = zoom or 1 return setmetatable({x = x, y = y, scale = zoom}, amo) end function amo:setBound...
gpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua
9
1432
-------------------------------- -- @module EaseQuinticActionOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseQuinticActionOut action. If creation failed...
bsd-3-clause
ashdnazg/Zero-K
LuaUI/Configs/integral_menu_config.lua
5
5927
local buildCmdFactory, buildCmdEconomy, buildCmdDefence, buildCmdSpecial, buildCmdUnits, commandDisplayConfig, hiddenCommands = include("Configs/integral_menu_commands.lua") local function CommandClickFunction() local _,_, meta,_ = Spring.GetModKeyState() if not meta then return false end WG.crude.OpenPath("Hot...
gpl-2.0
mitterdoo/wire
lua/wire/stools/output.lua
9
1068
WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" ) WireToolSetup.open( "output", "Numpad Output", "gmod_wire_output", nil, "Numpad Outputs" ) if CLIENT then language.Add( "Tool.wire_output.name", "Output Tool (Wire)" ) language.Add( "Tool.wire_output.desc", "Spawns an output for use with the wire syst...
apache-2.0
Ali-2h/linux_w
plugins/stats.lua
168
4001
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
halilkaya/minetest-mods
pipeworks/common.lua
11
3692
---------------------- -- Vector functions -- ---------------------- function vector.cross(a, b) return { x = a.y * b.z - a.z * b.y, y = a.z * b.x - a.x * b.z, z = a.x * b.y - a.y * b.x } end function vector.dot(a, b) return a.x * b.x + a.y * b.y + a.z * b.z end ----------------------- -- Facedir functions ...
gpl-3.0
Evane-S-cencE/mrx
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
speedteam-github/mega-SPEED
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
agpl-3.0
AlexeySa/rspamd
contrib/torch/nn/JoinTable.lua
11
2075
local JoinTable, parent = torch.class('nn.JoinTable', 'nn.Module') function JoinTable:__init(dimension, nInputDims) parent.__init(self) self.size = torch.LongStorage() self.dimension = dimension self.gradInput = {} self.nInputDims = nInputDims end function JoinTable:_getPositiveDimension(input) loca...
bsd-2-clause
npmaier/JuJuCast
mods/xpanes/init.lua
2
4723
xpanes = {} local function rshift(x, by) return math.floor(x / 2 ^ by) end local directions = { {x = 1, y = 0, z = 0}, {x = 0, y = 0, z = 1}, {x = -1, y = 0, z = 0}, {x = 0, y = 0, z = -1}, } local function update_pane(pos, name) if not minetest.get_node(pos).name:find("^xpanes:"..name) then return end loc...
gpl-2.0
WolfGaming/OpenRA
mods/d2k/maps/harkonnen-03b/harkonnen03b.lua
4
6561
--[[ Copyright 2007-2019 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
NBSW/Atlas
lib/admin-sql.lua
40
8858
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distribut...
gpl-2.0
amirkingred/bestfunbot
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
edumntg/forgottenserver
data/talkactions/scripts/buyhouse.lua
16
1163
function onSay(player, words, param) local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE) if housePrice == -1 then return true end if not player:isPremium() then player:sendCancelMessage("You need a premium account.") return false end local position = player:getPosition() position:getNextPo...
gpl-2.0
superopen/openwrt-luci
libs/sgi-luci/luasrc/ttpd/handler/luci.lua
53
1923
--[[ HTTP server implementation for LuCI - luci handler (c) 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....
apache-2.0
msonnabaum/thrift
lib/lua/TTransport.lua
115
2800
-- -- 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
mohammadclashclash/newl
bot/seedbot.lua
1
9923
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
Chessnut/NutScript
gamemode/core/derma/cl_helps.lua
5
3456
if (CLIENT) then local HELP_DEFAULT hook.Add("CreateMenuButtons", "nutHelpMenu", function(tabs) HELP_DEFAULT = [[ <div id="parent"><div id="child"> <center> <img src="http://img2.wikia.nocookie.net/__cb20140827051941/nutscript/images/c/c9/Logo.png"></img> <br><font size=15>]] .. L"helpDefault...
mit
lumidify/Lord-of-the-Test
mods/lottachievements/chat_commands.lua
3
2469
-- AWARDS -- -- Copyright (C) 2013-2015 rubenwardy -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by -- the Free Software Foundation; either version 2.1 of the License, or -- (at your option) any later version. -- This ...
lgpl-2.1
canadice/RotR_RuleMechanics
common/defines.lua
1
125765
NDefines = { NGame = { START_DATE = "1444.11.11", END_DATE = "1821.1.2", MAX_RANDOM_NEW_WORLD = "1492.1.1", GREAT_POWER_FRENZY_START = "1700.1.1", -- Latest date for the start of the Great Power Frenzy (struggle). GREAT_POWER_FRENZY_WARMUP_MONTHS = 600, -- How many months does it take for the Great Power Frenzy...
gpl-3.0
AlexeySa/rspamd
contrib/torch/nn/ZipTableOneToMany.lua
4
1121
local ZipTableOneToMany, parent = torch.class('nn.ZipTableOneToMany', 'nn.Module') -- based on ZipTable in dpnn -- input : { v, {a, b, c} } -- output : { {v,a}, {v,b}, {v,c} } function ZipTableOneToMany:__init() parent.__init(self) self.output = {} self.gradInput = {} -- make buffer to update during forwa...
bsd-2-clause
ashdnazg/Zero-K
units/turretantiheavy.lua
4
4351
unitDef = { unitname = [[turretantiheavy]], name = [[Lucifer]], description = [[Tachyon Projector - Requires connection to a 50 energy grid]], activateWhenBuilt = true, buildCostMetal = 2200, builder ...
gpl-2.0
ConstellationGuild/EsoCraftOrdering
CraftOrdering/CraftOrdering.lua
1
2492
------------------------------------------------------------------------- -- Globals -- ------------------------------------------------------------------------- -- Longhand object for addon settings CraftOrdering = {} CraftOrdering.loadedAddons = { } -- Shorthand object ECO = {} ------------------------------------...
mit
ashdnazg/Zero-K
units/staticarty.lua
5
3880
unitDef = { unitname = [[staticarty]], name = [[Cerberus]], description = [[Plasma Artillery Battery - Requires connection to a 50 energy grid]], acceleration = 0, activateWhenBuilt = true, brakeRate ...
gpl-2.0
cedricporter/everlost
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsShapeBox.lua
2
1480
-------------------------------- -- @module PhysicsShapeBox -- @extend PhysicsShape -------------------------------- -- @function [parent=#PhysicsShapeBox] getPointsCount -- @param self -- @return int#int ret (return value: int) -------------------------------- -- @function [parent=#PhysicsShapeBox] getSize...
apache-2.0
geoffleyland/lua-kdtree
lua/kdtree.lua
1
20474
--- n-dimensional kdtree spatial indexing. -- A [kdtree](http://en.wikipedia.org/wiki/K-d_tree) is a data structure -- for quickly finding out what objects in space intersect with a given query -- volume. -- -- This implements a read-only n-dimensional kdtree that can contain boxes -- as well as points. -- -- Rea...
mit
goofanader/space-bar
states/gameplay.lua
1
14012
require("middleclass") require("middleclass-commons") Gameplay = class("Gameplay", State) Gameplay.static.score = 0 Gameplay.static.bombs = 0 Gameplay.static.bombPoints = 0 Gameplay.static.gainedBomb = false Gameplay.static.beginGameSound = love.sound.newSoundData("media/sound/Name_Entered.wav") function Gameplay:ini...
gpl-2.0
cedricporter/everlost
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EditBox.lua
2
3577
-------------------------------- -- @module EditBox -- @extend ControlButton,IMEDelegate -------------------------------- -- @function [parent=#EditBox] getText -- @param self -- @return char#char ret (return value: char) -------------------------------- -- @function [parent=#EditBox] setPlaceholderFontName...
apache-2.0
RazielSun/juma-editor
editor/lib/lua/editor/canvas/CanvasGrid.lua
2
1924
local ScriptPropComponent = require("entity.components.ScriptPropComponent") --------------------------------------------------------------------------------- -- -- @type CanvasGrid -- --------------------------------------------------------------------------------- local CanvasGrid = Class( ScriptPropComponent, "Ca...
mit
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/script/framework/device.lua
57
3841
--[[ Copyright (c) 2011-2014 chukong-inc.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
mit
ahmedalobaidyshado/ahmed_98
plugins/super-info.lua
1
8081
--[[ CHANNEL BOT : @ahmed_zaim ]] do local Arian = 159280034 --تضع ايدي بوتك هنا 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'...
gpl-2.0
OneWinterLeaf/hp-ev
Health EV: Ruins of Alph (near Violet City).lua
1
2113
name = "Health EV: Ruins of Alph (near Violet City)" author = "The7L" description = [[This script will train the first pokémon of your team. It will only attack pokémon giving Health EV. It will also try to capture shinies by throwing pokéballs. Start anywhere between Violet City and Ruins of Alph.]] function o...
mit
opentechinstitute/Demo-Network-Data-Collector
suite/net_tests/clients.lua
1
2247
local sys = require "luci.sys" local clients = {} clients.data = {} clients.results = {} --get reqs just returns the information it needs to do its work. function clients:get_reqs() return nil end function clients:run_tests(test_data) self:get_client_splash_info() self:get_arp() return self.results en...
agpl-3.0
halilkaya/minetest-mods
technic/technic/tools/prospector.lua
4
5785
local S = technic.getter technic.register_power_tool("technic:prospector", 300000) local function get_metadata(toolstack) local m = minetest.deserialize(toolstack:get_metadata()) if not m then m = {} end if not m.charge then m.charge = 0 end if not m.target then m.target = "" end if not m.look_depth then m.look_...
gpl-3.0
AlexeySa/rspamd
contrib/torch/nn/CMinTable.lua
8
1634
local CMinTable, parent = torch.class('nn.CMinTable', 'nn.Module') function CMinTable:__init() parent.__init(self) self.gradInput = {} self.minIdx = torch.Tensor() self.mask = torch.Tensor() self.minVals = torch.Tensor() self.gradMaxVals = torch.Tensor() end function CMinTable:updateOutput(input) ...
bsd-2-clause
vhpham80/luci
applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua
47
6266
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-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 htt...
apache-2.0
mamaddeveloper/mu-bot
plugins/id.lua
2
6112
--[[ Print user identification/informations by replying their post or by providing their username or print_name. !id <text> is the least reliable because it will scan trough all of members and print all member with <text> in their print_name. chat_info can be displayed on group, send it into PM, or save as file then...
gpl-2.0
sjznxd/luci-0.11.1
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua
85
3643
--[[ Luci statistics - olsrd plugin diagram definition Copyright 2011 Manuel Munz <freifunk at somakoma dot de> 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
Chessnut/NutScript
gamemode/shared.lua
2
3616
-- Define gamemode information. GM.Name = "NutScript 1.1" GM.Author = "Chessnut and Black Tea" GM.Website = "http://chessnut.info" -- Fix for client:SteamID64() returning nil when in single-player. do local playerMeta = FindMetaTable("Player") playerMeta.nutSteamID64 = playerMeta.nutSteamID64 or playerMeta.SteamID64...
mit
atlimit8/OpenRA
lua/stacktraceplus.lua
24
13196
--[[ The MIT License Copyright (c) 2010 Ignacio Burgueño 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, cop...
gpl-3.0
saeqe/telespark
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
sjznxd/luci-0.11.1
applications/luci-samba/luasrc/model/cbi/samba.lua
9
2645
--[[ 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...
apache-2.0
ashdnazg/Zero-K
LuaRules/Gadgets/100_unit_explosion_spawner.lua
9
3841
-- $Id: unit_explosion_spawner.lua 3171 2008-11-06 09:06:29Z det $ function gadget:GetInfo() return { name = "100 Unit Explosion Spawner", desc = "Spawns units using an explosion as a trigger.", author = "KDR_11k (David Becker), lurker", date = "2007-11-18", license = "None", layer = 50, enabled = not Sp...
gpl-2.0
padrinoo/padrino
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
GiuseppeGorgoglione/mame
3rdparty/genie/src/base/option.lua
59
2209
-- -- option.lua -- Work with the list of registered options. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- premake.option = { } -- -- The list of registered options. -- premake.option.list = { } -- -- Register a new option. -- -- @param opt -- The new option object. -- function prema...
gpl-2.0
ashdnazg/Zero-K
units/chicken_dragon.lua
2
7681
unitDef = { unitname = [[chicken_dragon]], name = [[White Dragon]], description = [[Prime Assault Chicken]], acceleration = 1, activateWhenBuilt = true, autoHeal = 0, brakeRate = 3, buildCostEnergy = 0, buildCo...
gpl-2.0
halilkaya/minetest-mods
plantlife/ferns/init.lua
3
2846
----------------------------------------------------------------------------------------------- local title = "Ferns" -- former "Archae Plantae" local version = "0.2.0" local mname = "ferns" -- former "archaeplantae" ----------------------------------------------------------------------------------------------- -- (...
gpl-3.0
sjznxd/luci-0.11.1
applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua
5
3983
--[[ 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 $Id: forward-...
apache-2.0
vhpham80/luci
modules/niu/luasrc/model/cbi/niu/traffic/qos1.lua
49
3073
--[[ 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...
apache-2.0
ashdnazg/Zero-K
gamedata/modularcomms/weapons/slamrocket.lua
3
1607
local name = "commweapon_slamrocket" local weaponDef = { name = [[S.L.A.M.]], avoidFeature = false, avoidGround = false, collideFriendly = false, areaOfEffect = 160, burnblow = false, cegTag = [[slam_trail]], collision...
gpl-2.0
AlexeySa/rspamd
contrib/torch/decisiontree/WorkPool.lua
3
4967
local dt = require "decisiontree._env" -- Utility to simplify construction of a pool of daemon threads with which to execute tasks in parallel. local WorkPool = torch.class("dt.WorkPool", dt) function WorkPool:__init(nThread) self.nThread = nThread or 16 assert(torch.type(self.nThread) == 'number') assert(se...
bsd-2-clause
sjznxd/luci-0.11.1
modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua
9
1963
--[[ 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: swap.lua...
apache-2.0