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
persaianbot/self
plugins/link.lua
47
60291
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.peer_id if member_id ~= our_id then -- Group configuration data[...
gpl-2.0
RyMarq/Zero-K
lups/ParticleClasses/JitterParticles.lua
8
12027
-- $Id: JitterParticles.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local JitterParticles = {} Jitt...
gpl-2.0
hfjgjfg/sss25
plugins/Chat.lua
5
1625
local function run(msg) if msg.text == "hi" then return "Hello bb" 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 return "va al...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/ParametricMake/ParametricNode.lua
1
4558
--[[ Title: ParametricNode Author(s): leio Date: 2021/3/18 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/ParametricMake/ParametricNode.lua"); local ParametricNode = commonlib.gettable("ParametricMake.ParametricNode"); ---------------...
gpl-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/zones/town-irkkk/npcs.lua
2
7094
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
joostlek/Cryonite
otouto/plugins/slap.lua
1
4606
local slap = {} local utilities = require('otouto.utilities') slap.command = 'slap [target]' function slap:init(config) slap.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('slap', true).table slap.doc = [[``` ]]..config.cmd_pat..[[slap [target] Slap somebody. ```]] end local slaps = { 'VICTI...
agpl-3.0
gleachkr/luakit
lib/search.lua
4
5938
--- Search for a string in the current webview. -- -- This module allows you to search for a string of text in the currently -- visible web page. A history of search terms is kept while luakit is running. -- -- *Note: regular expressions are not supported.* -- -- @module search -- @copyright 2010 Mason Larobina <mason....
gpl-3.0
RyMarq/Zero-K
LuaRules/Gadgets/unit_nofriendlyfire.lua
1
4483
-- $Id: unit_nofriendlyfire.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "No Friendly Fire", desc = "Add...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/SummerCamp/SummerCampSignView.lua
1
18353
--[[ author:yangguiyi date: Desc: use lib: local SummerCampSignView = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/SummerCamp/SummerCampSignView.lua") SummerCampSignView.ShowView() ]] local TeacherText = { "把一颗孝心献给敬爱的父母;把一颗诚心献给亲爱的朋友;把一颗爱心献给友爱的世界;把一颗忠心献给热爱的党。", "春花奔放,繁衍美丽的诗章;紫燕归巢,永恒幸福的畅想;神州盈绿,升腾和谐的暖阳;移动架...
gpl-2.0
purebn/ShadowBot
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
RyMarq/Zero-K
effects/freedom_fighter.lua
25
5564
-- ffejector -- ff_wingtips -- ffmuzzle -- ff_engine -- ff_puff return { ["ffejector"] = { usedefaultexplosions = false, shells = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = ...
gpl-2.0
joostlek/Cryonite
otouto/plugins/gImages.lua
1
2482
-- You need a Google API key and a Google Custom Search Engine set up to use this, in config.google_api_key and config.google_cse_key, respectively. -- You must also sign up for the CSE in the Google Developer Console, and enable image results. local gImages = {} local HTTPS = require('ssl.https') local URL = requi...
agpl-3.0
RyMarq/Zero-K
modularCommAPI/api_modularcomms.lua
2
8496
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local function GetInfo() return { name = "Modular Comm Info", desc = "Helper widget/gadget that provides info on modular comms.", author ...
gpl-2.0
gmagnotta/packages
utils/yunbridge/files/usr/bin/pretty-wifi-info.lua
106
2067
#!/usr/bin/lua local function get_basic_net_info(network, iface, accumulator) local net = network:get_network(iface) local device = net and net:get_interface() if device then accumulator["uptime"] = net:uptime() accumulator["iface"] = device:name() accumulator["mac"] = device:mac() accumulator["...
gpl-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/texts/intro-orc.lua
3
1175
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Windurst_Woods/npcs/Perih_Vashai.lua
1
2544
----------------------------------- -- Area: Windurst Woods -- NPC: Parih Vashai -- Starts and Finishes Quest: The Fanged One -- @zone 241 -- @pos 117 -3 92 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/dish_of_hydra_kofte_+1.lua
1
1805
----------------------------------------- -- ID: 5603 -- Item: dish_of_hydra_kofte_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 7 -- Intelligence -3 -- Attack % 21 -- Attack Cap 90 -- Defense % 21 -- Defense Cap 70 -- Ranged ATT % 20 -- Ranged ATT Cap 90 -- Poi...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/texts/tutorial/stats-scale/scale3.lua
3
1077
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
Ferk/Dungeontest
mods/dungeon_decor/castle/rope.lua
1
3180
minetest.register_node("castle:ropes",{ description = "Rope", drawtype = "nodebox", sunlight_propagates = true, tiles = {"castle_ropes.png"}, groups = {choppy=3,snappy=3,oddly_breakable_by_hand=3,flammable=1}, use_texture_alpha = "clip", paramtype = "light", climbable = true, walkable = false, node_box = { ...
gpl-3.0
padrinoo1/teleunity
bot/creedbot.lua
3
15668
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
TerraME/publish
lib/json.lua
1
16750
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://github.com/craigmj/json4lua/ -- Version: 1.0.0 -- This module is released under the MIT License (MIT). -- Ple...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/CreateOpenWorld.lua
1
16928
--[[ Title: CreateOpenWorld.html code-behind script Author(s): LiXizhi Date: 2010/1/22 Desc: Create new world based on predefined template and open existing world. use the lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/CreateOpenWorld.lua"); local CreateOpenWorld =...
gpl-2.0
madpilot78/ntopng
scripts/lua/admin/edit_category_lists.lua
1
11024
-- -- (C) 2021 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local graph_utils = require "graph_utils" local template = require "template_utils" local categories_utils = require "categories_utils" local lists_utils = requi...
gpl-3.0
hart/reborn
extern/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
android-ia/external_syslinux
com32/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
gpl-2.0
john-chapman/ApplicationTools
build/ApplicationTools_premake.lua
1
4387
--[[ Usage #1: External Project File ------------------------------- To use one of the prebuilt project files, call dofile() at the top of your premake script: dofile("extern/ApplicationTools/build/ApplicationTools_premake.lua") Then call ApplicationTools_ProjectExternal() inside your workspace declaration: ...
mit
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/jellyfish_5.meta.lua
28
1948
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 90, light_colors = { "20 248 255 255", "3 216 255 255", "23 78 234 255" }, radius = { x = 60, y = 60 }, standard_deviation = 8 }, ...
agpl-3.0
pakoito/ToME---t-engine4
game/modules/example_realtime/data/zones/dungeon/zone.lua
6
1340
-- ToME - Tales of Middle-Earth -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any la...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/slice_of_cerberus_meat.lua
1
1305
----------------------------------------- -- ID: 5565 -- Item: slice_of_cerberus_meat -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 10 -- Magic -10 -- Strength 6 -- Intelligence -6 ----------------------------------------- require("scripts/globals/status"); --------...
gpl-3.0
derkling/dotfiles
awesome/themes/steamburn/theme.lua
7
2312
--[[ Steamburn Awesome WM config 3.0 github.com/copycat-killer --]] theme = {} themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/steamburn" theme.wallpaper ...
mit
Nlcke/layout
examples/manual_grid.lua
1
1114
local bitmaps = {} for name in ("\n"..fruitsDesc):gmatch"\n(.-%.png)" do bitmaps[name:sub(1, -5)] = Bitmap.new(fruitsPack:getTextureRegion(name)) end local layout = Layout.new{ anAdd = Layout.newAnimation(), anRemove = Layout.newAnimation(), scroll = true, cols = 3, rows = 4, cellBrdW = 5, cellBrdH = 5, cellRel...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Windurst_Woods/npcs/Illu_Bohjaa.lua
1
2170
----------------------------------- -- Area: Windurst Woods -- NPC: Illu Bohjaa -- Starts the repeatable quest "Creepy Crawlies" -- Working 100% ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/ques...
gpl-3.0
zhutaorun/2DPlatformer-SLua
Assets/StreamingAssets/Lua/Base/YwDispatcher.lua
1
1227
-- -- Logic dispatcher class. -- -- @filename YwDispatcher.lua -- @copyright Copyright (c) 2013 Yaukey all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-06-04 -- local YwRegister = require "Base/YwRegister" local YwDeclare = YwDeclare local YwClass = YwClass local DLogE...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Ordelles_Caves/Zone.lua
1
1123
----------------------------------- -- -- Zone: Ordelles_Caves -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; require("scripts/zones/Ordelles_Caves/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
ld-test/luadocumentor
luadocumentor.lua
4
5213
#!/usr/bin/lua -------------------------------------------------------------------------------- -- Copyright (c) 2012-2014 Sierra Wireless. -- All rights reserved. This program and the accompanying materials -- are made available under the terms of the Eclipse Public License v1.0 -- which accompanies this distribut...
epl-1.0
duizendnegen/osrm-backend
profiles/foot.lua
1
7150
-- Foot profile api_version = 1 local find_access_tag = require("lib/access").find_access_tag local Set = require('lib/set') local Sequence = require('lib/sequence') local Handlers = require("lib/handlers") local next = next -- bind to local for speed properties.max_speed_for_map_matching = 40/3.6 -- kmph -...
bsd-2-clause
madpilot78/ntopng
scripts/lua/admin/get_user_info.lua
1
1740
-- -- (C) 2013 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') if(isAdministratorOrPrintErr()) then print("{\n") local users_list = ntop.getUsers() for key, value in pairs(users_list) ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Bastok_Mines/npcs/Deidogg.lua
5
4393
----------------------------------- -- Area: Bastok Mines -- NPC: Deidogg -- Starts and Finishes Quest: The Talekeeper's Truth, The Talekeeper's Gift (start) -- @zone 234 -- @pos -13 7 29 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; -----------------------------------...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/zones/reknor-escape/npcs.lua
3
4530
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Castle_Oztroja_[S]/Zone.lua
1
1135
----------------------------------- -- -- Zone: Castle_Oztroja_[S] -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Castle_Oztroja_[S]/TextIDs"] = nil; require("scripts/zones/Castle_Oztroja_[S]/TextIDs"); ----------------------------------- -- onI...
gpl-3.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua
85
3942
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 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...
gpl-2.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/silver_trousers_strafe_5.meta.lua
2
1867
return { extra_loadables = { disabled_generate_neon_map = { alpha_multiplier = 1, amplification = 0, light_colors = {}, radius = { x = 0, y = 0 }, standard_deviation = 0 }, generate_desaturation = false }, offsets = { gun = { bullet_spawn =...
agpl-3.0
eriche2016/nn
test.lua
1
269573
-- you can easily test specific units like this: -- th -lnn -e "nn.test{'LookupTable'}" -- th -lnn -e "nn.test{'LookupTable', 'Add'}" local mytester = torch.Tester() local jac local sjac local precision = 1e-5 local expprecision = 1.1e-4 local nntest = torch.TestSuite() local function equal(t1, t2, msg) if (torc...
bsd-3-clause
NRauh/wordgrinder
src/lua/export/troff.lua
3
3298
-- © 2008 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. local NextCharInWord = wg.nextcharinword local ReadU8 = wg.readu8 local string_len = string.len local string_char = string.char local string_format = string.format local ...
mit
knixeur/notion
etc/look_newviolet.lua
2
2253
-- -- look_newviolet for Notion's default drawing engine. -- Based on look_cleanviolet -- if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { highlight_colour = "#e7e7ff", shadow_colour = "#e7e7ff", background_colour = "#b8b8c8", foreground_colour = "#000000", shadow_...
lgpl-2.1
RyMarq/Zero-K
lups/headers/general.lua
8
3669
-- $Id: general.lua 3171 2008-11-06 09:06:29Z det $ --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- -- -- file: general.h.lua -- brief: collection of some usefull functions ...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/bowl_of_quadav_stew.lua
1
1326
----------------------------------------- -- ID: 4569 -- Item: Bowl of Quadav Stew -- Food Effect: 180Min, All Races ----------------------------------------- -- Agility -4 -- Vitality 2 -- Defense % 17 -- Defense Cap 60 ----------------------------------------- require("scripts/globals/status"); -------...
gpl-3.0
M4J1D/Tabchi_robotsazTeam
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
soheil22222222/mm
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
pakoito/ToME---t-engine4
game/engines/default/engine/interface/PlayerDumpJSON.lua
3
3027
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version....
gpl-3.0
TerminalShell/zombiesurvival
entities/weapons/weapon_zs_medkit.lua
1
5309
AddCSLuaFile() if CLIENT then SWEP.ViewModelFOV = 65 SWEP.BobScale = 2 SWEP.SwayScale = 1.5 SWEP.PrintName = "Medical Kit" SWEP.Description = "An advanced kit of medicine, bandages, and morphine.\nVery useful for keeping a group of survivors healthy.\nUse PRIMARY FIRE to heal other players.\nUse SECONDARY FIRE to...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/general/objects/egos/torques.lua
3
2558
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
ZACTELEGRAM1/IRAN
bot/seedbot.lua
24
10036
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
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Items/ItemSlab.lua
1
4571
--[[ Title: ItemSlab Author(s): LiXizhi Date: 2014/1/20 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Items/ItemSlab.lua"); local ItemSlab = commonlib.gettable("MyCompany.Aries.Game.Items.ItemSlab"); ----------------------------------------...
gpl-2.0
TerminalShell/zombiesurvival
entities/entities/prop_nail/init.lua
1
2807
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.m_NextStrainSound = 0 function ENT:Initialize() self:SetModel("models/crossbow_bolt.mdl") end function ENT:OnDamaged(damage, attacker, inflictor, dmginfo) if CurTime() >= self.m_NextStrainSound then self.m_NextStrainSound = CurTime...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/slice_of_giant_sheep_meat.lua
1
1216
----------------------------------------- -- ID: 4372 -- Item: slice_of_giant_sheep_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 2 -- Intelligence -4 ----------------------------------------- require("scripts/globals/status"); ---------------------------------...
gpl-3.0
fyrchik/xlua
exercises/bowling/example.lua
3
1373
return function() local current = {} local frames = {} local function strike() return current[1] == 10 end local function spare() return current[1] + current[2] == 10 end local function complete() return #frames == 10 end return { roll = function(pins) assert(not complete(), ...
mit
osamaalbsraoy/osama_albsraoy1989
plugins/ar-map.lua
1
1947
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OSAMAALBSRAOY ▀▄ ▄▀ ▀▄ ▄▀ BY OSAMAALBSRAOY (@OS_AA23) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OSAMAALBSRAOY ▀▄ ▄▀ ▀▄ ▄▀ broadcast :خريطه ▀▄ ▄▀ ▀▄▀...
gpl-2.0
Lleafll/sws-lleaf
libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua
68
2216
--[[----------------------------------------------------------------------------- Heading Widget -------------------------------------------------------------------------------]] local Type, Version = "Heading", 20 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or...
mit
RyMarq/Zero-K
LuaUI/Headers/allyteam_selection_utilities.lua
2
1678
local function GetLeftRightAllyTeamIDs() if Spring.Utilities.Gametype.isFFA() or Spring.Utilities.Gametype.isSandbox() then -- not 2 teams: unhandled by spec panels return {} end local myAllyTeamID = 0 -- FIXME Spring.GetLocalAllyTeamID() local enemyAllyTeamID = 1 -- FIXME assumes teams are 0 and 1 local myTe...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Lower_Jeuno/npcs/Adelflete.lua
37
1376
----------------------------------- -- Area: Lower Jeuno -- NPC: Adelflete -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Macros/MacroPlayer.lua
1
49095
--[[ Title: Macro Player Author(s): LiXizhi Date: 2021/1/4 Desc: Macro Player page use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Macros/MacroPlayer.lua"); local MacroPlayer = commonlib.gettable("MyCompany.Aries.Game.Tasks.MacroPlayer"); MacroPlay...
gpl-2.0
purebn/ShadowBot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
jsj2008/ValyriaTear
dat/tilesets/harrvah_house_exterior.lua
4
11980
tileset = {} tileset.image = "img/tilesets/harrvah_house_exterior.png" tileset.num_tile_cols = 16 tileset.num_tile_rows = 16 -- The general walkability of the tiles in the tileset. Zero indicates walkable. One tile has four walkable quadrants listed as: NW corner, NE corner, SW corner, SE corner. tileset.walkability ...
gpl-2.0
purebn/ShadowBot
plugins/Welcome.1.lua
114
3529
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
derkling/dotfiles
awesome/lain/widgets/alsabar.lua
2
5622
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2013, Rman --]] local newtimer = require("lain.helpers").newtimer...
mit
Laterus/Darkstar-Linux-Fork
scripts/globals/items/bird_egg.lua
1
1127
----------------------------------------- -- ID: 4570 -- Item: Bird Egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 6 -- Magic 6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
madpilot78/ntopng
scripts/lua/modules/pools/system_pools.lua
1
1489
-- -- (C) 2017-21 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path if ntop.isPro() then package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path end local pools = require "pools" local system_pools = {} -- #...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/maps/vaults/diggers.lua
3
2425
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
flyzjhz/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-wol/luasrc/model/cbi/wol.lua
37
2522
--[[ 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 ]]-- local sy...
gpl-2.0
eriche2016/nn
VolumetricMaxUnpooling.lua
17
1804
local VolumetricMaxUnpooling, parent = torch.class('nn.VolumetricMaxUnpooling', 'nn.Module') function VolumetricMaxUnpooling:__init(poolingModule) parent.__init(self) assert(torch.type(poolingModule)=='nn.VolumetricMaxPooling', 'Argument must be a nn.VolumetricMaxPooling module') assert(poolingModule.kT==pooling...
bsd-3-clause
madpilot78/ntopng
attic/scripts/plugins/alerts/network/threshold_cross/user_scripts/interface/idle.lua
2
1245
-- -- (C) 2019-21 - ntop.org -- local alerts_api = require("alerts_api") local alert_consts = require("alert_consts") local user_scripts = require("user_scripts") local alert_severities = require "alert_severities" local script = { -- Script category category = user_scripts.script_categories.network, default_e...
gpl-3.0
RyMarq/Zero-K
effects/grav_blast.lua
7
21454
-- grav_blast_seacloud_pillar -- grav_blast_seacloud_topcap -- grav_blast_seacloud_ring -- grav_blast_landcloud_ring -- grav_blast_seacloud -- grav_blast_landcloud_pillar -- grav_blast_effect -- grav_blast_seacloud_cap -- grav_blast_landcloud_cap -- grav_blast_landcloud_topcap -- grav_blast_landcloud return { ["grav...
gpl-2.0
flyzjhz/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
80
1260
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = Map("mactodevinfo", lu...
gpl-2.0
llX8Xll/DEVKEEPER1
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Items/ItemAgentSign.lua
1
3685
--[[ Title: ItemAgentSign Author(s): LiXizhi Date: 2021/2/17 Desc: Agent sign block is a signature block for describing all scene blocks connected to it. use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Items/ItemAgentSign.lua"); local ItemAgentSig...
gpl-2.0
RyMarq/Zero-K
LuaUI/Widgets/gui_chili_chat2_1.lua
1
33759
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- TODO : extract code that can be shared between widgets (parsing) and maybe move it to cawidget and add new callin -- TODO (maybe) : extract code that can ...
gpl-2.0
pakoito/ToME---t-engine4
game/modules/tome/data/zones/south-beach/objects.lua
3
1185
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
osamaalbsraoy/osama_albsraoy1989
plugins/all.lua
16
4339
do local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print_name(user)..' ['..user_id..']' return u...
gpl-2.0
purebn/ShadowBot
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
LiJingBiao/wax
lib/stdlib/helpers/bit.lua
19
4761
--[[--------------- LuaBit v0.4 ------------------- a bitwise operation lib for lua. http://luaforge.net/projects/bit/ How to use: ------------------- wax.bit.bnot(n) -- bitwise not (~n) wax.bit.band(m, n) -- bitwise and (m & n) wax.bit.bor(m, n) -- bitwise or (m | n) wax.bit.bxor(m, n) -- bitwise xor (m ^ n) wa...
mit
Lleafll/sws-lleaf
libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
24
5432
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(...
mit
vince06fr/prosody-modules
mod_captcha_registration/modules/mod_register.lua
32
13867
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- Modifications copyright (C) 2014 mrDoctorWho -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local dataform_new = r...
mit
pakoito/ToME---t-engine4
game/modules/tome/data/zones/charred-scar/zone.lua
3
2506
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
madpilot78/ntopng
scripts/lua/modules/alert_consts.lua
1
20953
-- -- (C) 2021 - ntop.org -- -- This file contains the alert constants local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/alert_keys/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path local alert_severities = require "alert_se...
gpl-3.0
RyMarq/Zero-K
scripts/turretgauss.lua
1
6198
include "constants.lua" --pieces local concrete, belt = piece('Concrete','Belt'); local wheel, arm, hand, cannon = piece('Wheel', 'Arm','Hand', 'Cannon'); local barrel1, barrel2, barrel3, muzzle = piece("Barrel1","Barrel2","Barrel3","Muzzle"); local muzzleProxy = piece("MuzzleProxy") local lidLeft, lidRight = piece("l...
gpl-2.0
RyMarq/Zero-K
gamedata/modularcomms/weapons/heatray.lua
1
1422
local name = "commweapon_heatray" local weaponDef = { name = [[Heat Ray]], accuracy = 512, areaOfEffect = 20, coreThickness = 0.5, craterBoost = 0, craterMult = 0, customParams = { is_unit_weapon = 1, slot = [[5]], ...
gpl-2.0
SlNPacifist/ProDBG
bin/macosx/tundra/scripts/tundra/syntax/bison.lua
20
1173
module(..., package.seeall) local path = require "tundra.path" DefRule { Name = "Bison", Command = "", -- Replaced on a per-instance basis. ConfigInvariant = true, Blueprint = { Source = { Required = true, Type = "string" }, OutputFile = { Required = false, Type = "string" }, TokenDefine...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Abyssea-Empyreal_Paradox/Zone.lua
1
1153
----------------------------------- -- -- Zone: Abyssea-Empyreal_Paradox -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Abyssea-Empyreal_Paradox/TextIDs"] = nil; require("scripts/zones/Abyssea-Empyreal_Paradox/TextIDs"); --------------------------...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/bastore_sardine.lua
1
1200
----------------------------------------- -- ID: 5792 -- Item: Bastore Sardine -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 1 -- Mind -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnI...
gpl-3.0
realhidden/wargus
scripts/missiles.lua
1
10430
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
jsj2008/ValyriaTear
dat/effects/particles/earth_circle_outer_particles.lua
2
7183
-- Earth circle particle effect -- Author: Bertram systems = {} systems[0] = { enabled = true, emitter = { x = 0, y = -64, x2 = 0, --useless when using a circle shape y2 = 0, --useless when using a circle shape center_x = 0, --useless when using a circle shape ...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/MirrorBlocksTask.lua
1
4291
--[[ Title: Mirror blocks Author(s): LiXizhi Date: 2014/2/20 Desc: cloning blocks to a destination location, preserving as much information as possible use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/MirrorBlocksTask.lua"); local task = MyCom...
gpl-2.0
groupforspeed/API-WaderTG
plugins/inpm.lua
1
9345
local function pre_process(msg) local to = msg.to.type local service = msg.service if to == 'user' and msg.fwd_from then if not is_support(msg.from.id) and not is_admin1(msg) then return end local user = 'user#id'..msg.from.id local from_id = msg.fwd_from.peer_id if msg.fwd_from.first_name then from_fi...
gpl-2.0
KenPowers/dotfiles
home/config/nvim/lua/plugins/telescope.lua
1
1590
local cmd = vim.cmd local wk = require('which-key') local telescope = require 'telescope' local actions = require 'telescope.actions' local sorters = require 'telescope.sorters' telescope.setup { defaults = { mappings = { i = { ['<C-d>'] = actions.close, ['<Esc>'] = actions.close, [...
mit
madpilot78/ntopng
third-party/i18n.lua-master/i18n/interpolate.lua
2
1830
local unpack = unpack or table.unpack -- lua 5.2 compat local FORMAT_CHARS = { c=1, d=1, E=1, e=1, f=1, g=1, G=1, i=1, o=1, u=1, X=1, x=1, s=1, q=1, ['%']=1 } -- matches a string of type %{age} local function interpolateValue(string, variables) return string:gsub("(.?)%%{%s*(.-)%s*}", function (previous, key) ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Windurst_Waters/npcs/Puroiko-Maiko_WW.lua
1
5537
----------------------------------- -- Area: Windurst Water -- NPC: Puroiko-Maiko, W.W. -- X Grant Signet -- Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- Start Supply Run ...
gpl-3.0
RyMarq/Zero-K
scripts/hoverarty.lua
1
4021
include "constants.lua" local base = piece 'base' local turret = piece 'turret' local barrel1 = piece 'barrel1' local aim = piece 'aim' local wheels = {piece 'frdirt', piece 'fldirt', piece 'rrdirt', piece 'rldirt'} local frpontoon = piece 'frpontoon' local flpontoon = piece 'flpontoon' local rrpontoon = piece 'rrpont...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Port_San_dOria/npcs/Antreneau.lua
1
1678
----------------------------------- -- Area: Northern San d'Oria -- NPC: Antreneau -- Quest NPC ----------------------------------- require("scripts/globals/titles"); package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/gfx/shaders/objectsoutline.lua
3
1052
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0