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 |
|---|---|---|---|---|---|
salehvw0011/stfbot | plugins/simsimi.lua | 1 | 1213 | local namefa = "ربات"
local nameen = "[Cc][Rr][Uu][Ee][Ll]"
local function get_response(text)
if text:match(nameen) then
text = text:gsub(nameen.." ","")
end
if text:match(namefa) then
text = text:gsub(namefa.." ","")
end
local lang = redis:get('simsimi:lang')
local myurl = 'https://iteam-co.ir/simsimi.php?msg='..U... | gpl-2.0 |
gleachkr/luakit | doc/luadoc/dom_element.lua | 4 | 3715 | --- Web process Lua interface to the DOM
--
-- DOCMACRO(available:web)
--
-- The `dom_element` class allows interaction with elements on any web page.
--
-- @class dom_element
-- @author Aidan Holm
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
-- @prefix element
--- @method query
-- Find all sub-elements which m... | gpl-3.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 36 | 3895 | --[[
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
$Id: init.lua... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua | 1 | 1553 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Bin Stejihna
-- Only sells when Windurst controlls Zulkheim Region
-- Working 100%
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/corruptions/reaving-combat.lua | 3 | 4723 | -- 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/keybinds/tome.lua | 3 | 5446 | -- 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 |
electrodude/pipeworks | autoplace_tubes.lua | 3 | 3433 | -- autorouting for pneumatic tubes
local function is_tube(nodename)
return pipeworks.table_contains(pipeworks.tubenodes, nodename)
end
--a function for determining which side of the node we are on
local function nodeside(node, tubedir)
if node.param2 < 0 or node.param2 > 23 then
node.param2 = 0
end
local backd... | lgpl-2.1 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/Admin/ClassManager/TChatRoomPage.lua | 1 | 7281 | --[[
Title: Class List
Author(s): Chenjinxian
Date: 2020/7/6
Desc:
use the lib:
-------------------------------------------------------
local TChatRoomPage = NPL.load("(gl)script/apps/Aries/Creator/Game/Network/Admin/ClassManager/TChatRoomPage.lua");
TChatRoomPage.ShowPage()
-----------------------------------------... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Macros/MacroTip.lua | 1 | 1614 | --[[
Title: Macro Tip
Author(s): LiXizhi
Date: 2021/1/7
Desc: tip macro
Use Lib:
-------------------------------------------------------
GameLogic.Macros.Tip("some mcml text here")
GameLogic.Macros.Broadcast("globalGameEvent")
GameLogic.Macros.Text("bottom line big text", 5000)
GameLogic.Macros.Text("bottom line big t... | gpl-2.0 |
realhidden/wargus | scripts/menus/editor.lua | 1 | 13997 |
-- Menu for new map to edit
local function RunEditorNewMapMenu()
local menu = WarMenu()
local offx = (Video.Width - 640) / 2
local offy = (Video.Height - 480) / 2
local tilesets = { "summer", "swamp", "wasteland", "winter"}
local mapSizes = {"32", "64", "96", "128", "256"}
menu:addLabel("Map description ... | gpl-2.0 |
joostlek/Cryonite | otouto/plugins/shout.lua | 1 | 1301 | local shout = {}
local utilities = require('otouto.utilities')
shout.command = 'shout <text>'
function shout:init(config)
shout.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('shout', true).table
shout.doc = [[```
]]..config.cmd_pat..[[shout <text>
Shouts something. Input may be the replied-to... | agpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Bastok/npcs/Kagetora.lua | 1 | 1536 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kagetora
-- Involved in Quest: Ayame and Kaede
-- @zone 236
-- @pos -96 -2 29
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Network/TunnelService/TunnelServer.lua | 1 | 8084 | --[[
Title: TunnelServer
Author(s): LiXizhi
Date: 2016/3/4
Desc: A tunnel server, receives relays message from one tunnel client to another tunnel client.
All tunnel client must provide a valid room_key and username.
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries... | gpl-2.0 |
charlesq34/3dcnn.torch | train.lua | 1 | 7375 | require 'torch'
require 'cutorch'
require 'optim'
require 'xlua'
require 'nn'
dofile './provider.lua'
opt_string = [[
-h,--help print help
-s,--save (default "logs") subdirectory to save logs
-b,--batchSize (default 64) batch si... | mit |
matin-igdery/og | plugins/info.lua | 6 | 5882 | --[[
Print user identification/informations by replying their post or by providing
their username or print_name.
!id <text> is the least reliable because it will scan trough all of members
and print all member with <text> in their print_name.
chat_info can be displayed on group, send it into PM, or save as file then... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Palborough_Mines/npcs/_3z7.lua | 2 | 1064 | -----------------------------------
-- Elevator in Palborough
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
require("scripts/zones/Palbor... | gpl-3.0 |
TerminalShell/zombiesurvival | entities/entities/status_revive_slump/init.lua | 1 | 1235 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:PlayerSet(pPlayer, bExists)
self.HealCarryOver = self.HealCarryOver or 0
pPlayer.Revive = self
pPlayer:Freeze(true)
if not bExists then
pPlayer:GodEnable()
self.GodDisableTime = CurTime() + 0.1
end
pPlayer:CallWeapon... | gpl-3.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Items/ItemColorBlock.lua | 1 | 13035 | --[[
Title: ItemColorBlock
Author(s): LiXizhi
Date: 2015/6/25
Desc: paint with current selected pen.
Usage:
* alt + left mouse click: pick the color of the current mouse block.
* mouse wheel: change color saturation
* +/- key: change color lightness
use the lib:
----------------------------------------------... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c8.lua | 1 | 2221 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Sealed Portal
-- Involved in Quest: Making the Grade
-- Working 50%
-- Notes: Door will open if player has Making the Grade quest active, or if the have the KI portal charm. Door should open when 3 mages stand on circles, but no API for t... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/gifts/fire-drake.lua | 3 | 7976 | -- 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/get_oses_data.lua | 1 | 2021 | --
-- (C) 2013-21 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local os_utils = require "os_utils"
local json = require("dkjson")
sendHTTPContentTypeHeader('text/html')
-- Table parameters
local currentPage = _GET["currentPa... | gpl-3.0 |
Billiam/promise.lua | spec/2.1.2_spec.lua | 2 | 1980 | local Helper = require('spec.helper.helper')
local Promise = require('promise')
local dummy = { dummy = 'dummy' }
describe("2.1.2.1: When fulfilled, a promise: must not transition to any other state.", function()
Helper.test_fulfilled(it, dummy, function(promise, done)
async()
local fulfillment = spy.new(fu... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_San_dOria/npcs/Raqtibahl.lua | 1 | 1400 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Raqtibahl
-- 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_S... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/viking_herring.lua | 1 | 1511 | -----------------------------------------
-- ID: 5183
-- Item: viking_herring
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 12
-- Attack Cap 40
-- Ranged ATT % 12
-- Ranged ATT Cap 40
-----------------------------------------
require("scri... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Northern_San_dOria/npcs/Gulmama.lua | 1 | 4080 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gulmama
-- Starts and Finishes Quest: Trial by Ice
-- @zone 231
-- @pos -186 0 107
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/spells/invisible.lua | 1 | 1079 | -----------------------------------------
-- Spell: Invisible
-- Lessens chance of being detected by sight.
--
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCa... | gpl-3.0 |
crazyboy11/spol | plugins/supergp.lua | 3 | 73157 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "Promote me to admin first!")
end
for k,v in pairs(result)... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Upper_Jeuno/npcs/Souren.lua | 20 | 2050 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Souren
-- Involved in Quests: Save the Clock Tower
-- @zone 244
-- @pos -51 0 4
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
TerminalShell/zombiesurvival | gamemode/vgui/dsidemenu.lua | 1 | 2266 | local PANEL = {}
PANEL.Spacing = 8
PANEL.SlideTime = 0 --0.2
function PANEL:Init()
self:RefreshSize()
self:SetPos(ScrW() - 1, 0)
self.Items = {}
end
function PANEL:Think()
if self.CloseTime and RealTime() >= self.CloseTime then
self.CloseTime = nil
self:SetVisible(false)
elseif self.StartChecking and RealT... | gpl-3.0 |
osamaalbsraoy/osama_albsraoy1989 | plugins/ar-broadcast.lua | 1 | 1394 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY osama ▀▄ ▄▀
▀▄ ▄▀ BY osama (@os_aa23) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY osama ▀▄ ▄▀
▀▄ ▄▀ broadcast : اذاعه ▀▄ ▄▀... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Aroro.lua | 1 | 1536 | -----------------------------------
-- Area: Port Windurst
-- NPC: Aroro
-- Standard Merchant NPC
-- Working 100%
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
--------------... | gpl-3.0 |
ramin65/ub-ub | bot/nod32bot.lua | 1 | 11239 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
Ferk/Dungeontest | mods/dungeon_artefacts/scrolls/api/projectile.lua | 1 | 2623 |
minetest.register_entity("scrolls:magic_projectile", {
physical = false,
visual = "sprite",
visual_size = {x = 1, y = 1},
textures = {"scrolls_fireball.png"},
use_texture_alpha = true,
hit_entity = function() end,
hit_mob = function() end,
drop = false,
collisionbox = {0, 0, 0, 0, 0, 0}, -- remo... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystemData/ItemTypes.lua | 1 | 1507 | --[[
Title: supported item types. each type as its handler
Author(s): LiXizhi
Date: 2009/2/3
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemData/ItemTypes.lua");
local ItemTypes = Map3DSystem.Item.Types;
if(type==ItemTypes.AppCommand) then
end
-----... | gpl-2.0 |
fmassa/nn | View.lua | 41 | 2232 | local View, parent = torch.class('nn.View', 'nn.Module')
function View:__init(...)
parent.__init(self)
if select('#', ...) == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then
self.size = select(1, ...)
else
self.size = torch.LongStorage({...})
end
self.numElements = 1
loc... | bsd-3-clause |
Laterus/Darkstar-Linux-Fork | scripts/zones/Chateau_dOraguille/npcs/Halver.lua | 1 | 2040 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Halver
-- Involved in Mission 2-3
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
require("scripts/zones/Chateau_dOraguille/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Pichichi.lua | 1 | 2687 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pichichi
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/... | gpl-3.0 |
NPLPackages/paracraft | script/kids/3DMapSystemUI/event_handlers_keyboard.lua | 1 | 20128 | --[[
Title: The map system Event handlers
Author(s): LiXizhi(code&logic)
Date: 2006/1/26
Desc: only included in event_handlers.lua
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/kids/3DMapSystemUI/event_handlers_keyboard.lua");
--------------------------------------------... | gpl-2.0 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/SceneContext/PlayContext.lua | 1 | 9403 | --[[
Title: Play Context
Author(s): LiXizhi
Date: 2015/7/10
Desc: handles scene key/mouse events. This is the default play mode scene context
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/SceneContext/PlayContext.lua");
local PlayContext = common... | gpl-2.0 |
hfjgjfg/eli25 | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
rigeirani/sss | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/mission_galaxy_battle_handler.lua | 2 | 25970 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Galaxy Battle Handler",
desc = "Reports outcome of galaxy battle.",
author = "GoogleFrog",
d... | gpl-2.0 |
eXhausted/Ovale | scripts/ovale_monk_spells.lua | 1 | 15943 | local OVALE, Ovale = ...
local OvaleScripts = Ovale.OvaleScripts
do
local name = "ovale_monk_spells"
local desc = "[7.0] Ovale: Monk spells"
local code = [[
# Monk spells and functions.
Define(blackout_kick 100784)
SpellInfo(blackout_kick chi=2)
SpellInfo(blackout_kick buff_chi=focus_of_xuen_buff buff_chi_amount... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Login/UserIntroduction.lua | 1 | 4899 | --[[
Title: UserIntroduction.html code-behind script
Author(s): ChenJinxian
Date:
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Login/UserIntroduction.lua");
local UserIntroduction = commonlib.gettable("MyCompany.Aries.Game.MainLogin.UserIntrod... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/system_alerts_stats.lua | 1 | 1184 | --
-- (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/pro/modules/?.lua;" .. package.path
require "lua_utils"
local template = require "template_utils"
local page_utils = require("page_... | gpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v1/import/checks/config.lua | 2 | 1211 | --
-- (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 checks_import_export = require "checks_import_export"
local json... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Port_Windurst/npcs/Sigismund.lua | 1 | 2354 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Sigismund
-- Starts and Finishes Quest: To Catch a Falling Star
-- Working 100%
-- @zone = 240
-- @pos = -110 -10 82
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/maps/zones/tannen-tower-3.lua | 3 | 1677 | -- 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 |
purebn/ShadowBot | plugins/Get.1.lua | 15 | 1052 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
lyzardiar/seal2d | libs/lua-socket/test/ftptest.lua | 26 | 3156 | local socket = require("socket")
local ftp = require("socket.ftp")
local url = require("socket.url")
local ltn12 = require("ltn12")
-- override protection to make sure we see all errors
--socket.protect = function(s) return s end
dofile("testsupport.lua")
local host, port, index_file, index, back, err, ret
local t ... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Valkurm_Dunes/npcs/Stone_Monument.lua | 1 | 1251 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
require("scripts/zones/Valkurm_Dunes/TextIDs");
--------------------------------... | gpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/yellow_fish_5.meta.lua | 16 | 1922 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 60,
light_colors = {
"255 177 82 255",
"51 204 0 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation =... | agpl-3.0 |
salehvw0011/stfbot | plugins/Info.lua | 1 | 9878 | --[[
################################
# #
# Info #
# #
# #
# by @Dragon_Born "Arian" #
# #
# #
# Modified by GPMod Team #
# ... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/events/thunderstorm.lua | 3 | 2927 | -- 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/Bastok_Mines/npcs/Gumbah.lua | 1 | 1458 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gumbah
-- Finishes Quest: Blade of Darkness
-----------------------------------
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/titles");
package.... | gpl-3.0 |
jsj2008/ValyriaTear | dat/maps/layna_forest/layna_forest_cave1_2_stone_sign_image.lua | 4 | 2390 | ------------------------------------------------------------------------------[[
-- Filename: layna_forest_cave1_2_stone_sign_image.lua
--
-- Description: Display an image of the stone sign text, in the actual
-- scripture seen by the characters for 5 seconds with fade in/out.
-------------------------------------... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/simit_+1.lua | 1 | 1271 | -----------------------------------------
-- ID: 5597
-- Item: simit_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 18
-- Vitality 4
-- Defense 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
TerminalShell/zombiesurvival | entities/entities/prop_ffemitter/init.lua | 1 | 1727 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ENT.m_Health = 150
function ENT:Initialize()
self:SetModel("models/props_lab/lab_flourescentlight002b.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetUseType(SIMPLE_USE)
local phys = self:GetPhysicsObject()
if phys:IsValid() then
phy... | gpl-3.0 |
RyMarq/Zero-K | units/vehcon.lua | 1 | 2267 | return { vehcon = {
unitname = [[vehcon]],
name = [[Mason]],
description = [[Construction Rover, Builds at 5 m/s]],
acceleration = 0.33,
brakeRate = 15.0,
buildCostMetal = 120,
buildDistance = 180,
builder ... | gpl-2.0 |
vince06fr/prosody-modules | mod_default_bookmarks/mod_default_bookmarks.lua | 32 | 1573 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2011 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza"
local dm_load = require "util.dataman... | mit |
pakoito/ToME---t-engine4 | game/engines/default/modules/boot/data/rooms/forest_clearing.lua | 3 | 3839 | -- 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 |
RyMarq/Zero-K | LuaRules/Configs/cai/strategies.lua | 20 | 7579 | --[[
example buildTasksMods
buildTasksMods = function(buildConfig)
buildConfig.robots.factoryByDefId[UnitDefNames['factorycloak'].id].importance = 0
buildConfig.robots.factoryByDefId[UnitDefNames['factoryshield'].id].importance = 1
buildConfig.robots.factoryByDefId[UnitDefNames['factoryveh'].id].importance =... | gpl-2.0 |
RyMarq/Zero-K | LuaUI/Widgets/chili/Controls/LayoutPanel.lua | 2 | 27299 | --// =============================================================================
--// This control is the base of any auto-layout panel, this includes:
--// grid, stackpanel, tables, itemlistview, listbox, radiogroups, ...
--//
--// Internal all childrens/items are handled via cells, which can be
--// freely aligne... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/resistance_head.meta.lua | 2 | 1900 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 250,
light_colors = {
"255 0 0 255"
},
radius = {
x = 260,
y = 260
},
standard_deviation = 8.5
},
generate_desaturation = false
},
offsets ... | agpl-3.0 |
madpilot78/ntopng | scripts/lua/rest/v2/get/network/alert/ts.lua | 2 | 1201 | --
-- (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 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Shaders/finalEffect.lua | 1 | 4087 | --[[
Title: finalEffect
Author(s): LiXizhi
Date: 2015/5/5
Desc: This effect should work together with the fancy shader (composite.fx) effect.
It adds depth of view, bloom, HDR, motion blur, etc.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Shad... | gpl-2.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Southern_San_dOria_[S]/Zone.lua | 1 | 1147 | -----------------------------------
--
-- Zone: Southern_San_dOria_[S]
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
--------------------------------... | gpl-3.0 |
eriche2016/nn | SpatialContrastiveNormalization.lua | 63 | 1444 | local SpatialContrastiveNormalization, parent = torch.class('nn.SpatialContrastiveNormalization','nn.Module')
function SpatialContrastiveNormalization:__init(nInputPlane, kernel, threshold, thresval)
parent.__init(self)
-- get args
self.nInputPlane = nInputPlane or 1
self.kernel = kernel or torch.Tensor(9... | bsd-3-clause |
salehvw0011/stfbot | plugins/Bye.lua | 9 | 2319 | do
local function run(msg, matches, callback, extra)
local data = load_data(_config.moderation.data)
local rules = data[tostring(msg.to.id)]['rules']
local about = data[tostring(msg.to.id)]['description']
local hash = 'group:'..msg.to.id
local group_bye = redis:hget(hash,'bye')
if matches[1] == 'delbye' and not matche... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/gifts/call.lua | 2 | 6610 | -- 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/zones/ardhungol/objects.lua | 2 | 1848 | -- 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 |
Joshalexjacobs/fantastic-guacamole | sti/init.lua | 2 | 37701 | --- Simple and fast Tiled map loader and renderer.
-- @module sti
-- @author Landon Manning
-- @copyright 2016
-- @license MIT/X11
local STI = {
_LICENSE = "MIT/X11",
_URL = "https://github.com/karai17/Simple-Tiled-Implementation",
_VERSION = "0.16.0.2",
_DESCRIPTION = "Simple Tiled Implementation ... | mit |
mysql/mysql-proxy | tests/suite/base/t/select_affected_rows.lua | 4 | 1321 | --[[ $%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 |
tempbottle/openlua | src/analyse.lua | 2 | 15047 | --[[±¾³ÌÐò·ÖÎöLua5.0ËùÓеIJúÉúʽ£¬ÕÒ³öÒýÆðÖ±½ÓÓë¼ä½Ó×óµÝ¹éµÄ·ÇÖÕ½á·û--]]
require("common.lua")
require("set.lua")
require("list.lua")
require("prototype.lua")
--[[----------------------------------------------------------
-- helper functions
----------------------------------------------------------]]--
-- ... | mit |
purebn/ShadowBot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
eriche2016/nn | utils.lua | 13 | 6605 | nn.utils = {}
-- oops; someone forgot to add torch.Storage.type
-- TODO replace with torch.Storage.type when implemented
local function torch_Storage_type(self, type)
local current = torch.typename(self)
if not type then return current end
if type ~= current then
local new = torch.getmetatable(type).new... | bsd-3-clause |
RyMarq/Zero-K | units/damagesinkrock.lua | 1 | 1084 | return { rocksink = {
unitname = [[rocksink]],
name = [[Rocking Damage Sink thing]],
description = [[Rocks when you shoot at it.]],
acceleration = 0,
autoHeal = 500000,
buildCostMetal = 10,
builder = false,
... | gpl-2.0 |
SopaXorzTaker/TPT-Alchemy | src/lua/socket/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | gpl-3.0 |
StarChasers/LuPI2 | src/lua/core/winapigpu.lua | 1 | 4437 | local wingpu = {}
local mapping = {}
for i=0,15 do
mapping[i] = (i * 15) << 16 | (i * 15) << 8 | (i * 15)
end
for i=0,239 do
local b = math.floor((i % 5) * 255 / 4.0)
local g = math.floor((math.floor(i / 5.0) % 8) * 255 / 7.0)
local r = math.floor((math.floor(i / 40.0) % 6) * 255 / 5.0)
mapping[16+i] = r <... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/panic.lua | 3 | 1305 | -- 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 |
RyMarq/Zero-K | LuaUI/Headers/languages.lua | 8 | 1048 | local langs = {
{ lang = 'en', flag = 'gb', name = 'English' },
{ lang = 'ru', flag = 'ru', name = 'Русский' },
{ lang = 'pl', flag = 'pl', name = 'Polski' },
{ lang = 'de', flag = 'de', name = 'Deutsch' },
{ lang = 'tr', flag = 'tr', name = 'Türkçe' },
}
--[[ On Windows, far eastern fonts are börkçe by default, ... | gpl-2.0 |
jsj2008/ValyriaTear | dat/maps/layna_forest/layna_forest_south_west_map.lua | 4 | 94595 | map_data = {}
-- The number of rows, and columns that compose the map
map_data.num_tile_cols = 64
map_data.num_tile_rows = 48
-- The tilesets definition files used.
map_data.tileset_filenames = {}
map_data.tileset_filenames[1] = "dat/tilesets/wood_tileset.lua"
-- The map grid to indicate walkability. 0 is walkable, ... | gpl-2.0 |
maozcan/ESP8266 | NTP/ntp.lua | 1 | 1807 | -----------------------------------------------------------------
-- (c) 2015 Andreas Krebs
-- get the timestamp from an ntp server and convert it to
-- year, month, day, hour, minute and second
-- copyright 2015 Andreas Krebs
-- initially tested with NodeMCU 0.9.5 build 20150213
-- works also with 20150318int
-... | gpl-2.0 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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 |
BinChengfei/openwrt-3.10.14 | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua | 78 | 1934 | --[[
Luci configuration model for statistics - collectd email 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 License... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/rest/v1/get/datasource/interface/packet_distro.lua | 2 | 2788 | --
-- (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/datamodel/?.lua;" .. package.path
-- ##############################################
-- Import the classes library.
local ... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/time_shield_bubble.lua | 3 | 1262 | -- 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 |
eriche2016/nn | BCECriterion.lua | 10 | 1737 | local THNN = require 'nn.THNN'
local BCECriterion, parent = torch.class('nn.BCECriterion', 'nn.Criterion')
function BCECriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
if weights ~= nil then
... | bsd-3-clause |
pakoito/ToME---t-engine4 | game/modules/tome/data/talents/corruptions/blight.lua | 2 | 6819 | -- 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 |
SammyJames/LootDrop | Libs/LibAddonMenu-2.0/controls/checkbox.lua | 2 | 5739 | --[[checkboxData = {
type = "checkbox",
name = "My Checkbox",
tooltip = "Checkbox's tooltip text.",
getFunc = function() return db.var end,
setFunc = function(value) db.var = value doStuff() end,
width = "full", --or "half" (optional)
disabled = function() return db.someBooleanSetting end, --or boolean (o... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Tasks/Activity/ActNationalDay/ActNationalDayDetail.lua | 1 | 1394 | --[[
luaide 模板位置位于 Template/FunTemplate/NewFileTemplate.lua 其中 Template 为配置路径 与luaide.luaTemplatesDir
luaide.luaTemplatesDir 配置 https://www.showdoc.cc/web/#/luaide?page_id=713062580213505
author:{pbb}
time:2021-09-08 11:24:28
use lib:
local ActNationalDayDetail = NPL.load("(gl)script/apps/Aries... | gpl-2.0 |
jsj2008/ValyriaTear | dat/maps/layna_forest/layna_forest_north_west_map.lua | 4 | 92966 | map_data = {}
-- The number of rows, and columns that compose the map
map_data.num_tile_cols = 64
map_data.num_tile_rows = 48
-- The tilesets definition files used.
map_data.tileset_filenames = {}
map_data.tileset_filenames[1] = "dat/tilesets/wood_tileset.lua"
map_data.tileset_filenames[2] = "dat/tilesets/mountain_la... | gpl-2.0 |
yasinghorbani/yagooo | plugins/tr.lua | 14 | 1877 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/gfx/particles/breath_lightning.lua | 3 | 2509 | -- 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 |
RyMarq/Zero-K | units/energygeo.lua | 1 | 2488 | return { energygeo = {
unitname = [[energygeo]],
name = [[Geothermal Generator]],
description = [[Medium Powerplant (+25)]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildCost... | gpl-2.0 |
zhevron/Tome | Tome.Button.lua | 1 | 3797 | --
-- Tome.Button.lua
-- Maintained by Lyrai @ Faeblight NA (Zhevron @ Github)
--
-- This file is part of Tome.
--
-- Tome 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
... | gpl-3.0 |
qyh214/wow_addons_private_use | AddOns/ElvUI_Enhanced/modules/nameplates/nameplates.lua | 1 | 3544 | local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
local NP = E:GetModule('NamePlates')
local LSM = LibStub("LibSharedMedia-3.0")
local UnitCanAttack, UnitDetailedThreatSituation, GetThreatStatusColor = UnitCanAttack, UnitDetailedThreatSituation, GetThre... | gpl-3.0 |
RisingPhoenixYGOPRO/YGOPro-Custom-Cards | script/c11256.lua | 2 | 6901 | --Stymphal
function c11256.initial_effect(c)
--Synchro Summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(c11256.synfilter),aux.NonTuner(Card.IsType,TYPE_SYNCHRO),1)
c:EnableReviveLimit()
--Pendulum Set
aux.AddPendulumProcedure(c)
--Return
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(1125... | gpl-3.0 |
RisingPhoenixYGOPRO/YGOPro-Custom-Cards | script/c77628932.lua | 2 | 1789 | --Tempest of the Black Art
function c77628932.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),aux.NonTuner(Card.IsSetCard,0xba003),1)
c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProper... | gpl-3.0 |
qyh214/wow_addons_private_use | AddOns/PremadeGroupsFilter/Init.lua | 1 | 6647 | -------------------------------------------------------------------------------
-- Premade Groups Filter
-------------------------------------------------------------------------------
-- Copyright (C) 2022 Elotheon-Arthas-EU
--
-- This program is free software; you can redistribute it and/or modify
-- it under the ter... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.