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
keyidadi/luci
contrib/luadoc/lua/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
OompahLoompah/ProjectHamsterball
player.lua
2
1352
player = {} local target --Change these once multiple objects are selectable local position local speed local x local y local xSpeed local ySpeed local cam ---------------------------------------------------- function player.setCamera(Camera) cam = camera end function player.getCamera() return cam end function p...
mit
slayerrensky/luci
modules/luci-mod-rpc/luasrc/jsonrpcbind/uci.lua
75
1702
-- 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. local uci = require "luci.model.uci".cursor() local ucis = require "luci.model.uci".cursor_state() local table = require "table" module "luci.jsonrpcbind....
apache-2.0
NerdWalletOSS/Q
OPERATORS/F1F2OPF3/test/test_vveq.lua
1
1699
-- FUNCTIONAL require 'Q/UTILS/lua/strict' local plpath = require "pl.path" local ffi = require("Q/UTILS/lua/q_ffi") local Q = require 'Q' local cmem = require 'libcmem' local get_ptr = require 'Q/UTILS/lua/get_ptr' local tests = {} -- Helper function to calculate file size. local function filesize (fd) local curre...
mit
leecrest/luvit
tests/test-fs-long-path.lua
11
1553
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. 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...
apache-2.0
tboox/xmake
xmake/modules/detect/tools/cl/cfeatures.lua
1
1532
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
ponywolf/ponyblitz
com/ponywolf/plugins/weather.lua
2
1779
-- tiled Plugin template -- Use this as a template to extend a tiled object with functionality local M = {} function M.new(instance) if not instance then error("ERROR: Expected display object") end local sox, soy = display.screenOriginX - instance.contentWidth, display.screenOriginY - instance.contentHeight local ...
mit
NoxHarmonium/spacestationkeeper
assets/scripts/engine/SceneLoader/ClassExtensions.lua
1
3023
-- Extentions to classes to allow better serialisation function CheckRequiredProperties(instance, className) local sFields = instance:getSerialisedFields() for field in sFields do --LuaDebug.Log('Checking property: ' .. field.name) local fieldValue if field.useAccessors then ...
mit
tboox/xmake
xmake/includes/check_csnippets.lua
1
2863
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_CureDiseaseTotal.lua
1
4248
-- Global Variables DPSMate.Modules.DetailsCureDiseaseTotal = {} -- Local variables local curKey = 1 local db, cbt = {}, 0 local _G = getglobal local tinsert = table.insert local strformat = string.format local tnbr = tonumber local TL = 0 local Offset = 0 local DetailsArr = {} local hexClassColor = { warrior = "C79C...
gpl-3.0
sysuzhang/arcemu
src/scripts/lua/LuaBridge/AUCHINDOUN/SHADOW_LABYRINTH/vorpil.lua
13
6997
--?!MAP=555 assert( include("shadowlabyrinth.lua"), "Failed to load shadowlabyrinth.lua") local mod = require("DUNGEON_AUCHINDOUN.INSTANCE_SHADOW_LABYRINTH") if(type(mod) ~= "table") then error("Missing Shadow Labyrinth module!") end module(mod._NAME..".GRAND_MASTER_VORPIL",package.seeall) local self = getfenv(1) fun...
agpl-3.0
Flexibity/luci
applications/luci-radvd/luasrc/model/cbi/radvd/route.lua
74
2503
--[[ 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$ ]]-- lo...
apache-2.0
FAForever/downlords-faf-client
src/test/resources/maps/palaneum.v0002/Palaneum_scenario.lua
1
1164
version = 3 -- Lua Version. Dont touch this ScenarioInfo = { name = "Palaneum", description = "Made by Chosen. This is not the final version. Fixed and better map preview images coming later, including many other things. Perhaps the best experience you get when you set game options: Interface - Display World Bo...
mit
g0t-ya/XiaoyuBox
luci/model/cbi/mwan/advanced_hotplugscript.lua
111
2018
-- ------ hotplug script configuration ------ -- fs = require "nixio.fs" sys = require "luci.sys" ut = require "luci.util" script = "/etc/hotplug.d/iface/16-mwancustom" scriptBackup = "/etc/hotplug.d/iface/16-mwancustombak" if luci.http.formvalue("cbid.luci.1._restorebak") then -- restore button has been clicked lu...
lgpl-3.0
funshine/nodemcu-firmware
lua_examples/onewire-ds18b20.lua
23
2166
--' -- ds18b20 one wire example for NODEMCU (Integer firmware only) -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or ...
mit
tboox/xmake
xmake/modules/core/tools/gcc.lua
1
15430
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
xriss/fun64
plated/source/blog/2017-03-19-chatdown/chatdown.fun.lua
1
18051
hardware,main=system.configurator({ mode="fun64", -- select the standard 320x240 screen using the swanky32 palette. update=function() update() end, -- called repeatedly to update+draw }) -- debug text dump local ls=function(t) print(require("wetgenes.string").dump(t)) end local chat_text=[[ #example Conversat...
mit
weirdouncle/QSanguosha-For-Hegemony
extension-doc/general_config.lua
15
3078
sgs.ai_keep_value = { Shit = 6, Peach = 5, Analeptic = 4.5, Jink = 4, Nullification = 3, Slash = 2, ThunderSlash = 2.5, FireSlash = 2.6, ExNihilo=4.6, AmazingGrace=-1, Lightning=-1, } sgs.ai_use_value = { --skill cards XinzhanCard = 4.4, TianyiCard = 8.5, XianzhenCard = 9.2, XianzhenSlashCard = ...
gpl-3.0
LibreLabUCM/telegram-bot
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
Flexibity/luci
modules/niu/luasrc/model/cbi/niu/network/wlanwan.lua
50
9208
--[[ LuCI - Lua Configuration Interface Copyright 2009 Steven Barth <steven@midlink.org> Copyright 2009 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://w...
apache-2.0
keyidadi/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua
78
1202
--[[ Luci configuration model for statistics - collectd disk plugin configuration (c) 2008 Freifunk Leipzig / 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 ...
apache-2.0
Flexibity/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua
78
1202
--[[ Luci configuration model for statistics - collectd disk plugin configuration (c) 2008 Freifunk Leipzig / 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 ...
apache-2.0
Spring-SpringBoard/SpringBoard-Core
libs_sb/kernel/luarules/gadgets/api_spring_kernel.lua
1
3770
VFS.Include(KERNEL_FOLDER .. "kernel_utils.lua") function gadget:GetInfo() return { name = "Spring kernel gadget", desc = "Spring kernel gadget executor (synced and unsynced)", author = "gajop", license = "MIT", layer = -10010, enabled = true, } end -- SYNCED if gadgetHandler:IsSyncedCode() the...
mit
AliKhodadad/Dark-Boys
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
slayerrensky/luci
libs/luci-lib-nixio/docsrc/nixio.fs.lua
156
7907
--- Low-level and high-level filesystem manipulation library. module "nixio.fs" --- Check user's permission on a file. -- @class function -- @name nixio.fs.access -- @param path Path -- @param mode1 First Mode to check ["f", "r", "w", "x"] -- @param ... More Modes to check [-"-] -- @return true --- Strip the dire...
apache-2.0
slayerrensky/luci
applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua
33
5237
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local NX = require "nixio" local NXFS = require "nixio.fs" local DISP = require "luci.dispatcher" local SYS = require "luci.sys" local DDNS = require "luci.tools.ddns" -- ddn...
apache-2.0
g0t-ya/XiaoyuBox
luci/model/cbi/ddns/global.lua
33
5237
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local NX = require "nixio" local NXFS = require "nixio.fs" local DISP = require "luci.dispatcher" local SYS = require "luci.sys" local DDNS = require "luci.tools.ddns" -- ddn...
lgpl-3.0
NerdWalletOSS/Q
DEPRECATED_Q2/Q_TOOL/deps/sha1.lua
6
4499
--[[lit-meta name = "creationix/sha1" version = "1.0.3" homepage = "https://github.com/luvit/lit/blob/master/deps/sha1.lua" description = "Pure Lua implementation of SHA1 using bitop" authors = { "Tim Caswell" } ]] -- http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA_All.pdf local bit = re...
mit
Oliveryo/Interface
AddOns/ShaguDB/db/vendorDB.lua
1
432320
vendorDB = { ['A Crazy Grab Bag'] = { [1] = 'Augustus the Touched,1', }, ['A Treatise on Military Ranks'] = { [1] = 'Officer Areyn,0', }, ['Accurate Slugs'] = { [1] = 'Calandrath,0', [2] = 'Master Smith Burninate,0', [3] = 'Christi Galvanis,0', [4] = 'Nergal,0', [5] = '...
gpl-3.0
patrikrm13/patix
plugins/pluginns.lua
285
6096
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
Oliveryo/Interface
AddOns/BigWigs_LoathebTactical/BigWigs_LoathebTactical.lua
1
7063
--[[ -- -- Big Wigs Strategy Module for Loatheb in Naxxramas. -- -- Adds warning messages, whispers and raid icons for the groups that are next in line to get Spore -- -- visit us at http://www.caelum.ws --]] ------------------------------ -- Are you local? -- ------------------------------ local myname = "...
gpl-3.0
njrat/BREKEBOT
bot/utils.lua
91
31577
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
daurnimator/lpeg_patterns
lpeg_patterns/uri.lua
1
4261
-- URI -- RFC 3986 local lpeg = require "lpeg" local P = lpeg.P local S = lpeg.S local C = lpeg.C local Cc = lpeg.Cc local Cg = lpeg.Cg local Cs = lpeg.Cs local Ct = lpeg.Ct local util = require "lpeg_patterns.util" local core = require "lpeg_patterns.core" local ALPHA = core.ALPHA local DIGIT = core.DIGIT local HEX...
mit
Oliveryo/Interface
AddOns/cooldowns/player.lua
1
3745
module 'cooldowns.player' include 'T' include 'cooldowns' local cooldowns_frame = require 'cooldowns.frame' local last_used function M.setup() cooldowns_settings.PLAYER = cooldowns_settings.PLAYER or T M.frame = cooldowns_frame.new('Player Cooldowns', A(.2, .8, .2), cooldowns_settings.PLAYER) do local frame = ...
gpl-3.0
Hikari-no-Tenshi/android_external_skia
tools/lua/scrape_dashing_full.lua
159
4610
local canvas -- holds the current canvas (from startcanvas()) --[[ startcanvas() is called at the start of each picture file, passing the canvas that we will be drawing into, and the name of the file. Following this call, there will be some number of calls to accumulate(t) where t is a tabl...
bsd-3-clause
mcastron/TinyBRL
scripts/lua_scripts/makeOL.lua
2
7955
local agents = require "data.agents" local gridComputing = require "data.gridComputing" local experiments_accurate = require "data.experiments_accurate" local experiments_inaccurate = require "data.experiments_inaccurate" local experiments_options = require "data.experiments_options" local experiments = ...
gpl-2.0
leftbrainstrain/cherts-esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_examples/onewire-ds18b20.lua
60
1505
--' -- 18b20 one wire example for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or (count > 100)) if (addr ==...
gpl-3.0
bighil/aeslua
src/aeslua/aes.lua
2
17825
require("bit"); local gf = require("aeslua.gf"); local util = require("aeslua.util"); -- -- Implementation of AES with nearly pure lua (only bitlib is needed) -- -- AES with lua is slow, really slow :-) -- local public = {}; local private = {}; aeslua.aes = public; -- some constants public.ROUNDS = "rounds"; publ...
lgpl-2.1
katacola/pets2kata
entities/base_follower/shared.lua
1
3864
ENT.Type = "anim" ENT.Base = "base_anim" ENT.RenderGroup = RENDERGROUP_TRANSLUCENT ENT.AutomaticFrameAdvance = true; function ENT:SetupDataTables() //self:NetworkVar( "String", 0, "PetName" ); //self:NetworkVar( "String", 1, "Arsenal" ); //self:NetworkVar( "Float", 0, "Cooldown" ); //self:NetworkVar( "Entity", 0,...
mit
Oliveryo/Interface
AddOns/VanillaGuide/GuideTables/Horde/003_Horde_50to60.lua
1
46733
--[[-------------------------------------------------- 003_Horde_50to60.lua Authors: mrmr Version: 1.04.2 ------------------------------------------------------ Description: Guide Serie - 003 From Lvl 50 to Lvl 60 1.04.1 -- First Release Horde's Guide from level 50 to lever 60 1....
gpl-3.0
NerdWalletOSS/Q
OPERATORS/MM/test/test_mv_mul.lua
1
2274
-- FUNCTIONAL local Q = require 'Q' require 'Q/UTILS/lua/strict' local diff = require 'Q/UTILS/lua/diff' local plstring = require 'pl.stringx' local Q_SRC_ROOT = os.getenv("Q_SRC_ROOT") local script_dir = Q_SRC_ROOT .. "/OPERATORS/MM/test/" local compare = function (file1, file2) local f1 = assert(io.open(file1, "r...
mit
EvilHero90/forgottenserver
data/lib/core/tile.lua
10
1137
function Tile.isCreature(self) return false end function Tile.isItem(self) return false end function Tile.isTile(self) return true end function Tile.isContainer(self) return false end function Tile.relocateTo(self, toPosition) if self:getPosition() == toPosition or not Tile(toPosition) then return false end...
gpl-2.0
slayerrensky/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua
68
7107
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ip = require "luci.ip" local fs = require "nixio.fs" if arg[1] then mp = Map("olsrd6", translate("OLSR - Plugins")) p = mp:section(TypedSection, "Loa...
apache-2.0
LibreLabUCM/telegram-bot
plugins/twitter.lua
632
2555
local OAuth = require "OAuth" -- EDIT data/twitter.lua with the API keys local twitter_config = load_from_file('data/twitter.lua', { -- DON'T EDIT HERE. consumer_key = "", consumer_secret = "", access_token = "", access_token_secret = "" }) local client = OAuth.new(twitter_config.consumer_key, twitter_c...
gpl-2.0
Oliveryo/Interface
AddOns/!Questie/Database/finishers.lua
1
182740
QuestieFinishers = { ["Shattering the Veil"] = "Gordawg", ["Beast Training"] = "Ganaar", ["The Calling"] = "Geologist Larksbane", ["Intrusiones darnasianas"] = "Vigilante-Ley Velania", ["Totem of Yor"] = "Totem of Yor", ["Raze Direhorn Post!"] = "Tabetha", ["The Summoning Chamber"] = "Stormer Ewan Wildwin...
gpl-3.0
dmccuskey/lua-bit-shim
dmc_lua/bit.lua
47
2044
--====================================================================-- -- dmc_lua/bit.lua -- -- a consistent method to load Lua BitOp on various systems -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright...
mit
Oliveryo/Interface
AddOns/Cartographer/Modules/Battlegrounds.lua
1
4510
local revision = tonumber(string.sub("$Revision: 18625 $", 12, -3)) if revision > Cartographer.revision then Cartographer.version = "r" .. revision Cartographer.revision = revision Cartographer.date = string.sub("$Date: 2006-12-02 16:13:35 +0300 (Сб, 02 дек 2006) $", 8, 17) end local L = AceLibrary("AceLocale-2.2")...
gpl-3.0
Rodeo314/tim-vlc
share/lua/playlist/googlevideo.lua
113
2746
--[[ $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 later version. This program is distribut...
gpl-2.0
disslove3/MAX4-BOT
plugins/trivia.lua
647
6784
do -- Trivia plugin developed by Guy Spronck -- Returns the chat hash for storing information local function get_hash(msg) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':trivia' end if msg.to.type == 'user' then hash = 'user:'..msg.from.id..':trivia' end return hash en...
gpl-2.0
tboox/xmake
xmake/rules/winsdk/dotnet/xmake.lua
1
2434
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
Rodeo314/tim-vlc
share/lua/meta/art/03_lastfm.lua
71
1912
--[[ Gets an artwork from last.fm $Id$ Copyright © 2010 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 later versio...
gpl-2.0
xriss/fun64
fun/overstep.fun.lua
1
173271
local bitdown=require("wetgenes.gamecake.fun.bitdown") local chatdown=require("wetgenes.gamecake.fun.chatdown") local wstr=require("wetgenes.string") function ls(s) print(wstr.dump(s))end local best_hx=320 local best_hy=200 do local fsx,fsy=system.fullscreen_width or 1920,system.fullscreen_height or 1080 local shy...
mit
sinavafa/test
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
Shayan123456/botttttt2
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
Flexibity/luci
modules/niu/luasrc/model/cbi/niu/wireless/brdevice.lua
51
1132
--[[ LuCI - Lua Configuration Interface 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$ ]]-- loca...
apache-2.0
Oliveryo/Interface
AddOns/BigWigs/Raids/ZG/Grilek.lua
1
6406
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Gri'lek"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) ---------------------------- -- Localization -- ---------------------------- L:RegisterTranslations("...
gpl-3.0
Flexibity/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua
80
1407
--[[ Luci configuration model for statistics - collectd tcpconns plugin configuration (c) 2008 Freifunk Leipzig / 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 Lice...
apache-2.0
tboox/xmake
xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
1
32743
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
nilsbrummond/ESO-MailLooter
controls/MultiSelectBar.lua
1
18629
-- -- This code is based on the ZOS ESO file: zo_menubar.lua -- -- Originally attempted to use the MenuBarButton class directly -- and place a replacement for MenuBar on top. This didn't work -- out. So this now has it's own Button and Bar objects with -- multi selecting and tree behavior for sub-categories. -- ...
mit
Oliveryo/Interface
AddOns/AtlasQuest/AtlasQuest_Buttons.lua
1
26229
-- Farben local PURPLE = "|cff999999"; -- grey atm -- removed local RED = "|cffff0000"; local REDA = "|cffcc6666"; local WHITE = "|cffFFFFFF"; local GREEN = "|cff1eff00"; local GREY = "|cff9F3FFF"; --purple now ^^ local BLUE = "|cff0070dd"; local ORANGE = "|cffff6090"; -- it is rosa now local YELLOW = "|cffffff00"; loc...
gpl-3.0
endavis/bastmush
Bast/lua/objectlua/bootstrap.lua
4
3168
local bootstrap = {} ---- -- Helper methods local function delegated(table) if nil == rawget(table, '__index') then rawset(table, '__index', table) rawset(table, '__metatable', 'private') end return setmetatable({}, table) end local function basicNew(self) assert(nil ~= self.__prototype__) ...
gpl-2.0
aure/Soundpipe
modules/data/lpf18.lua
3
1363
sptbl["lpf18"] = { files = { module = "lpf18.c", header = "lpf18.h", example = "ex_lpf18.c", }, func = { create = "sp_lpf18_create", destroy = "sp_lpf18_destroy", init = "sp_lpf18_init", compute = "sp_lpf18_compute", }, params = { op...
mit
padrinoo1/vagir
bot/creedbot.lua
4
15426
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
keyidadi/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/processes.lua
78
1093
--[[ Luci configuration model for statistics - collectd processes plugin configuration (c) 2008 Freifunk Leipzig / 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 Lic...
apache-2.0
keyidadi/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplans.lua
80
2807
--[[ 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$ ]]-- l...
apache-2.0
RamiLego4Game/PixelizerBox-Sandbox
Engine/ModManager.lua
1
7109
--This file is part of PixelizerBox-- --[[ * Copyright 2015 RamiLego4Game * * 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 ...
apache-2.0
Oliveryo/Interface
AddOns/pfUI/modules/thirdparty.lua
1
17354
pfUI:RegisterModule("thirdparty", function () pfUI.thirdparty = {} -- DPSMate Integration -- Move DPSMate to right chat and let the chat-hide button toggle it local function pfSetupDPSMate() -- set DPSMate appearance to match pfUI DPSMateSettings["windows"][1]["titlebarheight"] = 18 DPSMateSettings...
gpl-3.0
toophy/gopher-lua
_glua-tests/issues.lua
2
1411
-- issue #10 local function inspect(options) options = options or {} return type(options) end assert(inspect(nil) == "table") local function inspect(options) options = options or setmetatable({}, {__mode = "test"}) return type(options) end assert(inspect(nil) == "table") -- issue #16 local ok, msg = ...
mit
jie-meng/Lunar
publish/plugins/parse_supplement_api_cocos_js_webpack.lua
2
18009
local table_ext = require('table_ext') local file_ext = require('file_ext') local pattern_class_begin = [[([%w_%.]+)%s*=%s*([%w_%.]+)%.extend%s*%(]] local pattern_method = [[([%w_]+)%s*:%s*function%s*%((.*)%)]] local pattern_arrow_method = [[([%w_]+)%s*:%s*%((.*)%)%s*=>]] local pattern_static_method = [[([%w_%.]+)%s*=...
gpl-2.0
facebook/learningSimpleAlgorithms
utils/base.lua
2
3656
--[[ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ]]-- functi...
bsd-3-clause
slayerrensky/luci
applications/luci-app-pbx/luasrc/model/cbi/pbx-calls.lua
117
18881
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
apache-2.0
lepakko683/Tetris
src/Tetris1.lua
2
5857
-- Tetris for TI-nspire CX CAS shapes = {-- typ 1 = same in every rotation, typ 2 = has 2 roation states, typ 4 = has 4 rotation states -- square {color = 1, typ = 1, { 0,0,0,0, 0,0,0,0, 1,1,0,0, 1,1,0,0} }, -- line {color = 2, typ = 2, { 1,0,0,0, 1,0,0,0, 1,0,0,0, 1,0,0,0}, { 0,0,0,0, 0,0,...
gpl-3.0
Oliveryo/Interface
AddOns/LunaUnitFrames/modules/power.lua
1
7287
local LunaUF = LunaUF local Power = {} local POWERMATCH = { [0] = "MANA", [1] = "RAGE", [2] = "FOCUS", [3] = "ENERGY" } local timestamp local playerFrame LunaUF:RegisterModule(Power, "powerBar", LunaUF.L["Power bar"], true) local function reset() if LunaUF.db.profile.units.player.powerBar.ticker then time...
gpl-3.0
keyidadi/luci
modules/admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua
96
2209
--[[ LuCI - Lua Configuration Interface Copyright 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 ]]-- local ma...
apache-2.0
iranianhacker40/ARCHON-TEAM
plugins/echoget.lua
10
2400
local function run(msg, matches) if matches[1] == "echo>" then local file = matches[2] if is_sudo(msg) then -- Sudo only ! local receiver = get_receiver(msg) send_document(receiver, "./data/echo/"..file, ok_cb, false) --file will be send From echo folder ! end end end return { patterns = ...
gpl-2.0
DSUK/OpenRA
mods/ra/maps/allies-01/allies01.lua
46
6429
InsertionHelicopterType = "tran.insertion" InsertionPath = { InsertionEntry.Location, InsertionLZ.Location } ExtractionHelicopterType = "tran.extraction" ExtractionPath = { SouthReinforcementsPoint.Location, ExtractionLZ.Location } JeepReinforcements = { "jeep", "jeep" } TanyaReinforcements = { "e7" } EinsteinType = "e...
gpl-3.0
weirdouncle/QSanguosha-For-Hegemony
lua/ai/jiange-defense-ai.lua
6
11397
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
databeille/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policyconfig.lua
104
1918
-- ------ extra functions ------ -- function policyCheck() -- check to see if this policy's name exceed the maximum of 15 characters policyNameLength = string.len(arg[1]) if policyNameLength > 15 then nameTooLong = 1 end end function policyWarn() -- display status and warning messages at the top of the page if ...
gpl-2.0
disslove85/NOVS-BOT
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/gfx/temp_textures.lua
1
2009
-- The temp texture functionality provides texture copies on demand. -- The copies aren't destroyed, as creating and destroying textures can be expensive. -- They are cached here, and provided when necessary. -- Users request a list of textures to be copied, which can be of various sizes and types function Graphics:__...
mit
FlightControl-Master/MOOSE
Moose Development/Moose/Utilities/FiFo.lua
1
22189
--- **UTILS** - Classic FiFo Stack. -- -- === -- -- ## Main Features: -- -- * Build a simple multi-purpose FiFo (First-In, First-Out) stack for generic data. -- * [Wikipedia](https://en.wikipedia.org/wiki/FIFO_(computing_and_electronics) -- -- === -- -- ### Author: **applevangelist** -- @module Utilities.FiFo --...
gpl-3.0
codergreen/ValyriaTear
dat/maps/layna_village/layna_village_bronanns_home_first_floor_script.lua
1
10158
-- Set the namespace according to the map name. local ns = {}; setmetatable(ns, {__index = _G}); layna_village_bronanns_home_first_floor_script = ns; setfenv(1, ns); -- The map name and location image map_name = " " map_image_filename = "" -- The music file used as default background music on this map. -- Other music...
gpl-2.0
aure/Soundpipe
modules/data/switch.lua
4
1041
sptbl["switch"] = { files = { module = "switch.c", header = "switch.h", example = "ex_switch.c", }, func = { create = "sp_switch_create", destroy = "sp_switch_destroy", init = "sp_switch_init", compute = "sp_switch_compute", }, params = { ...
mit
NerdWalletOSS/Q
ML/KNN/lua/EXPERIMENTAL/alt_scale.lua
1
1042
local Q = require 'Q' local Scalar = require 'libsclr' local cmem = require 'libcmem' local ffi = require 'Q/UTILS/lua/q_ffi' local chk_params = require 'Q/ML/KNN/lua/chk_params' local plfile = require 'pl.file' -- TEMPORARY local get_ptr = require 'Q/UTILS/lua/get_ptr' local hdr = plfile.read("../inc/calc_scale.h") f...
mit
Oliveryo/Interface
AddOns/pfUI/modules/actionbar.lua
1
20969
pfUI:RegisterModule("actionbar", function () local default_border = pfUI_config.appearance.border.default if pfUI_config.appearance.border.actionbars ~= "-1" then default_border = pfUI_config.appearance.border.actionbars end -- override defaultUI functions to always show grid function ActionButton_ShowGr...
gpl-3.0
Oliveryo/Interface
AddOns/BigWigs/Plugins/Messages.lua
1
21483
 assert(BigWigs, "BigWigs not found!") ------------------------------ -- Are you local? -- ------------------------------ local L = AceLibrary("AceLocale-2.2"):new("BigWigsMessages") local paint = AceLibrary("PaintChips-2.0") ---------------------------- -- Localization -- ----------------------...
gpl-3.0
personalrobotics/trajopt
ext/bullet/Demos/SerializeDemo/AMD/premake4.lua
14
1139
hasCL = findOpenCL_AMD() if (hasCL) then project "AppOpenCLClothDemo_AMD" defines { "USE_AMD_OPENCL","CL_PLATFORM_AMD"} initOpenCL_AMD() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "BulletCollision", ...
bsd-2-clause
codergreen/ValyriaTear
dat/tilesets/desert_cave_walls.lua
4
13835
tileset = {} tileset.image = "img/tilesets/desert_cave_walls.png" tileset.num_tile_cols = 16 tileset.num_tile_rows = 16 -- The general walkability of the tiles in the tileset. Zero indicates walkable. One tile has four walkable quadrants listed as: NW corner, NE corner, SW corner, SE corner. tileset.walkability = {} ...
gpl-2.0
FlightControl-Master/MOOSE
Moose Development/Moose/Core/Message.lua
1
17721
--- **Core** - Informs the players using messages during a simulation. -- -- === -- -- ## Features: -- -- * A more advanced messaging system using the DCS message system. -- * Time messages. -- * Send messages based on a message type, which has a pre-defined duration that can be tweaked in SETTINGS. -- * Send m...
gpl-3.0
EvilHero90/forgottenserver
data/global.lua
5
8773
math.randomseed(os.time()) dofile('data/lib/lib.lua') ropeSpots = { 384, 418, 8278, 8592, 13189, 14435, 14436, 14857, 15635, 19518, 24621, 24622, 24623, 24624, 26019 } keys = { 2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032 } openDoors = { 1211, 1214, 1233, 1236, 1251, 1254, 3537, 3546, 4915, 4918, 5100, 5109, 5...
gpl-2.0
willmoffat/lua-fmt
test/lua-5.3.4-tests/literals.lua
2
10343
-- $Id: literals.lua,v 1.36 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print('testing scanner') local debug = require "debug" local function dostring (x) return assert(load(x), "")() end dostring("x \v\f = \t\r 'a\0a' \v\f\f") assert(x == 'a\0a' and string.len(x) == 3) -- escape seq...
mit
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_CureDiseaseReceived.lua
2
8382
-- Global Variables DPSMate.Modules.DetailsCureDiseaseReceived = {} -- Local variables local DetailsArr, DetailsTotal, DmgArr, DetailUser, DetailsSelected = {}, 0, {}, "", 1 local DetailsArrComp, DetailsTotalComp, DmgArrComp, DetailUserComp, DetailsSelectedComp = {}, 0, {}, "", 1 local g, g2 local curKey = 1 local d...
gpl-3.0
Flexibity/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
80
3231
--[[ 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$ ]]-- l...
apache-2.0
mahdibagheri/mmb1
plugins/anti_spam.lua
435
3886
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
m-2k/wrk
deps/luajit/src/jit/bc.lua
88
5606
---------------------------------------------------------------------------- -- LuaJIT bytecode listing module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -...
apache-2.0
Oliveryo/Interface
AddOns/LunaUnitFrames/modules/reckstacks.lua
1
3581
local ReckStacks = {} local L = LunaUF.L LunaUF:RegisterModule(ReckStacks, "reckStacks", L["Reckoning Stacks"]) local _,playerclass = UnitClass("player") local currStacks = 0 local talentRank local events = { CHAT_MSG_COMBAT_SELF_HITS = L["CHAT_MSG_COMBAT_SELF_HITS"], CHAT_MSG_COMBAT_FRIENDLY_DEATH = L["CHAT_MSG_COM...
gpl-3.0
tboox/xmake
xmake/modules/devel/git/checkurl.lua
1
1160
--!A cross-platform build utility based on Lua -- -- 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 Apach...
apache-2.0
satta/companion
bin/infernal_to_gff3.lua
5
1608
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014-2016 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in a...
isc
Spring-SpringBoard/SpringBoard-Core
scen_edit/gfx/draw/draw_shading_textures.lua
1
2401
function DrawShadingTextures(opts, x, z, size) local tmpMap = {} local wantedCopies = {} for texType, shadingTexObj in pairs(SB.model.textureManager.shadingTextures) do if opts.brushTexture[texType] and opts[texType .. "Enabled"] then SB.model.textureManager:BackupShadingTexture(texType)...
mit
facebook/learningSimpleAlgorithms
interfaces/Data.lua
2
2904
--[[ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ]]-- -- Int...
bsd-3-clause