repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
NPLPackages/paracraft
script/kids/3DMapSystemApp/worlds/RegionMonitor.lua
1
2817
--[[ Title: RegionMonitor Author(s): Leio Date: 2009/9/26 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/kids/3DMapSystemApp/worlds/RegionMonitor.lua"); local regionMonitor = Map3DSystem.App.worlds.RegionMonitor:new(); --regionMonitor:AddEventListener("moveable",...
gpl-2.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/metropolis_torso_rifle_walk_4.meta.lua
2
2804
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 0.43000000715255737, amplification = 140, light_colors = { "89 31 168 255", "48 42 88 255", "61 16 123 0" }, radius = { x = 80, y = 80 }, standard_deviati...
agpl-3.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/console_light_2.meta.lua
6
2024
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "95 205 228 255", "0 211 255 255", "0 255 255 255", "0 255 255 255", "0 255 255 255", "92 172 172 255" }, radius = { ...
agpl-3.0
StarChasers/LuPI2
src/lua/core/internet.lua
1
4352
local internet = {} function internet.start() local component = {} --Legacy function component.isHttpEnabled() return true end function component.isTcpEnabled() return true end --Old TCP function component.connect(address, port) checkArg(1, address, "string") checkArg(2, port, "numbe...
mit
pakoito/ToME---t-engine4
game/engines/default/engine/interface/ActorFOV.lua
3
7761
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version....
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Port_Jeuno/npcs/Kochahy-Muwachahy.lua
1
4372
----------------------------------- -- Area: Port Jeuno -- NPC: Kochahy-Muwachahy -- @zone 246 -- @pos 40 0 6 -- X Grant Signet -- Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points...
gpl-3.0
tarantool/luarocks
src/luarocks/core/dir.lua
2
1287
local dir = {} local require = nil -------------------------------------------------------------------------------- --- Describe a path in a cross-platform way. -- Use this function to avoid platform-specific directory -- separators in other modules. Removes trailing slashes from -- each component given, to avoid re...
mit
CerNerCompany/Anti-Spam
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
lgpl-2.1
salehvw0011/stfbot
plugins/Arabic_Lock.lua
22
1379
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/blocks/BlockFence.lua
1
1551
--[[ Title: Fence Based Block Author(s): LiXizhi Date: 2013/12/13 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/blocks/BlockFence.lua"); local block = commonlib.gettable("MyCompany.Aries.Game.blocks.BlockFence") ----------------------------...
gpl-2.0
madpilot78/ntopng
scripts/lua/modules/conf_handlers/netplan.lua
1
5547
-- -- (C) 2013-21 - ntop.org -- local sys_utils = require("sys_utils") local ipv4_utils = require("ipv4_utils") local config = {} -- ################################################################ local NEDGE_NETPLAN_CONF = "20-nedge.yaml" local CLOUD_DIRECTORY = "/etc/cloud/cloud.cfg.d" local CLOUD_DISABLED_FNAME...
gpl-3.0
madpilot78/ntopng
scripts/plugins/alerts/network/threshold_cross/checks/network/inner.lua
1
1114
-- -- (C) 2019-21 - ntop.org -- local alerts_api = require("alerts_api") local alert_consts = require("alert_consts") local checks = require("checks") local script = { -- Script category category = checks.check_categories.network, default_enabled = false, default_value = { operator = "gt", threshol...
gpl-3.0
madpilot78/ntopng
scripts/plugins/alerts/security/flow_flood/checks/network/flow_flood_victim.lua
1
1227
-- -- (C) 2019-21 - ntop.org -- local alerts_api = require("alerts_api") local alert_consts = require("alert_consts") local checks = require("checks") local script = { -- Script category category = checks.check_categories.security, default_enabled = false, default_value = { operator = "gt", thres...
gpl-3.0
RyMarq/Zero-K
LuaRules/Configs/StartBoxes/TMA-0 v1_1.lua
17
1371
return { [0] = { startpoints = { {5816,3768}, }, boxes = { { {5571,3441}, {6062,3441}, {6062,4096}, {5571,4096}, }, }, }, [1] = { startpoints = { {7700,13189}, }, boxes = { { {7373,12943}, {8028,12943}, {8028,13435}, {7373,13435}, }, }, }, [2] = { ...
gpl-2.0
adde88/Nerdpack-Zylla
rotations/warrior/arms.lua
1
12926
local _, Zylla = ... local unpack = _G.unpack local NeP = _G.NeP local Mythic_Plus = _G.Zylla.Mythic_Plus local GUI = { unpack(Zylla.Logo_GUI), -- Header {type = 'header', size = 16, text = 'Keybinds', align = 'center'}, {type = 'checkbox', text = 'Left Shift: '..Zylla.ClassColor..'Paus...
mit
NPLPackages/paracraft
script/apps/Aries/mcml/pe_avatar.lua
1
49066
--[[ Title: avatar tag control(override the default mcml avatar tag) Author(s): WangTian Date: 2008/3/10 Revised: 2008/3/21 LiXizhi 2008/4/3 LiXizhi (fully implemented with MCML functions) Desc: pe:avatar is used to render the 3d avatar of a given user or just any avatar. one can use mouse to rotate and scale the avat...
gpl-2.0
Lleafll/sws-lleaf
libs/LibBabble-Inventory-3.0/LibStub/tests/test.lua
86
2013
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
mit
purebn/ShadowBot
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (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.i1...
gpl-2.0
Grocel/wire-extras
lua/wire/uwsvn/client/stringtochars.lua
2
1277
//----------------------------------------------------------------------------- // Name: CC_StringToChars // Desc: Converts a string or a single character into the appropriate character // codes, can output as a list of codes or a packet for the E-Gate. //------------------------------------------------------...
apache-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Code/CodeBlocklyGenerator.lua
1
12359
--[[ Title: CodeBlocklyGenerator Author(s): leio Date: 2018/6/17 Desc: the help functions for reading/writing blockly information use the lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Code/CodeBlocklyGenerator.lua"); local CodeBlocklyGenerator = commonlib.get...
gpl-2.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/modules/base/luasrc/controller/admin/servicectl.lua
76
1376
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- mo...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Selbina/npcs/Lombaria.lua
1
1902
----------------------------------- -- Area: Selbina -- NPC: Lombaria -- Map Seller NPC ----------------------------------- package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Selbina/textids"); require("scripts/global...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/globals/items/san_dorian_carrot.lua
1
1134
----------------------------------------- -- ID: 4389 -- Item: san_dorian_carrot -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
TerminalShell/zombiesurvival
entities/weapons/weapon_zs_turret/cl_init.lua
1
1342
include("shared.lua") SWEP.PrintName = "Gun Turret" SWEP.Description = "This automated turret requires constant upkeep to be useful.\nPress PRIMARY ATTACK to deploy the turret.\nPress SECONDARY ATTACK and RELOAD to rotate the turret.\nPress USE on a deployed turret to give it some of your SMG ammunition.\nPress USE on...
gpl-3.0
zhutaorun/2DPlatformer-SLua
Assets/StreamingAssets/Lua/LPeg/re.lua
160
6286
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local setmetatable = setmetatable local m = require"lpeg" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' ...
mit
pakoito/ToME---t-engine4
game/modules/tome/data/maps/vaults/crypt.lua
3
2578
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
persaianbot/self
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
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
78
2765
--[[ Luci configuration model for statistics - collectd netlink 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 Licen...
gpl-2.0
NPLPackages/paracraft
script/kids/3DMapSystemApp/Assets/DlgPackage.lua
1
4539
--[[ Title: create and edit package dialog. Note: can only be used with asset Manager Author(s): LiXizhi Date: 2008/1/31 use the lib: ------------------------------------------------------------ NPL.load("(gl)script/kids/3DMapSystemApp/Assets/DlgPackage.lua"); Map3DSystem.App.Assets.ShowCreatePackageDlg() Map3DSystem.A...
gpl-2.0
rigeirani/sss
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
madpilot78/ntopng
scripts/lua/modules/alert_definitions/other/alert_dropped_alerts.lua
1
1867
-- -- (C) 2019-21 - ntop.org -- -- ############################################## package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local other_alert_keys = require "other_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass!...
gpl-3.0
fegimanam/s
plugins/ingroup.lua
527
44020
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
Grocel/wire-extras
lua/autorun/widgets/rect.lua
3
1632
------------------------------------------------- Vertical Line ---------------------------------------------------------- panelWidget["rect"] = { name = "rect", realName = "Rectangle", wireType = 0, paramTable = { red = {index = 1, default = 120, realName = "Red:", stool = {stype = 1, smin = 1, smax = 255, ...
apache-2.0
artynet/openwrt-packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua
78
1115
#!/usr/bin/lua local json = require "cjson" local function interpret_suffix(rate) local value = string.sub(rate, 1, -2) local suffix = string.sub(rate, -1) if suffix == "K" then return tonumber(value) * 10^3 end if suffix == "M" then return tonumber(value) * 10^6 end if suffix == "G" then return tonumber(va...
gpl-2.0
madpilot78/ntopng
scripts/plugins/endpoints/sqlite_alert_endpoint/alert_endpoints/sqlite.lua
1
3263
-- -- (C) 2021 - ntop.org -- package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path require "lua_utils" local json = require "dkjson" local alerts_api = require "alerts_api" local alert_consts = require "alert_consts" local sqlite = { name = "SQLite", builtin = true, -- Whe...
gpl-3.0
lingchenmsot/OpenObjectRecognition
DeepMask/trainMeters.lua
3
3828
--[[---------------------------------------------------------------------------- Copyright (c) 2016-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...
apache-2.0
RyMarq/Zero-K
units/hoverminer.lua
1
3188
return { hoverminer = { unitname = [[hoverminer]], name = [[Dampener]], description = [[Minelaying Hover]], acceleration = 0.2175, brakeRate = 2.05, buildCostMetal = 200, builder = false, buildPic = [[hoverminer.png]], canG...
gpl-2.0
mpwillson/mal
lua/reader.lua
14
3968
local rex = require('rex_pcre') local string = require('string') local table = require('table') local types = require('types') local throw, Nil, Symbol, List = types.throw, types.Nil, types.Symbol, types.List local M = {} Reader = {} function Reader:new(tokens) local newObj = {tok...
mpl-2.0
madpilot78/ntopng
scripts/lua/country_details.lua
1
2441
-- -- (C) 2013-21 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local graph_utils = require "graph_utils" local page_utils = require("page_utils") local country = _GET["country"] local page = _GET["page"] int...
gpl-3.0
abasshacker/abbasgh
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
Grocel/wire-extras
lua/weapons/gmod_tool/stools/wire_adv_hud_indicator_2.lua
2
5415
TOOL.Category = "Wire Extras/Visuals/Indicators" TOOL.Name = "Adv. Hud Indicator 2" TOOL.Command = nil TOOL.ConfigName = "" if ( CLIENT ) then language.Add( "Tool_wire_adv_hud_indicator_2_name", "Adv. HUD Indicator 2 ! (Wire)" ) language.Add( "Tool_wire_adv_hud_indicator_2_desc", "Spawns an Adv. HUD Indic...
apache-2.0
pakoito/ToME---t-engine4
game/engines/default/modules/boot/data/general/npcs/canine.lua
3
2339
-- ToME - Tales of Middle-Earth -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any la...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Code/CodePyToNplPage.lua
1
2272
--[[ Title: CodePyToNplPage Author(s): leio Date: 2019.9.24 Desc: checking convert python to npl codes this conversion is depend on https://github.com/tatfook/PyRuntime set command line args to test: pytonpl="true" use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Ari...
gpl-2.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/metropolis_torso_pistol_walk_4.meta.lua
2
2812
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 0.43000000715255737, amplification = 140, light_colors = { "89 31 168 255", "48 42 88 255", "61 16 123 0" }, radius = { x = 80, y = 80 }, standard_deviati...
agpl-3.0
RyMarq/Zero-K
LuaRules/Configs/StartBoxes/Sands of War v2.lua
8
15393
return { [0] = { nameLong = "East", nameShort = "E", startpoints = {{3811, 1916}}, boxes = { { {4095, 1565}, {4085, 1566}, {4074, 1568}, {4063, 1568}, {4053, 1567}, {4043, 1564}, {4032, 1560}, {4021, 1555}, {4011, 1549}, {4000, 1541}, {3990, 1533}, {3980, 1523...
gpl-2.0
vince06fr/prosody-modules
mod_onions/mod_onions.lua
4
8148
local prosody = prosody; local core_process_stanza = prosody.core_process_stanza; local wrapclient = require "net.server".wrapclient; local s2s_new_outgoing = require "core.s2smanager".new_outgoing; local initialize_filters = require "util.filters".initialize; local st = require "util.stanza"; local portmanager = req...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Spire_of_Vahzl/Zone.lua
1
1123
----------------------------------- -- -- Zone: Spire_of_Vahzl -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil; require("scripts/zones/Spire_of_Vahzl/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
madpilot78/ntopng
scripts/lua/pod_details.lua
1
2104
-- -- (C) 2013-21 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local graph_utils = require "graph_utils" local page_utils = require("page_utils") local format_utils = require("format_utils") local pod = _GET[...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Lower_Jeuno/npcs/Yatniel.lua
1
1030
----------------------------------- -- Area: Lower Jeuno -- NPC: Yatniel -- Type: Standard NPC -- @zone: 245 -- @pos: -66.817 -7 -126.594 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; -------------------...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/gfx/particles/lightning.lua
3
2502
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/modules/base/luasrc/sgi/cgi.lua
87
2260
--[[ LuCI - SGI-Module for CGI Description: Server Gateway Interface for CGI 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...
gpl-2.0
Lleafll/sws-lleaf
libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua
42
8139
--[[----------------------------------------------------------------------------- Slider Widget Graphical Slider, like, for Range values. -------------------------------------------------------------------------------]] local Type, Version = "Slider", 21 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
mit
flyzjhz/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-tinyproxy/luasrc/model/cbi/tinyproxy.lua
80
7364
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-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 htt...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Macros/MacroKeyPress.lua
1
6982
--[[ Title: Macro Key Press Author(s): LiXizhi Date: 2021/1/4 Desc: a macro for key(s) press. Use Lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Common/Macros.lua"); ------------------------------------------------------- ]] local MacroPlayer = commonlib.gett...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Port_Bastok/npcs/_6k9.lua
3
1083
----------------------------------- -- Area: Port Bastok -- NPC: Door: Arrivals Entrance -- @zone 236 -- @pos -80 1 -26 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zon...
gpl-3.0
pakoito/ToME---t-engine4
game/modules/tome/data/texts/unlock-chronomancer_temporal_warden.lua
3
1987
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ...
gpl-3.0
fyrchik/xlua
exercises/hamming/hamming_spec.lua
3
1320
local compute = require('hamming').compute describe('hamming', function () it('no difference between identical strands', function () assert.are.equals(0, compute('A', 'A')) end) it('long identical strands', function () assert.are.equals(0, compute('GGACTGA', 'GGACTGA')) end) it('complete hamming d...
mit
RyMarq/Zero-K
units/shieldraid.lua
1
3601
return { shieldraid = { unitname = [[shieldraid]], name = [[Bandit]], description = [[Medium-Light Raider Bot]], acceleration = 1.5, brakeRate = 2.4, buildCostMetal = 75, buildPic = [[shieldraid.png]], canGuard ...
gpl-2.0
RyMarq/Zero-K
LuaUI/Fonts/FreeMonoBold_12.lua
26
33818
-- $Id: FreeMonoBold_12.lua 3171 2008-11-06 09:06:29Z det $ local fontSpecs = { srcFile = [[Fonts/FreeMonoBold.ttf]], family = [[FreeMono]], style = [[Bold]], yStep = 13, height = 12, xTexSize = 256, yTexSize = 256, outlineRadius = 1, outlineWeight = 100, } local glyphs = {} glyphs[32] =...
gpl-2.0
RyMarq/Zero-K
effects/gundam_electric_explosion.lua
25
4463
-- electric_explosion return { ["electric_explosion"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], pos = [[r-10 r10, 0, r-...
gpl-2.0
RyMarq/Zero-K
LuaUI/Widgets/gui_chili_selections_and_cursortip.lua
1
73604
function widget:GetInfo() return { name = "Chili Selections & CursorTip v2", desc = "Chili Selection Window and Cursor Tooltip remade.", author = "GoogleFrog", -- (CarRepairer and jK orginal) date = "9 February 2017", license = "GNU GPL, v2 or later", layer = 0, enabled = true,...
gpl-2.0
RyMarq/Zero-K
effects/gundam_greencannonimpact.lua
25
7046
-- greencannonimpact -- yellowcannonimpact return { ["greencannonimpact"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 1, circlegrowth = 5.5, flashalpha = 0.8, flashsize = 120, ground = ...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Selbina/npcs/Jimaida.lua
1
1272
----------------------------------- -- Area: Selbina -- NPC: Jimaida -- Involved in Quests: Under the sea -- @zone 248 -- @pos -15 -2 -16 ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Selbina/TextIDs"] = nil; require("scripts/zones/Selbina/TextIDs"); ...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Northern_San_dOria/npcs/Nouveil.lua
1
2534
----------------------------------- -- Area: Northern San d'Oria -- NPC: Nouveil -- Quest NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); requi...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Windurst_Walls/npcs/Seven_of_Diamonds.lua
1
1044
----------------------------------- -- Area: Windurst Walls -- NPC: Seven of Diamonds -- Type: Standard NPC -- @zone: 239 -- @pos: 6.612 -3.5 278.553 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; -----...
gpl-3.0
mojab/.files
.config/awesome/vicious/contrib/sensors.lua
5
1740
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Greg D. <jabbas@jabbas.pl> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local io = { popen = io.popen } local setmetatable = setmetatable loca...
gpl-3.0
Grocel/wire-extras
lua/weapons/gmod_tool/stools/wire_painter.lua
4
5737
TOOL.Category = "Wire Extras/Visuals" TOOL.Name = "Painter" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Tab = "Wire" if ( CLIENT ) then language.Add( "Tool.wire_painter.name", "Painter Tool (Wire)" ) language.Add( "Tool.wire_painter.desc", "Spawns a decal painter for use with the wire system." ...
apache-2.0
RyMarq/Zero-K
LuaRules/Gadgets/unit_decloak_damaged.lua
2
10726
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Decloak when damaged", desc = "Decloaks units when they are damaged", author = "Google Frog", ...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/RedSummerCamp/RedSummerCampParentsPageDetailConfig.lua
1
5461
--[[ Title: RedSummerCampParentsPageDetailConfig Author(s): pbb Date: 2021/7/9 Desc: the parent's detail page for red summer camp 2021 Use Lib: ------------------------------------------------------- local RedSummerCampParentsPageDetailConfig = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/RedSummerCamp/RedSummer...
gpl-2.0
BinChengfei/openwrt-3.10.14
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
50
6053
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2012 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 o...
gpl-2.0
flyzjhz/witi-openwrt
package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
50
6053
--[[ Luci statistics - statistics controller module (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2012 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 o...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Code/HaqiDef/HaqiDef_Arena.lua
1
24399
--[[ Title: Block Pen Author(s): LiXizhi Date: 2020/2/16 Desc: use the lib: ------------------------------------------------------- ------------------------------------------------------- ]] NPL.export({ ----------------------- { type = "createArena", message0 = "法阵 名字%1 位置%2", arg0 = { { name = "name", ty...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Movie/ActorBlock.lua
1
5784
--[[ Title: block actor Author(s): LiXizhi Date: 2014/4/17 Desc: for recording and playing back of block creation and deletion. This is different from ActorBlocks, in that it will record one creation or deletion action per keyframe. This class is thus used by ActorNPC for block creation and deletion playback. use th...
gpl-2.0
Laterus/Darkstar-Linux-Fork
scripts/zones/RuAun_Gardens/Zone.lua
1
1120
----------------------------------- -- -- Zone: RuAun_Gardens -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; require("scripts/zones/RuAun_Gardens/TextIDs"); ----------------------------------- -- onInitialize ----...
gpl-3.0
Laterus/Darkstar-Linux-Fork
scripts/zones/Port_Windurst/npcs/Three_of_Clubs.lua
5
1038
----------------------------------- -- Area: Port Windurst -- NPC: Three of Clubs -- Type: Standard NPC -- @zone: 240 -- @pos: -7.238 -5 106.982 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; -----------...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Areas/BuilderDock.lua
1
5385
--[[ Title: The dock page Author(s): LiXizhi Date: 2012/12/28 Desc: There dock has 2 mode: one for editor and one for creator Use Lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Areas/BuilderDock.lua"); local BuilderDock = commonlib.gettable("MyCompany.Aries.C...
gpl-2.0
Aminrezaa/megareborn
plugins/groupmanager.lua
2
111852
local function modadd(msg) local hash = "gp_lang:"..msg.to.id local lang = redis:get(hash) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then if not lang then return '_#شما مدیر ربات نمیباشید!🍃_' else return '#شما مدیر ربات نمیباشید!🍃' end end ...
gpl-3.0
hfjgjfg/eli25
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
rigeirani/sss
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
lyzardiar/seal2d
libs/lua-socket/gem/test.lua
37
1081
function readfile(n) local f = io.open(n, "rb") local s = f:read("*a") f:close() return s end lf = readfile("t1lf.txt") os.remove("t1crlf.txt") os.execute("lua t1.lua < t1lf.txt > t1crlf.txt") crlf = readfile("t1crlf.txt") assert(crlf == string.gsub(lf, "\010", "\013\010"), "broken") gt = readfile("t2...
mit
Laterus/Darkstar-Linux-Fork
scripts/zones/Tahrongi_Canyon/npcs/Pucotte.lua
1
1224
----------------------------------- -- Area: Tahrongi Canyon -- NPC: Pucotte -- Chocobo Vendor ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action ----------------------------------- functio...
gpl-3.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/mcml/pe_mc_mcml.lua
1
3564
--[[ Title: MC Main Login Procedure Author(s): LiXizhi Company: ParaEnging Date: 2013.10.14 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Aries/Creator/Game/mcml/pe_mc_mcml.lua"); MyCompany.Aries.Game.mcml_controls.register_all(); ---------------------------...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/Dock/DockTipPage.lua
1
9801
--[[ Title: DockTipPage Author(s): leio Date: 2020/8/17 Desc: Use Lib: ------------------------------------------------------- local DockTipPage = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/Dock/DockTipPage.lua"); DockTipPage.GetInstance():PushGsid(888); DockTipPage.GetInstance():PushGsid(998,100); DockTipPag...
gpl-2.0
tempbottle/openlua
src/prototype.lua
2
11570
require("common.lua") require("list.lua") require("set.lua") --[[--------------------------------------------------- Rightside prototype inherits List --]]--------------------------------------------------- Rightside = List{} Rightside.__concat = List.__concat Rightside.__unm = List.__unm Rightside.__le = List.__le R...
mit
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Code/HaqiDef/Haqi.lua
1
3359
--[[ Title: Haqi Author(s): LiXizhi Date: 2020/4/7 Desc: Haqi Code block use the lib: ------------------------------------------------------- local Haqi = NPL.load("(gl)script/apps/Aries/Creator/Game/Code/HaqiDef/Haqi.lua"); ------------------------------------------------------- ]] local CodeBlockWindow = commonlib.ge...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Tasks/Quest/QuestSpecialCourse.lua
1
15067
--[[ Title: QuestSpecialCourse Author(s): yangguiyi Date: 2021/01/28 Desc: Use Lib: ------------------------------------------------------- local QuestSpecialCourse = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/Quest/QuestSpecialCourse.lua"); QuestSpecialCourse.Show(); --]] local QuestSpecialCourse = NPL.expor...
gpl-2.0
RyMarq/Zero-K
LuaRules/Configs/StartBoxes/Altored_Arctic.lua
8
18453
return { [0] = { boxes = { { {1340, 3389}, {1335, 3399}, {1336, 3410}, {1342, 3420}, {1353, 3425}, {1363, 3428}, {1374, 3429}, {1385, 3431}, {1395, 3433}, {1407, 3434}, {1417, 3437}, {1456, 3449}, {1510, 3472}, {1540, 3487}, {1576, 3503}, {1601, 3512...
gpl-2.0
NPLPackages/paracraft
script/apps/Aries/Creator/Game/Network/TunnelService/LobbyRoomInfo.lua
1
2425
--[[ Title: LobbyRoomInfo use the lib: ------------------------------------------------------- NPL.load("(gl)script/apps/Aries/Creator/Game/Network/TunnelService/LobbyRoomInfo.lua"); local LobbyRoomInfo = commonlib.gettable("MyCompany.Aries.Game.Network.LobbyRoomInfo"); local room_info = LobbyRoomInfo:new():init(room_...
gpl-2.0
RyMarq/Zero-K
LuaUI/Widgets/cmd_select_load.lua
2
6023
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Transport Load Double Tap", desc = "Matches selected tranaports and units when load is double ...
gpl-2.0
westredev/PTD
server/CTeam.lua
1
1870
class 'CTeam' function CTeam:__init(teamName) self.teamName = teamName self.members = {} self.spawnPoint = nil end function CTeam:SetName(name) self.teamName = name end function CTeam:GetName() return self.teamName end function CTeam:GetMembers() return self.members end function CTeam:...
mit
gleachkr/luakit
lib/adblock_chrome.lua
3
9101
--- Simple URI-based content filter - chrome page. -- -- This module allows you to configure the `adblock` module with a simple -- graphical webpage at <luakit://adblock/>. You can -- currently: -- -- - enable/disable the adblocker globally, and -- - enable/disable individual filter lists. -- -- The adblocker page al...
gpl-3.0
RyMarq/Zero-K
LuaUI/Widgets/unit_transport_ai.lua
1
32877
-- $Id: unit_transport_ai.lua 4460 2009-04-20 20:36:16Z licho $ include("keysym.lua") function widget:GetInfo() return { name = "Transport AI", desc = "Automatically transports units going to factory waypoint.\n" .. "Adds embark=call for transport and disembark=unload from transport command", ...
gpl-2.0
ghostry/openwrt-gmod
luci/luci-app-v2ray/luasrc/model/cbi/v2ray/outbound-list.lua
1
1277
-- Copyright 2019-2020 Xingwang Liao <kuoruan@gmail.com> -- Licensed to the public under the MIT License. local dsp = require "luci.dispatcher" local m, s, o m = Map("v2ray", "%s - %s" % { translate("V2Ray"), translate("Outbound") }) m:append(Template("v2ray/import_outbound")) s = m:section(TypedSection, "outbound"...
apache-2.0
vince06fr/prosody-modules
mod_privacy_lists/mod_privacy_lists.lua
32
15782
-- Prosody IM -- Copyright (C) 2009-2014 Matthew Wild -- Copyright (C) 2009-2014 Waqas Hussain -- Copyright (C) 2009 Thilo Cestonaro -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- module:add_feature("jabber:iq:privacy"); local st = require "util....
mit
Laterus/Darkstar-Linux-Fork
scripts/globals/items/bretzel.lua
1
1237
----------------------------------------- -- ID: 4391 -- Item: Bretzel -- Food Effect: 3Min, All Races ----------------------------------------- -- Magic % 8 -- Magic Cap 55 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); -----------------------------------------...
gpl-3.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/water_surface_20.meta.lua
66
1953
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "122 171 252 255", "118 168 252 255", "103 159 251 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 ...
agpl-3.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/water_surface_5.meta.lua
66
1953
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "122 171 252 255", "118 168 252 255", "103 159 251 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 ...
agpl-3.0
TeamHypersomnia/Hypersomnia
hypersomnia/content/gfx/water_surface_18.meta.lua
66
1953
return { extra_loadables = { enabled_generate_neon_map = { alpha_multiplier = 1, amplification = 60, light_colors = { "122 171 252 255", "118 168 252 255", "103 159 251 255" }, radius = { x = 80, y = 80 }, standard_deviation = 6 ...
agpl-3.0
madpilot78/ntopng
scripts/lua/rest/v2/get/all/alert/ts.lua
2
1609
-- -- (C) 2013-21 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path local alert_utils = require "alert_utils" local alert_consts = require "alert_consts" ...
gpl-3.0