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
MustaphaTR/OpenRA
mods/d2k/maps/harkonnen-02b/harkonnen02b-AI.lua
7
1363
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
chelog/brawl
addons/brawl-weapons/lua/weapons/khr_sr1m/shared.lua
1
6194
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") SWEP.magType = "pistolMag" CustomizableWeaponry:registerAmmo("9x21MM", "9x21MM Gyurza", 9, 21) if CLIENT then SWEP.DrawCrosshair = false SWEP.PrintName = "SR-1M" SWEP.CSMuzzleFlashes = true SWEP.IconLetter = "y" killicon.Ad...
gpl-3.0
soundsrc/premake-core
tests/config/test_targetinfo.lua
3
5365
-- -- tests/config/test_targetinfo.lua -- Test the config object's build target accessor. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("config_targetinfo") local config = p.config -- -- Setup and teardown -- local wks, prj function suite.setu...
bsd-3-clause
qq779089973/ramod
luci/applications/luci-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua
76
1905
--[[ LuCI - Lua Configuration Interface Copyright 2011 Manuel Munz <freifunk at somakoma 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 ]]-- local...
mit
soundsrc/premake-core
src/tools/gcc.lua
1
12916
--- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2015 Jason Perkins and the Premake project --- local p = premake p.tools.gcc = {} local gcc = p.tools.gcc local project = p.project local config = p.config -- -- Returns list of C preprocessor flags for a configuration. -- ...
bsd-3-clause
gwx/tome-grayswandir-weaponry
data/egos/rapiers.lua
1
4073
load('/data/general/objects/egos/weapon.lua') -- Make plain weapon egos rarer. for i, ego in ipairs(loading_list) do if ego.rarity then ego.rarity = ego.rarity * 2 end end local stat = require 'engine.interface.ActorStats' if config.settings.tome.grayswandir_weaponry_new_egos ~= false then newEntity { power_so...
gpl-3.0
charithag/iot-server-samples
watertank/feature/feature/src/main/resources/agent/water-tank.lua
3
3312
trig = 5 --IO14 echo = 1 --IO5 relay = 0 --IO16 is_relay_on = "false" pulse_time = 0 water_level = -1 relay_on = 10 relay_off = 80 tank_height = 100 client_connected = false m = mqtt.Client("ESP8266-" .. node.chipid(), 120, "${DEVICE_TOKEN}", "") function save_config() file.open("config", "w+") file.writeline...
apache-2.0
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/netbsd/ioctl.lua
24
9458
-- ioctls, filling in as needed local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(types) l...
apache-2.0
LaFamiglia/Illarion-Content
item/skull.lua
1
17158
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
danielga/xcomms
lua/xcomms/core.lua
1
4281
require("enet") require("pack") xcomms = xcomms or { initialized = false, protocol = 1, whitelist = {}, address = "*", port = 50000, peers = {}, maxpeers = 5, callbacks = {} } local xcomms = xcomms local assert, type, tostring = assert, type, tostring local table_insert, table_remove = table.insert, table.rem...
bsd-3-clause
MustaphaTR/OpenRA
mods/cnc/maps/funpark01/scj01ea.lua
4
2518
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
luiseduardohdbackup/WarriorQuest
WarriorQuest/runtime/ios/PrebuiltRuntimeLua.app/mime.lua
149
2487
----------------------------------------------------------------------------- -- MIME support for the Lua language. -- Author: Diego Nehab -- Conforming to RFCs 2045-2049 ----------------------------------------------------------------------------- ----------------------------------------------------------------------...
mit
enulex/skynet
service/debug_console.lua
12
5894
local skynet = require "skynet" local codecache = require "skynet.codecache" local core = require "skynet.core" local socket = require "socket" local snax = require "snax" local port = tonumber(...) local COMMAND = {} local function format_table(t) local index = {} for k in pairs(t) do table.insert(index, k) end...
mit
bsmr-games/lipsofsuna
data/lipsofsuna/core/ai/combat/ranged.lua
1
1312
local AiActionSpec = require("core/specs/aiaction") AiActionSpec{ name = "ranged", categories = {["combat"] = true, ["offensive"] = true}, calculate = function(self, args) -- Make sure that the actor can use ranged. if not args.attack then return end if not args.spec.can_ranged then return end -- Check for ...
gpl-3.0
qq779089973/ramod
luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua
80
2136
--[[ 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...
mit
RedSnake64/openwrt-luci-packages
applications/luci-app-firewall/luasrc/model/cbi/firewall/rule-details.lua
44
7815
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sys = require "luci.sys" local utl = require "luci.util" local dsp = require "luci.dispatcher" local nxo = require "nixio" local ft = require "luci...
apache-2.0
UberWaffe/OpenRA
lua/scriptwrapper.lua
1
1108
environment = {} -- Reset package path package.path = "./lua/?.lua;./mods/common/lua/?.lua" -- Note: sandbox has been customized to remove math.random local sandbox = require('sandbox') local stp = require('stacktraceplus') local PrintStackTrace = function(msg) return stp.stacktrace("", 2) .. "\nError message\n====...
gpl-3.0
qq779089973/ramod
luci/applications/luci-asterisk/luasrc/asterisk.lua
80
18044
--[[ LuCI - Lua Configuration Interface Asterisk PBX interface library 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://www.apache.org/licen...
mit
ashkanpj/seedfire
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
eagle14/Snippy
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
jackkkk21/jackkbot
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
Death15/swatch
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
facebokiii/arman
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
Inorizushi/DDR-X3
Graphics/ScreenGameplay LifeFrame/X3.lua
1
2422
-- gameplay life frame -- The math.floor(10000*aspect) trick is used to circumvent float precision problems. local aspectRatioSuffix = { [math.floor(10000*4/3)] = " 4_3", [math.floor(10000*16/9)] = " 16_9", [math.floor(10000*16/10)] = " 16_9" } --fall back on the 4:3 frame if we don't know about this aspect...
mit
bsmr-games/lipsofsuna
data/lipsofsuna/core/introspect/types/list.lua
1
1285
return { name = "list", equals = function(self, val1, val2) local len1 = #val1 local len2 = #val2 if len1 ~= len2 then return end for k,v in ipairs(val1) do if v ~= val2[k] then return end end return true end, validate = function(self, val, field) local t = self.types_dict[field.list.type] for k,...
gpl-3.0
Shayan123456/botttttt5
plugins/spammer.lua
86
65983
local function run(msg) if msg.text == "[!/]killwili" then return "".. [[ kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh...
gpl-2.0
Noltari/luci
modules/luci-mod-rpc/luasrc/jsonrpc.lua
75
1979
-- 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. module("luci.jsonrpc", package.seeall) require "luci.json" function resolve(mod, method) local path = luci.util.split(method, ".") for j=1, #path-1 do i...
apache-2.0
bsmr-games/lipsofsuna
data/lipsofsuna/arena/arena.lua
1
3315
--- Arena subgame. -- -- Lips of Suna is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of the -- License, or (at your option) any later version. -- -- @module arena.arena -- @alias Are...
gpl-3.0
mtmail/Nominatim
settings/flex-base.lua
1
10030
-- Core functions for Nominatim import flex style. -- -- The single place table. place_table = osm2pgsql.define_table{ name = "place", ids = { type = 'any', id_column = 'osm_id', type_column = 'osm_type' }, columns = { { column = 'class', type = 'text', not_null = true }, { column = 'type'...
gpl-2.0
hnyman/luci
applications/luci-app-tinyproxy/luasrc/model/cbi/tinyproxy.lua
2
7232
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("tinyproxy", translate("Tinyproxy"), translate("Tinyproxy is a small and fast non-caching HTTP(S)-Proxy")) s = m:section(TypedSection, "tinyprox...
apache-2.0
chegenipapi/sajadchegen
bot/bot.lua
1
6684
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
Hzj-jie/koreader-base
thirdparty/lua-ljsqlite3/xsys.lua
3
1515
-------------------------------------------------------------------------------- -- Taken from xsys repo at commit: 87df92c -- -- A general purpose library that extends Lua standard libraries. -- -- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilu...
agpl-3.0
shahabsaf1/copy-infernal
plugins/RAE.lua
15
1313
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
Zenolisk/Rebellion
entities/entities/reb_grenade_exp_ent.lua
1
1685
AddCSLuaFile() ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Grenade_Ent" ENT.Author = "Zenolisk" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = true ENT.Category = "Rebellion" if SERVER then function ENT:Initialize() -- Boiler plate self.Entity:SetModel( ...
mit
skatsuta/aerospike-training
book/answers/Key-valueOperations/Go/udf/basic.lua
9
1121
function get_all_factors(number) -- function definition local factors = {} -- local variable definition for possible_factor=1, math.sqrt(number), 1 do -- for loop local remainder = number%possible_factor -- assignment (% if remainder == 0 then ...
mit
qq779089973/ramod
luci/modules/admin-full/luasrc/controller/admin/network.lua
55
11556
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
mit
Synk0/DBTeam
lang/persian_lang.lua
28
27938
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
ArianWatch/SportTG
plugins/ingroup.lua
1
44430
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
BrasileiroGamer/TrineEE_TranslationTools
translations/portuguese/lua/data/locale/gui/pt/menu/mainmenu/microphonesettingsmenu.lua
1
1159
-- /data/locale/gui/$$/menu/mainmenu/microphonesettingsmenu.lua headerMain = "Configurações do Chat de Voz" valueOn = "Ligado" valueOff = "Desligado" valuePushToTalk = "Apertar para Falar" valueAlwaysOn = "Sempre Ligado" buttonMode = " - Modo de Entrada" buttonReceive = "Receber Voz" buttonSend = "Tran...
gpl-3.0
snabbnfv-goodies/snabbswitch
lib/ljsyscall/syscall/methods.lua
18
7907
-- this creates types with methods -- cannot do this in types as the functions have not been defined yet (as they depend on types) -- well we could, by passing in the empty table for S, but this is more modular local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall...
apache-2.0
MustaphaTR/OpenRA
mods/d2k/maps/atreides-03b/atreides03b-AI.lua
7
1514
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
gligneul/fahrenheit
tests/cmpjmp.lua
1
8709
-- MIT License -- -- Copyright (c) 2017 Gabriel de Quadros Ligneul -- -- 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 u...
mit
gwx/tome-grayswandir-weaponry
superload/mod/class/Object.lua
1
5414
local _M = loadPrevious(...) function _M:descAccuracyBonus(desc, weapon, use_actor) use_actor = use_actor or game.player local showpct = function(v, mult) return ('+%0.1f%%'):format(v * mult) end local m = weapon.accuracy_effect_scale or 1 local strength strength = use_actor:getAccuracyEffectStrength(weap...
gpl-3.0
bsmr-games/lipsofsuna
data/unittest/tests/vector.lua
1
1492
Unittest:add(1, "system", "vector", function() local Vector = require("system/math/vector") -- Addition. local vec = Vector(1, 100) + Vector(5,5,5) assert(vec.x == 6 and vec.y == 105 and vec.z == 5) -- Normalization. assert(math.abs(1-vec:normalize().length) < 0.0001) -- Scalar multiplication. local a = Vector(...
gpl-3.0
dismantl/luci-0.12
applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua
76
1274
--[[ LuCI - Lua Configuration Interface Copyright 2019 John Crispin <blogic@openwrt.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
archipoeta/eso-macropoetry
lib/LibAddonMenu-1.0.lua
3
14302
local MAJOR, MINOR = "LibAddonMenu-1.0", 6 local lam, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not lam then return end --the same or newer version of this lib is already loaded into memory --UPVALUES-- lam.lastAddedControl = {} local lastAddedControl = lam.lastAddedControl local wm = GetWindowManager() local st...
gpl-2.0
dismantl/luci-0.12
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua
80
1274
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.controller.l...
apache-2.0
bsmr-games/lipsofsuna
data/unittest/tests/lipsofsuna/model-manager.lua
1
1191
Unittest:add(1, "lipsofsuna", "model manager", function() local ModelManager = require("main/model-manager") -- Initialization. local mgr = ModelManager() assert(tostring(mgr) == "data:ModelManager") for k,v in pairs(mgr.models_by_name) do assert(false) end -- Model loading. local tmp = setmetatable({}, {__mo...
gpl-3.0
nort-ir/nort
bot/seedbot.lua
1
9200
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
raedwulf/perceptio
examples/demo.lua
1
28963
------------------------------------------------------------------------------ -- Demo program for perceptio -- @release Perceptio (C) 2011-2012 University of York -- Please see LICENSE for details of the BSD license. ------------------------------------------------------------------------------ -- need to specify whe...
bsd-3-clause
jsenellart-systran/OpenNMT
tools/translation_server.lua
7
2596
local zmq = require("zmq") local json = require("dkjson") require('onmt.init') local cmd = onmt.utils.ExtendedCmdLine.new('translation_server.lua') local options = { { '-host', '127.0.0.1', [[Host to run the server on.]] }, { '-port', '5556', [[Port to run the server on.]] } } cmd:setCmdLine...
mit
qq779089973/ramod
luci/modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua
85
2658
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
mit
Noltari/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd.lua
5
17192
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "luci.util" local ip = require "luci.ip" local has_ipip = fs.glob("/etc/mo...
apache-2.0
chegenipapi/sajadchegen
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
qq779089973/ramod
luci/protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
53
1276
--[[ 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...
mit
wolfg1969/nodemcu-weather-station
display.lua
1
1179
local display = {} local disp display.init = function(oledAddr) disp = u8g.ssd1306_128x64_i2c(oledAddr) end function draw(data) local y = 0 -- font options are font_10x20r,font_6x10,font_9x18r,font_helvR18r,font_helvR24 -- create a new build with more options at http://frightanic.com/nodemcu-custom...
mit
qq779089973/ramod
luci/libs/web/luasrc/http/protocol/conditionals.lua
88
4757
--[[ HTTP protocol implementation for LuCI - RFC2616 / 14.19, 14.24 - 14.28 (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 at ...
mit
vladimir-kotikov/clink-completions
completions/robocopy.lua
1
3726
-------------------------------------------------------------------------------- -- Clink argmatcher for Robocopy. -- Uses delayinit to parse the Robocopy help text. local clink_version = require('clink_version') if not clink_version.supports_argmatcher_delayinit then print("robocopy.lua argmatcher requires a newe...
mit
bsmr-games/lipsofsuna
data/lipsofsuna/core/server/util.lua
1
7095
--- TODO:doc -- -- Lips of Suna is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of the -- License, or (at your option) any later version. -- -- @module core.server.util -- @alias Util...
gpl-3.0
qq779089973/ramod
luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua
80
1455
--[[ Luci configuration model for statistics - collectd unixsock 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...
mit
facebokiii/arman
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
Nexela/autofill
stdlib/defines/color.lua
2
6296
--- A defines module for retrieving colors by name. -- Extends the Factorio defines table. -- @usage require('stdlib/defines/color') -- @module defines.color -- @see Concepts.Color -- defines table is automatically required in all mod loading stages. -- luacheck: ignore 122/defines -- Ignore assigning to read only def...
mit
hnyman/luci
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
9
2110
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. local dsp = require "luci.dispatcher" local nixio = require "nixio" m = Map("ocserv", translate("OpenConnect VPN")) if m.uci:get("ocserv", "config", "auth") == "plain" then --[[Users]]-...
apache-2.0
sobrinho/busted
busted/core.lua
3
7572
local getfenv = require 'busted.compatibility'.getfenv local setfenv = require 'busted.compatibility'.setfenv local unpack = require 'busted.compatibility'.unpack local path = require 'pl.path' local pretty = require 'pl.pretty' local throw = error local failureMt = { __index = {}, __tostring = function(e) return ...
mit
snabbnfv-goodies/snabbswitch
lib/ljsyscall/test/linux.lua
18
72427
-- Linux specific tests local function init(S) local helpers = require "syscall.helpers" local abi = S.abi local types = S.types local c = S.c local util = S.util local bit = require "syscall.bit" local ffi = require "ffi" local nr = require "syscall.linux.nr" local jit if pcall(require, "jit") then jit = require ...
apache-2.0
gabyx/CudaFramework
external/pugixml/scripts/premake4.lua
15
2468
-- Reset RNG seed to get consistent results across runs (i.e. XCode) math.randomseed(12345) local static = _ARGS[1] == 'static' local action = premake.action.current() if string.startswith(_ACTION, "vs") then if action then -- Disable solution generation function action.onsolution(sln) sln.vstudio_c...
gpl-3.0
Lexicality/evocity-lift
lua/entities/gmod_evolift/cl_init.lua
1
2193
--[[ Evocity Lift Control Copyright (c) 2016 Lex Robinson This code is freely available under the MIT License --]] include("shared.lua"); DEFINE_BASECLASS(ENT.Base); ENT.RenderGroup = RENDERGROUP_TRANSLUCENT; ENT.Floors = false; function ENT:Think() if (not self.Floors) then local fnames = self:GetFloorNames(...
mit
hnyman/luci
libs/luci-lib-nixio/docsrc/nixio.lua
10
15827
--- 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
gligneul/fahrenheit
tests/binop.lua
1
4968
-- MIT License -- -- Copyright (c) 2017 Gabriel de Quadros Ligneul -- -- 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 u...
mit
AdamGagorik/darkstar
scripts/zones/Manaclipper/Zone.lua
32
1550
----------------------------------- -- -- Zone: Manaclipper -- ----------------------------------- package.loaded["scripts/zones/Manaclipper/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Manaclipper/TextIDs"); ----------------------------------- -- o...
gpl-3.0
hadirahimi1380/-AhRiMaN-
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
D-m-L/evonara
modules/libs/Peep/LoveFrames/objects/imagebutton.lua
3
7506
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- imagebutton object local newobject = loveframes.NewObject("imagebutton", "loveframes_object_imagebutton", true) --[[----...
mit
martin-ueding/vicious
widgets/os.lua
15
2143
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local pairs = pairs local tonumber = tonumber local io = { popen = io.popen } local math = {...
gpl-2.0
Hostle/luci
applications/luci-app-p910nd/luasrc/model/cbi/p910nd.lua
78
1340
-- Copyright 2008 Yanira <forum-2008@email.de> -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local uci = luci.model.uci.cursor_state() local net = require "luci.model.network" local m, s, p, b m = Map("p910nd", translate("p910nd - Printer server"), ...
apache-2.0
punisherbot/helper
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
Anarchid/Zero-K-Infrastructure
MissionEditor/MissionEditor2/MissionBase/LuaUI/Widgets/mission_camera_monitor.lua
9
1722
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Monitors Unit Camera", desc = "For the \"Unit Is Visible\" condition.", author =...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Riverne-Site_B01/npcs/Spatial_Displacement.lua
13
4818
----------------------------------- -- Area: Riverne Site #B01 -- NPC: Spacial Displacement ----------------------------------- ----------------------------------- -- onTrade ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- onTrigger ----------------...
gpl-3.0
talldan/lua-reactor
src/reactor/utils/funcUtils.lua
1
1072
local tableUtils = require('reactor.utils.tableUtils') local reduce = tableUtils.reduce local concat = tableUtils.concat local map = tableUtils.map local curryPlaceholder = {} local function compose(originalSource, ...) return reduce(function(func, _, source) return func(source) end, originalSource, {...}) end...
mit
AdamGagorik/darkstar
scripts/globals/items/skewer_of_m&p_chicken.lua
18
1375
----------------------------------------- -- ID: 5639 -- Item: Skewer of M&P Chicken -- Food Effect: 3Min, All Races ----------------------------------------- -- Strength 5 -- Intelligence -5 -- Attack % 25 -- Attack Cap 154 ----------------------------------------- require("scripts/globals/status"); ----------------...
gpl-3.0
kekobot/addfile
botLUA/keko.lua
1
1505
-- BY : @ikeko My file :@file_lua local action = function(msg, matches) if matches[1] == "start" then keyboard = {} keyboard.inline_keyboard = { { {text = "قنات السورس", url="https://t.me/botlua"}, }, { {text = "شرح سورس عله يوتيوب", url="https://youtu.be/W_hTq5Rrk_o"}, }, ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Xarcabard_[S]/Zone.lua
32
1259
----------------------------------- -- -- Zone: Xarcabard_[S] (137) -- ----------------------------------- package.loaded["scripts/zones/Xarcabard_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Xarcabard_[S]/TextIDs"); -----------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Lotte.lua
13
1421
----------------------------------- -- Area: Southern San d'Oria -- NPC: Lotte -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); r...
gpl-3.0
Anarchid/Zero-K-Infrastructure
MissionEditor/MissionEditor2/MissionBase/LuaUI/Widgets/mission_scoreindicator.lua
9
1419
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Mission Score", desc = "Displays mission score.", author = "quantum", date ...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/effects/accuracy_boost.lua
32
1029
----------------------------------- -- -- EFFECT_ACCURACY_BOOST -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_ACC,effect:getPower()); ...
gpl-3.0
TeleDALAD/test1
plugins/infofarsi.lua
4
9190
--[[ # # Show users information in groups # # author: Arian < @mohammad20162015 > # our channel: @persianguard2015 # Version: 2016-04-02 # # Features added: # -- setrank on reply # -- get users info with their IDs and @username # ]] do local Arian = 99530862 --put your id here(BOT OWNER ID) local function setrank(m...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Bastok_Mines/npcs/Sodragamm.lua
13
1104
----------------------------------- -- Area: Bastok Mines -- NPC: Sodragamm -- Type: Item Deliverer -- @zone: 234 -- @pos -24.741 -1 -64.944 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scrip...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/green_curry_bun.lua
18
1364
----------------------------------------- -- ID: 5756 -- Item: green_curry_bun -- Food Effect: 1hour, All Races ----------------------------------------- -- Vitality 1 -- Agility 2 -- Defense % 12 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- --...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/dokumori_ichi.lua
26
1205
----------------------------------------- -- Spell: Dokumori: Ichi ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,targ...
gpl-3.0
D-m-L/evonara
modules/libs/quickie/label.lua
15
2271
--[[ Copyright (c) 2012 Matthias Richter 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, merge, publish, distribu...
mit
AdamGagorik/darkstar
scripts/zones/Kazham/npcs/Pahya_Lolohoiv.lua
13
1355
----------------------------------- -- Area: Kazham -- NPC: Pahya Lolohoiv -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ...
gpl-3.0
hadirahimi1380/-AhRiMaN-
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Bhaflau_Thickets/TextIDs.lua
9
1158
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/mobskills/Ill_Wind.lua
33
1407
--------------------------------------------- -- Ill Wind -- Description: Deals Wind damage to enemies within an area of effect. Additional effect: Dispel -- Type: Magical -- Utsusemi/Blink absorb: Wipes Shadows -- Range: Unknown radial -- Notes: Only used by Puks in Mamook, Besieged, and the following Notorious ...
gpl-3.0
pczarn/kollos
components/main/kollos.c.lua
1
54167
--[[ This is meta-programming -- Lua code that writes C code. Meta-programming introduces a lot of additonal complexity for each line. It's often far more trouble than it is worth. But in this case, just one of its advantages, the automated generation of Lua wrappers for the libmarpa methods allows the elimination ...
mit
AdamGagorik/darkstar
scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Map.lua
13
1024
----------------------------------- -- Area: Silver_Sea_route_to_Al_Zahbi -- NPC: Map -- @pos 0.340 -12.232 -4.120 58 ----------------------------------- package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Silver_Sea_route_to_Al_Zahbi/...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Baya_Hiramayuh.lua
15
1435
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Baya Hiramayuh -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/FeiYin/npcs/Strange_Apparatus.lua
27
1124
----------------------------------- -- Area: FeiYin -- NPC: Strange Apparatus -- @pos -94 -15 220 204 ----------------------------------- package.loaded["scripts/zones/FeiYin/TextIDs"] = nil; require("scripts/zones/FeiYin/TextIDs"); require("scripts/globals/strangeapparatus"); ----------------------------------- --...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Yorcia_Weald/npcs/HomePoint#1.lua
27
1260
----------------------------------- -- Area: Yorcia Weald -- NPC: HomePoint#1 -- @pos -420 0 -62 263 ----------------------------------- package.loaded["scripts/zones/Yorcia_Weald/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Yorcia_Weald/TextIDs"); require("scripts/globals/homepoint")...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Metalworks/npcs/Naji.lua
26
5265
----------------------------------- -- Area: Metalworks -- NPC: Naji -- Involved in Quests: The doorman (finish), Riding on the Clouds -- Involved in Mission: Bastok 6-2 -- @pos 64 -14 -4 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; --------------------------------...
gpl-3.0
Air-Fighter/seq2seq4te
wordembedding.lua
1
4867
--[[ Loads word embeddings from text word2vec format. The loaded word embeddings are cached. --]] require("torch") require("pl") require("utils") torch.class("WordEmbedding") function WordEmbedding:__init(path) self.max_word_width = 1024 self.OOV_SYM = "<OOV>" self.SOS_SYM = "<SOS>" self.EOS_SYM...
apache-2.0