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 |
|---|---|---|---|---|---|
madpilot78/ntopng | scripts/lua/please_wait.lua | 1 | 3241 | --
-- (C) 2013-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- io.write ("Session:".._SESSION["session"].."\n")
require "lua_utils"
local page_utils = require("page_utils")
sendHTTPContentTypeHeader('text/html')
page_utils.print_header_minimal... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v1/get/host/alert/ts.lua | 2 | 1241 | --
-- (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 auth = require "auth"
local alert_utils = require "alert_utils"
local alert_cons... | gpl-3.0 |
salehvw0011/stfbot | plugins/FileManager.lua | 7 | 1132 | local function savefile(extra, success, result)
local msg = extra.msg
local name = extra.name
local adress = extra.adress
local receiver = get_receiver(msg)
if success then
local file = './'..adress..'/'..name..''
print('File saving to:', result)
os.rename(result, file)
print('File moved to:',... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/RuLude_Gardens/npcs/Neraf-Najiruf.lua | 1 | 2017 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Neraf-Najiruf
-- Involved in Quests: Save my Sister
-- @zone 243
-- @pos -36 2 60
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
p... | gpl-3.0 |
vince06fr/prosody-modules | mod_data_access/mod_data_access.lua | 32 | 4906 | -- HTTP Access to datamanager
-- By Kim Alvefur <zash@zash.se>
local t_concat = table.concat;
local t_insert = table.insert;
local jid_prep = require "util.jid".prep;
local jid_split = require "util.jid".split;
local test_password = require "core.usermanager".test_password;
local is_admin = require "core.usermanager".... | mit |
Max-pbot/Maxbot3 | plugins/banhammer.lua | 1 | 12244 |
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 |
RyMarq/Zero-K | units/turretemp.lua | 1 | 3744 | return { turretemp = {
unitname = [[turretemp]],
name = [[Faraday]],
description = [[EMP Turret]],
buildCostMetal = 250,
builder = false,
buildingGroundDecalDecaySpeed = 30,
buildingGroundDecalSizeX =... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/NplBrowser/NplBrowserManager.lua | 1 | 2686 | --[[
Title: NplBrowserManager
Author(s): leio
Date: 2020/6/24
Desc:
use the lib:
------------------------------------------------------------
local NplBrowserManager = NPL.load("(gl)script/apps/Aries/Creator/Game/NplBrowser/NplBrowserManager.lua");
NplBrowserManager:PreShowWnd(wndName, url)
NplBrowserManager:CreateOrG... | gpl-2.0 |
dwindow/dwindow | oem-3dvstar/dwindow/dwindow_UI/3dvplayer/render.lua | 1 | 11816 | local lua_file = core.loading_file
local lua_path = GetPath(lua_file)
volume_bar = BaseFrame:Create()
core.execute_luafile(lua_path .. "menu.lua")
setting.MAX_WIDTH = 746
setting.MAX_HEIGHT = 461
core.ApplySetting("MAX_WIDTH")
core.ApplySetting("MAX_HEIGHT")
local UI_fading_time = 300
local UI_show_time = 2000
local ... | gpl-3.0 |
vince06fr/prosody-modules | mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua | 20 | 2165 | local rostermanager = require "core.rostermanager";
local jid = require "util.jid";
local st = require "util.stanza";
local core_post_stanza = prosody.core_post_stanza;
local function handle_inbound_subscription_request(origin, stanza)
local to_bare, from_bare = jid.bare(stanza.attr.to), jid.bare(stanza.attr.from);
... | mit |
SlNPacifist/ProDBG | bin/macosx/tundra/scripts/tundra/tools/dotnet.lua | 28 | 1125 | module(..., package.seeall)
local frameworkDir = "c:\\Windows\\Microsoft.NET\\Framework"
local defaultFrameworkVersion = "v3.5"
function apply(env, options)
tundra.unitgen.load_toolset("generic-dotnet", env)
local version = options and assert(options.Version) or defaultFrameworkVersion
env:set_external_env_var... | mit |
madpilot78/ntopng | scripts/lua/modules/pools/mac_pools.lua | 1 | 1456 | --
-- (C) 2017-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
if ntop.isPro() then
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
end
local pools = require "pools"
local mac_pools = {}
-- ####... | gpl-3.0 |
akiss77/skia | tools/lua/bbh_filter.lua | 207 | 4407 | -- bbh_filter.lua
--
-- This script outputs info about 'interesting' skp files,
-- where the definition of 'interesting' changes but is roughly:
-- "Interesting for bounding box hierarchy benchmarks."
--
-- Currently, the approach is to output, in equal ammounts, the names of the files that
-- have most commands, and t... | bsd-3-clause |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/events/snowstorm.lua | 3 | 2172 | -- 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/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... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/mcml/keepwork/lessons_ppt/notes.lua | 1 | 1740 | --[[
Title:
Author(s): yangguiyi
Date: 2021/9/15
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/mcml/keepwork/lessons_ppt/notes.lua");
local notes = commonlib.gettable("MyCompany.Aries.Game.mcml.lessons_ppt.notes");
-----------------------------... | gpl-2.0 |
jsj2008/ValyriaTear | dat/maps/layna_village/layna_village_south_entrance_right_house_map.lua | 4 | 26503 | 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/building_interior_objects_01.lua"
map_data.tileset_filenames[2] = "dat/tile... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/get_dhcp_config.lua | 1 | 2731 | --
-- (C) 2017-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local json = require("dkjson")
local dhcp_utils = require("dhcp_utils")
require "lua_utils"
local ifid = _GET["ifid"]
-- Table parameters
local currentPage = _GET["currentPage"... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Tavnazian_Safehold/Zone.lua | 1 | 1131 | -----------------------------------
--
-- Zone: Tavnazian_Safehold
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-----------------------------------
-- onI... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/notifications/endpoints.lua | 1 | 19675 | --
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/recipients/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/toasts/?.lua;" .. package.path
... | gpl-3.0 |
purebn/ShadowBot | plugins/anti_bot.lua | 1 | 3079 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Nashmau/npcs/Wata_Khamazom.lua | 1 | 1401 | -----------------------------------
-- Area: Nashmau
-- NPC: Wata Khamazom
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/McmlBlocklyDef/McmlBlocklyDef_Attrs.lua | 1 | 3511 | --[[
Title: language configuration plugin
Author(s): LiXizhi
Date: 2019/10/28
Desc:
use the lib:
-------------------------------------------------------
-------------------------------------------------------
]]
NPL.export({
-----------------------
{
type = "mcml_attrs_style_key_value",
message0 = "%1 = \"%2\"%3%4... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Anillah.lua | 5 | 1035 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Anillah
-- Type: Craftsman
-- @zone: 241
-- @pos: -34.800 -2.25 -119.950
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--------------... | gpl-3.0 |
LuaDist2/zee | build-aux/mkdotzee.lua | 1 | 1426 | -- Produce dotzee.sample
--
-- Copyright (c) 2012-2014 Free Software Foundation, Inc.
--
-- This file is part of Zee.
--
-- 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, or (... | gpl-3.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 59 | 3761 | --[[
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... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/modules/boot/data/general/grids/basic.lua | 3 | 5498 | -- 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 |
coronalabs/plugins-source-bit | Corona/main.lua | 1 | 2567 | --------------------------------------------------------------------------------
-- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
-- Copyright (C) 2012 Corona Labs Inc. All Rights Reserved.
--------------------------------------------------------------------------------
print( "Bit samp... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/FillLineTask.lua | 1 | 4214 | --[[
Title: Create Line
Author(s): LiXizhi
Date: 2013/1/19
Desc: Replace blocks in the direction specifed until it is blocked by another block or max_radius is reached.
Support undo/redo
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/FillLin... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/quests/paradoxology.lua | 2 | 5055 | -- 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 |
Laterus/Darkstar-Linux-Fork | scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua | 1 | 3351 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Brazier
-- Involved in Quests: Save my Sister
-- @zone 195
-- @pos 101 -33 -59 (F-9)
-- @pos 259 -33 99 (H-7)
-- @pos 99 -33 98 (F-7)
-- @pos 259 -33 -58 (H-9)
-----------------------------------
package.loaded["scripts/zones/The_Eld... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/World/AutoSaver.lua | 1 | 4298 | --[[
Title: Auto saver
Author(s): LiXizhi
Date: 2017/8/16
Desc: mostly a singleton class.
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/World/AutoSaver.lua");
local AutoSaver = commonlib.gettable("MyCompany.Aries.Creator.Game.AutoSaver");
GameLogic.Creat... | gpl-2.0 |
electrodude/pipeworks | teleport_tube.lua | 2 | 7775 | local filename=minetest.get_worldpath() .. "/teleport_tubes"
local tp_tube_db = nil -- nil forces a read
local tp_tube_db_version = 2.0
local function hash(pos)
return string.format("%d", minetest.hash_node_position(pos))
end
local function save_tube_db()
local file, err = io.open(filename, "w")
if file then
tp... | lgpl-2.1 |
pixeljetstream/luajit_gfx_sandbox | runtime/lua/lanes.lua | 3 | 22280 | --
-- LANES.LUA
--
-- Multithreading and -core support for Lua
--
-- Authors: Asko Kauppi <akauppi@gmail.com>
-- Benoit Germain <bnt.germain@gmail.com>
--
-- History: see CHANGES
--
--[[
===============================================================================
Copyright (C) 2007-10 Asko Kauppi <akauppi@... | mit |
gleachkr/luakit | build-utils/docgen/gen.lua | 3 | 17745 | local lfs = require "lfs"
local lousy = { util = require "lib.lousy.util" }
local markdown = require "lib.markdown"
local index = {}
local text_macros = {
available = function (arg)
return ({
ui = '<div class="alert warn">This module is only available from the UI process Lua state.</div>',
... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/modules/host_pools_migration.lua | 1 | 23446 | --
-- (C) 2017-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?/init.lua;" .. package.path
local ntop_info = ntop.getInfo()
local os_utils = require "os_utils"
local host_pools_migration = {}
host_pools_migration.DEFAULT_POOL_ID = "0"
host_pools_migration.DEFAULT_ROUT... | gpl-3.0 |
fmassa/nn | L1Penalty.lua | 42 | 1129 | local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module')
--This module acts as an L1 latent state regularizer, adding the
--[gradOutput] to the gradient of the L1 loss. The [input] is copied to
--the [output].
function L1Penalty:__init(l1weight, sizeAverage, provideOutput)
parent.__init(self)
self... | bsd-3-clause |
pakoito/ToME---t-engine4 | game/engines/default/modules/boot/data/rooms/rocky_snowy_trees.lua | 6 | 1692 | -- 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 |
fmassa/nn | MulConstant.lua | 32 | 1071 | local MulConstant, parent = torch.class('nn.MulConstant', 'nn.Module')
function MulConstant:__init(constant_scalar,ip)
parent.__init(self)
assert(type(constant_scalar) == 'number', 'input is not scalar!')
self.constant_scalar = constant_scalar
-- default for inplace is false
self.inplace = ip or false
... | bsd-3-clause |
RyMarq/Zero-K | units/gunshipbomb.lua | 1 | 3169 | return { gunshipbomb = {
unitname = [[gunshipbomb]],
name = [[Blastwing]],
description = [[Flying Bomb (Burrows)]],
acceleration = 0.25,
brakeRate = 0.2,
buildCostMetal = 45,
builder = false,
buildPic ... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Ailbeche.lua | 1 | 6991 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ailbeche
-- Starts and Finishes Quest: Father and Son, Sharpening the Sword, A Boy's Dream (start)
-- @zone 231
-- @pos 4 -1 24
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
--------... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Lower_Jeuno/npcs/Morefie.lua | 37 | 1171 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Morefie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/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(... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Kazham-Jeuno_Airship/Zone.lua | 1 | 1198 | -----------------------------------
--
-- Zone: Kazham-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
----------------------... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/get/pcap/live_extraction.lua | 1 | 1438 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local json = require("dkjson")
local recording_utils = require "recording_utils"
local function send_error(msg)
sendHTTPContentTypeHeader('application/json'... | gpl-3.0 |
madpilot78/ntopng | scripts/plugins/monitors/network/active_monitoring/web_gui/active_monitoring_stats.lua | 1 | 7399 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local page_utils = require("page_utils")
local alert_consts = require("alert_consts")
local plugins_utils = require("plugins_utils")
local ui_utils = require("... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/SchoolCenter/XcodePage.lua | 1 | 2507 | --[[
Title: XcodePage
Author(s): yangguiyi
Date: 2021/6/2
Desc:
Use Lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/SchoolCenter/XcodePage.lua").Show();
--]]
local KeepWorkItemManager = NPL.load("(gl)script/apps/Aries/Creator/HttpAPI/KeepWorkItemManager.... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/high-peak/grids.lua | 3 | 8976 | -- 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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/encounters/fareast.lua | 2 | 3442 | -- 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 |
pakoito/ToME---t-engine4 | game/engines/default/engine/dialogs/DisplayResolution.lua | 3 | 4072 | -- 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 |
devFRIND/M.F.I_BOT | 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 |
hfjgjfg/sss25 | 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 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/modules/admin-mini/luasrc/controller/mini/system.lua | 71 | 6669 | --[[
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... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Items/ItemTimeSeriesOverlay.lua | 1 | 2092 | --[[
Title: ItemTimeSeriesOverlay
Author(s): LiXizhi
Date: 2016/1/3
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Items/ItemTimeSeriesOverlay.lua");
local ItemTimeSeriesOverlay = commonlib.gettable("MyCompany.Aries.Game.Items.ItemTimeSeries... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/random-artifacts/ammo.lua | 2 | 13651 | -- 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 |
hfjgjfg/eli25 | 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 |
mysql/mysql-proxy | tests/unit/lua/proxy-parser.lua | 4 | 1574 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
jsj2008/ValyriaTear | img/sprites/map/npcs/npc_girl01_idle.lua | 4 | 1054 | -- Sprite animation file descriptor
-- This file will describe the frames used to load the sprite animations
-- This files is following a special format compared to other animation scripts.
local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH;
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH;
local ANIM_WEST = vt_map.MapMode.ANI... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_resupply/shared.lua | 1 | 1169 | SWEP.ViewModel = "models/weapons/v_pistol.mdl"
SWEP.WorldModel = Model("models/Items/ammocrate_ar2.mdl")
SWEP.AmmoIfHas = true
SWEP.Primary.ClipSize = 1
SWEP.Primary.DefaultClip = 1
SWEP.Primary.Ammo = "helicoptergun"
SWEP.Primary.Delay = 1
SWEP.Primary.Automatic = true
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.De... | gpl-3.0 |
tarantool/luarocks | src/luarocks/loader.lua | 1 | 9654 |
--- A module which installs a Lua package loader that is LuaRocks-aware.
-- This loader uses dependency information from the LuaRocks tree to load
-- correct versions of modules. It does this by constructing a "context"
-- table in the environment, which records which versions of packages were
-- used to load previous... | mit |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_heavy_gtm_6.meta.lua | 2 | 2836 | 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 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/icefish.lua | 1 | 1180 | -----------------------------------------
-- ID: 4470
-- Item: icefish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
jsj2008/ValyriaTear | dat/maps/layna_village/layna_village_kalya_house_path_small_house_script.lua | 4 | 4060 | -- Set the namespace according to the map name.
local ns = {};
setmetatable(ns, {__index = _G});
layna_village_kalya_house_path_small_house_script = ns;
setfenv(1, ns);
-- The map name, subname and location image
map_name = "Mountain Village of Layna"
map_image_filename = "img/menus/locations/mountain_village.png"
map... | gpl-2.0 |
RyMarq/Zero-K | effects/shellshocker.lua | 25 | 3144 | -- shellshockflash
-- shellshockgound
-- shellshockshells
return {
["shellshockflash"] = {
muzzleflash = {
air = true,
class = [[CSimpleParticleSystem]],
count = 3,
ground = true,
water = true,
properties = {
... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/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... | gpl-2.0 |
llX8Xll/DEVKEEPER1 | plugins/stats.lua | 3 | 4650 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
d... | gpl-2.0 |
Ferk/Dungeontest | mods/default/nodes.lua | 1 | 40285 | -- mods/default/nodes.lua
--[[ Node name convention:
Although many node names are in combined-word form, the required form for new
node names is words separated by underscores. If both forms are used in written
language (for example pinewood and pine wood) the underscore form should be used.
--]]
--[[ Index:
Sto... | gpl-3.0 |
Lleafll/sws-lleaf | localization/zhTW.lua | 1 | 9003 | local L = LibStub("AceLocale-3.0"):NewLocale("StatWeightScore", "zhTW");
if not L then return end
-- L["AlternativeStatDisplayNames_Crit"] = ""
L["AlternativeStatDisplayNames_Spellpower"] = "法術能量" -- Needs review
L["CharacterPane_CM_Tooltip"] = "總分不適用於降低裝備等級的挑戰模式地城中"
L["CharacterPane_Tooltip_Title"] = "評量屬性分數"
L["Char... | mit |
rigeirani/sss | plugins/spammer.lua | 2 | 65978 | local function run(msg)
if msg.text == "[!/]spam" 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 shod l... | gpl-2.0 |
llX8Xll/DEVKEEPER1 | plugins/WLC.lua | 1 | 1382 | do
local function run(msg,matches)
if matches[1] == "chat_add_user" then
return "🔥{ آهہلآ ؤسہهہلآ 😘 بہكہ كہبہد رؤحہيہ نہؤرتہ 👮🏽♀️ آلمہجہمہؤعہهہ❤️❗️ }\n".."🔥{ آسہمہ آلمہجہمہؤعہهہ }"..msg.to.title.."\n".."🔥{ آيہديہ آلمہجہمہؤعہهہ }"..msg.to.id.."\n".."🔥{ آسہمہ آلضہآفہكہ }"..(msg.from.first_name or... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/chili_old/Headers/autolocalizer.lua | 8 | 3777 | ---------------------------------------------------------------------------
--
-- Lua Namespace Localizer
--
-- author: jK (2009)
--
-- License: GPLv2
--
-- Info:
-- overrides VFS.Include with a function that autolocalize the used namespaces
--
-- Settings
local maxLocals = 50
local namespaces = {
{"Spring.MoveCtrl... | gpl-2.0 |
james2doyle/lit | libs/vfs.lua | 5 | 3347 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/WorldClient.lua | 1 | 6698 | --[[
Title: WorldClient
Author(s): LiXizhi
Date: 2014/6/4
Desc: client side to login to the server.
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Network/WorldClient.lua");
local WorldClient = commonlib.gettable("MyCompany.Aries.Game.Network.WorldClie... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Sauromugue_Champaign/npcs/Tiger_Bones.lua | 1 | 1652 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Tiger Bones
-- Involed in Quest: The Fanged One.
-- @zone 120
-- @pos 666 -8 -379
-------------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-------------------------------------
require(... | gpl-3.0 |
Grocel/wire-extras | lua/entities/gmod_wire_adv_hudindicator/cl_init.lua | 2 | 32556 |
include('shared.lua')
ENT.RenderGroup = RENDERGROUP_BOTH
local advhudindicators = {}
// Default HUD x/y
local nextupdate = 0
// Text Height Constant
local dtextheight = draw.GetFontHeight("Default")
// So we don't need to calculate this every frame w/ Percent Bar style
local pbarheight = dtextheight... | apache-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/RedSummerCamp/RedSummerCampParentsPageDetail.lua | 1 | 1367 | --[[
Title: RedSummerCampParentsPageDetail
Author(s): pbb
Date: 2021/7/9
Desc: the parent's detail page for red summer camp 2021
Use Lib:
-------------------------------------------------------
local RedSummerCampParentsPageDetail = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/RedSummerCamp/RedSummerCampParentsP... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_San_dOria/npcs/Crilde.lua | 1 | 1395 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Crilde
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_... | gpl-3.0 |
rudiniemeijer/NodeMCU-Lua-WS2812-matrix-displays | demo-gameoflife.lua | 1 | 1981 | -- Game of Life for WS2812 RGB Matrix Display
-- Copyright (c) 2017 Rudi Niemeijer
-- Requires the use of WS2812 plot functions
dofile("matrixutility.lc")
nextdisp = ws2812.newBuffer(leds, 3)
prevGen = {}
function setup(a)
autoRepaint(-1)
clear()
if a == nil then
plot(10, 10, 1)
plot(10, 11, 1)
plo... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Waters/npcs/Pursuivant.lua | 5 | 1040 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Pursuivant
-- Type: Pursuivant
-- @zone: 238
-- @pos: 113.971 -3.077 51.524
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v2/reset/infrastructure/config.lua | 1 | 1218 | --
-- (C) 2020 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/pro/scripts/lua/enterprise/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path
... | gpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/orange_charge.meta.lua | 2 | 1949 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 80,
light_colors = {
"238 195 154 255",
"255 0 21 255",
"206 104 35 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
... | agpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Giddeus/npcs/Uu_Zhoumo.lua | 1 | 1934 | -----------------------------------
-- Area: Giddeus
-- NPC: Uu Zhoumo
-- Involved in Mission 2-3
-----------------------------------
require("scripts/globals/keyitems");
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
require("scripts/zones/Giddeus/TextIDs");
-----------------------------------
-- ... | gpl-3.0 |
gleachkr/luakit | lib/editor.lua | 3 | 2524 | --- Text editor launching functionality.
--
-- This module is primarily for use by other Lua modules that wish to
-- allow the user to edit a particular text file. The default is to guess at the
-- shell command to open a text editor from environment variables. To override
-- the guess, replace `editor.cmd_string`. Thi... | gpl-3.0 |
hfjgjfg/PERSIANGUARD10 | plugins/vote.lua | 83 | 2129 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/engines/default/engine/generator/map/Forest.lua | 3 | 15084 | -- 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 |
purebn/ShadowBot | 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 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_rifle_walk_1.meta.lua | 2 | 2801 | 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 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Kazham/npcs/Mamerie.lua | 37 | 1372 | -----------------------------------
-- Area: Kazham
-- NPC: Mamerie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Waters/npcs/Panna-Donna.lua | 5 | 1039 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Panna-Donna
-- Type: Mission NPC
-- @zone: 238
-- @pos: -57.502 -6 229.571
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/necrotic-aura.lua | 3 | 1474 | -- 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 |
tarantool/luarocks | src/luarocks/cmd/lint.lua | 2 | 1460 |
--- Module implementing the LuaRocks "lint" command.
-- Utility function that checks syntax of the rockspec.
local lint = {}
local util = require("luarocks.util")
local download = require("luarocks.download")
local fetch = require("luarocks.fetch")
lint.help_summary = "Check syntax of a rockspec."
lint.help_argument... | mit |
tarantool/luarocks | src/luarocks/util.lua | 1 | 23445 |
--- Assorted utilities for managing tables, plus a scheduler for rollback functions.
-- Does not requires modules directly (only as locals
-- inside specific functions) to avoid interdependencies,
-- as this is used in the bootstrapping stage of luarocks.core.cfg.
local util = {}
local core = require("luarocks.core.... | mit |
tarantool/luarocks | src/luarocks/tools/patch.lua | 1 | 21921 | --- Patch utility to apply unified diffs.
--
-- http://lua-users.org/wiki/LuaPatch
--
-- (c) 2008 David Manura, Licensed under the same terms as Lua (MIT license).
-- Code is heavily based on the Python-based patch.py version 8.06-1
-- Copyright (c) 2008 rainforce.org, MIT License
-- Project home: http://code.googl... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Neuron/Templates/example_blocks.lua | 1 | 1399 | -- 示例文件: NPL script file
-- 立方体模型:{x,y,z,block_id}
cube_models = {
{1,1,1, 4},
{-1,1,1, 4},
{-1,1,-1, 4},
{1,1,-1, 4},
};
-- 在x,y,z的位置创建一个模型
-- @param model_data: 数据源
-- @param x,y,z: 原点
function CreateModel(model_data, x,y,z)
for i, b in ipairs(model_data) do
blocks.set(x+b[1], y+b[2], z+b[3], b[4]);
end... | gpl-2.0 |
RyMarq/Zero-K | scripts/assaultcruiser.lua | 8 | 4064 | include 'constants.lua'
--------------------------------------------------------------------
--pieces
--------------------------------------------------------------------
local base, lowerhull, upperhull, antenna, radarbase, radardish = piece('base', 'lowerhull', 'upperhull', 'antenna', 'radarbase', 'radardish')
local... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/gui_savegame.lua | 2 | 16703 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Save Game Menu",
desc = "bla",
author = "KingRaptor",
date = "2016.11.24",
license ... | gpl-2.0 |
ZACTELEGRAM1/IRAN | plugins/inrealm.lua | 287 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Metalworks/npcs/Lucius.lua | 1 | 1038 | -----------------------------------
-- Area: Metalworks
-- NPC: Lucius
-- Type: Mission NPC
-- @zone: 237
-- @pos: 59.959 -17.39 -42.321
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zon... | gpl-3.0 |
TerraME/publish | data.lua | 1 | 11471 | data{
file = "caragua.shp",
summary = "Caragua municipality, in Sao Paulo State, Brazil.",
source = "IBGE (http://www.ibge.gov.br)",
attributes = {
population = "Population of Caraguatatuba.",
pib = "Gross Domestic Product (GDP) of Caraguatatuba.",
name = "Data name.",
idh = "HDI indicators of Caraguatatuba... | gpl-3.0 |
shubhamg31/columbus_julia | lib/julia/test/perf/micro/perf.lua | 2 | 5365 |
local ffi = require 'ffi'
local bit = require 'bit'
local gsl = require 'gsl'
local min, max, abs, sqrt, random, floor = math.min, math.max, math.abs, math.sqrt, math.random, math.floor
local cabs = complex.abs
local rshift = bit.rshift
local format = string.format
local gettime
do
ffi.cdef[[
struct ti... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.