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 |
|---|---|---|---|---|---|
Oliveryo/Interface | AddOns/cooldowns/frame.lua | 1 | 11807 | module 'cooldowns.frame'
include 'T'
include 'cooldowns'
ORIENTATIONS = A('RU', 'RD', 'DR', 'DL', 'LD', 'LU', 'UL', 'UR')
DEFAULT_SETTINGS = O(
'active', true,
'locked', false,
'x', UIParent:GetCenter(),
'y', (temp-A(UIParent:GetCenter()))[2],
'scale', 1,
'size', 15,
'line', 8,
'spacing', .1,
'orientation',... | gpl-3.0 |
Oliveryo/Interface | AddOns/BigWigs/Plugins/BossRecords.lua | 1 | 3941 | --[[
by LYQ(Virose / MOUZU)
https://github.com/MOUZU/BigWigs
This is a small plugin which is inspired by later Bossmod versions which included a module to record
the time in bossfights and displays the time after kill and also a small comparison to your fastest kill.
DB format:
self.db.pro... | gpl-3.0 |
NerdWalletOSS/Q | experimental/luajit_vs_terra/terra_vs_luajit_performance/lua/gen_csv_metadata_file.lua | 1 | 6815 | require 'globals'
-- table for random functions
local random_func = {}
local fns = {}
--to convert row (table) into comma separated line
local to_csv = function (tt)
local s = ""
for _,p in ipairs(tt) do
s = s .. "," .. p
end
return(string.sub(s, 2))
end
--placing random seed once at start for g... | mit |
mohammadclashclash/info1 | plugins/all.lua | 28 | 4675 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
AliKhodadad/Dark-Boys | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
xriss/fun64 | plated/source/blog/2017-01-27-comic-test/comic.fun.lua | 1 | 32520 |
local bit=require("bit")
local wstr=require("wetgenes.string")
local wgrd=require("wetgenes.grd")
local tardis=require("wetgenes.tardis") -- matrix/vector math
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local bitdown_font_4x8=require("wetgenes.gamecake.fun.bitdown_font_4x8")
local chipmunk=require("wetge... | mit |
AliKhodadad/Dark-Boys | plugins/domaintools.lua | 359 | 1494 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function check(name)
local api = "https://domainsearch.p.mashape.com/index.php?"... | gpl-2.0 |
eagle14/Snippy-robot | plugins/domaintools.lua | 359 | 1494 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function check(name)
local api = "https://domainsearch.p.mashape.com/index.php?"... | gpl-2.0 |
iranianhacker40/ARCHON-TEAM | plugins/download_media.lua | 12 | 2704 | local function callback(extra, success, result) -- Calback for load_photo in line 17
if success then
print('File downloaded to:', result)
else
print('Error downloading: '..extra)
end
end
local function run(msg, matches)
if not is_momod(msg) then -- Will download images only from mods,owner and admins
... | gpl-2.0 |
RamiLego4Game/PixelizerBox-Sandbox | Helpers/loveframes/skins/Flat/skin.lua | 1 | 52895 | --[[------------------------------------------------
-- 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(".skins.Blue.skin"))
local love... | apache-2.0 |
eagle14/Snippy-robot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/AI/AI_A2G_Dispatcher.lua | 1 | 233482 | --- **AI** - Create an automated A2G defense system based on a detection network of reconnaissance vehicles and air units, coordinating SEAD, BAI and CAS operations.
--
-- ===
--
-- Features:
--
-- * Setup quickly an A2G defense system for a coalition.
-- * Setup multiple defense zones to defend specific coord... | gpl-3.0 |
iranianhacker40/ARCHON-TEAM | plugins/inpm.lua | 11 | 2850 | do
function run(msg, matches)
if msg.to.id == our_id then
local data = load_data(_config.moderation.data)
if matches[1] == 'join' and data[tostring(matches[2])] then
if is_banned(msg.from.id, matches[2]) then
return 'شما بن هستید'
end
if is_gbanned(msg.from.id) then
return 'شما از تمام... | gpl-2.0 |
iranianhacker40/ARCHON-TEAM | plugins/lock_ads.lua | 12 | 2980 |
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_link... | gpl-2.0 |
leftbrainstrain/cherts-esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_modules/ds18b20/ds18b20.lua | 54 | 3437 | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Vowstar <vowstar@nodemcu.com>
-- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values
---------------------------------------... | gpl-3.0 |
tboox/xmake | xmake/modules/net/ping.lua | 1 | 3765 | --!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 |
aure/Soundpipe | modules/data/scale.lua | 3 | 1132 | sptbl["scale"] = {
files = {
module = "scale.c",
header = "scale.h",
example = "ex_scale.c",
},
func = {
create = "sp_scale_create",
destroy = "sp_scale_destroy",
init = "sp_scale_init",
compute = "sp_scale_compute",
},
params = {
op... | mit |
satta/companion | bin/fix_polycistrons.lua | 4 | 3972 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 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 all co... | isc |
DecoppaJe/SELF_BOT | plugins/groupmanager.lua | 1 | 7976 | do
local function add_by_reply(extra, success, result)
result = backward_msg_format(result)
local msg = result
local chat = msg.to.id
local user = msg.from.id
if msg.to.type == 'chat' then
chat_add_user('chat#id'..chat, 'user#id'..user, ok_cb, false)
elseif msg.to.type == 'channel' then... | gpl-2.0 |
patrikrm13/patix | plugins/location.lua | 185 | 1565 | -- 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 |
keyidadi/luci | libs/nixio/docsrc/nixio.lua | 151 | 15824 | --- General POSIX IO library.
module "nixio"
--- Look up a hostname and service via DNS.
-- @class function
-- @name nixio.getaddrinfo
-- @param host hostname to lookup (optional)
-- @param family address family [<strong>"any"</strong>, "inet", "inet6"]
-- @param service service name or port (optional)
-- @return ... | apache-2.0 |
eagle14/Snippy-robot | plugins/moderation.lua | 336 | 9979 | 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
local username = v.username
data[tostring(m... | gpl-2.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/Core/Spawn.lua | 1 | 157645 | --- **Core** - Spawn dynamically new groups of units in running missions.
--
-- ===
--
-- ## Features:
--
-- * Spawn new groups in running missions.
-- * Schedule spawning of new groups.
-- * Put limits on the amount of groups that can be spawned, and the amount of units that can be alive at the same time.
-- *... | gpl-3.0 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/view/grid_view.lua | 1 | 7363 | GridView = LCS.class{}
local __gridViewCounter = 0
function GridView:init(tbl)
-- Defaults
__gridViewCounter = __gridViewCounter + 1
local layoutPanelSettings = {
name = "grid_view_" .. tostring(__gridViewCounter),
greedyHitText = true,
selectable = true,
multiSelect = false... | mit |
aure/Soundpipe | modules/data/foo.lua | 4 | 3174 | sptbl["foo"] = {
files = {
module = "foo.c",
header = "foo.h",
example = "ex_foo.c",
},
func = {
create = "sp_foo_create",
destroy = "sp_foo_destroy",
init = "sp_foo_init",
compute = "sp_foo_compute",
other = {
sp_foo_set = {
... | mit |
keyidadi/luci | modules/admin-full/luasrc/model/cbi/admin_system/leds.lua | 83 | 3272 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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$
]]--
m = ... | apache-2.0 |
AustinWise/mongrel2 | docs/site/gensite.lua | 1 | 3078 | local tir = require 'tir.view'
local markdown = require 'markdown'
local posix = require 'posix'
local json = require 'json'
local util = require 'tir.util'
Generator = {
output = 'output/',
source = 'src/',
}
function Generator:load_template(data, in_name)
local out_ext = data.template:match("(%.[a-zA-... | bsd-3-clause |
LibreLabUCM/telegram-bot | 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 |
padrinoo/padrino85 | 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 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/state/terrain_change_texture_state.lua | 1 | 3497 | SB.Include(Path.Join(SB.DIRS.SRC, 'model/texture_manager.lua'))
TerrainChangeTextureState = AbstractMapEditingState:extends{}
function TerrainChangeTextureState:init(editorView)
AbstractMapEditingState.init(self, editorView)
self.brushTexture = self.editorView.fields["brushTexture"].value
self.patternTe... | mit |
leecrest/luvit | tests/test-tls-connect-simple.lua | 11 | 1050 |
require('tap')(function (test)
local fixture = require('./fixture-tls')
local tls = require('tls')
local options = {
cert = fixture.certPem,
key = fixture.keyPem
}
local serverConnected = 0
local clientConnected = 0
local server
local client1
test("tls connect simple test", function()
... | apache-2.0 |
EvilHero90/forgottenserver | data/spells/scripts/monster/ferumbras_soulfire.lua | 4 | 1052 | area = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, ... | gpl-2.0 |
NerdWalletOSS/Q | TESTS/test_log_reg_2.lua | 1 | 1084 | -- FUNCTIONAL
local Q = require 'Q'
require 'Q/UTILS/lua/strict'
local tests = {}
tests.t1 = function ()
for i = 1, 100 do
print("Iteration ", i)
local x_len = 65537
local y = Q.rand({ lb = 0, ub = 1, seed = 1234, qtype = "I1", len = x_len } )
local c1 = Q.rand({ lb = -1048576, ub = 1048576, seed = ... | mit |
xriss/fun64 | fun/copper.fun.lua | 1 | 16748 |
local wstr=require("wetgenes.string")
local wgrd=require("wetgenes.grd")
local tardis=require("wetgenes.tardis") -- matrix/vector math
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local bitdown_font_4x8=require("wetgenes.gamecake.fun.bitdown_font_4x8")
local ls=function(...) print(wstr.dump(...)) end
lo... | mit |
tboox/xmake | xmake/core/sandbox/modules/import/core/project/project.lua | 1 | 5320 | --!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 |
databeille/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua | 26 | 7228 | -- ------ extra functions ------ --
function interfaceCheck()
metricValue = ut.trim(sys.exec("uci get -p /var/state network." .. arg[1] .. ".metric"))
if metricValue == "" then -- no metric
errorNoMetric = 1
else -- if metric exists create list of interface metrics to compare against for duplicates
uci.cursor()... | gpl-2.0 |
Flexibity/luci | libs/core/luasrc/model/uci.lua | 86 | 10653 | --[[
LuCI - UCI model
Description:
Generalized UCI model
FileId:
$Id$
License:
Copyright 2008 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... | apache-2.0 |
g0t-ya/XiaoyuBox | luci/model/cbi/qosv4ip.lua | 1 | 2671 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Copyright 2011 flyzjhz <flyzjhz@gmail.com>
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
]]--... | lgpl-3.0 |
ahnqirage/thrift | lib/lua/TBinaryProtocol.lua | 90 | 6141 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
lhmwzy/vanilla | vanilla/v/controller.lua | 7 | 1664 | -- perf
local error = error
local pairs = pairs
local setmetatable = setmetatable
local Controller = {}
function Controller:new(request, response, app_config)
local instance = {
app_config = app_config,
params = request.params,
request = request,
response = response,
view =... | mit |
FlightControl-Master/MOOSE | Moose Development/Moose/Functional/Designate.lua | 1 | 58037 | --- **Functional** - Management of target **Designation**. Lase, smoke and illuminate targets.
--
-- ===
--
-- ## Features:
--
-- * Faciliate the communication of detected targets to players.
-- * Designate targets using lasers, through a menu system.
-- * Designate targets using smoking, through a menu system.
... | gpl-3.0 |
weirdouncle/QSanguosha-For-Hegemony | lang/zh_CN/Package/MomentumPackage.lua | 6 | 7984 | -- translation for Hegemony Momentum Package
return {
["momentum"] = "君临天下·势",
["momentum_equip"] = "君临天下·势",
["#lidian"] = "深明大义",
["lidian"] = "李典",
["illustrator:lidian"] = "张帅",
["xunxun"] = "恂恂",
[":xunxun"] = "摸牌阶段开始时,你可以放弃摸牌,观看牌堆顶的四张牌并获得其中的两张牌,然后将其余的牌置于牌堆底。",
["wangxi"] = "忘隙",
[":wangxi"] = "每当你对其他角色... | gpl-3.0 |
keyidadi/luci | protocols/ipv6/luasrc/model/network/proto_4x6.lua | 63 | 1522 | --[[
LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2013 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 ... | apache-2.0 |
leecrest/luvit | deps/dns.lua | 4 | 17024 | --[[
Copyright 2014-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 ag... | apache-2.0 |
facebook/learningSimpleAlgorithms | layers/EpisodeBarrier.lua | 2 | 1981 | --[[
* 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.
]]--
-- Cle... | bsd-3-clause |
sysuzhang/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Malchezaar.lua | 30 | 4212 | function Malchezaar_Hellfire(Unit, event, miscunit, misc)
print "Malchezaar Hellfire"
Unit:FullCastSpellOnTarget(43465,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "BURN...")
end
function Malchezaar_Thrash(Unit, event, miscunit, misc)
print "Malchezaar Thrash"
Unit:FullCastSpell(21919)
Unit:SendChatMessa... | agpl-3.0 |
Flexibity/luci | libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
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$
]]--
local... | apache-2.0 |
NerdWalletOSS/Q | OPERATORS/F_TO_S/lua/sum_specialize.lua | 1 | 1071 | local qconsts = require 'Q/UTILS/lua/q_consts'
local is_base_qtype = require('Q/UTILS/lua/is_base_qtype')
return function (qtype)
local tmpl = qconsts.Q_SRC_ROOT .. "/OPERATORS/F_TO_S/lua/sum.tmpl"
local subs = {}
subs.macro = "mcr_nop"
if ( qtype == "B1" ) then
subs.fn = "sum_B1"
subs.reduce_ctype = "... | mit |
MaliciouZzHD/AndroidChromeCastControl | files/nmap/nselib/data/psexec/network.lua | 4 | 4124 | ---More verbose network scripts
-- Any variable in the 'config' table in smb-psexec.nse can be overriden in the
-- 'overrides' table. Most of them are not really recommended, such as the host,
-- key, etc.
overrides = {}
--overrides.timeout = 40
modules = {}
local mod
-- Grab the ip and mac address(es) from ipconf... | gpl-3.0 |
keyidadi/luci | modules/base/luasrc/ltn12.lua | 83 | 11303 | --[[
LuaSocket 2.0.2 license
Copyright � 2004-2007 Diego Nehab
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, me... | apache-2.0 |
starius/kodomoquiz | quiz/lua2quiz.lua | 1 | 2202 | local lua2quiz = {}
function lua2quiz.function_returns_table(req)
return
'',
[[function() return {} end]],
[[{func = function() end}]],
[[func = function() end]],
[[function(x) x = {} end]],
[[Выберите код функции, возвращающей таблицу]]
end
function lua2quiz.change_argument(req)
retur... | mit |
satta/companion | bin/split_fasta.lua | 4 | 1801 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 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 all co... | isc |
disslove3/MAX4-BOT | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
mentor81/kgbot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
eagle14/Snippy-robot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
Oliveryo/Interface | AddOns/dpsmate/localization/enUS.lua | 1 | 24519 | DPSMate.L["name"] = "DPSMate"
DPSMate.L["popup"] = "Do you want to reset DPSMate?"
DPSMate.L["memory"] = "DPSMate has collected a lot of data. This will cause screen lag during the data saving process upon logout. Do you want to reset DPSMate first?"
DPSMate.L["accept"] = "Accept"
DPSMate.L["decline"] = "Decline"
DPSMa... | gpl-3.0 |
EvilHero90/forgottenserver | data/talkactions/scripts/info.lua | 6 | 1489 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local target = Player(param)
if not target then
player:sendCancelMessage("Player not found.")
return false
end
if target:getAccountType() > player:getAccountType() then
player:sendCancelMessage("You can not ge... | gpl-2.0 |
tboox/xmake | xmake/modules/detect/tools/find_cmake.lua | 1 | 1758 | --!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 |
Flexibity/luci | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 19 | 2372 | --[[
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 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/command/widget_terrain_change_texture_command.lua | 1 | 2745 | WidgetTerrainChangeTextureCommand = Command:extends{}
WidgetTerrainChangeTextureCommand.className = "WidgetTerrainChangeTextureCommand"
function WidgetTerrainChangeTextureCommand:init(opts)
self.opts = opts
end
function WidgetTerrainChangeTextureCommand:execute()
SB.delayGL(function()
self:SetTexture(... | mit |
Spring-SpringBoard/SpringBoard-Core | scen_edit/meta/meta_model.lua | 1 | 4356 | MetaModel = LCS.class{}
function MetaModel:init()
SB.IncludeDir(Path.Join(SB.DIRS.SRC, 'meta'))
self.numericComparisonTypes = {"==", "~=", "<=", ">=", ">", "<"} -- maybe use more user friendly signs
self.identityComparisonTypes = {"is", "is not"} -- maybe use more user friendly signs
--TODO: add array... | mit |
nilsbrummond/ESO-MailLooter | lib/LAM/LibAddonMenu-2.0.lua | 2 | 34746 | -- LibAddonMenu-2.0 & its files © Ryan Lakanen (Seerah) --
-- Distributed under The Artistic License 2.0 (see LICENSE) --
------------------------------------------------------------------
--Register LAM with LibStub
local MAJOR, MINOR = "LibAddonMenu-2.0", 22
local lam, oldminor = LibStub:NewLibrary(MAJO... | mit |
fda77/YourFritz | luavar/vpn_status.lua | 2 | 2186 | #! /bin/luavar
-- SPDX-License-Identifier: GPL-2.0-or-later
--
-- Another simple example, how AVM's Lua variable interface can be used
--
-- This script reads the new state and the name of a defined VPN connection
-- from STDIN, tries to find the VPN connection with the specified name and
-- reports the current state a... | gpl-2.0 |
slayerrensky/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 48 | 2480 | -- 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 fs = require "nixio.fs"
m = Map("network", translate("Interfaces"))
m.pageaction = false
m:section(SimpleSection).template = "admin_network/iface_overvi... | apache-2.0 |
slayerrensky/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 17 | 1665 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password
local ipv6, defaultroute, metric, peerdns, dns, mtu
server = section:taboption("general", Value, "server", translate("L2TP Server"))
server.datat... | apache-2.0 |
NerdWalletOSS/Q | OPERATORS/DEPRECATED/DATA_LOAD/lua/load_csv_dataload.lua | 1 | 7075 | local qconsts = require 'Q/UTILS/lua/q_consts'
local err = require 'Q/UTILS/lua/error_code'
local validate_meta = require "Q/OPERATORS/LOAD_CSV/lua/validate_meta"
local Dictionary = require 'Q/OPERATORS/DATA_LOAD/lua/dictionary_dataload'
local plstring = require 'pl.stringx'
local lVector = require 'Q/RUNTIME/lua/lVect... | mit |
tboox/xmake | xmake/languages/asm/api.lua | 1 | 2457 | --!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 |
LibreLabUCM/telegram-bot | 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 |
moteus/lzmq-dist | lzmq/examples/perf/thread_lat.lua | 16 | 2961 | -- Copyright (c) 2011 Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use,... | mit |
FlightControl-Master/MOOSE | Moose Development/Moose/AI/AI_Escort.lua | 1 | 85465 | --- **AI** - Taking the lead of AI escorting your flight or of other AI.
--
-- ===
--
-- ## Features:
--
-- * Escort navigation commands.
-- * Escort hold at position commands.
-- * Escorts reporting detected targets.
-- * Escorts scanning targets in advance.
-- * Escorts attacking specific targets.
-- *... | gpl-3.0 |
AliKhodadad/Dark-Boys | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
benjaminwinger/Freeciv | dependencies/tolua-5.2/src/bin/lua/basic.lua | 7 | 4807 | -- tolua: basic utility functions
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- Last update: Apr 2003
-- $Id: basic.lua,v 1.4 2009/11/24 16:45:13 fabraham Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, a... | gpl-2.0 |
lhmwzy/vanilla | vanilla/sys/nginx/config.lua | 4 | 2024 | -- vanilla
local helpers = require 'vanilla.v.libs.utils'
-- perf
local pairs = pairs
local ogetenv = os.getenv
local app_run_evn = ogetenv("VA_ENV") or 'development'
local va_ngx_conf = {}
va_ngx_conf.common = {
VA_ENV = app_run_evn,
}
if VANILLA_NGX_PATH ~= nil then
va_ngx_conf.common.NGX_PATH = VANILLA_NGX_PATH... | mit |
leecrest/luvit | tests/test-tls-sni-server-client.lua | 6 | 2767 | --[[
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 |
NerdWalletOSS/Q | UTILS/test/map_dictionary.lua | 1 | 3324 | --[[ Guidelines for adding new testcases in this file
File : map_dictionary.lua
In this file, all the testcases are written in the format
name = <name of testcase>, category = <category_number>, meta = <meta file>, output_regex = <expected_output>,
input = <input values to the testcase>, dict_size = <expected size of d... | mit |
Spring-SpringBoard/SpringBoard-Core | scen_edit/command/abstract_terrain_modify_command.lua | 1 | 6769 | AbstractTerrainModifyCommand = Command:extends{}
AbstractTerrainModifyCommand.className = "AbstractTerrainModifyCommand"
Math = Math or {}
function Math.RoundInt(x, step)
x = math.round(x)
return x - x % step
end
local function rotate(x, y, rotation)
return x * math.cos(rotation) - y * math.sin(rotation)... | mit |
raspberrypython/lxc | src/lxc/lxc-top.lua | 62 | 7453 | #!/usr/bin/env lua
--
-- top(1) like monitor for lxc containers
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library 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 Fre... | lgpl-2.1 |
willmoffat/lua-fmt | test/lua-5.3.4-tests/locals.lua | 6 | 3261 | -- $Id: locals.lua,v 1.37 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
print('testing local variables and environments')
local debug = require"debug"
-- bug in 5.1:
local function f(x) x = nil; return x end
assert(f(10) == nil)
local function f() local x; return x end
assert(f(10) == ... | mit |
toophy/gopher-lua | _lua5.1-tests/sort.lua | 10 | 1665 | print"testing sort"
function check (a, f)
f = f or function (x,y) return x<y end;
for n=table.getn(a),2,-1 do
assert(not f(a[n], a[n-1]))
end
end
a = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"}
table.sort(a)
check(a)
limit = 30000
if rawget(_G, "_soft") then ... | mit |
nilsbrummond/ESO-MailLooter | lib/LAM/controls/colorpicker.lua | 2 | 4158 | --[[colorpickerData = {
type = "colorpicker",
name = "My Color Picker", -- or string id or function returning a string
getFunc = function() return db.r, db.g, db.b, db.a end, --(alpha is optional)
setFunc = function(r,g,b,a) db.r=r, db.g=g, db.b=b, db.a=a end, --(alpha is optional)
tooltip = "Color ... | mit |
satta/annot-nf | data/filters/filter_short_partials.lua | 4 | 1564 | --[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014 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 all copies.
THE SOFTWA... | isc |
cc122cc/THETETOO2 | plugins/invite.lua | 43 | 1335 | do
local function callbackres(extra, success, result)
--vardump(result)
local user = 'user#id'..result.peer_id
local chat = 'chat#id'..extra.chatid
local channel = 'channel#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'User is banned.')
send_large_msg(c... | gpl-2.0 |
Spring-SpringBoard/SpringBoard-Core | libs_sb/MessagePack.lua | 1 | 31974 | --
-- lua-MessagePack : <http://fperrad.github.io/lua-MessagePack/>
--
jit = nil
local SIZEOF_NUMBER = string.pack and #string.pack('n', 0.0) or 8
local maxinteger
local mininteger
if not jit and _VERSION < 'Lua 5.3' then
-- Lua 5.1 & 5.2
local loadstring = loadstring or load
local luac = string.dump(load... | mit |
tboox/xmake | xmake/modules/package/manager/conan/install_package.lua | 1 | 6840 | --!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 |
NerdWalletOSS/Q | TESTS/test_dotprod_parallel.lua | 1 | 1164 | -- STRESS
local Q = require 'Q'
require 'Q/UTILS/lua/strict'
local tests = {}
tests.t1 = function ()
local T = {}
for i = 1,9 do
T[#T + 1] = 31
end
for i = 1,333 do
T[#T + 1] = 32
end
for i = 1,55 do
T[#T + 1] = 33
end
for i = 1,64 do
T[#T + 1] = 34
end
for i = 1,35 do
T[#T + 1] = 35
end
fo... | mit |
PetaVision/projects | depthSCANN/input/depthInference/ATA_validate_LCA.lua | 2 | 6847 | -------------------------------------------------------------------
-- ATA validate for LCA
--
-- Sheng Lundquist 6/9/15
--
-- Implements training of ATA method with SCANN model as described in
-- Lundquist et al., "Emergence of Depth-Tuned Hidden Units Through
-- Sparse Encoding of Binocular Images"
------------------... | epl-1.0 |
TeslaCloud/TTTRewrite | terrortown/gamemode/libs/cl_hudpickup.lua | 1 | 6512 |
local GetTranslation = LANG.GetTranslation
local GetPTranslation = LANG.GetParamTranslation
GM.PickupHistory = {}
GM.PickupHistoryLast = 0
GM.PickupHistoryTop = ScrH() / 2
GM.PickupHistoryWide = 300
GM.PickupHistoryCorner = surface.GetTextureID( "gui/corner8" )
local pickupclr = {
[ROLE_INNOCENT] = Color(55, 17... | mit |
NerdWalletOSS/Q | DEPRECATED_Q2/test/test_s_to_f.lua | 1 | 2996 | #!/home/subramon/LUA/lua-5.3.0/src/lua
dofile "../LUAQ/qinit.lua"
qinit()
--============================================
DOCROOT = "/home/subramon/DATA_STORE"
T = {}
g_lfs = require "lfs"
--
reset_docroot(DOCROOT)
local status = ""
local err = ""
command = ' t1 := OP=New ARGS={ "NumRows" : "4" }'
status, err = pcall(... | mit |
lhmwzy/vanilla | vanilla/v/dispatcher.lua | 2 | 5787 | -- vanilla
local Controller = require 'vanilla.v.controller'
local Request = require 'vanilla.v.request'
local Router = require 'vanilla.v.router'
local Response = require 'vanilla.v.response'
local View = require 'vanilla.v.views.rtpl'
local Error = require 'vanilla.v.error'
-- perf
local error = error
local pairs = ... | mit |
EvilHero90/forgottenserver | data/actions/scripts/other/bed_modification_kits.lua | 13 | 1647 | local beds = {
[7904] = {{7811, 7812}, {7813, 7814}}, -- green kit
[7905] = {{7819, 7820}, {7821, 7822}}, -- yellow kit
[7906] = {{7815, 7816}, {7817, 7818}}, -- red kit
[7907] = {{1754, 1755}, {1760, 1761}}, -- removal kit
[20252] = {{20197, 20198}, {20199, 20200}} -- canopy kit
}
local function internalBedTrans... | gpl-2.0 |
Flexibity/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua | 80 | 1878 | --[[
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 |
NerdWalletOSS/Q | OPERATORS/F1S1OPF2_VAL/test/test_f1s1opf2_val.lua | 1 | 1923 | local Q = require 'Q'
local Scalar = require 'libsclr'
local qconsts = require 'Q/UTILS/lua/q_consts'
local tests = {}
tests.t1 = function()
-- vsgeq_val test
local in_table = {1, 2, 3, 4, 5, 6, -1, -2, -1}
local qtype = "I4"
local col = Q.mk_col(in_table, qtype)
local s = Scalar.new(-1, qtype)
local res,... | mit |
Rhalyf/RhalyfsKeybindings | Settings.lua | 1 | 1539 | function RK.LoadSavedSettings()
local defaultSettings = {
notifications = true,
}
-- Documentation: ZO_SavedVars:NewAccountWide(savedVariableName, settingsVersion, settingsNamespace, defaultSettings, settingsProfile)
RK.savedSettings = ZO_SavedVars:NewAccountWide("RK_SavedSettings", 1, "RK", RK.defaultSet... | mit |
leftbrainstrain/cherts-esp8266-devkit | Espressif/examples/nodemcu-spiffy/files/bmp180.lua | 9 | 4174 | -- ***************************************************************************
-- BMP180 module for ESP8266 with nodeMCU
-- BMP085 compatible but not tested
--
-- Written by Javier Yanez
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
... | gpl-3.0 |
slayerrensky/luci | modules/luci-base/luasrc/sys/iptparser.lua | 47 | 9515 | --[[
Iptables parser and query library
(c) 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
(c) 2008-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:... | apache-2.0 |
DSUK/OpenRA | mods/ra/maps/allies-03a/allies03a.lua | 14 | 9218 | ProductionUnits = { "e1", "e1", "e2" }
ProductionBuildings = { USSRBarracks1, USSRBarracks2 }
TransportReinforcements = { "e1", "e1", "e1", "e2", "e2" }
FirstUSSRBase = { USSRFlameTower1, USSRBarracks1, USSRPowerPlant1, USSRPowerPlant2, USSRConstructionYard1, USSRTechCenter, USSRBaseGuard1, USSRBaseGuard2, USSRBaseGuar... | gpl-3.0 |
funshine/nodemcu-firmware | app/cjson/lua/cjson/util.lua | 170 | 6837 | local json = require "cjson"
-- Various common routines used by the Lua CJSON package
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index ... | mit |
Oliveryo/Interface | AddOns/MikScrollingBattleText/MikScrollingBattleText-frFR.lua | 1 | 1058 | local L = AceLibrary("AceLocale-2.2"):new("MikScrollingBattleText")
L:RegisterTranslations("frFR", function()
return {
["Debug mode has been enabled."] = "Debug mode has been enabled.",
["Debug mode has been disabled."] = "Debug mode has been disabled.",
["Event search mode has been enabled. Searching fo... | gpl-3.0 |
leftbrainstrain/cherts-esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_examples/irsend.lua | 88 | 1803 | ------------------------------------------------------------------------------
-- IR send module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("irsend.lua").nec(4, 0x00ff00ff)
-----------------------------------------------------------------------... | gpl-3.0 |
tboox/xmake | xmake/core/sandbox/modules/interpreter/getenv.lua | 1 | 1026 | --!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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.