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
badboyam/crazy_bot
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
emadni/launcherlord
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
pirate/snabbswitch
src/core/timer.lua
14
2701
module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") debug = _G.developer_debug ticks = false -- current time, in ticks ns_per_tick = 1e6 -- tick resolution (millisecond) timers = {} -- table of {tick->timerlist} -- This function can be removed in the futu...
apache-2.0
ahuraa/trinityadmin
Commands/Commands_Server.lua
2
1845
------------------------------------------------------------------------------------------------------------- -- -- TrinityAdmin Version 3.x -- TrinityAdmin is a derivative of MangAdmin. -- -- Copyright (C) 2007 Free Software Foundation, Inc. -- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.h...
gpl-2.0
salorium/awesome
spec/wibox/widget/base_spec.lua
14
3351
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2016 Uli Schlachter --------------------------------------------------------------------------- local base = require("wibox.widget.base") local no_parent = base.no_parent_I_know_what_I_am_doing describe...
gpl-2.0
judos/robotMiningSite
source/libs/control/gui.lua
1
4872
-- Constants: local guiUpdateEveryTicks = 5 -------------------------------------------------- -- API -------------------------------------------------- -- Requried: -- modName - prefix which your ui components have. e.g. "hc.belt-sorter.1.1" (modName = "hc") -- Usage: -- each known gui defines these functions: gui...
gpl-3.0
payday-restoration/restoration-mod
lua/sc/core/coreenvironmentcontrollermanager.lua
1
1855
local init_orig = CoreEnvironmentControllerManager.init function CoreEnvironmentControllerManager:init() init_orig(self) self._GAME_DEFAULT_COLOR_GRADING = "color_payday" end local set_post_composite_orig = CoreEnvironmentControllerManager.set_post_composite local ids_LUT_post = Idstring("color_grading_post")...
agpl-3.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/technic/technic/crafts.lua
1
6336
-- check if we have the necessary dependencies to allow actually using these materials in the crafts local mesecons_materials if minetest.get_modpath("mesecons_materials") and not core.skip_mod("mesecons") then mesecons_materials = minetest.get_modpath("mesecons_materials") end -- Remove some recipes -- Bronze minet...
gpl-3.0
rgujju/NexIDE
firmware/app/cjson/lua/cjson/util.lua
170
6837
local json = require "cjson" -- Various common routines used by the Lua CJSON package -- -- Mark Pulford <mark@kyne.com.au> -- Determine with a Lua table can be treated as an array. -- Explicitly returns "not an array" for very sparse arrays. -- Returns: -- -1 Not an array -- 0 Empty table -- >0 Highest index ...
gpl-3.0
rgujju/NexIDE
firmware/lua_examples/irsend.lua
88
1803
------------------------------------------------------------------------------ -- IR send module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- dofile("irsend.lua").nec(4, 0x00ff00ff) -----------------------------------------------------------------------...
gpl-3.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua
11
3144
-------------------------------- -- @module ControlColourPicker -- @extend Control -- @parent_module cc -------------------------------- -- -- @function [parent=#ControlColourPicker] hueSliderValueChanged -- @param self -- @param #cc.Ref sender -- @param #int controlEvent -- @return ControlColourPicker#ControlColou...
gpl-3.0
Djabbz/nn
Parallel.lua
39
3780
local Parallel, parent = torch.class('nn.Parallel', 'nn.Container') function Parallel:__init(inputDimension,outputDimension) parent.__init(self) self.modules = {} self.size = torch.LongStorage() self.inputDimension = inputDimension self.outputDimension = outputDimension end function Parallel:updateOut...
bsd-3-clause
Hello23-Ygopro/ygopro-kaijudo
expansions/script/c25003027.lua
1
1052
--Starlight Strategist local ka=require "expansions.utility_ktcg" local scard,sid=ka.GetID() function scard.initial_effect(c) ka.EnableCreatureAttribute(c) --double breaker ka.EnableBreaker(c,KA_ABILITY_DOUBLE_BREAKER) --tap ka.AddSingleComeIntoPlayAbility(c,0,nil,scard.postg,scard.posop1,EFFECT_FLAG_CARD_TARGET) ...
gpl-3.0
heysion/prosody-modules
mod_sift/mod_sift.lua
32
6448
local st = require "util.stanza"; local jid_bare = require "util.jid".bare; -- advertise disco features module:add_feature("urn:xmpp:sift:1"); -- supported features module:add_feature("urn:xmpp:sift:stanzas:iq"); module:add_feature("urn:xmpp:sift:stanzas:message"); module:add_feature("urn:xmpp:sift:stanzas:presence"...
mit
hfjgjfg/persianguard75
plugins/chat.lua
7
1391
local function run(msg) if msg.text == "سلام" then return "سلام علیکم" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then ret...
gpl-2.0
xdel/snabbswitch
src/lib/checksum.lua
8
8063
module(...,package.seeall) -- This module exposes the interface: -- checksum.ipsum(pointer, length, initial) => checksum -- -- pointer is a pointer to an array of data to be checksummed. initial -- is an unsigned 16-bit number in host byte order which is used as -- the starting value of the accumulator. The result ...
apache-2.0
Happy-Neko/xupnpd
src/plugins/xupnpd_vimeo.lua
1
2513
-- Copyright (C) 2011 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd -- username, channel/channelname, group/groupname, album/album_id function vimeo_updatefeed(feed,friendly_name) local rc=false local feed_url='http://vimeo.com/api/v2/'..feed..'/videos.json' loc...
gpl-2.0
Djabbz/nn
View.lua
41
2232
local View, parent = torch.class('nn.View', 'nn.Module') function View:__init(...) parent.__init(self) if select('#', ...) == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then self.size = select(1, ...) else self.size = torch.LongStorage({...}) end self.numElements = 1 loc...
bsd-3-clause
T3hArco/skeyler-gamemodes
Sassilization/entities/entities/building_tower/init.lua
1
3969
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- AddCSLuaFile("shared.lua") include("shared.lua") util.PrecacheSound("sassilization/units/arrowfire01.wav") util.PrecacheSound("sassilization/units/arrowfire02.wav") AccessorFunc( ENT, "next_attack", "NextA...
bsd-3-clause
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/carts/cart_entity.lua
1
11669
-- carts/cart_entity.lua -- support for MT game translation. local S = carts.get_translator local cart_entity = { initial_properties = { physical = false, -- otherwise going uphill breaks collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, visual = "mesh", mesh = "carts_cart.b3d", visual_size = {x=1, y=1}, ...
gpl-3.0
spixi/wesnoth
data/ai/micro_ais/cas/ca_recruit_random.lua
4
4685
local H = wesnoth.require "helper" local AH = wesnoth.require("ai/lua/ai_helper.lua") local LS = wesnoth.require "location_set" local recruit_type local ca_recruit_random = {} function ca_recruit_random:evaluation(cfg) -- Random recruiting from all the units the side has -- Check if leader is on keep lo...
gpl-2.0
rbavishi/vlc-2.2.1
share/lua/playlist/vimeo.lua
65
3213
--[[ $Id$ Copyright © 2009-2013 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) François Revol (revol@free.fr) Pierre Ynard 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 S...
lgpl-2.1
ahmadreza5251/terojanbot
plugins/face.lua
641
3073
local https = require("ssl.https") local ltn12 = require "ltn12" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(imageUrl) local api_key = mashape.api_key if api_key:isempt...
gpl-2.0
nimaghorbani/dozdi5
libs/mimetype.lua
28
2924
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/ato...
gpl-2.0
patsoffice/dotfiles
.hammerspoon/Spoons/SpoonInstall.spoon/init.lua
8
17398
--- === SpoonInstall === --- --- Install and manage Spoons and Spoon repositories --- --- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/SpoonInstall.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/SpoonInstall.spoon.zip) local obj={} obj.__index = obj -- Metadata obj.name = "Sp...
mit
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/DisplayManager.lua
19
4990
-------------------------------- -- @module DisplayManager -- @extend Ref -- @parent_module ccs -------------------------------- -- -- @function [parent=#DisplayManager] getDisplayRenderNode -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- -- @function [p...
gpl-3.0
kjoenth/naev
dat/factions/spawn/pirate.lua
4
3512
include("dat/factions/spawn/common.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < 0.3 then scom.addPilot( pilots, "Pirate Hyena", 15 ); elseif r < 0.5 then scom.addPilot( pilots, "Pirate Shark", 20 ); elseif r < 0.8...
gpl-3.0
xingshuo/frame_sync_model
skynet/test/testmongodb.lua
4
2949
local skynet = require "skynet" local mongo = require "mongo" local bson = require "bson" local host, db_name = ... function test_insert_without_index() local db = mongo.client({host = host}) db[db_name].testdb:dropIndex("*") db[db_name].testdb:drop() local ret = db[db_name].testdb:safe_insert({test_key = 1}); ...
mit
salorium/awesome
lib/awful/widget/launcher.lua
4
1410
--------------------------------------------------------------------------- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008-2009 Julien Danjou -- @release @AWESOME_VERSION@ -- @classmod awful.widget.launcher --------------------------------------------------------------------------- local setmet...
gpl-2.0
McGlaspie/mvm
lua/mvm/bots/MarineCommanderBrain_Data.lua
1
4775
Script.Load("lua/mvm/bots/CommonActions.lua") Script.Load("lua/bots/BrainSenses.lua") local kStationBuildDist = 15.0 local function CreateBuildNearStationAction( techId, className, numToBuild, weightIfNotEnough ) return CreateBuildStructureAction( techId, className, { {-1.0, ...
gpl-3.0
xing634325131/Luci-0.11.1
applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua
11
1730
--[[ LuCI - Lua Configuration Interface Copyright 2009 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: voicemai...
apache-2.0
payday-restoration/restoration-mod
lua/sc/managers/firemanager.lua
1
16875
local mvec3_set = mvector3.set local mvec3_dir = mvector3.direction local mvec3_dis_sq = mvector3.distance_sq local mvec3_add = mvector3.add local mvec3_copy = mvector3.copy local tmp_pos = Vector3() local math_min = math.min local math_max = math.max local math_round = math.round local math_ceil = math.ceil local tabl...
agpl-3.0
QuiQiJingFeng/skynet
lualib/http/internal.lua
95
2613
local table = table local type = type local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pervent the attacker send very long stream without ...
mit
devaloosh/VIPTEAM
plugins/banhammer.lua
2
13163
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Team name : ( 🌐 VIP_TEAM 🌐 )▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ File name : ( اسم الملف ) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Guenat team: ( @VIP_TEAM1 ) ▀▄ ...
agpl-3.0
luvit/luvit
tests/test-pipe.lua
11
1411
--[[ Copyright 201202015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
apache-2.0
ominux/nn
SpatialContrastiveNormalization.lua
63
1444
local SpatialContrastiveNormalization, parent = torch.class('nn.SpatialContrastiveNormalization','nn.Module') function SpatialContrastiveNormalization:__init(nInputPlane, kernel, threshold, thresval) parent.__init(self) -- get args self.nInputPlane = nInputPlane or 1 self.kernel = kernel or torch.Tensor(9...
bsd-3-clause
payday-restoration/restoration-mod
lua/sc/managers/menumanager.lua
1
13265
restoration._cop_comment_cooldown_t = {} --Fix for Grenade Cases on Pro Jobs function MenuPrePlanningInitiator:set_locks_to_param(params, key, index) local data = tweak_data:get_raw_value("preplanning", key, index) or {} local enabled = params.enabled ~= false params.tooltip = params.tooltip or {} params.tooltip.e...
agpl-3.0
khanasbot/Avatar_Bot
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
amirkingred/telejian
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
haider1984/-1
plugins/en-onservice.lua
6
1369
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ KICK BOT : طرد البوت ▀▄ ▄...
gpl-2.0
ominux/nn
WeightedEuclidean.lua
17
8147
local WeightedEuclidean, parent = torch.class('nn.WeightedEuclidean', 'nn.Module') function WeightedEuclidean:__init(inputSize,outputSize) parent.__init(self) self.weight = torch.Tensor(inputSize,outputSize) self.gradWeight = torch.Tensor(inputSize,outputSize) -- each template (output dim) has its own di...
bsd-3-clause
OpenRA/OpenRA
mods/cnc/maps/gdi05c/gdi05c.lua
1
5578
--[[ Copyright 2007-2022 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
salorium/awesome
lib/menubar/init.lua
1
12721
--------------------------------------------------------------------------- --- Menubar module, which aims to provide a freedesktop menu alternative -- -- List of menubar keybindings: -- --- -- -- * "Left" | "C-j" select an item on the left -- * "Right" | "C-k" select an item on the right -- * "Backspace" ex...
gpl-2.0
Emberwalker/Observatory
Observatory.lua
1
5236
----------------------------------------------------------------------------------------------- -- Client Lua Script for Observatory -- Arkan 2014; MIT License. -- Base file template provided by Gemini:Addon ----------------------------------------------------------------------------------------------- require "GameLi...
mit
ak40u/OsEngine
project/OsEngine/bin/Debug/lua/socket.lua
146
4061
----------------------------------------------------------------------------- -- LuaSocket helper module -- Author: Diego Nehab -- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $ ----------------------------------------------------------------------------- -----------------------------------------------...
apache-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/cottages/nodes_fences.lua
1
4047
-- 22.01.13 Changed texture to that of the wood from the minimal development game local S = cottages.S minetest.register_node("cottages:fence_small", { description = S("Small fence"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, paramt...
gpl-3.0
devaloosh/VIPTEAM
plugins/onservice.lua
2
1476
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Team name : ( 🌐 VIP_TEAM 🌐 )▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ File name : ( اسم الملف ) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Guenat team: ( @VIP_TEAM1 ...
agpl-3.0
salorium/awesome
lib/awful/util.lua
3
17974
--------------------------------------------------------------------------- --- Utility module for awful -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @release @AWESOME_VERSION@ -- @module awful.util ---------------------------------------------------------------------------...
gpl-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/farming/utensils.lua
1
3505
local S = farming.intllib -- wooden bowl minetest.register_craftitem("farming:bowl", { description = S("Wooden Bowl"), inventory_image = "farming_bowl.png", groups = {food_bowl = 1, flammable = 2} }) minetest.register_craft({ output = "farming:bowl 4", recipe = { {"group:wood", "", "group:wood"}, {"", "gro...
gpl-3.0
xing634325131/Luci-0.11.1
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua
76
1096
--[[ Luci statistics - cpu plugin diagram definition (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...
apache-2.0
zloster/FrameworkBenchmarks
frameworks/Lua/octopus/config.lua
25
1033
return { extensions = { {octopusExtensionsDir, "core"}, {octopusExtensionsDir, "baseline"}, {octopusExtensionsDir, "orm"}, {octopusExtensionsDir, "app"}, }, octopusExtensionsDir = octopusExtensionsDir, octopusHostDir = octopusHostDir, port = 8080, securePort = 38080, luaCodeCache = "on",...
bsd-3-clause
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/default/furnace.lua
1
10735
-- default/furnace.lua -- support for MT game translation. local S = default.get_translator -- -- Formspecs -- function default.get_furnace_active_formspec(fuel_percent, item_percent) return "size[8,8.5]".. "list[context;src;2.75,0.5;1,1;]".. "list[context;fuel;2.75,2.5;1,1;]".. "image[2.75,1.5;1,1;default_fu...
gpl-3.0
xing634325131/Luci-0.11.1
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
21
8152
--[[ 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
LuaDist2/lua-rote
spec/boxshell_spec.lua
3
1622
-- This file is part of lua-rote, Lua binding to ROTE -- Terminal Emulation library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use. -- test RoteTerm:draw() and script demo/boxshell.lua -- FIXME RoteTerm:draw() draws wrong things on Travis -- https://travis-ci.org/starius/lua-rote/jobs/544...
lgpl-2.1
T3hArco/skeyler-gamemodes
ssbase/entities/weapons/weapon_mac10/shared.lua
1
1161
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "mac10" SWEP.Author = "Counter-Strike" SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.IconLetter = "l" killicon.AddFont( "weapon_mac10", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) ) end SWEP.Hold...
bsd-3-clause
kjoenth/naev
dat/factions/spawn/common.lua
5
2958
scom = {} -- @brief Calculates when next spawn should occur scom.calcNextSpawn = function( cur, new, max ) if cur == 0 then return rnd.rnd(0, 10) end -- Kickstart spawning. local stddelay = 10 -- seconds local maxdelay = 60 -- seconds. No fleet can ever take more than this to show up. local std...
gpl-3.0
shahabsaf1/copy
plugins/Add_Bot.lua
29
1484
--[[ Bot can join into a group by replying a message contain an invite link or by typing !join [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local functio...
gpl-2.0
HydraTeamBot/EchoSpamer
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
kroepke/luna
luna-tests/src/test/resources/benchmarksgame/pidigits.lua-7.lua
1
1784
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Wim Couwenberg -- -- requires LGMP "A GMP package for Lua 5.1" -- -- 21 September 2008 local gmp, aux = {}, {} require "c-gmp"(gmp, aux) local add, mul, div = gmp.mpz_add, gmp.mpz_mul_ui, gmp.mpz_fdiv_q local addmul,...
apache-2.0
salorium/awesome
lib/awful/mouse/resize.lua
1
6641
--------------------------------------------------------------------------- --- An extandable mouse resizing handler. -- -- This module offer a resizing and moving mechanism for drawable such as -- clients and wiboxes. -- -- @author Emmanuel Lepage Vallee &lt;elv1313@gmail.com&gt; -- @copyright 2016 Emmanuel Lepage Val...
gpl-2.0
eloicaso/bird-openwrt
packages/bird-openwrt/bird6-openwrt/src/model/overview.lua
2
3152
--[[ Copyright (C) 2014-2017 - Eloi Carbo 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 ...
gpl-3.0
T3hArco/skeyler-gamemodes
ssbase/entities/weapons/weapon_p90/shared.lua
1
1658
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end if ( CLIENT ) then SWEP.PrintName = "P90" SWEP.Author = "Counter-Strike" SWEP.Slot = 0 SWEP.SlotPos ...
bsd-3-clause
kjoenth/naev
dat/missions/neutral/runaway/runaway_cynthia.lua
11
2972
--[[ This is the "The Runaway" mission as described on the wiki. There will be more missions to detail how you are percieved as the kidnapper of "Cynthia" --]] lang = naev.lang() if lang == "es" then -- Spanish version of the texts would follow elseif lang == "de" then -- German version of the texts would follow else ...
gpl-3.0
McGlaspie/mvm
lua/mvm/Hud/GUIResourceDisplay.lua
1
10179
// ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= // // lua\GUIResourceDisplay.lua // // Created by: Brian Cronin (brianc@unknownworlds.com) // // Manages displaying resources and number of resource towers. // // ========= For more information, visit us at http://www.u...
gpl-3.0
mathiasbynens/otclient
modules/game_textmessage/textmessage.lua
2
5062
MessageSettings = { none = {}, consoleRed = { color = TextColors.red, consoleTab='Default' }, consoleOrange = { color = TextColors.orange, consoleTab='Default' }, consoleBlue = { color = TextColors.blue, consoleTab='Default' }, centerRed = { color = TextColors.red, consoleT...
mit
mathiasbynens/otclient
modules/corelib/ui/uitable.lua
1
5427
-- @docclass --[[ TODO: * Make table headers more robust. * Get dynamic row heights working with text wrapping. * Every second row different background color applied. ]] UITable = extends(UIWidget, "UITable") local HEADER_ID = 'row0' function UITable.create() local table = UITable.internalCreate() t...
mit
heysion/prosody-modules
mod_mam_muc/mod_mam_muc.lua
20
11013
-- XEP-0313: Message Archive Management for Prosody MUC -- Copyright (C) 2011-2014 Kim Alvefur -- -- This file is MIT/X11 licensed. local xmlns_mam = "urn:xmpp:mam:0"; local xmlns_delay = "urn:xmpp:delay"; local xmlns_forward = "urn:xmpp:forward:0"; local muc_form_enable_logging = "muc#roomconfig_enablelogging" ...
mit
haider1984/-1
plugins/ar-robot.lua
6
2573
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀disable chat: تعطيل تفعيل دردشه محدد ▀▄ ▄▀ ▀▄▀...
gpl-2.0
QuiQiJingFeng/skynet
lualib/skynet/socket.lua
6
9294
local driver = require "skynet.socketdriver" local skynet = require "skynet" local skynet_core = require "skynet.core" local assert = assert local socket = {} -- api local buffer_pool = {} -- store all message buffer object local socket_pool = setmetatable( -- store all socket object {}, { __gc = function(p) for i...
mit
bertptrs/vimconfig
awesome/.config/awesome/battery.lua
1
1893
local naughty = require("naughty") local beautiful = require("beautiful") local vicious = require("vicious") local wibox = require("wibox") local pairs = pairs module("battery") -- Battery (based on http://awesome.naquadah.org/wiki/Gigamo_Battery_Widget) -- Edited by TobiasKappe local limits = { {25, 5}, ...
gpl-2.0
dmccuskey/dmc-gestures
examples/gesture-pan-move/dmc_corona/dmc_gestures/tap_gesture.lua
10
7687
--====================================================================-- -- dmc_corona/dmc_gesture/tap_gesture.lua -- -- Documentation: http://docs.davidmccuskey.com/dmc-gestures --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Per...
mit
dmccuskey/dmc-gestures
examples/gesture-multigesture-basic/dmc_corona/dmc_gestures/tap_gesture.lua
10
7687
--====================================================================-- -- dmc_corona/dmc_gesture/tap_gesture.lua -- -- Documentation: http://docs.davidmccuskey.com/dmc-gestures --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Per...
mit
pirate/snabbswitch
src/lib/hardware/pci.lua
2
5264
module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") require("lib.hardware.pci_h") --- ### Hardware device information devices = {} --- Array of all supported hardware devices. --- --- Each entry is a "device info" table with these attributes: --- --- * `pciaddress...
apache-2.0
zturtleman/quakeconstruct
code/debug/lua/levelup/cl_init.lua
2
1986
print("OPENED CLINIT\n") local mfuncs = {} LVcurrentMoney = 0 LVcurrentXP = 0 LVtargetXP = 0 LVlevel = 0 LVweapons = {} local levelUp = 0 mfuncs[LVMSG_XP_ADDED] = function() local xp = message.ReadShort() local money = message.ReadShort() local source = message.ReadVector() --print("CL_XP_ADDED: " .. ...
gpl-2.0
Shayan123456/shayanhhallaji
plugins/Boobs.lua
150
1613
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
dmccuskey/dmc-gestures
examples/gesture-multigesture-basic/dmc_corona/dmc_gestures/delegate_gesture.lua
10
2729
--====================================================================-- -- dmc_corona/dmc_gestures/delegate_gesture.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permissio...
mit
xuqiongkai/GraphBasedRNN
util/util.lua
1
7318
-------------------------------------------------------------------------------- -- -- Graph-Based Recursive Neural Network for Vertex Classification -- Copyright (C) 2016-2017 Qiongkai Xu, Chenchen Xu -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of t...
gpl-3.0
Talyrius/Squire3
Localization.lua
2
14527
--[[ Squire3 - One-click smart mounting. (c) 2014 Adirelle (adirelle@gmail.com) This file is part of Squire3. Squire3 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 ...
gpl-3.0
xing634325131/Luci-0.11.1
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
zturtleman/quakeconstruct
code/debug/lua/includes/tools.lua
2
12430
QLUA_DEBUG = false if(SERVER) then QLUA_DEBUG = false end --QLUA_DEBUG = true local logfile = nil if(SERVER) then logfile = io.output("sv_lualog.txt", rw) else logfile = io.output("cl_lualog.txt", rw) end function LOG(str) logfile:write(tostring(str)) end LOG("\n\n----LOGGING: " .. os.date("%c") ...
gpl-2.0
McGlaspie/mvm
lua/mvm/PrototypeLab.lua
1
6362
Script.Load("lua/mvm/LOSMixin.lua") Script.Load("lua/mvm/LiveMixin.lua") Script.Load("lua/mvm/TeamMixin.lua") Script.Load("lua/mvm/ConstructMixin.lua") Script.Load("lua/mvm/SelectableMixin.lua") Script.Load("lua/mvm/GhostStructureMixin.lua") Script.Load("lua/mvm/DetectableMixin.lua") Script.Load("lua/mvm/FireMixin.lua...
gpl-3.0
szym/turbo
turbo/util.lua
7
10367
-- Turbo.lua Utilities module. -- -- Copyright 2011, 2012, 2013, 2014 John Abrahamsen -- -- 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 -- -...
apache-2.0
helkarakse/Miscellaneous
src/upload/upload.lua
1
1984
--[[ TickDump Version 0.1 Dev Do not modify, copy or distribute without permission of author Helkarakse, 20131210 ]] -- Libraries os.loadAPI("functions") os.loadAPI("json") -- Variables local fileName = "profile.txt" local dimension = string.sub(os.getComputerLabel(), 1, 1) local server = string.lower(string.sub(os...
gpl-2.0
MrCerealGuy/Stonecraft
clientmods/preview/init.lua
1
5946
local modname = assert(core.get_current_modname()) local modstorage = core.get_mod_storage() local mod_channel dofile(core.get_modpath(modname) .. "example.lua") core.register_on_shutdown(function() print("[PREVIEW] shutdown client") end) local id = nil do local server_info = core.get_server_info() print("Server ...
gpl-3.0
Happy-Neko/xupnpd
src/xupnpd_http.lua
1
14519
-- Copyright (C) 2011 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd http_mime={} http_err={} http_vars={} -- http_mime types http_mime['html']='text/html' http_mime['htm']='text/html' http_mime['xml']='text/xml; charset="UTF-8"' http_mime['txt']='text/plain' http_mime['cpp'...
gpl-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/skinsdb/skins_updater.lua
1
4323
-- Skins update script local S = minetest.get_translator("skinsdb") local _ID_ = "Lua Skins Updater" local internal = {} internal.errors = {} -- Binary downloads are required if not core.features.httpfetch_binary_data then internal.errors[#internal.errors + 1] = "Feature 'httpfetch_binary_data' is missing. Update...
gpl-3.0
xing634325131/Luci-0.11.1
libs/web/luasrc/http/protocol/date.lua
13
2801
--[[ HTTP protocol implementation for LuCI - date handling (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-2.0
salorium/awesome
lib/awful/widget/watch.lua
3
3492
--------------------------------------------------------------------------- --- Watch widget. -- Here is an example of simple temperature widget which will update each 15 -- seconds implemented in two different ways. -- The first, simpler one, will just display the return command output -- (so output is stripped by she...
gpl-2.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/CCBReader.lua
19
4473
-------------------------------- -- @module CCBReader -- @extend Ref -- @parent_module cc -------------------------------- -- -- @function [parent=#CCBReader] addOwnerOutletName -- @param self -- @param #string name -- @return CCBReader#CCBReader self (return value: cc.CCBReader) --------------------------...
gpl-3.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/ethereal/gates.lua
1
4028
local S = ethereal.intllib -- register Ethereal wood type gates doors.register_fencegate("ethereal:fencegate_scorched", { description = S("Scorched Wood Fence Gate"), texture = "scorched_tree.png", material = "ethereal:scorched_tree", groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2} }) doors.re...
gpl-3.0
luvit/luvit
bench/http-cluster/worker.lua
14
2257
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
oUF-wow/oUF
elements/tags.lua
1
24569
-- Credits: Vika, Cladhaire, Tekkub --[[ # Element: Tags Provides a system for text-based display of information by binding a tag string to a font string widget which in turn is tied to a unit frame. ## Widget A FontString to hold a tag string. Unlike other elements, this widget must not have a preset name. ## Note...
mit
Reborn-org/tablighchi
dkjson.lua
1
26571
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
prozacgod/ccmount
inspect.lua
3
8091
local inspect ={ _VERSION = 'inspect.lua 2.0.0', _URL = 'http://github.com/kikito/inspect.lua', _DESCRIPTION = 'human-readable representations of tables', _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a ...
mit
T3hArco/skeyler-gamemodes
bhop/gamemode/sv_gatekeeper.lua
1
1119
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- GM.AllowedList = {} GM.AllowedList["STEAM_0:0:25464234"]=true -- Aaron GM.AllowedList["STEAM_0:1:19940367"]=true -- Ntag GM.AllowedList["STEAM_0:1:9346397"]=true -- Snoipa GM.AllowedList["...
bsd-3-clause
dmccuskey/dmc-gestures
dmc_corona/lib/dmc_lua/lib/bit/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
mit
dmccuskey/dmc-gestures
examples/gesture-pan-basic/dmc_corona/lib/dmc_lua/lib/bit/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
mit
dmccuskey/dmc-gestures
examples/gesture-pinch-basic/dmc_corona/lib/dmc_lua/lib/bit/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
mit
pydsigner/naev
dat/missions/dvaered/dv_antiflf02.lua
11
14334
--[[ -- This is the second mission in the anti-FLF Dvaered campaign. The player is part of a Dvaered plot to smoke out the FLF base. -- stack variable flfbase_intro: -- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv_antiflf02 -- 2 - The player has rescued the FLF ag...
gpl-3.0
parsa13881/serverbot
plugins/anti_chat.lua
62
1069
antichat = {}-- 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_chat'] then if data[tostring(msg.to.id)]['...
gpl-2.0