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
dmccuskey/dmc-wamp
examples/dmc-wamp-publish/dmc_corona/lib/dmc_lua/json.lua
49
2030
--====================================================================-- -- dmc_lua/json.lua -- -- consistent method which which to load json on various systems -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Cop...
mit
dmccuskey/dmc-wamp
examples/dmc-wamp-rpc-callee/dmc_corona/lib/dmc_lua/json.lua
49
2030
--====================================================================-- -- dmc_lua/json.lua -- -- consistent method which which to load json on various systems -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Cop...
mit
moltafet35/ssssis
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
mc-server/Coiny
coiny_functions.lua
2
3779
-- coiny_functions.lua -- Implements various helper functions function SaveSettings() local ini = cIniFile() ini:ReadFile(cPluginManager:GetCurrentPlugin():GetLocalFolder() .. "/coiny_settings.ini") ini:SetValueI("Settings", "StarterPack", StarterPack, false) ini:SetValueB("Settings", "AdvancedMessages", A...
unlicense
c4augustus/Urho3D
bin/Data/LuaScripts/33_Urho2DSpriterAnimation.lua
24
7416
-- Urho2D sprite example. -- This sample demonstrates: -- - Creating a 2D scene with spriter animation -- - Displaying the scene using the Renderer subsystem -- - Handling keyboard to move and zoom 2D camera require "LuaScripts/Utilities/Sample" local spriterNode = nil local spriterAnimationIndex...
mit
telespeed/telespeed
plugins/ingroup.lua
1
31502
do local function check_member(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[tostring(msg.to.id)] = { ...
gpl-2.0
stephank/luci
modules/rpc/luasrc/jsonrpcbind/uci.lua
81
1914
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
apache-2.0
dxmgame/dxm-cocos-demo
src/lua-fantasy-warrior-3d/src/custom/api/EffectNormalMapped.lua
9
1036
-------------------------------- -- @module EffectNormalMapped -- @extend Effect -- @parent_module cc -------------------------------- -- -- @function [parent=#EffectNormalMapped] setKBump -- @param self -- @param #float value -- @return EffectNormalMapped#EffectNormalMapped self (return value: cc.EffectNormalMappe...
mit
Alexx-G/openface
training/attic/test-hardNeg.lua
8
6898
-- Copyright 2015-2016 Carnegie Mellon University -- -- 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 ...
apache-2.0
ondravondra/vlc
share/lua/meta/reader/filename.lua
17
1684
--[[ Gets an artwork for french TV channels $Id$ Copyright © 2007 the VideoLAN team 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 la...
gpl-2.0
UnluckyNinja/PathOfBuilding
Data/3_0/Spectres.lua
1
34826
-- This file is automatically generated, do not edit! -- Path of Building -- -- Spectre Data -- Monster data (c) Grinding Gear Games -- local minions, mod = ... -- Blackguard minions["Metadata/Monsters/Axis/AxisCaster"] = { name = "Blackguard Mage", life = 0.9, energyShield = 0.2, fireResist = 0, coldResist = 0, ...
mit
pchote/OpenRA
mods/d2k/maps/ordos-03a/ordos03a.lua
2
4895
--[[ Copyright 2007-2021 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
codyroux/lean0.1
src/builtin/name_conv.lua
1
1101
-- Output a C++ statement that creates the given name function sanitize(s) s, _ = string.gsub(s, "'", "_") return s end function name_to_cpp_expr(n) function rec(n) if not n:is_atomic() then rec(n:get_prefix()) io.write(", ") end if n:is_string() then local s = n:ge...
apache-2.0
stephank/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-app.lua
137
15546
cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "") app_alarmreceiver:value("yes", "Load") app_alarmreceiver:value("no", "Do Not Load") app_al...
apache-2.0
stephank/luci
applications/luci-asterisk/luasrc/asterisk/cc_idd.lua
92
7735
--[[ LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes 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 ]]-- module "luci.asteri...
apache-2.0
kod3r/torch7
Tensor.lua
57
16339
-- additional methods for Storage local Storage = {} -- additional methods for Tensor local Tensor = {} -- types local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'} -- Lua 5.2 compatibility local log10 = math.log10 or function(x) return math.log(x, 10) end -- tostring() functions for Tensor an...
bsd-3-clause
MeGa-TeAm/megabot
plugins/inpm.lua
59
3138
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
artynet/luci
modules/luci-base/luasrc/cbi.lua
9
43526
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.cbi", package.seeall) require("luci.template") local util = require("luci.util") require("luci.http") --local event = require "luci.sys.event" local fs = require("nixio.fs") local uc...
apache-2.0
c4augustus/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/define.lua
43
1317
-- tolua: define class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $ -- 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 ...
mit
alikineh/spammer-bot
bot/seedbot.lua
1
9867
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
Daniex0r/project-roleplay-rp
resources/system-real/c_backup_bleepers.lua
1
3989
-- Backup Truck - Beeping Sound (By Cyanide) local soundElement = { } local beepingTrucksArray = -- Removed SAN vehicles because of Fields. { [486] = true, -- Dozer [406] = true, -- Dumper [573] = true, -- Dune [455] = true, -- FlatBed [407] = true, -- FireTruck [427] = true, -- Enforcer [416] = true, -- Ambu...
gpl-2.0
NamefulTeam/PortoGameJam2015
initial_menu_view.lua
1
1781
-- imports active_screen = require 'active_screen' game_view = require 'game_view' level_select_view = require 'level_select_view' level_list = require 'level_list' function exports() local instance = {} local background = love.graphics.newImage('background/title_background.png') local newGameButton = love.graphic...
mit
stephank/luci
libs/httpclient/luasrc/httpclient/receiver.lua
93
6049
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.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$ ]]-- requ...
apache-2.0
artynet/luci
applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
7
9354
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local fs = require("nixio.fs") local m = Map("uhttpd", translate("uHTTPd"), translate("A lightweight single-threaded HTTP(S) server")) local ucs = m:section(TypedSection, "uhttpd", "") ucs...
apache-2.0
marshmellow42/proxmark3
client/scripts/ndef_dump.lua
12
7084
-- Ability to read what card is there local getopt = require('getopt') local cmds = require('commands') local taglib = require('taglib') local desc = [[This script will automatically recognize and dump full content of a NFC NDEF Initialized tag; non-initialized tags will be ignored. It also write the dump to an eml...
gpl-2.0
cdeng/webscript.io
bestbuy/bestbuy.lua
1
1238
-- -- Check specific product in store pick up availability at nearby BestBuy stores. -- -- sku: Product SKU number. -- zipcode: Your zip code. -- api: BBYOPEN API key ( If you don't have, register one from https://remix.mashery.com/member/register ) -- mile: Default 50 miles; Location must be within 50 miles of a Best...
mit
AVGP/gabble
node_modules/node-xmpp-client/test/resources/mod_websocket.lua
4
11956
-- Prosody IM -- Copyright (C) 2012 Florian Zeitz -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:set_global(); local add_filter = require "util.filters".add_filter; local sha1 = require "util.hashes".sha1; local base64 = require "util.encod...
mit
BlubBlab/rom-bot
classes/bankitem.lua
1
1381
include("item.lua"); CBankItem = class(CItem, function( self, slot ) self.Location = "bank" self.SlotNumber = slot self.BagId = slot self.Available = false if ( self.BagId ~= nil and self.BagId ~= 0 ) then self:update(); end; end ); function CBankItem:update() self.Address = address...
mit
jiuaiwo1314/skynet
lualib/http/httpc.lua
42
2906
local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read = socket.readfunc(fd) local write = socket.writefunc(fd)...
mit
mattjw79/luaLibs
tests/test_emailaddress.lua
1
1680
local lu = require 'luaunit' local emailaddress = require 'lib.emailaddress' test_emailaddress = {} function test_emailaddress:test_full_rcpt_to() local email = emailaddress:new('RCPT TO: User One <uone@example.com>') lu.assertEquals(email.localpart, 'uone') lu.assertEquals(email.domain, 'example.com') lu.as...
mit
ahmedcharles/Mudlet
src/mudlet-lua/lua/geyser/GeyserColor.lua
3
5960
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- Geyser.Color = {} --- Converts color to 3 hex values as a string, no alpha, css style -- @return The color formatted as a h...
gpl-2.0
moltafet35/ssssis
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
dxmgame/dxm-cocos-demo
src/lua-coin-tree/Resources/src/cocos/cocostudio/DeprecatedCocoStudioFunc.lua
61
3456
if nil == ccs then return end --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of GUIReader will be deprecated begin local GUIReaderDeprecated = { } function GUIReaderDeprecated.shareRe...
mit
artynet/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua
4
3222
-- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.nut",package.seeall) function item() return luci.i18n.translate("UPS") end function rrdargs( graph, plugin, plugin_instance, dtype ) local voltages_ac = { title = "%H: AC voltages on UPS \"%pi\"", vlabel = "V",...
apache-2.0
akh00/kong
kong/cmd/utils/nginx_signals.lua
5
3322
local log = require "kong.cmd.utils.log" local kill = require "kong.cmd.utils.kill" local meta = require "kong.meta" local pl_path = require "pl.path" local version = require "version" local pl_utils = require "pl.utils" local fmt = string.format local nginx_bin_name = "nginx" local nginx_search_paths = { "/usr/loca...
apache-2.0
master041/tele-master
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
kennethlombardi/moai-components
Data/Scripts/Factory.lua
1
2005
local m = { handlers = {} } -- entity is a default parameter that will be ignored most of the time -- entity used for things like creating components that need to know who -- they are attached to function m.create(typeName, definition, entity, attributeKey) assert(typeName ~= nil, "Factory.create typeN...
mit
ondravondra/vlc
share/lua/playlist/bbc_co_uk.lua
112
1468
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Dominique Leuenberger <dominique-vlc.suse@leuenberger.net> 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 Licens...
gpl-2.0
Dadido3/D3mc
Lua/Physic/Standart/Game of Life.lua
1
2619
local Physic_Game_Of_Life_Syncer = {} function Physic_Game_Of_Life(World_ID, X, Y, Z, Type, Metadata, Current_Trigger_Time) -- 0 Alive -- 8 Born next generation -- 15 Dead -- 12 Dead next generation if Physic_Game_Of_Life_Syncer[World_ID] == nil then Physic_Game_Of_Life_Syncer[World_ID] = {} end --Message...
mit
Whit3Tig3R/SpammBot
plugins/id.lua
226
4260
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..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
stephank/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua
80
1493
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
moltafet35/ssssis
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
dmccuskey/dmc-wamp
examples/dmc-wamp-subscribe/dmc_corona/lib/dmc_lua/lua_patch.lua
44
7239
--====================================================================-- -- lua_patch.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permission is hereby granted, free ...
mit
VurtualRuler98/kswep2
lua/calibers/vammo_545x39.lua
1
1183
hook.Add("VurtualAmmotypes","vammo_545x39", function() local tbl = table.Copy(kswep_default_ammo) tbl.vestpenetration=KSWEP_ARMOR_III --TODO make this different tbl.dmgbase=10 tbl.dmgvitalmin=5 tbl.dmgvitalmax=8 tbl.name = "vammo_545x39_7n6" tbl.printname = "5.45x39mm 7N6" tbl.diameter = 0.22 tbl.calib...
apache-2.0
pchote/OpenRA
mods/ra/maps/allies-10a/allies10a-AI.lua
2
4719
--[[ Copyright 2007-2021 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
helkarakse/TickProfilerDisplay
src/json.lua
3
15155
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.40 -- This module is released under the MIT License (MIT). -- Please see L...
gpl-2.0
Ialong/shogun
examples/undocumented/lua_modular/kernel_comm_word_string_modular.lua
21
1375
require 'modshogun' require 'load' traindat = load_dna('../data/fm_train_dna.dat') testdat = load_dna('../data/fm_test_dna.dat') parameter_list = {{traindat,testdat,4,0,false, false},{traindat,testdat,4,0,False,False}} function kernel_comm_word_string_modular (fm_train_dna,fm_test_dna, order, gap, reverse, use_sign) ...
gpl-3.0
UnluckyNinja/PathOfBuilding
Classes/TreeTab.lua
1
10473
-- Path of Building -- -- Module: Tree Tab -- Passive skill tree tab for the current build. -- local launch, main = ... local ipairs = ipairs local t_insert = table.insert local m_min = math.min local TreeTabClass = common.NewClass("TreeTab", "ControlHost", function(self, build) self.ControlHost() self.build = bui...
mit
matthewjwoodruff/language-of-choice
lua/bdd1.lua
2
5196
local dbg = require 'dbg' local printf = dbg.printf local log = dbg.log local optimize = true local infinity = 1/0 local function pp(node) local c, memo = 0, {} local function walk(p) local id = memo[p] if id == nil then id = c; c = c + 1 memo[p] = id if p.rank < infinity...
gpl-3.0
marshmellow42/proxmark3
client/scripts/mfkeys.lua
5
5595
--[[ This is an example of Lua-scripting within proxmark3. This is a lua-side implementation of hf mf chk This code is licensed to you under the terms of the GNU GPL, version 2 or, at your option, any later version. See the LICENSE.txt file for the text of the license. Copyright (C) 2013 m h swende <martin at s...
gpl-2.0
delram/crii
bot/utils.lua
646
23489
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
pchote/OpenRA
mods/ra/maps/soviet-04a/soviet04a-reinforcements_teams.lua
2
3086
--[[ Copyright 2007-2021 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
artynet/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua
5
4060
-- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.apcups",package.seeall) function item() return luci.i18n.translate("APC UPS") end function rrdargs( graph, plugin, plugin_instance ) local lu = require("luci.util...
apache-2.0
artynet/luci
applications/luci-app-dnscrypt-proxy/luasrc/controller/dnscrypt-proxy.lua
5
2121
-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.dnscrypt-proxy", package.seeall) local util = require("luci.util") local i18n = require("luci.i18n") local templ = require("luci.template") function index() if not...
apache-2.0
ldurniat/My-Pong-Game
scene/result.lua
2
3005
-- -- Ekran wyświetlający wyniki. -- -- Wymagane moduły local app = require( 'lib.app' ) local preference = require( 'preference' ) local composer = require( 'composer' ) local fx = require( 'com.ponywolf.ponyfx' ) local tiled = require( 'com.ponywolf.ponytiled' ) local json = r...
mit
RicoP/vlcfork
share/lua/playlist/mpora.lua
97
2565
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) 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 opt...
gpl-2.0
Nostrademous/Dota2-WebAI
helper/global_helper.lua
1
4359
------------------------------------------------------------------------------- --- AUTHORS: iSarCasm, Nostrademous --- GITHUB REPO: https://github.com/Nostrademous/Dota2-WebAI ------------------------------------------------------------------------------- --------------------------------------------------------------...
mit
UnluckyNinja/PathOfBuilding
Data/2_6/Skills/sup_int.lua
1
39862
-- This file is automatically generated, do not edit! -- Path of Building -- -- Intelligence support gems -- Skill data (c) Grinding Gear Games -- local skills, mod, flag, skill = ... skills["SupportAddedChaosDamage"] = { name = "Added Chaos Damage", gemTags = { chaos = true, intelligence = true, support = tru...
mit
Whit3Tig3R/SpammBot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
theonlywild/erfaan
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
Daniex0r/project-roleplay-rp
resources/prp_ryby/client.lua
1
6810
local x,y=guiGetScreenSize() actual= { } respawn = 2 rysowanie_enable=0 przesuniecie=2 status_okregu=0 client_marker=nil ryby_zlowione=0 ryby_combo=0 kurs_ryb=1 function rybyStart(marker) setTimer(function() setElementFrozen(localPlayer,true) end,300,1) rybyTimer=setTimer(function() respawn=(respawn)-1 if respawn<0...
gpl-2.0
stephank/luci
modules/admin-core/luasrc/controller/admin/servicectl.lua
9
1426
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- mo...
apache-2.0
jsphweid/finale-macros
lua/measure-numbers_LA-style.lua
2
7035
function plugindef() finaleplugin.Author = "Joseph Weidinger" finaleplugin.Version = "1.0" finaleplugin.Date = "May 05, 2015" finaleplugin.RequireSelection = false finaleplugin.CategoryTags = "use LA-style measure numbers" return "Measure Numbers - LA Style", "Measure Numbers - LA Style", "Measu...
mit
ondravondra/vlc
share/lua/modules/simplexml.lua
103
3732
--[==========================================================================[ simplexml.lua: Lua simple xml parser wrapper --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
cristicbz/ld48
src/Game.lua
1
1881
------------------------------------------------------------------------------- -- File: game.lua -- Project: RatOut -- Author: Cristian Cobzarenco -- Description: Game rig, root rig which manages application state. -- -- All rights reserved. Copyright (c) 2011-2012 Cristian Cobzarenco. -- See http://ww...
apache-2.0
Daniex0r/project-roleplay-rp
resources/system-domow/custom/restroom.lua
1
2397
local objects = { createObject(18020,2489.1943359375,-1690.2387695313,2032.4692382813,0,0,0,8), createObject(2515,2485.0329589844,-1686.2604980469,2031.47265625,0,0,180.54052734375,8), createObject(2515,2483.3227539063,-1686.259765625,2031.47265625,0,0,180.53833007813,8), createObject(2515,2486.6765136719,-1686.25...
gpl-2.0
Sponk/NeoEditor
3rdparty/sdl2-emscripten/premake/projects/testshape.lua
7
1153
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for an...
gpl-2.0
RicoP/vlcfork
share/lua/playlist/pluzz.lua
105
3740
--[[ $Id$ Copyright © 2011 VideoLAN Authors: Ludovic Fauvet <etix at l0cal dot 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 l...
gpl-2.0
tudelft/chdkptp
lua/extras/msgtest.lua
5
4789
--[[ Copyright (C) 2010-2014 <reyalp (at) gmail dot com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, bu...
gpl-2.0
Daniex0r/project-roleplay-rp
resources/system-eventow/s_paintball.lua
1
7377
-- paintassignteam // startpaintgame // stoppaintgame local playersHit = { } local resetTimer = 10000 local points = { } local gameactive = false local theTimer = nil local teamName = {} local countdown = 0 local ammogiven = 0 local playerStats = { } table.insert(teamName, "RED") -- Team 1 table.insert(teamName, "BL...
gpl-2.0
Sponk/NeoEditor
3rdparty/sdl2-emscripten/premake/premake4.lua
9
19887
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purp...
gpl-2.0
Wiladams/LJIT2perfmon
perf_event.lua
1
15523
local ffi = require("ffi") local bit = require("bit") local lshift = bit.lshift; local rshift = bit.rshift; local bnot = bit.bnot; local S = require("syscall") local nr = require "syscall.linux.nr" local _IO, _IOW = S.c.IOCTL._IO, S.c.IOCTL._IOW local shared = require("shared") -- The table which will hold anything w...
mit
marshmellow42/proxmark3
client/lualibs/hf_reader.lua
6
5956
--[[ THIS IS WORK IN PROGREESS, very much not finished. This library utilises other libraries under the hood, but can be used as a generic reader for 13.56MHz tags. ]] local reader14443A = require('read14a') local cmds = require('commands') local TIMEOUT = 1000 local function sendToDevice(command, ignoreresponse) ...
gpl-2.0
akh00/kong
kong/api/init.lua
2
3659
local lapis = require "lapis" local utils = require "kong.tools.utils" local tablex = require "pl.tablex" local responses = require "kong.tools.responses" local singletons = require "kong.singletons" local app_helpers = require "lapis.application" local api_helpers = require "kong.api.api_helpers" local find = string...
apache-2.0
SatoshiNXSimudrone/sl4a-damon-clone
lua/luasocket/samples/cddb.lua
56
1415
local socket = require("socket") local http = require("socket.http") if not arg or not arg[1] or not arg[2] then print("luasocket cddb.lua <category> <disc-id> [<server>]") os.exit(1) end local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi" function parse(body) local lines = string.gfind(bo...
apache-2.0
Daniex0r/project-roleplay-rp
resources/system-kamer/s_camera_pd_commands.lua
1
1689
function toggleTrafficCam(thePlayer, commandName) local isLoggedIn = getElementData(thePlayer, "loggedin") or 0 if (isLoggedIn == 1) then local theTeam = getPlayerTeam(thePlayer) local factionType = getElementData(theTeam, "type") -- factiontype == law if (factionType == 2) then local resultColshape ...
gpl-2.0
mediocregopher/ripple
main.lua
1
7312
pp = require 'inspect' ripple = require 'ripple' -- We only do this once, not on every newGame introFade = 255 -- How many seconds the dude should fade out for on death (times 255) deathFadeScale = 1 * 255 -- The font to use fontPath = 'assets/Roboto-Thin.ttf' -- Color palettes available. One will be chosen at rand...
apache-2.0
aqasaeed/mamad
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
Daniex0r/project-roleplay-rp
resources/prp_grafika/grafika_gui_c.lua
1
7169
GUISP = {} local screenWidth, screenHeight = guiGetScreenSize() local left = (screenWidth/2 - 321/2)+screenWidth/4 local top = (screenHeight/2 - 309/2) GUISP.ShaderPanelWindow = guiCreateWindow(left,top,321,309,"Grafika - Opcje",false) GUISP.fps = guiCreateLabel(13,21,296,20,"00 FPS",false,GUISP.ShaderPanelWindow) gu...
gpl-2.0
DevMoataz/Maestro
plugins/kickme-ar.lua
1
1956
--[[ _ _ _ _____ _____ ____ ____ / \ / \ / \ | ____|___|_ _| /_\ \ / __ \ Đєⱴ 💀: @MaEsTrO_0 / / \/ / \ / _ \ | _| / __| | | | |_\_/| | | | Đєⱴ 💀: @devmaestr0 / / \ \/ \ \ / ___ \| |___\__ \ | | | | \ \| |__| | Đєⱴ ฿๏ͳ💀: @iqMaestroBot /_/ \/ ...
gpl-2.0
soheil22222222/ub
plugins/instagram.lua
4
3894
local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key local function instagramUser(msg, query) local receiver = get_receiver(msg) local url = "https://api.instagram.com/v1/users/search?q="..URL.escape(query).."&access_token="..access_token local jstr, res = https.request(url)...
gpl-2.0
LucentW/s-uzzbot
plugins/gnuplot.lua
2
1986
--[[ * 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
dddaaaddd/hunter_bot
plugins/Plugins.lua
1
6389
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
akh00/kong
kong/cmd/migrations.lua
1
1817
local conf_loader = require "kong.conf_loader" local DAOFactory = require "kong.dao.factory" local log = require "kong.cmd.utils.log" local concat = table.concat local ANSWERS = { y = true, Y = true, yes = true, YES = true, n = false, N = false, no = false, NO = false } local function confirm(q) loc...
apache-2.0
emadni/Telelord-
plugins/stats.lua
236
3989
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
larber/domoticz
scripts/dzVents/runtime/Utils.lua
5
1304
local self = { LOG_ERROR = 1, LOG_FORCE = 0.5, LOG_MODULE_EXEC_INFO = 2, LOG_INFO = 3, LOG_DEBUG = 4, } function self.fileExists(name) local f = io.open(name, "r") if f ~= nil then io.close(f) return true else return false end end function self.osExecute(cmd) if (_G.TESTMODE) then return end os.execu...
gpl-3.0
stephank/luci
libs/nixio/docsrc/nixio.bit.lua
171
2044
--- Bitfield operators and mainpulation functions. -- Can be used as a drop-in replacement for bitlib. module "nixio.bit" --- Bitwise OR several numbers. -- @class function -- @name bor -- @param oper1 First Operand -- @param oper2 Second Operand -- @param ... More Operands -- @return number --- Invert given number. ...
apache-2.0
ld-test/tapered
src/tapered.lua
1
4354
-- Helper variables and functions local get_info = debug.getinfo local pcall = pcall local slice = string.sub local sprintf = string.format local str_find = string.find local tonumber = tonumber -- Lua 5.3 moved unpack to table.unpack local unpack = unpack or table.unpack local write = io.write local rawget = rawget lo...
bsd-3-clause
UnluckyNinja/PathOfBuilding
Classes/Control.lua
1
3412
-- Path of Building -- -- Class: Control -- UI control base class -- local launch, main = ... local t_insert = table.insert local m_floor = math.floor local anchorPos = { ["TOPLEFT"] = { 0 , 0 }, ["TOP"] = { 0.5, 0 }, ["TOPRIGHT"] = { 1 , 0 }, ["RIGHT"] = { 1 , 0.5 }, ["BOTTOMRIGHT"...
mit
RicoP/vlcfork
share/lua/playlist/anevia_streams.lua
112
3664
--[[ $Id$ Parse list of available streams on Anevia Toucan servers. The URI http://ipaddress:554/list_streams.idp describes a list of available streams on the server. Copyright © 2009 M2X BV Authors: Jean-Paul Saman <jpsaman@videolan.org> This program is free software; you can redistribute it and/or modify ...
gpl-2.0
moltafet35/ssssis
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
theonlywild/erfaan
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors)...
gpl-2.0
artynet/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua
18
3606
-- 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("RRDTool Plugin Configuration"), translate( "The rrdtool plugin stores the collected data in rrd database " .. "files, the foundation of the diagrams...
apache-2.0
pchote/OpenRA
mods/ra/maps/sarin-gas-1-crackdown/crackdown-AI.lua
2
2806
--[[ Copyright 2007-2021 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
noctux/philote
src/opkg.lua
1
4474
#!/usr/bin/lua local Ansible = require("ansible") function update_package_db(module, opkg_path) local rc, out, err = module:run_command(string.format("%s update", opkg_path)) if rc ~= 0 then module:fail_json({msg = "could not update package db", opkg={rc=rc, out=out, err=err}}) end end function query_package(m...
agpl-3.0
stephank/luci
libs/httpclient/luasrc/httpclient.lua
41
9111
--[[ LuCI - Lua Development Framework Copyright 2009 Steven Barth <steven@midlink.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$ ]]-- requi...
apache-2.0
stephank/luci
applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
90
2019
--[[ LuCI - Lua Configuration Interface Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- loc...
apache-2.0
pins-ocs/OCP-tests
test-CNOC/data/CNOC_Data.lua
1
13507
--[[ /*-----------------------------------------------------------------------*\ | file: CNOC_Data.lua | | | | version: 1.0 date 28/3/2020 | | ...
gpl-2.0
redstormbot/xyiliya
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
Daniex0r/project-roleplay-rp
resources/system-policji/s_policedeagle.lua
1
1476
function tazerFired(x, y, z, target) local px, py, pz = getElementPosition(source) local distance = getDistanceBetweenPoints3D(x, y, z, px, py, pz) if (distance<20) then if (isElement(target) and getElementType(target)=="player") then for key, value in ipairs(exports.global:getNearbyElements(target, "player", ...
gpl-2.0