repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
rickvanbodegraven/nodemcu-firmware
lua_modules/bh1750/bh1750.lua
89
1372
-- *************************************************************************** -- BH1750 module for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-22 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** loca...
mit
Naliwe/IntelliJ_WowAddOnSupport
resources/Wow_sdk/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua
1
7706
--[[----------------------------------------------------------------------------- Keybinding Widget Set Keybindings in the Config UI. -------------------------------------------------------------------------------]] local Type, Version = "Keybinding", 25 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
mit
stanfordhpccenter/soleil-x
testcases/legacy/taylor_green_vortex/taylor_green_vortex_936_624_624.lua
1
4165
-- This is a Lua config file for the Soleil code. return { xnum = 936, -- number of cells in the x-direction ynum = 624, -- number of cells in the y-direction znum = 624, -- number of cells in the z-direction -- if you increase the cell number and the calculation diverges -- right away, decrease the time s...
gpl-2.0
hleuwer/luayats
examples/ageretm/test_ageretm.lua
1
9395
-- Adopt LUA_PATH, so we find the modules. LUA_PATH = os.getenv("LUA_PATH")..";".."../?.lua;./test_agere/?.lua" TK_SIMTIME = 2 TK_NRUN = 100 -- Give higher level for more debugging output _DEBUG = {level = 1} collectgarbage(10) require "debug" require "stdlib" require "agere" require "netz" require "muxdmx" require "m...
gpl-2.0
cjshmyr/OpenRA
mods/cnc/maps/gdi05b/gdi05b.lua
7
6347
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
ImagicTheCat/vRP
vrp/cfg/lang/ru.lua
1
19992
-- define all language properties local lang = { common = { welcome = "Приветствуем! Используйте клавиши телефона для вызова меню.~n~последний вход: {1}", no_player_near = "~r~Рядом с вами нет игровок.", invalid_value = "~r~Неверное значение.", invalid_name = "~r~Неверное имя.", not_found = "~r~...
mit
ferstar/openwrt-dreambox
feeds/luci/luci/luci/contrib/luasrcdiet/lua/optlex.lua
125
31588
--[[-------------------------------------------------------------------- optlex.lua: does lexer-based optimizations This file is part of LuaSrcDiet. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the Chan...
gpl-2.0
cbeck88/cegui-mirror-two
cegui/src/ScriptModules/Lua/support/tolua++bin/lua/enumerate.lua
14
2744
-- tolua: enumerate class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id$ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements...
mit
otland/forgottenserver
data/talkactions/scripts/add_skill.lua
6
1356
local function getSkillId(skillName) if skillName == "club" then return SKILL_CLUB elseif skillName == "sword" then return SKILL_SWORD elseif skillName == "axe" then return SKILL_AXE elseif skillName:sub(1, 4) == "dist" then return SKILL_DISTANCE elseif skillName:sub(1, 6) == "shield" then return SKILL_S...
gpl-2.0
deepak78/new-luci
modules/luci-base/luasrc/tools/webadmin.lua
59
2301
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.tools.webadmin", package.seeall) local util = require "luci.util" local uci = require "luci.model.uci" local ip = require "luci.ip" func...
apache-2.0
JamesWilko/GoonMod
GoonMod/mods/mask_mod_search.lua
1
13505
-- Mod Definition local Mod = class( BaseMod ) Mod.id = "MaskModSearch" Mod.Name = "Search Bar for Mask Customization" Mod.Desc = "Adds a search bar to the mask customization screen" Mod.Requirements = {} Mod.Incompatibilities = {} Hooks:Add("GoonBaseRegisterMods", "GoonBaseRegisterMutators_" .. Mod:ID(), function() ...
mit
xordspar0/synthein
src/vendor/lunatest.lua
2
33599
----------------------------------------------------------------------- -- -- Copyright (c) 2009-12 Scott Vokes <vokes.s@gmail.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 witho...
gpl-3.0
xinjuncoding/skynet
service/sharedatad.lua
7
3048
local skynet = require "skynet" local sharedata = require "sharedata.corelib" local table = table local cache = require "skynet.codecache" cache.mode "OFF" -- turn off codecache, because CMD.new may load data file local NORET = {} local pool = {} local pool_count = {} local objmap = {} local function newobj(name, tbl...
mit
ziz/solarus
quests/zsxd/data/maps/map0060.lua
1
1348
-- Temple of Stupidities 1F NW switches_good_order = { 3,1,4,2,3,2,1,1,4,3,2,2, 1,3,2,3,3,1,4,4,2,1,2,3, 3,2,1,1,3,4,2,2,1,3,4,1 } next_switch_index = 1 camera_timer = "" function event_switch_activated(switch_name) switch_index = string.match(switch_name, "^switch_\([1-4]\)$") if switch_index ~= nil and next_sw...
gpl-3.0
deepak78/new-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua
29
3928
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local util = require "nixio.util" local has_fscheck = fs.access("/usr/sbin/e2fsck") local block = io.popen("block info", "r") local ln, dev, devices = nil, nil, {} repeat ln =...
apache-2.0
lukw00/shogun
examples/undocumented/lua_modular/evaluation_contingencytableevaluation_modular.lua
21
1809
require 'modshogun' require 'load' ground_truth = load_labels('../data/label_train_twoclass.dat') math.randomseed(17) predicted = {} for i = 1, #ground_truth do table.insert(predicted, math.random()) end parameter_list = {{ground_truth,predicted}} function evaluation_contingencytableevaluation_modular(ground_truth,...
gpl-3.0
ziz/solarus
quests/zsxd/data/maps/map0020.lua
1
11642
---------------------------------- -- Crazy House 1FA (south) -- -- TODO: MAP TERMINEE, A TESTER -- ---------------------------------- guichet_11_error = false function event_map_started(destination_point_name) if sol.game.savegame_get_boolean(101) then sol.map.switch_set_activated("CS3", true) else sol.m...
gpl-3.0
steved/dotfiles
awesome/themes/niceandclean/theme.lua
1
7336
-- niceandclean, awesome3 theme, by Blazeix, based off of ghost1227's openbox theme. --{{{ Main local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() l...
mit
focusworld/binbong
plugins/banhammer.lua
4
11920
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
Native-Software/Krea
CoronaGameEditor/bin/Release/Lua Repository/perfanalyser.lua
3
11545
--- This module is provided as it by Native-Software for use into a Krea project. -- @author Frederic Raimondi -- @copyright Native-Software 2012 - All Rights Reserved. -- @release 1.0 -- @description perfanalyser is needed by Krea -- <br>Changing the content of this file is at your own risk. -- As the software Krea...
gpl-2.0
peterfox/proxmark3
client/scripts/dumptoemul.lua
8
2919
-- The getopt-functionality is loaded from pm3/getopt.lua -- Have a look there for further details getopt = require('getopt') bin = require('bin') example = "script run dumptoemul -i dumpdata-foobar.bin" author = "Martin Holst Swende" usage = "script run dumptoemul [-i <file>] [-o <file>]" desc =[[ This script takes a...
gpl-2.0
project-zerus/thrift
lib/lua/TCompactProtocol.lua
30
13135
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
pavel-odintsov/snabbswitch
src/core/packet.lua
13
3204
module(...,package.seeall) local debug = _G.developer_debug local ffi = require("ffi") local C = ffi.C local freelist = require("core.freelist") local lib = require("core.lib") local memory = require("core.memory") local counter = require("core.counter") local freelist_add, freelist_remove, freelist_nfree = ...
apache-2.0
masterweb121/telegram-bot
plugins/banhammer.lua
22
5639
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
lcheylus/haka
modules/protocol/dns/dns.lua
3
7883
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local class = require('class') local udp_connection = require("protocol/udp_connection") local ipv4 = require('proto...
mpl-2.0
KNIGHTTH0R/uzz
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
emptyrivers/WeakAuras2
WeakAurasOptions/OptionsFrames/ModelPicker.lua
1
21676
if not WeakAuras.IsCorrectVersion() then return end local AddonName, OptionsPrivate = ... -- Lua APIs local pairs, rad = pairs, rad -- WoW APIs local CreateFrame = CreateFrame local AceGUI = LibStub("AceGUI-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") local WeakAuras = WeakAuras local L = WeakAuras....
gpl-2.0
Godfather021/best
plugins/google.lua
5
1040
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
plinkopenguin/wire-extras
lua/entities/gmod_wire_rfid_reader_beam/init.lua
4
3181
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') ENT.WireDebugName = "RFID Beam Reader" local MODEL = Model("models/jaanus/wiretool/wiretool_range.mdl") function ENT:Initialize() self:SetModel( MODEL ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPH...
gpl-3.0
m-creations/openwrt
feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua
68
2536
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Exec Plugin Configuration"), translate( "The exec plugin starts external commands to read values " .. "from or to notify external processes when cer...
gpl-2.0
iamliqiang/prosody-modules
mod_auth_imap/auth_imap/mod_auth_imap.lua
32
2142
-- IMAP authentication backend for Prosody -- -- Copyright (C) 2011 FIMXE from hg annotate -u local name = "IMAP SASL"; local log = require "util.logger".init("auth_imap"); local imap_host = module:get_option_string("imap_auth_host", "localhost"); local imap_port = module:get_option_number("imap_auth_port"); local i...
mit
ld-test/lua-parser
lua-parser/pp.lua
2
9037
--[[ This module impements a pretty printer to the AST ]] local pp = {} local block2str, stm2str, exp2str, var2str local explist2str, varlist2str, parlist2str, fieldlist2str local function iscntrl (x) if (x >= 0 and x <= 31) or (x == 127) then return true end return false end local function isprint (x) return ...
mit
ferstar/openwrt-dreambox
feeds/luci/luci/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk/phones.lua
11
2989
--[[ LuCI - Lua Configuration Interface Copyright 2008 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: phones.l...
gpl-2.0
weitjong/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/container.lua
28
17414
-- tolua: container abstract class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- e...
mit
Oxygem/Oxycore
modules/admin/post/permissions.lua
1
1205
-- Oxypanel Admin -- File: post/permissions.lua -- Desc: edit permission set local template, database, request, session, user, header = oxy.template, luawa.database, luawa.request, luawa.session, luawa.user, luawa.header --login & permission if not user:checkLogin() or not user:checkPermission('EditPermission') then ...
mit
allwenandashi/1
plugins/all.lua
184
4452
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
ferstar/openwrt-dreambox
feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/xwrt/hmenu.lua
7
5836
util = require("lua-xwrt.xwrt.util") require("lua-xwrt.addon.uci") require("lua-xwrt.addon.string") htmlhmenuClass = {} htmlhmenuClass_mt = {__index = htmlhmenuClass} function htmlhmenuClass.new(class) self = {} auth = {} self.user = __ENV.REMOTE_USER or __ENV.USER self.len = 0 self.class = class or "mainmenu"...
gpl-2.0
sajjad94/ASD_KARBALA
plugins/en-lock-bot.lua
5
2731
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ ANTI BOT : منع بوتات ▀▄ ▄▀ ▀▄▀...
gpl-2.0
ProtectionTeam/PCT
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
vzaramel/kong
spec/unit/stub_coverage_spec.lua
1
1415
-- This file requires all .lua files from kong's kong/ folder in order to compute the real coverage -- since not all files are currently unit tested and the coverage is erroneous. local path = require("path").new("/") local _ = require "spec.spec_helpers" require "kong.tools.ngx_stub" -- Stub DAO for lapis controller...
apache-2.0
vzaramel/kong
kong/dao/schemas/apis.lua
2
4349
local url = require "socket.url" local stringy = require "stringy" local function validate_upstream_url_protocol(value) local parsed_url = url.parse(value) if parsed_url.scheme and parsed_url.host then parsed_url.scheme = parsed_url.scheme:lower() if not (parsed_url.scheme == "http" or parsed_url.scheme ==...
apache-2.0
Native-Software/Krea
CoronaGameEditor/bin/Release/Lua Repository/mobileeditorengine.lua
4
18234
--- This module is provided as it by Native-Software for use into a Krea project. -- @author Frederic Raimondi -- @copyright Native-Software 2012 - All Rights Reserved. -- @release 1.0 -- @description MobileEditorEngine is an engine allowing the user to edit during execution the content of a TilesMap. -- <br>Changing...
gpl-2.0
Nau3D/nau
projects/script flow test/test.lua
1
1597
print("teste") enterPipI = function() local file=io.open("flow", "a") file:write("Enter pipeline I\n"); file:close() end execPassI = function() local file=io.open("flow", "a") file:write("Enter Pass I\n"); file:close() end donePassI = function() local file=io.open("flow", "a") file:write("Done with Pass...
mit
m-creations/openwrt
feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
gpl-2.0
Murfalo/game-off-2016
assets/rooms/ASPeak.lua
1
197190
return { version = "1.1", luaversion = "5.1", tiledversion = "0.17.1", orientation = "orthogonal", renderorder = "right-down", width = 120, height = 80, tilewidth = 16, tileheight = 16, nextobjectid = 37, backgroundcolor = { 45, 51, 93 }, properties = { ["script"] = "ASPeakS", ["use_ligh...
mit
otland/forgottenserver
data/scripts/actions/others/flower_pot.lua
6
6445
local flowers = { {itemid = 7655, watered = false, advance = false, msg = "You should plant some seeds first."}, {itemid = 7665, watered = true, advance = false, msg = "You watered your plant.", after = 7673}, {itemid = 7673, watered = false, advance = false, msg = "Your plant doesn't need water."}, {itemid = 7670,...
gpl-2.0
Sevenanths/boson-t-nouveau
NewBosonT/NewBosonT/bin/Debug/boson/data - Copy/player_death.lua
2
7536
--[[ function scan_death_ani(player_node) local w = 128 local h = 128 local render_target = lt.RenderTarget(nil, w, h, -1, -1.8, 1, 0.4, -1, -1.8, 1, 0.4, "nearest", "nearest") player_node:Draw(render_target, 0, 0, 0, 0) local node = render_target:TextureMode("add"...
gpl-2.0
Native-Software/Krea
CoronaGameEditor/Lua Repository/Krea Remote/remotescene.lua
3
13049
local storyboard = require( "storyboard" ) local scene = storyboard.newScene() --============================================================================================ -- Begin of auto-generated section for REQUIRES: DO NOT MODIFY --================================================================================...
gpl-2.0
iamliqiang/prosody-modules
mod_storage_mongodb/mod_storage_mongodb.lua
32
1724
local next = next; local setmetatable = setmetatable; local params = assert ( module:get_option("mongodb") , "mongodb configuration not found" ); prosody.unlock_globals(); local mongo = require "mongo"; prosody.lock_globals(); local json = require "util.json"; local conn local keyval_store = {}; keyval_store.__ind...
mit
aryajur/luarocks
src/luarocks/fetch/sscm.lua
20
1888
--- Fetch back-end for retrieving sources from Surround SCM Server --module("luarocks.fetch.sscm", package.seeall) local sscm = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") --- Download sources via Surround SCM Server for building a rock. -- @param rockspec table: The rockspec table -- @p...
mit
fegimanam/a
plugins/welcome.lua
190
3526
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
pavel-odintsov/snabbswitch
src/apps/intel/intel10g.lua
7
54048
--- Device driver for the Intel 82599 10-Gigabit Ethernet controller. --- This is one of the most popular production 10G Ethernet --- controllers on the market and it is readily available in --- affordable (~$400) network cards made by Intel and others. --- --- You will need to familiarize yourself with the excellent [...
apache-2.0
ImagicTheCat/vRP
vrp/client/police.lua
1
7347
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.police then return end -- this module define some police tools and functions local Police = class("Police", vRP.Extension) function Police:__construct() vRP.Extension.__construct(self) self.handcuffed = ...
mit
cjshmyr/OpenRA
mods/cnc/maps/nod02b/nod02b.lua
7
6612
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
weitjong/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/code.lua
42
2520
-- tolua: code class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1999 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements, o...
mit
iamliqiang/prosody-modules
mod_service_directories/mod_service_directories.lua
32
5943
-- Prosody IM -- Copyright (C) 2011 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- An implementation of [XEP-0309: Service Directories] -- Imports and defines local st = require "util.stanza"; local jid_split = require "util.jid"...
mit
GamaLabs/moonlight-on-cocos2dx
lib/moonlight.lua
1
1765
local inspect = require("inspect") local COLOR_INFO = "INFO: " local COLOR_WARN = "WARN: " local COLOR_ERROR = "ERROR: " console = { log = function(fmt, ...) return print("LOG: " .. tostring(string.format(tostring(fmt), ...))) end, info ...
mit
SlimSaber/android_external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
krstal/CrYsTaL
plugins/ar-sudo.lua
1
1377
do local function run(msg,macthes) local reply_id = msg ['id'] if is_sudo(msg) and macthes[1] == 'م المطور' then local text = [[ 🃏🔱 اسم بوتك 🔱🃏 🔹➖🔸➖🔹➖🔸➖🔹➖🔸 🔹- تفعيل :: تفعيل البوت | 📢 🔹- الغاء تفعيل :: الغاء تفعيل البوت | 🔕 🔹- حظر عام :: حضر عام | 📛 🔹- الغاء العام :: الغاء الحضر العام | 🚫 🔹- ق...
gpl-2.0
slowglass/Restacker
Lang.fr.lua
1
1944
-- French Lang bundle by Xie local b = Slowglass.Restacker.langBundle b["BAG"] = "Sac: <<1>>" b["LOADED"] = "Restacker Chargé" b["SRC_ITEM"] = "Déplacer article: <<1>>" b["DST_ITEM"] = "Destinations article: <<1>>" b["EVALUATION"] = "Évaluation du Restacker:" b["RESTACK_AVAILABLE"] = "...Disponible pour réempilage <<1>...
mit
osgcc/ryzom
ryzom/common/data_common/r2/r2_features_kill_npc.lua
3
15171
r2.Features.KillNpc = {} local feature = r2.Features.KillNpc feature.Name="KillNpc" feature.Description="" feature.Components = {} feature.Components.KillNpc = { BaseClass="LogicEntity", Name="KillNpc", InEventUI = true, Menu="ui:interface:r2ed_feature_menu", DisplayerProperties = "R2::CDisplayer...
agpl-3.0
otland/forgottenserver
data/scripts/actions/others/taming.lua
7
14773
local TYPE_ITEM, TYPE_MONSTER = 1, 2 local config = { [5907] = { -- slingshot name = "bear", id = 3, type = TYPE_MONSTER, achievement = "Bearbaiting", chance = 20, fail = { {run = true, text = "The bear ran away."}, {broke = true, text = "Oh no! The slingshot broke."}, {sound = "GRRRRRRRRRRRR", t...
gpl-2.0
mamadantimageeee/antimage
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
hfjgjfg/spam111
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
slowglass/Restacker
libs/LibAddonMenu-2.0/controls/submenu.lua
7
4209
--[[submenuData = { type = "submenu", name = "Submenu Title", -- or string id or function returning a string tooltip = "My submenu tooltip", -- -- or string id or function returning a string (optional) controls = {sliderData, buttonData} --(optional) used by LAM reference = "MyAddonSubmenu" --(optio...
mit
centurysys/RIOT
dist/tools/wireshark_dissector/riot.lua
21
2130
-- RIOT native support for Wireshark -- A Lua implementation for dissection of RIOT native packets in wireshark -- @Version: 0.0.1 -- @Author: Martine Lenders -- @E-Mail: mlenders@inf.fu-berlin.de do --Protocol name "RIOT" local p_riot = Proto("RIOT", "RIOT native packet") --Protocol Fields local f_le...
lgpl-2.1
jcmoyer/hug
extensions/extension.lua
1
1195
-- -- Copyright 2013 J.C. Moyer -- -- 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 agreed to in ...
apache-2.0
iamliqiang/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
jozadaquebatista/textadept
modules/textadept/editing.lua
1
28244
-- Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE. local M = {} --[[ This comment is for LuaDoc. --- -- Editing features for Textadept. -- @field AUTOPAIR (bool) -- Automatically close opening brace and quote characters with their -- complements. -- The default value is `true`. -- Auto-pai...
mit
hoelzl/Xbt.lua
src/sci/prng.lua
2
1191
-------------------------------------------------------------------------------- -- Pseudo random number generators module. -- -- Copyright (C) 2011-2014 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is relea...
mit
pavel-odintsov/snabbswitch
src/lib/protocol/datagram.lua
7
7735
-- This class provides basic mechanisms for parsing, building and -- manipulating a hierarchy of protocol headers and associated payload -- contained in a data packet. In particular, it supports -- -- Parsing and in-place manipulation of protocol headers in a -- received packet -- -- In-place decapsulation by re...
apache-2.0
otland/forgottenserver
data/migrations/21.lua
8
1945
function onUpdateDatabase() print("> Updating database to version 22 (UTF-8 encoding)") db.query("ALTER TABLE account_ban_history CONVERT TO CHARACTER SET utf8") db.query("ALTER TABLE account_bans CONVERT TO CHARACTER SET utf8") db.query("ALTER TABLE account_viplist CONVERT TO CHARACTER SET utf8") db.query("ALTER ...
gpl-2.0
m-creations/openwrt
feeds/luci/modules/luci-base/luasrc/sys.lua
40
15171
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local io = require "io" local os = require "os" local table = require "table" local nixio = require "nixio" local fs = require "nixio.fs" local uci = require "luci.model.uci" local luci = {} l...
gpl-2.0
vzaramel/kong
kong/tools/io.lua
1
4594
--- -- IO related utility functions -- local yaml = require "yaml" local path = require("path").new("/") local stringy = require "stringy" local constants = require "kong.constants" local dao_helper = require "kong.dao" local _M = {} _M.path = path --- -- Checks existence of a file. -- @param path path/file to chec...
apache-2.0
Sevenanths/boson-t-nouveau
NewBosonT/NewBosonT/bin/Debug/boson/data/portal.lua
2
1178
function make_portal_node() local portal = lt.Layer() local light1 = images.light1:Rotate(0) local light2 = images.light2:Rotate(0) portal:Insert(light1) portal:Insert(light2) local function tween1() light1.angle = 0 light1:Tween{angle = 360, time = 27, action = tween1} e...
gpl-2.0
osgcc/ryzom
ryzom/client/data/gamedev/interfaces_v3/out_v2_select.lua
3
1355
-- In this file we define functions that serves outgame character creation ------------------------------------------------------------------------------------------------------------ -- create the game namespace without reseting if already created in an other file. if (outgame==nil) then outgame= {}; end ---------...
agpl-3.0
xinjuncoding/skynet
lualib/multicast.lua
66
2283
local skynet = require "skynet" local mc = require "multicast.core" local multicastd local multicast = {} local dispatch = setmetatable({} , {__mode = "kv" }) local chan = {} local chan_meta = { __index = chan, __gc = function(self) self:unsubscribe() end, __tostring = function (self) return string.format("[M...
mit
minetest/minetestmapper
util/dumpnodes/init.lua
1
1550
local function get_tile(tiles, n) local tile = tiles[n] if type(tile) == 'table' then return tile.name end return tile end local function pairs_s(dict) local keys = {} for k in pairs(dict) do keys[#keys+1] = k end table.sort(keys) return ipairs(keys) end minetest.register_chatcommand("dumpnodes", { desc...
bsd-2-clause
cjshmyr/OpenRA
mods/cnc/maps/nod08a/nod08a.lua
7
8272
--[[ Copyright 2007-2017 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
cochrane/OpenTomb
scripts/strings/english/sys_notify.lua
3
3785
-- OPENTOMB SYSTEM CONSOLE NOTIFICATIONS -- by Lwmte, Apr 2015 -------------------------------------------------------------------------------- -- Here you have some global system console warnings which will frequently show. -------------------------------------------------------------------------------- sys_notify[0...
lgpl-3.0
alirezanile/Newsha
plugins/google.lua
94
1176
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
dazzl-tv/janus-gateway
plugins/lua/janus-sdp.lua
1
14420
-- Set of utilities for parsing, processing and managing Janus SDPs in Lua, -- as the C Janus SDP utils that Janus provides are unavailable otherwise local JANUSSDP = {} function JANUSSDP.parse(text) if text == nil then return nil end local lines = {} local s = nil for s in text:gmatch("[^\r\n]+") do table.i...
gpl-3.0
MmxBoy/Metal-bot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
MmxBoy/mmxanti2
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
m-creations/openwrt
feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua
68
1959
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true codec_a_mu = module:option(Li...
gpl-2.0
cochrane/OpenTomb
scripts/gameflow/TR1_gold.lua
2
2234
-- Gameflow Script for OpenTomb -- Game: Tomb Raider: I Gold -- Version: 1.0 -- By: Lmwte ------------------------------------------------------------------------------------------------------------------------------------------------------------------ gameflow_paths[GAME_1_5].numlevels = 4; ------------------------...
lgpl-3.0
emptyrivers/WeakAuras2
WeakAurasOptions/OptionsFrames/FrameChooser.lua
1
3201
if not WeakAuras.IsCorrectVersion() then return end local AddonName, OptionsPrivate = ... -- Lua APIs local pairs = pairs -- WoW APIs local CreateFrame, IsMouseButtonDown, SetCursor, GetMouseFocus, MouseIsOver, ResetCursor = CreateFrame, IsMouseButtonDown, SetCursor, GetMouseFocus, MouseIsOver, ResetCursor local A...
gpl-2.0
ImagicTheCat/vRP
vrp/modules/admin.lua
1
8330
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.admin then return end local htmlEntities = module("lib/htmlEntities") local lang = vRP.lang local Admin = class("Admin", vRP.Extension) -- STATIC -- PRIVATE METHODS -- menu: admin user user local function ...
mit
amirquick/quick1
plugins/owners.lua
284
12473
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
aryajur/luarocks
src/luarocks/fs.lua
15
2134
--- Proxy module for filesystem and platform abstractions. -- All code using "fs" code should require "luarocks.fs", -- and not the various platform-specific implementations. -- However, see the documentation of the implementation -- for the API reference. local pairs = pairs --module("luarocks.fs", package.seeall) ...
mit
JamesWilko/GoonMod
GoonMod/lua/PlayerStandard.lua
1
1439
CloneClass( PlayerStandard ) Hooks:RegisterHook("PlayerStandardCheckActionInteract") function PlayerStandard._check_action_interact(self, t, input) local r = Hooks:ReturnCall("PlayerStandardCheckActionInteract", self, t, input) if r ~= nil then return r end return self.orig._check_action_interact(self, t, input...
mit
paulmarsy/Console
Libraries/nmap/App/nselib/rmi.lua
2
49019
--- Library method for communicating over RMI (JRMP + java serialization) -- -- This is a not complete RMI implementation for Lua, which is meant to be able -- to invoke methods and parse returnvalues which are simple, basically the java primitives. -- This can be used to e.g dump out the registry, and perform authenti...
mit
deepak78/new-luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
31
1569
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- signal/noise diagram -- local snr = { title = "%H: Signal and noise on %pi", ...
apache-2.0
vzaramel/kong
kong/tools/responses.lua
7
3860
--- Kong helper methods to send HTTP responses to clients. -- Can be used in the proxy, plugins or admin API. -- Most used status codes and responses are implemented as helper methods. -- -- @author thibaultcha -- Define the most used HTTP status codes through Kong local _M = { status_codes = { HTTP_OK = 200, ...
apache-2.0
Godfather021/best
plugins/plugins.lua
6
5671
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
MmxBoy/Metal-bot
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
ImagicTheCat/vRP
vrp/cfg/groups.lua
1
5794
local cfg = {} -- define each group with a set of permissions -- _config property: --- title (optional): group display name --- gtype (optional): used to have only one group with the same gtype per player (example: a job gtype to only have one job) --- onspawn (optional): function(user) (called when the character spa...
mit
ProtectionTeam/PCT
libs/tdcli.lua
102
88571
--[[ 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 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
deepak78/new-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
75
2451
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. if luci.http.formvalue("cbid.luci.1._list") then luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list") elseif ...
apache-2.0
m-creations/openwrt
feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
75
2451
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. if luci.http.formvalue("cbid.luci.1._list") then luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list") elseif ...
gpl-2.0