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
celarco/ardupilot
libraries/AP_Scripting/examples/set-target-velocity.lua
18
3704
-- command a Copter to takeoff to 10m and fly a square pattern -- -- CAUTION: This script only works for Copter -- this script waits for the vehicle to be armed and RC6 input > 1800 and then: -- a) switches to Guided mode -- b) takeoff to 10m -- c) flies a 20m x 20m square pattern using the velocity controller...
gpl-3.0
RamiLego4Game/PixelizerBox-Sandbox
Engine/Generators/Rectangle.lua
1
3827
--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
keyidadi/luci
modules/base/luasrc/sys.lua
43
25825
--[[ LuCI - System library Description: Utilities for interaction with the Linux system 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...
apache-2.0
tboox/xmake
core/src/tbox/src/xmake.lua
1
9547
includes("check_cfuncs.lua") -- option: demo option("demo") set_default(true) set_showmenu(true) set_category("option") set_description("Enable or disable the demo module") option_end() -- option: micro option("micro") set_default(false) set_showmenu(true) set_category("option") set_de...
apache-2.0
LuaDist2/formatter
commandline.lua
3
2281
#!/usr/bin/env lua -- Check interpreter version if _VERSION ~= 'Lua 5.1' then print 'Only compatible with Lua 5.1' return end local help = [[Formats Lua code. -a, --autosave Flush formatted Lua in given file instead of stdout. -s, --spaces (default 2) Spaces to use as indentation. -t, --tabs (default 0) Ta...
epl-1.0
keyidadi/luci
applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua
78
1243
--[[ LuCI - Lua Configuration Interface Copyright 2012 Manuel Munz <freifunk at somakoma dot de> 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
titansec/openwaf
lib/twaf/inc/twaf_func.lua
1
32451
-- Copyright (C) Miracle -- Copyright (C) OpenWAF local _M = { _VERSION = "1.1.3" } local ffi = require "ffi" local cjson = require "cjson.safe" local twaf_action = require "lib.twaf.inc.action" local _type = type local _next = nex...
apache-2.0
NerdWalletOSS/Q
UTILS/lua/testcase_results.lua
1
1233
local plpath = require 'pl.path' local function testcase_results (v, test_for, test_type, result, spare) local date = os.date("%d/%m/%Y") local time = os.date("%H:%M") local dir_path = plpath.currentdir() dir_path = dir_path.."/" -- find start and end index of /Q/ or //Q//in dir path to get relative pat...
mit
TeslaCloud/TTTRewrite
terrortown/entities/weapons/weapon_ttt_health_station.lua
1
2728
AddCSLuaFile() SWEP.HoldType = "normal" if CLIENT then SWEP.PrintName = "hstation_name" SWEP.Slot = 6 SWEP.ViewModelFOV = 10 SWEP.EquipMenuData = { type = "item_weapon", desc = "hstation_desc" }; SWEP.Icon = "vgui/ttt/icon_health" end SWEP.Base = "weapon_tttbase" SWEP.ViewModel ...
mit
LibreLabUCM/telegram-bot
bot/bot.lua
15
6562
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 = '0.13.1' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
sasanhastam/sasan
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-3.0
Oliveryo/Interface
AddOns/dpsmate/libs/AceOO/AceOO-2.0.lua
7
30305
--[[ Name: AceOO-2.0 Revision: $Rev: 11577 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceOO-2.0 SVN: http://svn.wowace.com/root/trunk/...
gpl-3.0
adminomega/exterme-2
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
ramin65/cia
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
NerdWalletOSS/Q
DEPRECATED_Q2/PRIMITIVES/conv.lua
1
1578
#!/home/subramon/LUA/lua-5.3.0/src/lua dofile "../LUAQ/aux.lua" json = (loadfile "../../../LUA/json.lua")() -- TOOD: FIX infile = assert(tostring(arg[1])) -- assert(io.input(infile)) -- lfs = require("lfs") cwd = assert(lfs.currentdir()) local x = assert(io.read("*all")) local t = json:decode(x) for k, v in pairs(t...
mit
keyidadi/luci
libs/nixio/docsrc/nixio.TLSSocket.lua
173
2926
--- TLS Socket Object. -- TLS Sockets contain the underlying socket and context in the fields -- "socket" and "context". -- @cstyle instance module "nixio.TLSSocket" --- Initiate the TLS handshake as client with the server. -- @class function -- @name TLSSocket.connect -- @usage This function calls SSL_connect(). -- @...
apache-2.0
Hikari-no-Tenshi/android_external_skia
resources/lua/slides_content.lua
78
1789
Skia Overview 2014 < transition =slide> One API -- many backends - Raster [8888, 565, A8] - GPU [opengl] - PDF - XPS - Picture - Pipe <transition= fade> One Team -- many clients - Chrome - ChromeOS - Clank - Android Framework - 3rd parties (e.g. FireFox) <transition= rotate> <blockstyle = code> Optimize for CPU v...
bsd-3-clause
satta/companion
bin/snap_gff_to_gff3.lua
4
3373
#!/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
kvalium/loveGame
lib/knife/serialize.lua
5
2334
local tinsert, tconcat, infinity = table.insert, table.concat, math.huge return function (value) local intro, outro, ready, known = {}, {}, {}, {} local knownCount = 0 local writer = {} -- get writer delegate for this value's type local function getWriter (value) return writer[type(value)]...
gpl-3.0
great90/skynet
service/clusteragent.lua
9
3442
local skynet = require "skynet" local sc = require "skynet.socketchannel" local socket = require "skynet.socket" local cluster = require "skynet.cluster.core" local ignoreret = skynet.ignoreret local clusterd, gate, fd = ... clusterd = tonumber(clusterd) gate = tonumber(gate) fd = tonumber(fd) local large_request = {...
mit
leecrest/luvit
tests/test-fs-read.lua
11
1277
--[[ 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
Oliveryo/Interface
AddOns/SHunterTimers/SHunterTimers.lua
1
93945
--[[ Hunter Timers, by Sorren of Bleeding Hollow (versions up to 1.2) Version 1.6.11 (by Kharthus of Deathwing) v1.6.11 -Added Spanish translation (thanks Geran) -Fixed issues with bar/frame fading and transparency -Added oCB support v1.6.10 -Fixed French trap messages -Fixed traptimemult nil issues -Cleanup co...
gpl-3.0
rijkvanzanten/luaus
nodemcu/wifimodule.lua
1
1659
local wifimodule = {} -- Connect to Wi-Fi function wifimodule.connect(network, callback) wifi.setmode(wifi.STATION) wifi.sta.config(network.ssid, network.password) wifi.sta.eventMonReg(wifi.STA_IDLE, function() print('[Wi-Fi] Idle') end) wifi.sta.eventMonReg(wifi.STA_CONNECTING, function() print('[Wi-Fi] Conne...
mit
RamiLego4Game/PixelizerBox-Sandbox
Helpers/loveframes/objects/tabs.lua
12
19393
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.tabs")) local lovefra...
apache-2.0
EvilHero90/forgottenserver
data/scripts/actions/others/mysterious_remains.lua
7
2316
local config = { {chanceFrom = 0, chanceTo = 471, itemId = 2114}, -- piggy bank {chanceFrom = 472, chanceTo = 1413, itemId = 2154}, -- yellow gem {chanceFrom = 1414, chanceTo = 1988, itemId = 13537}, -- bag of apple slices {chanceFrom = 1989, chanceTo = 2616, itemId = 3956}, -- tusk {chanceFrom = 2617, chanceTo = ...
gpl-2.0
satta/annot-nf
bin/filter_genes_with_stop_codons.lua
4
4369
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014-2015 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
sasanhastam/sasan
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-3.0
g0t-ya/XiaoyuBox
luci/model/cbi/admin_status/processes.lua
85
1448
--[[ 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...
lgpl-3.0
coopmaster/GalacticTradeMod-Factorio
GalacticTrade_/prototypes/entity/trading-chest.lua
2
4170
data:extend({ { type = "container", name = "trading-chest-buy", icon = "__GalacticTrade__/graphics/icons/trading-chest-buy.png", flags = {"placeable-neutral", "player-creation"}, minable = {mining_time = 1, result = "trading-chest-buy"}, max_health = 100, corpse = "small-remn...
mit
Oliveryo/Interface
AddOns/oCB/Libs/Surface-1.0/Surface-1.0.lua
2
2317
--[[ Name: Surface-1.0 Revision: $Revision: 16890 $ Author: Haste/Otravi (troeks@gmail.com) Website: http://fuxsake.net/f15-SurfaceLib.html Documentation: http://fuxsake.net/t18-Documentation.html SVN: http://svn.wowace.com/wowace/trunk/SurfaceLib/Surface-1.0/ Description: Shared handling of StatusBar textures between ...
gpl-3.0
aure/Soundpipe
modules/data/tseq.lua
3
1299
sptbl["tseq"] = { files = { module = "tseq.c", header = "tseq.h", example = "ex_tseq.c", }, func = { create = "sp_tseq_create", destroy = "sp_tseq_destroy", init = "sp_tseq_init", compute = "sp_tseq_compute", }, params = { mandatory ...
mit
coopmaster/GalacticTradeMod-Factorio
GalacticTrade_/prototypes/data-final-fixes.lua
2
1909
data.raw["gui-style"].default["blank".."_gt_button_style"] = { type = "checkbox_style", parent = "checkbox_style", width = 38, height = 45, hovered_background = { filename = "__core__/graphics/gui.png", priority = "extra-high-no-scale", width = 35, height = 35, x = 185, y = 0 }, ...
mit
aure/Soundpipe
modules/data/osc.lua
3
1548
sptbl["osc"] = { files = { module = "osc.c", header = "osc.h", example = "ex_osc.c", }, func = { create = "sp_osc_create", destroy = "sp_osc_destroy", init = "sp_osc_init", compute = "sp_osc_compute", }, params = { mandatory = { ...
mit
NerdWalletOSS/Q
OPERATORS/F1S1OPF2_VAL/lua/gen_specialize.lua
1
1220
local plfile = require 'pl.file' local plpath = require 'pl.path' --======================= assert(plpath.isfile("f1s1opf2_val_specialize.tmpl"), "File not found") local x = plfile.read("f1s1opf2_val_specialize.tmpl") --======================= y = string.gsub(x, "<<operator>>", "vsgeq_val") y = string.gsub(y, "<<compar...
mit
disslove85/NOVS-BOT
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
padrinoo/padrino85
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
Telewildv4/Telewildv4bot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
EvilHero90/forgottenserver
data/scripts/actions/others/nail_case.lua
7
1829
local messages = { [1] = "You carefully cut the nail of the gravedigger's thumb.", [2] = "You successfully manicured the forefinger of the gravedigger.", [3] = "You successfully manicured the middlefinger of the gravedigger.", [4] = "You actually manicured the ring finger of the gravedigger without a problem." } l...
gpl-2.0
NerdWalletOSS/Q
OPERATORS/GETK/lua/getk.lua
1
1947
local T = {} local function mink_vector(fval, k, fopt, optargs) local expander if ( fopt ) then -- TODO: currently not implemented expander = require 'Q/OPERATORS/GETK/lua/expander_getk2' else expander = require 'Q/OPERATORS/GETK/lua/expander_getk' end assert(expander) local status, col1, col...
mit
Flexibity/luci
modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua
6
3337
--[[ LuCI - Lua Configuration Interface Copyright 2009-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$ ]]...
apache-2.0
Flexibity/luci
modules/flexibity/luasrc/model/cbi/flexibity/passwd.lua
14
1177
--[[ 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
gajop/i18n
i18nlib/spec/i18n_spec.lua
21
6793
require 'spec.fixPackagePath' local i18n = require 'i18n' describe('i18n', function() before(function() i18n.reset() end) describe('translate/set', function() it('sets a value in the internal store', function() i18n.set('en.foo','var') assert_equal('var', i18n('foo')) end) it('splits ke...
mit
keyidadi/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua
80
2553
--[[ 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
sinavafa/test
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
adminomega/exterme-2
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
NerdWalletOSS/Q
UTILS/lua/delete_bad_lines.lua
1
1585
local fns = require 'Q/UTILS/lua/parser' return function ( infile, outfile, regex_list ) local ifp = assert(io.open(infile, "r"), "Unable to open input file " .. infile .. " for reading") local ofp = assert(io.open (outfile, "w"), "Unable to open input file " .. outfile .. " for writing") ...
mit
AliKhodadad/Dark-Boys
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
EvilHero90/forgottenserver
data/scripts/lib/register_monster_type.lua
4
11254
registerMonsterType = {} setmetatable(registerMonsterType, { __call = function(self, mtype, mask) for _, parse in pairs(self) do parse(mtype, mask) end end }) MonsterType.register = function(self, mask) return registerMonsterType(self, mask) end registerMonsterType.name = function(mtype, mask) if mask.nam...
gpl-2.0
slayerrensky/luci
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua
45
3212
-- Copyright 2011-2012 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 defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu server = section:taboption("general", Value, "...
apache-2.0
RamiLego4Game/PixelizerBox-Sandbox
Helpers/loveframes/objects/internal/columnlist/columnlistheader.lua
12
5899
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.columnlist.c...
apache-2.0
Flexibity/luci
modules/flexibity/luasrc/model/cbi/flexibity/motion.lua
1
20080
--[[ LuCI - Lua Configuration Interface Copyright 2011 Maxim Osipov <maxim.osipov@gmail.com> 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...
apache-2.0
Spring-SpringBoard/SpringBoard-Core
exts/example/ui/example.lua
1
1977
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) if ExampleEditor ~= nil then ExampleEditor:Deregister() end ExampleEditor = Editor:extends{} ExampleEditor:Register({ name = "exampleEditor", tab = "Example", caption = "Example", tooltip = "Example editor", -- TODO: Fix image/path for exte...
mit
tboox/xmake
xmake/core/sandbox/modules/import/core/project/menu.lua
1
1317
--!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
WeHaveCookie/EtherealEngine
ethereal_premake.lua
1
1529
-- Here is an example of the most common used configuration functions -- For more in-depth use of premake, refer to the online documentation: -- https://github.com/premake/premake-core/wiki -- Add additional defines: -- defines { "DEFINE1", "DEFINE2" } -- Remove existing defines: -- undefines { "DEFINE1", "DEFINE2"...
mit
codergreen/ValyriaTear
dat/maps/layna_village/layna_village_kalya_house_exterior_map.lua
4
27903
map_data = {} -- The number of rows, and columns that compose the map map_data.num_tile_cols = 32 map_data.num_tile_rows = 24 -- The tilesets definition files used. map_data.tileset_filenames = {} map_data.tileset_filenames[1] = "dat/tilesets/mountain_house_exterior.lua" map_data.tileset_filenames[2] = "dat/tilesets/...
gpl-2.0
NerdWalletOSS/Q
ML/DT/test/test_accuracy_results/test_import_sklearn_in_q.lua
1
4320
local Q = require 'Q' local Vector = require 'libvec' local Scalar = require 'libsclr' local Q_SRC_ROOT = os.getenv("Q_SRC_ROOT") local eval_mdl = require 'Q/ML/DT/lua/eval_mdl'['eval_mdl'] local tests = {} -- Dataset: b_cancer/cancer_data_test.csv tests.t1 = function() local write_to_csv = require 'Q/ML/DT/lua/writ...
mit
alfred-bot/phmbot
plugins/stats.lua
57
3698
do local NUM_MSG_MAX = 6 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..' ' end if user.lastname then text = text..user.last_name end return text end -- Returns a table with `...
gpl-2.0
NerdWalletOSS/Q
RUNTIME/test/test_vvadd.lua
1
2246
local qconsts = require 'Q/UTILS/lua/q_consts' local cmem = require 'libcmem' local ffi = require 'Q/UTILS/lua/q_ffi' local lVector = require 'Q/RUNTIME/lua/lVector' local Scalar = require 'libsclr' local get_ptr = require 'Q/UTILS/lua/get_ptr' local prcsv = require "Q/OPERATORS/PRINT/lua/print_csv" local t...
mit
keyidadi/luci
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
37
8552
--[[ 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$ ]]-- loc...
apache-2.0
Oliveryo/Interface
AddOns/ShaguQuest/localization_fr.lua
1
4172
-- French localization for Extended Questlog 3.5 -- Thanks to Shaeck, khellendros and Trucifix -- Extended QuestLog is Copyright © 2006 Daniel Rehn --[[-------------------------------------------------------------------------------- Special Keys in French: -- é = \195\169 -- è = \195\168 -- ê = \195\170 Questlog = Jo...
gpl-3.0
NerdWalletOSS/Q
QLI_LUA/DEPRECATED/Q_TOOL/q_httpserver.lua
2
1281
-- seeded from code on Luvit blog -- server.lua dofile 'luvit-loader.lua' -- Enable require to find lit packages -- This returns a table that is the app instance. -- All it's functions return the same table for chaining calls. -- TODO this is copy-paste but worth it for now... local function script_path() local s...
mit
Oliveryo/Interface
AddOns/BigWigs/Raids/BWL/Vaelastrasz.lua
1
11926
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Vaelastrasz the Corrupt"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) ---------------------------- -- Localization -- ---------------------------- L:Regist...
gpl-3.0
Oliveryo/Interface
AddOns/modifiedpowerauras/localization/enUs.lua
1
8300
MPOWA_MAINFRAME_HEAD = "Modified Power Auras" MPOWA_BUTTON_EDIT = "Edit Aura" MPOWA_BUTTON_ADD = "Add Aura" MPOWA_BUTTON_REMOVE = "Remove Aura" MPOWA_BUTTON_PROFILE = "Profiles" MPOWA_BUTTON_CLOSE = "Close" MPOWA_BUTTON_TEST = "Test" MPOWA_BUTTON_TESTALL = "Test all" MPOWA_BUTTON_IMPORT = "Import" MPOWA_BUTTON_SAVE = ...
gpl-3.0
tboox/xmake
xmake/core/sandbox/modules/dprint.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
tboox/xmake
xmake/core/sandbox/modules/hash.lua
1
1565
--!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
keyidadi/luci
modules/base/luasrc/tools/status.lua
49
5227
--[[ 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 ]]-- module(...
apache-2.0
clearswift/trafficserver
plugins/experimental/ts_lua/example/test_txn_hook.lua
17
2231
-- 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"); y...
apache-2.0
NerdWalletOSS/Q
ML/UTILS/lua/split_train_test.lua
1
2172
local Q = require 'Q' local Scalar = require 'libsclr' local function split ( T, -- table of m lVectors of length n split_ratio, -- Scalar between 0 and 1 features_to_consider, seed ) assert(T) assert(type(T) == "table") if ( type(split_ratio) == "number" ) then split_ratio = assert(Scalar.new(sp...
mit
sijones/domoticz
scripts/lua_parsers/example_owm.lua
37
1285
-- Example of XML parser handling data with the following structure -- Data are coming from the OpenWeatherMap API : See http://www.openweathermap.org/current -- <current> -- <city id="12345" name="Paris"> -- <coord lon="2.35" lat="48.85"/> -- <country>FR</country> -- <sun rise="2016-04-22T04:45:07" set="2016-...
gpl-3.0
tboox/xmake
xmake/rules/winsdk/mfc/env/xmake.lua
1
1127
--!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
EvilHero90/forgottenserver
data/scripts/eventcallbacks/player/default_onLookInMarket.lua
5
7078
local showAtkWeaponTypes = {WEAPON_CLUB, WEAPON_SWORD, WEAPON_AXE, WEAPON_DISTANCE} local showDefWeaponTypes = {WEAPON_CLUB, WEAPON_SWORD, WEAPON_AXE, WEAPON_DISTANCE, WEAPON_SHIELD} local ec = EventCallback ec.onLookInMarket = function(self, itemType) local response = NetworkMessage() response:addByte(0xF8) respo...
gpl-2.0
cyfdecyf/luanet
t/sys.lua
1
2717
local sys = require 'luanet.ffi.sys' local Buffer = sys.Buffer local ffi = require 'ffi' local C = ffi.C local M = {} local _ function M.test_addr_convert() local ipaddr = { ip = '127.0.0.1', port = 1234 } local sockaddr, err = sys.to_sockaddr(sys.AF_INET, ipaddr) assert_nil(err, 'to_sockaddr test') local i...
mit
tboox/xmake
xmake/core/sandbox/modules/import/lib/detect/find_directory.lua
1
3307
--!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
g0t-ya/XiaoyuBox
luci/model/cbi/admin_system/fstab.lua
1
4911
--[[ 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$ ]]-- req...
lgpl-3.0
NerdWalletOSS/Q
TESTS/test_variance_funcs.lua
1
1718
-- FUNCTIONAL local Q = require 'Q' local Scalar = require 'libsclr' require 'Q/UTILS/lua/strict' local c1 = Q.mk_col({-0.494191, -0.472019, 0.730111}, "F8") local c2 = Q.mk_col({-0.558050, 0.816142, 0.149979}, "F8") local c3 = Q.mk_col({0.6667, 0.3333, 0.6667}, "F8") local n = 3 local sn = Scalar.new(n, "F8") local ...
mit
Oliveryo/Interface
AddOns/ShaguQuest/EQL3_Unload.lua
1
1674
if EQL3_QUESTLOG_VERSION ~= nil then local ShaguError = CreateFrame("Frame",nil,UIParent) ShaguError:SetFrameStrata("TOOLTIP") ShaguError:SetWidth(200) ShaguError:SetHeight(50) ShaguError:SetPoint("TOP",0,-150) ShaguError.text = ShaguError:CreateFontString("Status", "LOW", "GameFontNormal") ShaguError.te...
gpl-3.0
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/ike.lua
2
14911
local _G = require "_G" local bin = require "bin" local nmap = require "nmap" local stdnse = require "stdnse" local string = require "string" local table = require "table" local math = require "math" local io = require "io" description = [[ A very basic IKE library. The current funcionality includes: 1. Generating ...
gpl-3.0
alfred-bot/phmbot
plugins/channels.lua
356
1732
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
ponywolf/ponyblitz
com/ponywolf/ponymenu.lua
1
5316
-- com.ponywolf.ponymenu -- Simple text UI that can respond to key -- events for desktop/joystick games local M = {} local function split(line, separator) line = line or "" separator = separator or "," local items = {} local i=1 for str in string.gmatch(line, "([^"..separator.."]+)") do items[i] = st...
mit
keyidadi/luci
modules/base/luasrc/sgi/uhttpd.lua
54
2488
--[[ LuCI - Server Gateway Interface for the uHTTPd server 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/LICENS...
apache-2.0
AliKhodadad/Dark-Boys
plugins/service_entergroup.lua
355
3585
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
fredericjoanis/Argorha-Pathfinding
extern/premake/actions/vstudio/vs2005_csproj.lua
19
7974
-- -- vs2005_csproj.lua -- Generate a Visual Studio 2005/2008 C# project. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- -- -- Set up namespaces -- premake.vstudio.cs2005 = { } local vstudio = premake.vstudio local cs2005 = premake.vstudio.cs2005 -- -- Figure out what elements a particular ...
mit
fredericjoanis/Argorha-Pathfinding
extern/premake/actions/example/_example.lua
32
3632
-- Define a namespace for my new action. The second line defines an alias that I -- can use in this file, saving myself some typing. It will not be visible outside -- of this file (though I can always define it again). premake.example = { } local example = premake.example -- The description of the action. Note th...
mit
Shayan123456/botttttt2
bot/creedbot.lua
1
15929
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
slayerrensky/luci
protocols/luci-proto-ipv6/luasrc/model/network/proto_6x4.lua
63
1066
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local _, p for _, p in ipairs({"6in4", "6to4", "6rd"}) do local proto = netmod:register_protocol(p) function proto.get_i18n(self) if p == "6in4" then return luci.i18n....
apache-2.0
sysuzhang/arcemu
src/scripts/lua/LuaBridge/AUCHINDOUN/SHADOW_LABYRINTH/murmur.lua
13
3619
--?!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..".MURMUR",package.seeall) local self = getfenv(1) function OnSpaw...
agpl-3.0
HiT-Hi-FiT-Hai/ptokax-scripts
infobot.lua
4
20670
--[[ This file is part of HiT Hi FiT Hai's PtokaX scripts Copyright: © 2014 HiT Hi FiT Hai group Licence: GNU General Public Licence v3 https://www.gnu.org/licenses/gpl-3.0.html --]] function OnStartup() tCfg = { sBotName = "[BOT]Info", sBotDescription = "All informatory works are performed.", sBotEmail =...
gpl-3.0
TeslaCloud/TTTRewrite
terrortown/entities/entities/ttt_damageowner.lua
3
1170
ENT.Type = "point" ENT.Base = "base_point" ENT.Damager = nil ENT.KillName = nil function ENT:KeyValue(key, value) if key == "damager" then self.Damager = tostring(value) elseif key == "killname" then self.KillName = tostring(value) end end function ENT:AcceptInput(name, activator, caller, data)...
mit
padrinoo/padrino85
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
Telewildv4/Telewildv4bot
plugins/robot.lua
292
1641
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
satta/annot-nf
bin/cufflinks_to_hints.lua
4
3065
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2015-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
rdelval/likwid
src/applications/likwid-genTopoCfg.lua
10
4445
#!<PREFIX>/bin/likwid-lua --[[ * ======================================================================================= * * Filename: likwid-genTopoCfg.lua * * Description: A application to create a file of the underlying system configuration * that is used by likwid to avoid read...
gpl-3.0
keyidadi/luci
libs/nixio/docsrc/nixio.Socket.lua
157
6508
--- Socket Object. -- Supports IPv4, IPv6 and UNIX (POSIX only) families. -- @cstyle instance module "nixio.Socket" --- Get the local address of a socket. -- @class function -- @name Socket.getsockname -- @return IP-Address -- @return Port --- Get the peer address of a socket. -- @class function -- @name Socket.getpe...
apache-2.0
cyfdecyf/luanet
ffi/sys.lua
1
7544
local ffi = require 'ffi' local C = ffi.C local bit = require 'bit' local log = require 'luanet.log' local class = require 'pl.class' --[[ Note for network address: sockaddr means struct sockaddr in C, created by ffi library. --]] -- It's better to require os specific struct and typedef first before calling -- cdef f...
mit
Kyrremann/GlobalGameJam2015
levels.lua
1
2103
return { { title = "What to do now?", goal = "Record giraffe movement with the arrows.\n'Right' start the record, release to start the movements!\nCan you stop at the yellow flag?", map = { { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 2}, {11...
gpl-3.0
Oliveryo/Interface
AddOns/BigWigs/Raids/ZG/Jeklik.lua
1
17937
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["High Priestess Jeklik"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) ---------------------------- -- Localization -- ---------------------------- L:Register...
gpl-3.0
slayerrensky/luci
modules/luci-base/luasrc/sgi/cgi.lua
81
1688
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. exectime = os.clock() module("luci.sgi.cgi", package.seeall) local ltn12 = require("luci.ltn12") require("nixio.util") require("luci.http") require("luci.sys") require("luci.dispatcher") -- Limited source to av...
apache-2.0
jie-meng/Lunar
publish/tools/lunar/update_lunar_plugins.lua
2
2806
--[[ To run this script, you should have svn command line installed on your system. For windows, you can install tortoisesvn with its command line]] print('Are you sure to replace extension.lua which may change your current settings? (y/n)\n') local is_update_exetension_lua = io.read() local fpath, _ = util.split...
gpl-2.0
satta/companion
bin/map_clusters_gff.lua
4
4117
#!/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
NerdWalletOSS/Q
OPERATORS/MK_COL/test/test_mkcol.lua
1
1235
-- FUNCTIONAL local Q = require 'Q' require 'Q/UTILS/lua/strict' local mk_col = require 'Q/OPERATORS/MK_COL/lua/mk_col' local convert_c_to_txt = require 'Q/UTILS/lua/C_to_txt' local tests = {} tests.t1 = function() -- input table of values 1,2,3 of type I4, given to mk_col local col = mk_col({1,3,4}, "I4") asser...
mit