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
javierojan/copia
bot/bot.lua
15
6562
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 = '0.13.1' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
devilrap97/alirap97
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
javierojan/copia
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
TheAnswer/FirstTest
bin/scripts/object/tangible/lair/hermit_spider/objects.lua
1
6126
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
phibon/squeeze-web-gui-lua
squeeze-web-gui/Strings-EN.lua
1
18821
-- EN Strings return { ['languages'] = { EN = "English", DE = "German", NL = "Dutch", }, ['index'] = { title = "Web Configuration", language = "Language", }, ['system'] = { title = "System Configuration", hostname = "Hostname", location = "Location", timezone = "Time Zone", locale = "Locale", ...
gpl-3.0
Lunovox/minetest_nibirus_game
mods/add/lib_savevars/commands.lua
1
6980
minetest.register_chatcommand("set_global_value", { params = "<variavel> <valor>", description = "Grava uma variavel no mapa (Necessita de privilegio 'modsavevars').", privs = {savevars=true}, func = function(player, param) -- Returns (pos, true) if found, otherwise (pos, false) --variavel, valor = string.match...
agpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/fishing/bait/objects.lua
1
7122
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
infernall/nevermind
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- 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 user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
Mohammadrezar/telediamond
plugins/lock_edit.lua
3
2157
do function promote(receiver, member_username, user_id) local data = load_data(_config.moderation.data) local group = string.gsub(receiver, 'channel#id', '') local member_tag_username = string.gsub(member_username, '@', '(at)') if not data[group] then return end if data[group]['moderators'][tostring(u...
agpl-3.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_megamasher.lua
1
3060
AddCSLuaFile() if CLIENT then SWEP.PrintName = "Mega Masher" SWEP.ViewModelFOV = 75 SWEP.VElements = { ["base2"] = { type = "Model", model = "models/props_wasteland/buoy01.mdl", bone = "ValveBiped.Bip01", rel = "base", pos = Vector(12, 0, 0), angle = Angle(0, 90, 270), size = Vector(0.2, 0.2, 0.2), color = Color...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/endor/npcs/gundulaAttacks.lua
1
2838
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
chrisdugne/ludum-dare-36
src/components/Scroller.lua
1
9057
-------------------------------------------------------------------------------- -- DOC to desc -- vertical scroller -- can insert on the fly -- handle resize/visibility -- handle listening -- install src.component -- install assets -------------------------------------------------------------------------------- --- to...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiSynthetics/tightJacket.lua
1
4343
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
muhkuh-sys/org.muhkuh.tools-flasher
lua/erase_first_flash_sector.lua
1
1717
require("muhkuh_cli_init") require("flasher") tPlugin = tester.getCommonPlugin() if not tPlugin then error("No plugin selected, nothing to do!") end -- Download the binary. local aAttr = flasher.download(tPlugin, "netx/", tester.progress) -- Use SPI Flash CS0. local fOk = flasher.detect(tPlugin, aAttr, flasher.BUS_...
gpl-2.0
Xeltor/ovale
dist/scripts/ovale_mage.lua
1
152030
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_mage", 80300) if not __exports then return end __exports.registerMage = function(OvaleScripts) do local name = "sc_t24_mage_arcane" local desc = "[8.3] Simulationcraft: T24_Mage_Arcane" local code = [[ # Based on SimulationCraft profi...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/npcs/corsec/corsecComissioner.lua
1
4650
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
bartvm/Penlight
tests/test-url.lua
9
1564
local url = require 'pl.url' local asserteq = require 'pl.test' . asserteq asserteq(url.quote(''), '') asserteq(url.quote('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') asserteq(url.quote('abcdefghijklmnopqrstuvwxyz'), 'abcdefghijklmnopqrstuvwxyz') asserteq(url.quote('0123456789'), '0123456789') asserteq...
mit
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/corellia/creatures/gulginawAttacks.lua
1
4223
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
RockySeven3161/Unknown
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/floraSurveyTool.lua
1
3849
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/WoW/classops.lua
1
3413
-- -- classops.lua - Copyright (c) 2006, the WoWBench developer community. All rights reserved. See LICENSE.TXT. -- -- Basic object class operations: constructing, inheriting... -- Also defines WBClass_Base -- ----------------------------------------------------------- -- function WOWB_RunObjConstructors(o...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/carbines/dxr6Carbine.lua
1
2449
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/forceThrow.lua
1
2560
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/npcs/jawa/jawaProtector.lua
1
4829
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIChitin/chitinArmorLeggings.lua
1
5220
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/skills/playerSkills/combat/brawler.lua
1
32268
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/naboo/creatures/mottBull.lua
1
4672
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
rmmh/kubernetes-contrib
ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http.lua
45
21496
local http_headers = require "resty.http_headers" local ngx_socket_tcp = ngx.socket.tcp local ngx_req = ngx.req local ngx_req_socket = ngx_req.socket local ngx_req_get_headers = ngx_req.get_headers local ngx_req_get_method = ngx_req.get_method local str_gmatch = string.gmatch local str_lower = string.lower local str_u...
apache-2.0
danushkaf/contrib
ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http.lua
45
21496
local http_headers = require "resty.http_headers" local ngx_socket_tcp = ngx.socket.tcp local ngx_req = ngx.req local ngx_req_socket = ngx_req.socket local ngx_req_get_headers = ngx_req.get_headers local ngx_req_get_method = ngx_req.get_method local str_gmatch = string.gmatch local str_lower = string.lower local str_u...
apache-2.0
mramir8274/goldnbot
plugin.lua
62
5964
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/marauder/bloodCrazedPlainsMarauder.lua
1
4638
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/spawns/corellia/dungeons/imperialStronghold.lua
1
4718
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
amir1213/am
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
Mohammadrezar/telediamond
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
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua
1
2024
-------------------------------- -- @module PositionFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- -- @function [parent=#PositionFrame] getX -- @param self -- @return float#float ret (return value: float) -------------------------------- -- -- @function [par...
apache-2.0
Andrettin/Wyrmsun
scripts/civilizations/anglo_saxon/works.lua
1
61131
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/masterwork/removefirewood.lua
2
3329
local my_entity=df.historical_entity.find(df.global.ui.civ_id) local sText=" " local k=0 local v=1 for x,y in pairs(df.global.world.entities.all) do my_entity=y k=0 while k < #my_entity.resources.organic.wood.mat_index do v=my_entity.resources.organic.wood.mat_type[k] sText=dfhack.matinfo.decode(v,my_...
mit
MegaBits/megabits_wiki
extensions/Scribunto/engines/LuaCommon/lualib/mw.site.lua
3
2815
local site = {} function site.setupInterface( info ) -- Boilerplate site.setupInterface = nil local php = mw_interface mw_interface = nil site.siteName = info.siteName site.server = info.server site.scriptPath = info.scriptPath site.stylePath = info.stylePath site.currentVersion = info.currentVersion site.s...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/rori/creatures/leviasquall.lua
1
4686
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/requests/requestStatMigrationData.lua
1
2493
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/binayre/binayreRuffian.lua
1
4580
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/wearables/armor/kashyyykian_hunting/objects.lua
1
8310
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
mkwia/jc2atc
scripts/vehiclemech/server/PlaneCrash.lua
1
4273
class "Planecrash" function Planecrash:__init() HeliVehicles = {[3] = true, [14] = true, [37] = true, [57] = true, [62] = true, [64] = true, [65] = true, [67] = true} PlaneVehicles = {[24] = true, [30] = true, [34] = true, [39] = true, [51] = true, [59] = true, [81] = true, [85] = true} AirVehicles = {[3] = true, [...
mit
Andrettin/Wyrmsun
scripts/factions.lua
1
3660
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
mkwia/jc2atc
scripts/playerlist/client/gui.lua
1
6339
-- Written by JaTochNietDan, with slight modifications by Philpax class 'ListGUI' function ListGUI:__init() self.active = false self.LastTick = 0 self.ReceivedLastUpdate = true self.window = Window.Create() self.window:SetSizeRel( Vector2( 0.25, 0.8 ) ) self.window:SetPositionRel( Vector2( 0.5, 0.5 ) - ...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/yavin4/creatures/lurkingAngler.lua
1
4752
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
focusworld/max_bot
libs/mimetype.lua
3662
2922
-- 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/atom...
gpl-2.0
sweetbot0/sweetbot
libs/mimetype.lua
3662
2922
-- 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/atom...
gpl-3.0
amir1213/am
libs/mimetype.lua
3662
2922
-- 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/atom...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/object/draft_schematic/item/component/objects.lua
1
8350
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
REZATITAN/XY
plugins/greeter.lua
13
4223
--[[ Sends a custom message when a user enters or leave a chat. !welcome group The custom message will send to the group. Recommended way. !welcome pm The custom message will send to private chat newly joins member. Not recommended as a privacy concern and the possibility of user reporting the bot. !welcome disable ...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/taunt.lua
1
2548
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/space/story_loot/objects.lua
1
56091
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
amir1213/am
bot/creed.lua
1
15502
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
Andrettin/Wyrmsun
scripts/civilizations/hebrew/factions.lua
1
4565
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
miralireza2/xili_bot
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/panshee/pansheeElderWorker.lua
1
4595
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
amir1213/am
plugins/ingroup.lua
45
56305
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
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/warren/warrenImperialOfficer.lua
1
4625
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
thkhxm/TGame
Assets/StreamingAssets/lua/3rd/pbc/parser.lua
40
9297
----------------------- -- simple proto parser ----------------------- local lpeg = require "lpeg" local P = lpeg.P local S = lpeg.S local R = lpeg.R local C = lpeg.C local Ct = lpeg.Ct local Cg = lpeg.Cg local Cc = lpeg.Cc local V = lpeg.V local next = next local error = error local tonumber = tonumber local pairs =...
apache-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/creatures/zuccaBoarBlight.lua
1
4736
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
muhkuh-sys/muhkuh_tester
lua/parameter_instances.lua
3
1439
-- Create the parameter class. local class = require 'pl.class' local ParameterInstances = class() function ParameterInstances:_init(strOwner, tLogWriter, strLogLevel) self.strOwner = strOwner self.tLogWriter = tLogWriter self.strLogLevel = strLogLevel -- Get all parameter classes. self.cP = require 'parame...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/electrolyteDrain.lua
1
2569
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
trentapple/BetterUI
Modules/Inventory/InventorySlot.lua
2
5329
INVENTORY_SLOT_ACTIONS_USE_CONTEXT_MENU = true INVENTORY_SLOT_ACTIONS_PREVENT_CONTEXT_MENU = false local INDEX_ACTION_NAME = 1 local INDEX_ACTION_CALLBACK = 2 local INDEX_ACTION_TYPE = 3 local INDEX_ACTION_VISIBILITY = 4 local INDEX_ACTION_OPTIONS = 5 local PRIMARY_ACTION_KEY = 1 -- Main class definition is here -- ...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/npcs/missionNpcs/questHeroOfTatooineFarmerWife.lua
1
4477
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
selboo/wrk
deps/luajit/src/jit/v.lua
20
5614
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/fanShot.lua
1
2556
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/credits.lua
1
2425
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
trentapple/BetterUI
Globals.lua
2
1919
BUI = {} BUI.name = "BetterUI" BUI.version = "2.30" -- Program Global (scope of BUI, though) variable initialization BUI.WindowManager = GetWindowManager() BUI.EventManager = GetEventManager() -- pseudo-Class definitions BUI.CONST = {} --BUI.Lib = {} BUI.CIM = {} BUI.GenericHeader = {} BUI.GenericFooter = {} BUI.In...
mit
Xeltor/ovale
dist/DataBroker.lua
1
7105
local __exports = LibStub:NewLibrary("ovale/DataBroker", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __Localization = LibStub:GetLibrary("ovale/Localization") local L = __Localization.L local LibDataBroker = LibStub:GetLibrary("LibDataBroker-1.1", true) local LibDB...
mit
Andrettin/Wyrmsun
scripts/species/mammal/artiodactyl/suid.lua
1
3440
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
devilrap97/alirap97
plugins/en-voice.lua
5
1053
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ voice : صوت ▀▄ ▄▀ ▀▄▀...
gpl-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseBounceIn.lua
1
1092
-------------------------------- -- @module EaseBounceIn -- @extend EaseBounce -- @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 EaseBounceIn action. If creation failed, retur...
apache-2.0
Mohammadrezar/telediamond
plugins/inrealm.lua
183
36473
-- 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 is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
agpl-3.0
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/lok/npcs/canyonCorsairAttacks.lua
1
2854
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
Xeltor/ovale
dist/hooves/paladin/Hooves_Protection.lua
1
15037
local __exports = LibStub:GetLibrary("ovale/scripts/ovale_paladin") if not __exports then return end __exports.registerPaladinProtectionHooves = function(OvaleScripts) do local name = "hooves_prot" local desc = "[Hooves][8.2] Paladin: Protection" local code = [[ Include(ovale_common) Include(ovale_trinkets_mop) Incl...
mit
TheAnswer/FirstTest
bin/scripts/object/SharedPlayerObjectTemplate.lua
1
2115
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versi...
lgpl-3.0
focusworld/max_bot
bot/utils.lua
494
23873
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua
1
2060
-------------------------------- -- @module ParallaxNode -- @extend Node -- @parent_module cc -------------------------------- -- Adds a child to the container with a local z-order, parallax ratio and position offset.<br> -- param child A child node.<br> -- param z Z order for drawing priority.<br> -- para...
apache-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/armorsmith/masterArmorsmith/compositeArmorRightBicep.lua
1
5161
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/generic/applyPowerup.lua
1
2454
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIvComplexClothing/twilekLekkuWrap.lua
1
4315
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/script/framework/audio.lua
1
5853
--[[ 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, publi...
apache-2.0
bartvm/Penlight
lua/pl/array2d.lua
26
13368
--- Operations on two-dimensional arrays. -- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide} -- -- Dependencies: `pl.utils`, `pl.tablex`, `pl.types` -- @module pl.array2d local type,tonumber,assert,tostring,io,ipairs,string,table = _G.type,_G.tonumber,_G.assert,_G.tostring,_G.io,_G.ipairs,_G.str...
mit
TheAnswer/FirstTest
bin/scripts/object/tangible/component/item/quest_item/objects.lua
1
23046
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/skills/creatureSkills/endor/creatures/borgleAttacks.lua
1
4955
borgleAttack1 = { attackname = "borgleAttack1", animation = "creature_attack_light", requiredWeaponType = NONE, range = 7, damageRatio = 1.2, speedRatio = 4, arearange = 7, accuracyBonus = 0, knockdownCh...
lgpl-3.0
praveenjha527/Algorithm-Implementations
Rabin_Karp/Lua/Yonaba/rabin_karp_test.lua
26
1214
-- Tests for rabin_karp.lua local rabin_karp = require 'rabin_karp' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 en...
mit
asmagill/hammerspoon
extensions/spotlight/spotlight.lua
4
15074
--- === hs.spotlight === --- --- This module allows Hammerspoon to preform Spotlight metadata queries. --- --- This module will only be able to perform queries on volumes and folders which are not blocked by the Privacy settings in the System Preferences Spotlight panel. --- --- A Spotlight query consists of two phases...
mit
wincent/wincent
aspects/nvim/files/.config/nvim/lua/wincent/vim/plaintext.lua
1
1543
local autocmd = wincent.vim.autocmd local setlocal = wincent.vim.setlocal -- Switch to plaintext mode with: call wincent#functions#plaintext() local plaintext = function() setlocal('concealcursor', 'nc') setlocal('list', false) setlocal('textwidth', 0) setlocal('wrap') setlocal('wrapmargin', 0) wincent.vi...
unlicense
zlatebogdan/gnunet
bin/wireshark.lua
6
5537
-- declare our protocol gwlan_proto = Proto("gnunet","Gnunet Layer") -- create a function to dissect it local f = gwlan_proto.fields f.len = ProtoField.uint16 ("gnunet.len", "Gnunet Message Len") f.type = ProtoField.uint16 ("gnunet.type", "Gnunet Message Type") -- rhs_proto.fields.sequence = ProtoField.uint16("rhs.seq...
gpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/installMissionTerminal.lua
1
2622
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/janta/jantaShaman.lua
1
4853
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/database.lua
1
2429
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/formalWearIvHighFashion/comfortableSlacks.lua
1
4609
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/clearVeteranReward.lua
1
2469
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/object/base/objects.lua
1
3896
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
ludi1991/skynet
test/testsha.lua
79
77629
local skynet = require "skynet" local crypt = require "crypt" local function sha1(text) local c = crypt.sha1(text) return crypt.hexencode(c) end local function hmac_sha1(key, text) local c = crypt.hmac_sha1(key, text) return crypt.hexencode(c) end -- test case from http://regex.info/code/sha1.lua print(1) asser...
mit
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/unarmed/vibroknuckler.lua
1
2428
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/setMinimumSpawnTime.lua
1
2473
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiiWeatherWear/wookieePaddedGloves.lua
1
3802
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0