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 |
|---|---|---|---|---|---|
AmirkhajehB/pm-resan2030 | plugin.lua | 1 | 28137 | function run(msg)
help_sudo = "*Sudo Commands:*\n______________________________\n"
.." /req\n ليست درخواستها\n\n"
.." /req>\n کیبرد ليست درخواستها\n\n"
.." /sendtoall {text}\n ارسال به همه\n\n"
.." /users\n کاربران ربات\n\n"
.." /info {text}\n توضيحات شما\n\n"
.." /avatar {reply... | apache-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/jellyfish_1.meta.lua | 28 | 1948 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 90,
light_colors = {
"20 248 255 255",
"3 216 255 255",
"23 78 234 255"
},
radius = {
x = 60,
y = 60
},
standard_deviation = 8
},
... | agpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/lionhead.lua | 1 | 1181 | -----------------------------------------
-- ID: 4312
-- Item: lionhead
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
zyxmon/openwrt-packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua | 82 | 4185 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rule needs a protocol specified
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".src_port"))
local destPort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".dest_port"))
if sourcePort ~= "" or d... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Bastok_Markets/npcs/Sinon.lua | 1 | 4503 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Sinon
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["scripts/globals/armorstorage"] = nil;
require("scripts/globals/armorstorage");
pa... | gpl-3.0 |
pyxenium/EasyAutoLoot | Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 35 | 8804 | --[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 6
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | mit |
RyMarq/Zero-K | LuaRules/Utilities/isTargetReachable.lua | 8 | 1054 | --This function process result of Spring.PathRequest() to say whether target is reachable or not
function Spring.Utilities.IsTargetReachable (moveID, ox,oy,oz,tx,ty,tz,radius)
local result,lastcoordinate, waypoints
local path = Spring.RequestPath( moveID,ox,oy,oz,tx,ty,tz, radius)
if path then
local waypoint = pat... | gpl-2.0 |
RyMarq/Zero-K | units/tankarty.lua | 1 | 3393 | return { tankarty = {
unitname = [[tankarty]],
name = [[Emissary]],
description = [[General-Purpose Artillery]],
acceleration = 0.141,
brakeRate = 1.36,
buildCostMetal = 700,
builder = false,
buildPic = [[tankarty.png]],
ca... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/SceneContext/EditMovieContext.lua | 1 | 27752 | --[[
Title: Edit Movie Context
Author(s): LiXizhi
Date: 2015/8/9
Desc: When a movie block is activated or opened, we will be entering this context.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/SceneContext/EditMovieContext.lua");
local EditMovie... | gpl-2.0 |
madpilot78/ntopng | tests/lua/test_recipients.lua | 1 | 4069 | --
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
if((dirs.scriptdir ~= nil) and (dirs.scriptdir ~= "")) then package.path = dirs.scriptdir .. "/lua/modules/?.lua;" .. package.path end
if ntop.isPro() then
package.path = dirs... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Al_Zahbi/Zone.lua | 1 | 1300 | -----------------------------------
--
-- Zone: Al_Zahbi
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
Billiam/promise.lua | spec/helper/nextables.lua | 2 | 3468 | local Helper = require('spec.helper.helper')
local Promise = require('promise')
local other = { other = "other" } -- a value we don't want to be strict equal to
local Nextable = {}
Nextable.fulfilled = {
["a synchronously-fulfilled custom nextable"] = function(value)
return {
next = function(instance, onF... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/valley-moon.lua | 3 | 4063 | -- 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 |
ramin65/ub-ub | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
groupforspeed/API-WaderTG | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
soheil22222222/mm | plugins/all_2.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/egos/wands-powers.lua | 2 | 4331 | -- 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 |
vince06fr/prosody-modules | mod_support_contact/mod_support_contact.lua | 32 | 1757 | -- mod_support_contact.lua
--
-- Config options:
-- support_contact = "support@hostname"; -- a JID
-- support_contact_nick = "Support!"; -- roster nick
-- support_contact_group = "Users being supported!"; -- the roster group in the support contact's roster
local host = module:get_host();
local support_contact =... | mit |
madpilot78/ntopng | doc/src/api/lua_c/flow_checks/flow.lua | 1 | 6984 | --! @brief Get the complete status bitmap of the flow, which includes all the current problems of the flow.
--! @return the flow status bitmap
function flow.getStatus()
--! @brief Set a bit into the flow status bitmap, effectively marking the flow as misbehaving.
--! @param flow_status_type the flow status to set. The... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystemApp/API/paraworld.plant.lua | 1 | 8160 | --[[
Title: plant related api
Author(s): Spring
Date: 2010.2.24
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemApp/API/paraworld.plant.lua");
-------------------------------------------------------
]]
-- create class
commonlib.setfield("paraworld.Pl... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/circle.lua | 2 | 2884 | -- 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 |
adongy/ixus160_elph160 | CHDK/LUALIB/drawings.lua | 2 | 7015 | --[[
Special Lua module that makes drawing much more usefull and easy-to-use.
This module requires function such as: draw_pixel(), draw_rect() and others to be present
]]
--Author: Outslider
--License: GPL all versions
SCREEN_DRAWINGS={}
draw={}
draw.add = function( d_type, p1, p2, p3, p4, p5, p6, p7 )
local n... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_heavy_shot_4.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 |
lebronyxm/neuralart | costs.lua | 13 | 2661 | --
-- Cost functions
--
-- compute the Gramian matrix for input
function gram(input)
local k = input:size(2)
local flat = input:view(k, -1)
local gram = torch.mm(flat, flat:t())
return gram
end
function collect_activations(model, activation_layers, gram_layers)
local activations, grams = {}, {}
... | mit |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/decl.lua | 28 | 2152 | module(..., package.seeall)
local nodegen = require "tundra.nodegen"
local functions = {}
local _decl_meta = {}
_decl_meta.__index = _decl_meta
local current = nil
local function new_parser()
local obj = {
Functions = {},
Results = {},
DefaultTargets = {},
AlwaysTargets = {},
}
local outer_en... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/firestorm.lua | 3 | 1482 | -- 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/Windurst_Woods/npcs/Taraihi-Perunhi.lua | 1 | 1506 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Taraihi-Perunhi
-- Only sells when Windurst controlls Derfland Region
-- Working 100%
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Woods/TextI... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Castle_Oztroja/npcs/qm2.lua | 1 | 1374 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: ???
-- Used In Quest: Whence Blows the Wind
-- @zone 151
-- @pos -100 -63 58
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
lyzardiar/seal2d | example/yuusha/scripts/bootloader.lua | 1 | 2303 | local function pmain()
local platform = require("platform_core")
local script_search_path = {
"?.lua",
"scripts/?.lua",
"seal/?.lua",
"thirdparty/socket/?.lua",
"thirdparty/cov/?.lua;",
"thirdparty/luaunit/?.lua;",
"res/?.lua",
}
local plat = plat... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/LobbyService/LobbyServer.lua | 1 | 14186 | --[[
Title: LobbyServer
Author(s): LanZhihong, LiXizhi
Date: 2018/12/19
Desc: LobbyServer communicates with each other in peer to peer mode.
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Network/LobbyService/LobbyServer.lua");
local LobbyServer = comm... | gpl-2.0 |
LuaDist2/luaselenium | lib/etree.lua | 3 | 5122 |
-- Lua Element Tree --
local ipairs, next, pairs = ipairs, next, pairs
local assert, type, unpack, print = assert, type, unpack, print
local getmetatable, setmetatable = getmetatable, setmetatable
local base = {tostring = tostring}
local io, string, table = io, string, table
require "lxp.lom"
local lxp = lxp
local u... | mit |
fegimanam/s | bot/seedbot.lua | 24 | 10036 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
knixeur/notion | etc/look_greyviolet.lua | 2 | 2195 | -- look_greyviolet.lua drawing engine configuration file for Notion.
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "#777777",
highlight_colour = "#eeeeee",
background_colour = "#aaaaaa",
foreground_colour = "#000000",
padding_pixels = 1,
highlight... | lgpl-2.1 |
Ali-2h/hackerbot | plugins/Feedback.lua | 49 | 1048 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
lo... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/modules/alert_definitions/host/host_alert_remote_connection.lua | 1 | 2825 | --
-- (C) 2019-21 - ntop.org
--
-- ##############################################
local host_alert_keys = require "host_alert_keys"
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_creators = require "alert_creators"
-- Import the classes library.
local classes = require "c... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/get_extracted_traffic.lua | 1 | 1203 | --
-- (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(error_type)
local msg = ""
if error_type == "... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Kuzah_Hpirohpon.lua | 1 | 1045 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kuzah Hpirohpon
-- Type: Guild Vend.
-- @zone: 241
-- @pos: -80.068 -3.25 -127.686
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
----... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/chats/player-inscription.lua | 3 | 2544 | -- 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 |
NPLPackages/paracraft | script/kids/3DMapSystemItem/Item_CombatCardQualification.lua | 1 | 1531 | --[[
Title: combat card qualification
Author(s): WangTian
Date: 2009/6/10
Desc: Item_CombatCardQualification type
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemItem/Item_CombatCardQualification.lua");
-----------------------------------------------------... | gpl-2.0 |
FSource/Faeris | lib/libextends/libluaexport/pkg/basic.lua | 1 | 3942 |
_is_functions = _is_functions or {}
_to_functions = _to_functions or {}
_push_functions = _push_functions or {}
local fsobject= {
"FsObject",
"Scheduler",
"SchedulerTarget",
-- graphics
"Texture2D",
"Render",
"Window",
"RenderTarget",
"FrameBuffer",
-- util
"FsArray",
-- mgr
"TextureMgr",
"Reso... | mit |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_rifle_shot_2.meta.lua | 2 | 2786 | 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 |
triasg/CrownCustomizer | Libs/LibAddonMenu-2.0/controls/dropdown.lua | 2 | 8931 | --[[dropdownData = {
type = "dropdown",
name = "My Dropdown", -- or string id or function returning a string
choices = {"table", "of", "choices"},
choicesValues = {"foo", 2, "three"}, -- if specified, these values will get passed to setFunc instead (optional)
getFunc = function() return db.var end,
... | mit |
madpilot78/ntopng | scripts/lua/admin/manage_host_members.lua | 2 | 2102 | --
-- (C) 2020 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
require "lua_utils"
local page_utils = require "page_utils"
local json = require "dkjson"
local ... | gpl-3.0 |
adongy/ixus160_elph160 | CHDK/SCRIPTS/TEST/tstcallf.lua | 2 | 3610 | --[[
@title test native func interface
@chdk_version 1.3
@param a 0 = event only 1 = unsafe!
@default a 0
--]]
logfile,msg=io.open("A/TSTCALLF.LOG","wb")
if not logfile then
error(msg)
end
fail_count = 0
function log(status,fmt,...)
local status_str
if status then
status_str=" OK\n"
else
status_str=" FAIL\n"
... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/East_Sarutabaruta/npcs/Pore-Ohre.lua | 1 | 1635 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Pore-Ohre
-- Working ???%
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/zones/East_Sarutabar... | gpl-3.0 |
RyMarq/Zero-K | LuaUI/Widgets/snd_music.lua | 2 | 11969 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_music.lua
-- brief: yay music
-- author: cake
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---------... | gpl-2.0 |
jkassman/wesnoth | data/lua/wml/objectives.lua | 22 | 6719 | local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local game_events = wesnoth.game_events
local function color_prefix(r, g, b)
return string.format('<span foreground="#%02x%02x%02x">', r, g, b)
end
local function insert_before_nl(s, t)
return string.gsub(tostring(s), "[^\n]*", ... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/slings.lua | 2 | 5224 | -- 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 |
adde88/Nerdpack-Zylla | rotations/warlock/destruction.lua | 1 | 10315 | 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..'Pause|r', al... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 37 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Ruhotz_Silvermines/Zone.lua | 1 | 1135 | -----------------------------------
--
-- Zone: Ruhotz_Silvermines
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ruhotz_Silvermines/TextIDs"] = nil;
require("scripts/zones/Ruhotz_Silvermines/TextIDs");
-----------------------------------
-- onI... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/class/uiset/UISet.lua | 3 | 1414 | -- 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/maps/towns/irkkk.lua | 3 | 4120 | -- 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 |
h4mu/bstone | com.github.h4mu.bstone/jni/SDL/premake/util/sdl_depends.lua | 5 | 2976 | -- Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purp... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/chili/Controls/font.lua | 2 | 7158 | --// =============================================================================
--- Font module
--- Font fields
-- Inherits from Control.
-- @see control.Control
-- @table Font
-- @string[opt = "FreeSansBold.otf"] font font name
-- @int[opt = 12] size font size
-- @bool[opt = false] shadow shadow enabled
-- @bool[... | gpl-2.0 |
JonasJurczok/faketorio | src/ingame/core.lua | 1 | 4422 | if not faketorio then faketorio = {} end
faketorio.features = {}
faketorio.errors = {}
faketorio.listener = nil
function faketorio.run()
if (faketorio.listener) then
faketorio.listener.init()
end
local feature_count = faketorio.count(faketorio.features)
local current_feature = 0
for feat... | mit |
madpilot78/ntopng | scripts/lua/modules/pools/interface_pools.lua | 1 | 1501 | --
-- (C) 2017-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
local pools = require "pools"
local interface_pools = {}
-- ##############################################
function interface_pools:create()
-- Instance of the base cla... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystemItem/Item_PetTransformColor.lua | 1 | 11139 | --[[
Title: transform items
Author(s): WangTian
Date: 2009/8/18
Desc: Item_PetTransformColor
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemItem/Item_PetTransformColor.lua");
------------------------------------------------------------
]]
local Item_PetTr... | gpl-2.0 |
madpilot78/ntopng | attic/get_arp_matrix_data.lua | 2 | 4104 | --
-- (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")
sendHTTPContentTypeHeader('application/json')
local matrix = interface.getArpStatsMatrixInfo()
local host_info = url2hostin... | gpl-3.0 |
yanarsin/shivayi | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Kazham/npcs/Toji_Mumosulah.lua | 37 | 1558 | -----------------------------------
-- Area: Kazham
-- NPC: Toji Mumosulah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
TerminalShell/zombiesurvival | entities/weapons/weapon_zs_pot.lua | 1 | 1469 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Pot"
SWEP.Description = "Not that kind..."
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 55
SWEP.ShowViewModel = false
SWEP.ShowWorldModel = false
SWEP.VElements = {
["base"] = { type = "Model", model = "models/props_interiors/pot02a.mdl", bone = "ValveBiped... | gpl-3.0 |
Grocel/wire-extras | lua/entities/gmod_wire_modular_panel/init.lua | 3 | 2337 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
ENT.WireDebugName = "Modular Panel"
ENT.wireData = {}
function ENT:Initialize()
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
end
function ENT:Setup(wi... | apache-2.0 |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/test/t_env.lua | 22 | 2324 |
module(..., package.seeall)
unit_test('scalar interpolation', function (t)
local e = require 'tundra.environment'
local e1, e2, e3
e1 = e.create(nil, { Foo="Foo", Baz="Strut" })
e2 = e1:clone({ Foo="Bar" })
e3 = e1:clone({ Baz="c++" })
t:check_equal(e1:get("Foo"), "Foo")
t:check_equal(e1:get("Baz"), "S... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/Friend/FriendManager.lua | 1 | 10311 | --[[
Title: FriendManager
Author(s):
Date: 2020/9/7
Desc:
Use Lib:
-------------------------------------------------------
local FriendManager = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/Friend/FriendManager.lua");
FriendManager:LoadAllUnReadMsgs();
local userId = 763;
local conn = FriendManager:Connect(use... | gpl-2.0 |
RyMarq/Zero-K | lups/ParticleClasses/distortionFBO.lua | 2 | 10024 | -- $Id: distortionFBO.lua 4396 2009-04-15 21:42:33Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
--//FIXME: GL_TEXTURE_RECTANGLE su... | gpl-2.0 |
kellabyte/snabbswitch | src/apps/packet_filter/pcap_filter.lua | 13 | 4219 | module(...,package.seeall)
local app = require("core.app")
local link = require("core.link")
local lib = require("core.lib")
local packet = require("core.packet")
local config = require("core.config")
local conntrack = require("apps.packet_filter.conntrack")
local pf = require("pf") -- pflua
PcapFilter = {}
... | apache-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_heavy_gtm_1.meta.lua | 2 | 2817 | 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 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Items/ItemCmdUrl.lua | 1 | 1963 | --[[
Title: ItemCmdUrl
Author(s): LiXizhi
Date: 2014/3/18
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Items/ItemCmdUrl.lua");
local ItemCmdUrl = commonlib.gettable("MyCompany.Aries.Game.Items.ItemCmdUrl");
local item_ = ItemCmdUrl:new({ic... | gpl-2.0 |
adongy/ixus160_elph160 | CHDK/SCRIPTS/TEST/isorm.lua | 2 | 2719 | --[[
@title test real vs market ISO
@chdk_version 1.3
@param a min ISO
@default a 80
@param b max ISO
@default b 3200
@param c half shoot delay
@default c 1000
@param d test MIN-100
@default d 0
@range d 0 1
]]
--[[
This script tries to set the ISO mode to each available ISO setting and logs the
corresponding "real" a... | gpl-2.0 |
fegimanam/best | plugins/webshot.lua | 110 | 1424 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-asterisk/luasrc/controller/asterisk.lua | 69 | 7498 | --[[
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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/blighted-ruins-last.lua | 3 | 4017 | -- 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 |
kellabyte/snabbswitch | src/lib/protocol/datagram.lua | 7 | 7735 | -- This class provides basic mechanisms for parsing, building and
-- manipulating a hierarchy of protocol headers and associated payload
-- contained in a data packet. In particular, it supports
--
-- Parsing and in-place manipulation of protocol headers in a
-- received packet
--
-- In-place decapsulation by re... | apache-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/ParaLife/ParaLifeContext.lua | 1 | 21158 | --[[
Title: Paralife Context
Author(s): LiXizhi
Date: 2022/1/12
Desc: use "/show paralife" command to activate this context during play mode.
mouse event are disabled when moving accross endstone(id:155).
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/TextIDs.lua | 1 | 4598 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 10942; -- You cannot obtain the item <item> come back again after sorting your inventory
FULL_INVENTORY_AFTER_TRADE = 10944; -- You cannot obtain the <item>. Try trading again after sorting your inventory
ITEM_OBTAINED = 1... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/quests/orc-breeding-pits.lua | 2 | 2380 | -- 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 |
sumatrapdfreader/sumatrapdf | premake5.files.lua | 1 | 27589 | function files_in_dir(dir, files_in_dir)
local paths = {}
for _, file in ipairs(files_in_dir) do
-- TODO: don't add "/" if dir ends with it of file starts with it
local path = dir .. "/" .. file
table.insert(paths, path)
end
files(paths)
end
function logview_files()
files_in_dir("src/u... | gpl-3.0 |
derkling/dotfiles | awesome/themes/dremora/theme.lua | 4 | 2902 |
--[[
Dremora Awesome WM config 2.0
github.com/copycat-killer
--]]
theme = {}
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/dremora"
theme.wallpaper ... | mit |
NPLPackages/paracraft | script/kids/3DMapSystemApp/Assets/coreManifestPage.lua | 1 | 24682 | --[[
Title: code behind page for coreManifestPage.html
Author(s): Spring Yan
Date: 2009/10/11 Modified Date: 2010/03/14
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/test/coreManifestPage.lua");
-------------------------------------------------------
]]
if(not c... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/egos/ranged.lua | 2 | 12471 | -- 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/ai/escort.lua | 3 | 3269 | -- 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 |
madpilot78/ntopng | scripts/lua/rest/v2/import/pool/config.lua | 2 | 2594 | --
-- (C) 2019-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path
require "lua_utils"
local snmp_import_export = require "snmp_import_export"
local plugins_... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/South_Gustaberg/npcs/qm1.lua | 1 | 1242 | -----------------------------------
-- Area: South Gustaberg
-- NPC: ???
-- Involved in Quest: The Cold Light of Day
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
require("scripts/zones/South_Gustaberg/TextIDs");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
knixeur/notion | etc/cfg_layouts.lua | 6 | 1701 | --
-- Layouts for Notion
--
--
-- Helper routines and structures
--
-- Tiled frame template for the layouts below.
local a_frame = {
type="WSplitRegion",
regparams = {
type = "WFrame",
frame_style = "frame-tiled"
}
}
-- Helper function for generating splits for layouts.
local function mks... | lgpl-2.1 |
RyMarq/Zero-K | LuaUI/Widgets/gui_chili_deluxeplayerlist.lua | 1 | 56363 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Deluxe Player List - Alpha 2.02",
desc = "v0.210 Chili Deluxe Player List, Alpha Release... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_jumpjets.lua | 1 | 21264 | function gadget:GetInfo()
return {
name = "Jumpjets",
desc = "Gives units the jump ability",
author = "quantum",
date = "May 14, 2008", --last update 2015-05-05
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true,
}
end
if (not gadgetHandler:IsSyncedCode()) then return end
i... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/vaults/paladin-vs-vampire.lua | 3 | 4783 | -- 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/Port_San_dOria/npcs/Marquie.lua | 1 | 1396 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Marquie
-- 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 |
OpenMusicKontrollers/chimaera_tjost | stat_vel.lua | 1 | 1458 | #!/usr/bin/env tjost
--[[
* Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be use... | artistic-2.0 |
pixeljetstream/luajit_gfx_sandbox | runtime/lua/jit/dis_arm64.lua | 2 | 30984 | ----------------------------------------------------------------------------
-- LuaJIT ARM64 disassembler module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--
-- Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
-- S... | mit |
madpilot78/ntopng | scripts/lua/modules/lua_trace.lua | 1 | 2642 | --
-- (C) 2014-15 - ntop.org
--
-- Trace Level
TRACE_LEVEL = 2
-- Login & session
debug_login = false
debug_session = false
debug_host = false
debug_flow_data = false
-------------------------------- Trace Event ----------------------------------
-- Trace level
TRACE_ERROR = 0
TRACE_WARNING = 1
TRACE_NORMAL =... | gpl-3.0 |
purebn/ShadowBot | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
hfjgjfg/sss25 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/deep-bellow/objects.lua | 3 | 1527 | -- 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 |
StarChasers/LuPI2 | src/lua/core/component.lua | 1 | 4984 | local component = {}
local api = {}
local components = {}
component.api = api
component.components = components
local componentCallback = {
__call = function(self, ...) return components[self.address].rawproxy[self.name](...) end,
__tostring = function(self) return (components[self.address] ~= nil and components[... | mit |
RyMarq/Zero-K | LuaRules/Gadgets/unit_air_plants.lua | 1 | 4140 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if (not gadgetHandler:IsSyncedCode()) then
return
end
--------------------------------------------------------------------------------
----------------------... | gpl-2.0 |
LuaDist2/zee | zee/term.lua | 1 | 10613 | -- Display engine
--
-- Copyright (c) 2009-2012 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 (at your... | gpl-3.0 |
wjingzhe/ActiveStar | cocos2d/external/lua/luajit/src/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-2.0 |
jkassman/wesnoth | data/ai/micro_ais/micro_ai_wml_tag.lua | 6 | 26045 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua")
function wesnoth.wml_actions.micro_ai(cfg)
local CA_path = 'ai/micro_ais/cas/'
cfg = cfg.__parsed
-- Add translation for old-syntax animal MAIs to new syntax... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.