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
Ninjistix/darkstar
scripts/zones/Den_of_Rancor/Zone.lua
5
1137
----------------------------------- -- -- Zone: Den_of_Rancor (160) -- ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Den_of_Rancor/TextIDs")...
gpl-3.0
codedash64/Urho3D
bin/Data/LuaScripts/37_UIDrag.lua
15
5689
-- Urho3D UI Drag Example: -- This sample demonstrates: -- - Creating GUI elements from AngelScript -- - Loading GUI Style from xml -- - Subscribing to GUI drag events and handling them -- - Working with GUI elements with specific tags. require "LuaScripts/Utilities/Sample" VAR_BUTTONS = StringHash("BU...
mit
hvbommel/domoticz
dzVents/runtime/integration-tests/testSelectorSwitch.lua
13
1736
package.path = package.path .. ";../?.lua;../device-adapters/?.lua;./data/?.lua;../../../scripts/dzVents/generated_scripts/?.lua;" .. "../../../scripts/lua/?.lua" local TestTools = require('domoticzTestTools')('8080', true) local socket = require("socket") local _ = require 'lodash' local fsScripts = {'scriptSel...
gpl-3.0
mamad-ali/xilibot
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
eugenesan/openwrt-luci
build/setup.lua
99
1114
local SYSROOT = os.getenv("LUCI_SYSROOT") -- override uci access local uci_core = require "uci" local uci_model = require "luci.model.uci" uci_model.cursor = function(config, save) return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci") end uci_model.cursor_state = function() re...
apache-2.0
ASHRAF97/ASHRAFKASPER
bot/utils.lua
62
31016
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.l...
gpl-2.0
johnsoch/cuberite
Server/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua
36
1162
return { HOOK_PLAYER_TOSSING_ITEM = { CalledWhen = "A player is tossing an item. Plugin may override / refuse.", DefaultFnName = "OnPlayerTossingItem", -- also used as pagename Desc = [[ This hook is called when a {{cPlayer|player}} has tossed an item. The {{cPickup|pickup}} has not been spawned yet. Plu...
apache-2.0
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/ArenaState.lua
6
5446
ArenaState = {} ArenaState.__index = ArenaState function ArenaState:Create(world, stack) local this = { mWorld = world, mStack = stack, mRounds = { { mName = "Round 1", mLocked = false, mEnemy = { ...
mit
neofob/sile
lua-libraries/std/set.lua
6
7064
--[[-- Set container. Derived from @{std.container}, and inherits Container's metamethods. Note that Functions listed below are available only available from the Set prototype returned by requiring this module, because Container objects cannot have object methods. @classmod std.set @see std.container ]] loc...
mit
jbeuckm/torch-signal
fft.lua
1
24247
local ffi = require 'ffi' local fftw3 = require 'fftw3' local complex = require 'signal.complex' local xmath = require 'signal.extramath' local signal = {} local fftw = fftw3 local fftw_complex_cast = 'fftw_complex*' local function typecheck(input) if input:type() == 'torch.FloatTensor' then fftw = fftw3.f...
bsd-3-clause
TRex22/hawkthorne-journey
src/prompt.lua
2
3220
local Board = require "board" local Gamestate = require "vendor/gamestate" local window = require "window" local fonts = require "fonts" local dialog = require "dialog" local Prompt = {} Prompt.__index = Prompt local corner = love.graphics.newImage('images/menu/small_corner.png') local arrow = love.graphics.newImage(...
mit
premake/premake-4.x
tests/actions/vstudio/sln2005/platforms.lua
10
2969
-- -- tests/actions/vstudio/sln2005/platforms.lua -- Validate generation of Visual Studio 2005+ SolutionConfigurationPlatforms block. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_sln2005_platforms = { } local suite = T.vstudio_sln2005_platforms local sln2005 = premake.vstudi...
bsd-3-clause
LuaDist2/luassert
src/formatters/init.lua
2
5170
-- module will not return anything, only register formatters with the main assert engine local assert = require('luassert.assert') local colors = setmetatable({ none = function(c) return c end },{ __index = function(self, key) local ok, term = pcall(require, 'term') local isatty = io.type(io.stdout) == 'file' an...
mit
mohammadtofani/seedmn
plugins/inpm.lua
33
2992
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
Jfalcon1387/RollForLoot
Libs/AceTab-3.0/AceTab-3.0.lua
3
19735
--- AceTab-3.0 provides support for tab-completion. -- Note: This library is not yet finalized. -- @class file -- @name AceTab-3.0 -- @release $Id: AceTab-3.0.lua 1031 2011-06-29 15:04:34Z nevcairiel $ local ACETAB_MAJOR, ACETAB_MINOR = 'AceTab-3.0', 9 local AceTab, oldminor = LibStub:NewLibrary(ACETAB_MAJOR, A...
lgpl-3.0
luadch/luadch
scripts/bot_session_chat.lua
1
19680
--[[ bot_session_chat.lua by pulsar - this script can reg session chats - permissions: - if an user creates a session chat then only he has the permission to add/remove members - only members can read/write v0.4: - fix #26 / thx Sopor ...
gpl-3.0
refe/ESP-03-thingspeak
read-esp-internal-voltage.lua
1
1262
-- https://github.com/refe/ESP-03-thingspeak WRITEKEY="xxxxxxxxxxxx" -- set your thingspeak.com key tmr.delay(100000) function ReadInVdd() invddmv = adc.readvdd33(); invddv = (invddmv / 1000); print("battery voltage: "..(invddv).." V"); -- return battery voltage in Volts end -- send to https://api...
gpl-3.0
VytasSamulionis/ColorRoad
cocos2d/plugin/luabindings/auto/api/lua_cocos2dx_pluginx_auto_api.lua
146
1793
-------------------------------- -- @module plugin -------------------------------------------------------- -- the plugin PluginProtocol -- @field [parent=#plugin] PluginProtocol#PluginProtocol PluginProtocol preloaded module -------------------------------------------------------- -- the plugin PluginManager -- @fi...
mit
mms92/wire
lua/wire/stools/target_finder.lua
9
7624
WireToolSetup.setCategory( "Detection/Beacon" ) WireToolSetup.open( "target_finder", "Target Finder", "gmod_wire_target_finder", nil, "Target Finders" ) if CLIENT then language.Add( "Tool.wire_target_finder.name", "Target Finder Beacon Tool (Wire)" ) language.Add( "Tool.wire_target_finder.desc", "Spawns a target fin...
apache-2.0
AmirPGA/P.G.A
plugins/stats.lua
458
4098
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
AlexarJING/space-war
lib/loveframes/init.lua
1
14060
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ local path=... if string.find(path, "init") then path=string.sub(path,1,-6) end require(path .. ".libraries.util") require(p...
apache-2.0
mms92/wire
lua/entities/gmod_wire_twoway_radio.lua
10
5170
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Two-way Radio" ENT.WireDebugName = "2W Radio" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.Input...
apache-2.0
Noneatme/mta-lostresources
[gameplay]/pointer/client/CBlender.lua
1
1635
-- ####################################### -- ## Project: Pointer Resource ## -- ## Name: Blender.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local c...
gpl-2.0
liuxuezhan/skynet
examples/login/msgagent.lua
58
1165
local skynet = require "skynet" skynet.register_protocol { name = "client", id = skynet.PTYPE_CLIENT, unpack = skynet.tostring, } local gate local userid, subid local CMD = {} function CMD.login(source, uid, sid, secret) -- you may use secret to make a encrypted data stream skynet.error(string.format("%s is lo...
mit
cogwerkz/DiabolicUI
data/auras.lua
2
6166
local _, Engine = ... -- This database will contain lists of categorized Auras -- for CC, dispellers and so on. -- Note: -- In some cases the spellID of the spell casting the effect is listed, -- while what we would want is the spellID of the applied aura/effect on the target. -- Will need to start a publ...
mit
mohammadtofani/seedmn
plugins/cpu.lua
1
1876
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
dan9550/OpenRA
lua/stacktraceplus.lua
59
12006
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must be availa...
gpl-3.0
AlexarJING/space-war
lib/loveframes/objects/internal/treenode.lua
13
6939
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.treenode")) ...
apache-2.0
sk89q/PlayX
src/PlayX/lua/playx/providers/livestream.lua
2
5135
-- PlayX -- Copyright (c) 2009, 2010 sk89q <http://www.sk89q.com> -- -- 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 v...
lgpl-3.0
pinkysnowman/homedecor_modpack
homedecor/gastronomy.lua
12
5792
local S = homedecor.gettext local cutlery_cbox = { type = "fixed", fixed = { { -5/16, -8/16, -6/16, 5/16, -7/16, 2/16 }, { -2/16, -8/16, 2/16, 2/16, -4/16, 6/16 } } } homedecor.register("cutlery_set", { drawtype = "mesh", mesh = "homedecor_cutlery_set.obj", tiles = { "homedecor_cutlery_set.png" }, invento...
lgpl-3.0
Dantarrix/DantaScriptSystem
Sistema/data/dantasystem/file4.lua
1
2867
gvodujpo eboubsfcpsoofbsupxo(dje) mpdbm upxo = 0 gps j = 1, eboubtztufn.efbuiofbsupxo.upxoovncfs ep jg hfuejtubodfcfuxffo(hfudsfbuvsfqptjujpo(dje), hfuupxoufnqmfqptjujpo(hfuqmbzfsupxo(dje))) > hfuejtubodfcfuxffo(hfudsfbuvsfqptjujpo(dje), hfuupxoufnqmfqptjujpo(j)) uifo epqmbzfstfuupxo(dje, j) foe foe foe gvodujpo eboub...
gpl-2.0
RuiChen1113/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-chan.lua
68
1513
-- 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 chan_agent = module:option(L...
apache-2.0
mms92/wire
lua/entities/gmod_wire_textentry.lua
9
7253
-- Author: mitterdoo (with help from Divran) AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Text Entry (Wire)" ENT.WireDebugName = "Text Entry" function ENT:SetupDataTables() self:NetworkVar("Float",0,"Hold") self:NetworkVar("Bool",0,"DisableUse") end if CLIENT then local panel -------...
apache-2.0
incinirate/CCJam-2017
extlib/cc/colors.meta.lua
1
1787
local colors = colors or {} return { ["black"] = { tag = "var", contents = "colors.black", value = colors.black, }, ["blue"] = { tag = "var", contents = "colors.blue", value = colors.blue, }, ["brown"] = { tag = "var", contents = "colors.brown", value = colors.brown, }, ["comb...
mit
liuxuezhan/skynet
lualib/http/internal.lua
95
2613
local table = table local type = type local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pervent the attacker send very long stream without ...
mit
asanosoyokaze/skynet
lualib/dns.lua
23
8758
--[[ lua dns resolver library See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail -- resource record type: -- TYPE value and meaning -- A 1 a host address -- NS 2 an authoritative name server -- MD 3 a mail destination (Obsolete - use MX...
mit
johhnybritain/ettercap-with-ping
src/lua/share/core/shortpacket.lua
12
1349
--- -- Like that of shortport in the nselib, shortpacket is designed to provide a -- way to easily generate packetrules. -- -- Copyright (C) Ryan Linn and Mike Ryan -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published ...
gpl-2.0
roelofr/HorrorStory
gamemodes/horrorstory/gamemode/plugins/admin_settings.lua
1
3973
local PLUGIN = {} PLUGIN.Module = "horrorstory.settings.settingstab" PLUGIN.Category = "Settings" PLUGIN.Title = "Server settings" PLUGIN.Icon = "icon16/lock_edit.png" PLUGIN.Realm = PLUGIN_CLIENT PLUGIN.HUDIcons = {"angry","cool","firstaid_1","firstaid_2","firstaid_3","firstaid_4","happy","hysterical","laugh","pirate...
agpl-3.0
RuiChen1113/luci
modules/luci-base/luasrc/http/protocol.lua
34
15539
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class contains several functions useful for http message- and content -- decoding and to retrive form data from raw http messages. module("luci.http.protocol", package.seeall) local l...
apache-2.0
ZotPlus/zotero-better-bibtex
pandoc/zotero.lua
1
1917
local module = {} local utils = require('utils') local json = require('lunajson') -- local pl = require('pl.pretty') -- for pl.pretty.dump local state = { reported = {}, } module.citekeys = {} function module.authors(csl) if csl.author == nil then return nil end local authors = {} local author for ...
unlicense
DesolationStaging/android_external_skia
tools/lua/bitmap_statistics.lua
207
1862
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 local canvas = nil local num_perspective_bitmaps = 0 local num_affine_bitmaps = 0 local num_scaled_bitmaps = 0 loc...
bsd-3-clause
uhvhugvhhbbh545hhhyg/rekjx
plugins/me.lua
2
2176
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
mms92/wire
lua/entities/gmod_wire_expression2/core/find.lua
8
31692
E2Lib.RegisterExtension("find", true) local function table_IsEmpty(t) return not next(t) end local filterList = E2Lib.filterList local function replace_match(a,b) return string.match( string.Replace(a,"-","__"), string.Replace(b,"-","__") ) end -- -- some generic filter criteria -- -- local function filter_all() ...
apache-2.0
Tele-Sped/Tele-Sped
plugins/inrealm.lua
850
25085
-- 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_admin(msg) then local group_creator = msg.from.print_name create_g...
agpl-3.0
adib1380/fu2
plugins/inrealm.lua
850
25085
-- 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_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Bardia000/Bardia0000
plugins/inrealm.lua
850
25085
-- 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_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Noneatme/mta-lostresources
[gameplay]/pointer/server/CPointer.lua
1
2364
-- ####################################### -- ## Project: Pointer Resource ## -- ## Name: Pointer.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local c...
gpl-2.0
EwoudSmeur/paparazzi
sw/tools/opentx_lua/sp2ser.lua
8
2178
-- SmartPort to serial bridge -- TELEMETRY SCRIPT -- -- Requires opentx compilation flags -DLUA=YES -DUSB_SERIAL=YES -DCLI=NO -- -- On TX, set hardware USB mode to serial -- Add this script as telemetry script to your model local downlink_str = "" local uplink_str = "" local function init_func() end local function d...
gpl-2.0
lbt/scratchbox2
lua_scripts/pathmaps/install/00_default.lua
5
3263
-- Copyright (C) 2007 Lauri Leukkunen <lle@rahina.org> -- Copyright (C) 2008 Movial -- Licensed under MIT license. -- Rule file interface version, mandatory. -- rule_file_interface_version = "22" ---------------------------------- if (tools_root and tools_root ~= "/") then tools_source = tools_root tools_target = t...
lgpl-2.1
asanosoyokaze/skynet
lualib/loader.lua
1
3572
--[[ LUA_SERVICE package.path : 约定扩展名都是 .lua 改动: 1. 新增 在默认Lua loader前增加了一个新loader,新loader读取 package.path中的路径,并假定其每一项都是 .lua 结尾的, 然后修改.lua为 .p.lua, 先用gcc预处理,保存到 .pp.lua文件后使用loadfile加载 2. 修改 修改了服务的加载方式,在原服务的搜索路径,优先检查.p.lua文件。 注意: 普通lua文件的加载并没有改动;loadfile 也没有被替换; 预处理后的文件也都使用了云风修改过的loadf...
mit
RuiChen1113/luci
applications/luci-app-radicale/luasrc/controller/radicale.lua
32
6668
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.radicale", package.seeall) local NX = require("nixio") local NXFS = require("nixio.fs") local DISP = require "luci.dispatcher" local HTTP = require("luci...
apache-2.0
SamboyKirk/tenshi
vm/lua/tenshi-runtime/src/lua/units.lua
11
1128
-- Licensed to Pioneers in Engineering under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. Pioneers in Engineering licenses -- this file to you under the Apache License, Version 2.0 (the -- "License"); you ...
apache-2.0
omid1212/hgbok
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
hbl0307106015/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua
80
4829
-- ------ extra functions ------ -- function ruleCheck() -- determine if rules needs a proper protocol configured uci.cursor():foreach("mwan3", "rule", function (section) local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port")) local destPort = ut.trim(sys.exec("...
gpl-2.0
Bardia000/Bardia0000
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
Habbie/hammerspoon
extensions/speech/init.lua
11
1424
--- === hs.speech === --- --- This module provides access to the Speech Synthesizer component of OS X. --- --- The speech synthesizer functions and methods provide access to OS X's Text-To-Speech capabilities and facilitates generating speech output both to the currently active audio device and to an AIFF file. --- ---...
mit
coronalabs/framework-widget
tabBar.lua
1
8312
-- Abstract: widget.newTabBar() unit test -- Code is MIT licensed; see https://www.coronalabs.com/links/code/license --------------------------------------------------------------------------------------- local widget = require( "widget" ) local composer = require( "composer" ) local scene = composer.newScene() loca...
mit
johhnybritain/ettercap-with-ping
src/lua/share/core/ettercap_ffi.lua
1
7620
--- -- This is our ettercap FFI interface. Nothing to see, here. -- -- Copyright (C) Ryan Linn and Mike Ryan -- -- 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...
gpl-2.0
hbl0307106015/packages
utils/luci-app-lxc/files/controller/lxc.lua
26
4082
--[[ LuCI LXC module Copyright (C) 2014, Cisco Systems, Inc. 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 Author: Petar Koretic <petar.koretic@sart...
gpl-2.0
AbolDalton/king
plugins/write.lua
2
28702
local function run(msg, matches) if #matches < 2 then return "بعد از این دستور، با قید یک فاصله کلمه یا جمله ی مورد نظر را جهت زیبا نویسی وارد کنید" end if string.len(matches[2]) > 20 then return "حداکثر حروف مجاز 20 کاراکتر انگلیسی و عدد است" end local font_base = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,...
gpl-2.0
RobertoMalatesta/ProDBG
bin/macosx/tundra/scripts/tundra/tools/msvc-winsdk.lua
28
4318
-- msvc-winsdk.lua - Use Microsoft Windows SDK 7.1 or later to build. module(..., package.seeall) local native = require "tundra.native" local os = require "os" if native.host_platform ~= "windows" then error("the msvc toolset only works on windows hosts") end local function get_host_arch() local snative = nati...
mit
vipteam1/VIPTEAM
plugins/silent.lua
1
1982
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Team name : ( 🌐 VIP_TEAM 🌐 )▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ File name : ( #اسم الملف هنا ) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ Guenat team: ( @VIP_TEAM1 ) ▀▄ ▄▀ ▀▄...
gpl-2.0
Nullreff/legatarius
menu.lua
1
3343
-- menu.lua - Main game menu -- -- Copyright (c) 2014, Ryan Mendivil -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright --...
bsd-3-clause
Noneatme/mta-lostresources
[gameplay]/bolt/client/CImport.lua
1
1534
-- ####################################### -- ## Project: lightning bolt ## -- ## Name: Import.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSet...
gpl-2.0
fidlej/optim
sgd.lua
1
2498
--[[ A plain implementation of SGD ARGS: - `opfunc` : a function that takes a single input (X), the point of a evaluation, and returns f(X) and df/dX - `x` : the initial point - `config` : a table with configuration parameters for the optimizer - `config.learningRate` : learning rate - `config....
bsd-3-clause
omid1212/hgbok
plugins/stats.lua
5
4101
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 2 local TIME_CHECK = 3 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
liuxuezhan/skynet
lualib/skynet.lua
2
16144
-- read https://github.com/cloudwu/skynet/wiki/FAQ for the module "skynet.core" local c = require "skynet.core" local tostring = tostring local tonumber = tonumber local coroutine = coroutine local assert = assert local pairs = pairs local pcall = pcall local table = table local profile = require "skynet.profile" loc...
mit
gdawg/ios-icons
tiger_blood/lib/image.lua
3
2500
local image = {} local img_math = require "ios-icons.math" local cache = require "ios-icons.cache" cache = cache.new("./.ios-icon-colors") cache.key = function(i) return i.id .. ".rgb" end local dark_cutoff = 100 -- eyeballed to within an inch of... whatever local function hsv_to_color(h,s,v) if v < 60 then retu...
mit
luadch/luadch
examples/etc/other_available_scripts/debug_show_user_inf.lua
2
2629
 --[[ debug_show_user_inf.lua by pulsar v0.1 - shows INF flags PS: als vorletztes Skript in die cfg.tbl eintragen! ]]-- ---------------- --[ SETTINGS ]-- ---------------- local scriptname = "debug_show_user_inf" local scriptversion = "0.1" local levelcheck = { ...
gpl-3.0
CrAzD/DotaTakingManager
game/dota_addons/vscripts/libraries/TakingManager/Setup.lua
1
1411
-- TakingManager -- By: CrAzD require('libraries/TakingManager/Manager') local manager = TakingManagerInitialization(class({})) -- Information manager['version'] = 0.09 manager['url'] = 'https://github.com/CrAzD/DotaTakingManager' manager['emMinimumVersion'] = 0.64 -- General setup and configuration manager['indexe...
bsd-3-clause
Habbie/hammerspoon
extensions/window/test_window.lua
2
5944
require("hs.timer") function testAllWindows() hs.openConsole() hs.openPreferences() local allWindows = hs.window.allWindows() assertIsEqual("table", type(allWindows)) assertGreaterThan(1, #allWindows) -- Enable this when hs.window objects have a proper __type metatable entry -- assertIsUserdataOfType(all...
mit
RuiChen1113/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua
43
1470
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("OLSRd Plugin Configuration"), translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.")) s = m:section(NamedSection,...
apache-2.0
cryovat/lord-evil-game
src/assets/level6.lua
1
3014
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 20, height = 13, tilewidth = 16, tileheight = 16, properties = { ["east"] = "level7", ["north"] = "", ["south"] = "", ["west"] = "level5" }, tilesets = { { name = "objects", firstgid = 1, tilewidth = 16, tileheight = 16, spacing = 0, marg...
mit
shkan/telebot3
plugins/spamgroup.lua
96
28863
do function run(msg, matches) return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack...
gpl-2.0
uhvhugvhhbbh545hhhyg/rekjx
plugins/expire.lua
2
3557
local function pre_process(msg) local timetoexpire = 'unknown' local expiretime = redis:hget ('expiretime', get_receiver(msg)) local now = tonumber(os.time()) if expiretime then timetoexpire = math.floor((tonumber(expiretime) - tonumber(now)) / 86400) + 1 if tonumber("0") > tonumber(timetoexpire) an...
gpl-2.0
mirbot/zdgbbbrblsb-vbv
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
RailTracker/OpenRA
mods/ra/maps/soviet-04b/soviet04b.lua
1
4163
RunInitialActivities = function() Harvester.FindResources() Helper.Destroy() IdlingUnits() Trigger.AfterDelay(DateTime.Seconds(1), function() BringPatrol1() Trigger.AfterDelay(DateTime.Seconds(5), function() BringPatrol2() end) BuildBase() end) Utils.Do(Map.NamedActors, function(actor) if actor.Own...
gpl-3.0
hafez16/senator
plugins/plugins.lua
325
6164
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
luadch/luadch
luasocket/src/tp.lua
51
3766
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare...
gpl-3.0
cogwerkz/DiabolicUI
modules/unitframes/units/boss.lua
2
16145
local Addon, Engine = ... local Module = Engine:GetModule("UnitFrames") local UnitFrameWidget = Module:SetWidget("Unit: Boss") local UnitFrame = Engine:GetHandler("UnitFrame") local StatusBar = Engine:GetHandler("StatusBar") local C = Engine:GetDB("Data: Colors") local AuraData = Engine:GetDB("Data: Auras") -- Lua AP...
mit
Noneatme/mta-lostresources
[gamemodes]/twd/client/CRegisterManager.lua
1
6446
-- ############################### -- ## Project: MTA:Speedrace ## -- ## Name: RegisterManager ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ############################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSetting = {}; -- Local Set...
gpl-2.0
stevelord/PR30
feeds/xwrt/webif-iw-lua-chillispot/files/usr/lib/lua/lua-xwrt/chillispot.lua
19
24512
require("lua-xwrt.addon.string") require("lua-xwrt.addon.uci") require("lua-xwrt.html.form") require("lua-xwrt.xwrt.translator") require("lua-xwrt.html.messages") local string = string local io = io local os = os local pairs, ipairs = pairs, ipairs local table = table local uci = uci local util = util local tr = tr lo...
gpl-2.0
mms92/wire
lua/entities/gmod_wire_cd_disk.lua
10
3029
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire CD Disk" ENT.WireDebugName = "CD" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self.DiskMemory = {} self.Precis...
apache-2.0
luadch/luadch
scripts/hub_cmd_manager.lua
1
2242
--[[ hub_cmd_manager.lua v0.02 by blastbeat - this script mangages permissions for certain adc commands v0.02: by blastbeat (20170226) - added blacklist and onIncoming hook ]]-- local scriptname = "hub_cmd_manager" local scriptversion = "0.02" --// min levels to u...
gpl-3.0
AlexarJING/space-war
obj/weapons/laser.lua
1
1655
local laser=Class("laser") function laser:initialize(parent,x,y,rot) self.px=parent.x self.py=parent.y self.ox=x self.oy=y self.range=500 self.width=parent.size*5 self.rot=rot self.parent=parent self.target=parent.target self.laserW=self.width self.multiply=0.1 self.limit=false end function laser:hitTest(...
apache-2.0
mms92/wire
lua/entities/gmod_wire_dataplug.lua
9
1685
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Plug" ENT.WireDebugName = "DataPlug" if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self.MySocket = nil sel...
apache-2.0
mms92/wire
lua/entities/sent_deployableballoons.lua
8
6928
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Balloon Deployer" ENT.Author = "LuaPinapple" ENT.Contact = "evilpineapple@cox.net" ENT.Purpose = "It Deploys Balloons." ENT.Instructions = "Use wire." ENT.Category = "Wiremod" ENT.Spawnable = true...
apache-2.0
shkan/telebot3
plugins/banhammer.lua
106
11894
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
RobertoMalatesta/ProDBG
bin/macosx/tundra/scripts/tundra/ide/msvc-common.lua
6
28820
module(..., package.seeall) local native = require "tundra.native" local nodegen = require "tundra.nodegen" local path = require "tundra.path" local util = require "tundra.util" LF = '\r\n' local UTF_HEADER = '\239\187\191' -- byte mark EF BB BF local VERSION_NUMBER = "12.00" local VERSION_YEAR = "2012" lo...
mit
shkan/telebot3
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
emoon/ProDBG
units.plugins.lua
1
7723
require "tundra.path" require "tundra.util" require "tundra.syntax.rust-cargo" local function gen_moc(src) return Moc { Pass = "GenerateSources", Source = src } end local function gen_uic(src) return Uic { Pass = "GenerateSources", Source = src } end local native = re...
mit
RobertoMalatesta/ProDBG
bin/macosx/tundra/scripts/tundra/syntax/install.lua
28
1133
-- install.lua - Express file copying in unit form. module(..., package.seeall) local nodegen = require "tundra.nodegen" local files = require "tundra.syntax.files" local path = require "tundra.path" local util = require "tundra.util" local depgraph = require "tundra.depgraph" local _mt = nodegen.create_...
mit
nikai3d/codecombat-scripts
mountain/quick-fort.lua
1
1647
-- We should quickly build a fort! -- Each peasant has one speciality and can build only one type of constructions. -- Carpenter - fences; Mason - towers; builder - tents. -- The foreman mixed their names in one list, but in the specific order. -- The list looks like [builder, mason, carpenter, builder, mason, carpente...
mit
eagle14/hero-suport
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
incinirate/CCJam-2017
plugins/locs.lisp.lua
1
7681
if not table.pack then table.pack = function(...) return { n = select("#", ...), ... } end end if not table.unpack then table.unpack = unpack end local load = load if _VERSION:find("5.1") then load = function(x, n, _, env) local f, e = loadstring(x, n) if not f then return f, e end if env then setfenv(f, env) end retur...
mit
mtk1/hich
plugins/tabchi.lua
1
9617
local function parsed_url(link) local parsed_link = URL.parse(link) local parsed_path = URL.parse_path(parsed_link.path) return parsed_path[2] end function pre_process(msg) if msg.media then if msg.media.type:match("contact") then add_contact(msg.media.phone, ""..(msg.media.first_name or "-").."", ""..(msg...
unlicense
mms92/wire
lua/wire/gates/vector.lua
13
18637
--[[ Vector gates ]] GateActions("Vector") -- Add GateActions["vector_add"] = { name = "Addition", inputs = { "A", "B", "C", "D", "E", "F", "G", "H" }, inputtypes = { "VECTOR", "VECTOR", "VECTOR", "VECTOR", "VECTOR", "VECTOR", "VECTOR", "VECTOR" }, compact_inputs = 2, outputtypes = { "VECTOR" }, output = funct...
apache-2.0
luadch/luadch
luasec/src/https.lua
2
4131
---------------------------------------------------------------------------- -- LuaSec 1.0.2 -- Copyright (C) 2009-2021 PUC-Rio -- -- Author: Pablo Musa -- Author: Tomas Guisasola --------------------------------------------------------------------------- local socket = require("socket") local ssl = require("ssl") ...
gpl-3.0
psychon/lgi
samples/gtk-demo/demo-rotatedtext.lua
6
4232
return function(parent, dir) local lgi = require 'lgi' local Gtk = lgi.Gtk local Gdk = lgi.Gdk local cairo = lgi.cairo local Pango = lgi.Pango local PangoCairo = lgi.PangoCairo local RADIUS = 150 local N_WORDS = 5 local FONT = 'Serif 18' local HEART = '♥' local TEXT = 'I ♥ GTK+' local window = Gtk.Window { title...
mit
psychon/lgi
tests/dbus.lua
2
4101
--[[-------------------------------------------------------------------------- lgi testsuite, Gio DBus test suite. Copyright (c) 2013 Pavel Holejsovsky Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php --]]----------------------------------------------------------------------...
mit