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 |
|---|---|---|---|---|---|
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/weapon_capacitor/cap_subpro_dauntless_z5.lua | 3 | 2348 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | agpl-3.0 |
cappiewu/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/route.lua | 61 | 2294 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Route"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and sends... | apache-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/medicine/crafted/medpack_disease_area_quickness_b.lua | 2 | 3392 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/component/serverobjects.lua | 3 | 3337 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_armor_ubese_bandolier.lua | 1 | 3313 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_wke_shirt_s03.lua | 1 | 3556 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | agpl-3.0 |
opentibia/server | data/scripts/otstd/classes/spell.lua | 3 | 28184 | Spell = {}
Spell_mt = {__index=Spell}
otstd.spells = {} -- By name (all spells must have an unique name)
function Spell:new(name)
local spell = {
-- Common for all spells
name = name,
vocation = "any",
level = 0,
magicLevel = 0,
mana = 0,
health = 0,
... | gpl-2.0 |
anoidgit/reading-comprehension | deps/MaxColl.lua | 1 | 1772 | local MaxColl, parent = torch.class('nn.MaxColl', 'nn.Module')
--Warning : this module is not batchable now!
function MaxColl:__init()
parent.__init(self)
end
function MaxColl:updateOutput(input)
local passage, fscore = unpack(input)
self.vocab = {}
self.mid = {}
local score = {}
local _fscore = fscore:reshape... | gpl-3.0 |
hfjgjfg/flash5 | plugins/banhammer.lua | 106 | 11894 |
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 |
jshackley/darkstar | scripts/zones/Dynamis-Bastok/mobs/Gu_Dha_Effigy.lua | 1 | 1088 | -----------------------------------
-- Area: Dynamis Bastok
-- MOB: Gu'Dha Effigy
-- Mega Boss
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-------------... | gpl-3.0 |
Mizugola/MeltingSaga | engine/Lib/Extlibs/pl/stringio.lua | 8 | 3777 | --- Reading and writing strings using file-like objects. <br>
--
-- f = stringio.open(text)
-- l1 = f:read() -- read first line
-- n,m = f:read ('*n','*n') -- read two numbers
-- for line in f:lines() do print(line) end -- iterate over all lines
-- f = stringio.create()
-- f:write('hello')
-- f:wr... | mit |
jshackley/darkstar | scripts/globals/weaponskills/sickle_moon.lua | 30 | 1658 | -----------------------------------
-- Sickle Moon
-- Great Sword weapon skill
-- Skill level: 200
-- Delivers a two-hit attack. Damage varies with TP.
-- Modifiers: STR:40% ; AGI:40%
-- 100%TP 200%TP 300%TP
-- 1.5 2 2.75
-----------------------------------
require("scripts/globals/status");
require("scr... | gpl-3.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/wild_oats.lua | 18 | 1960 | -----------------------------------------
-- Spell: Wild Oats
-- Additional effect: Vitality Down. Duration of effect varies on TP
-- Spell cost: 9 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1, HP+10
-- Level: 4
-- Casting Time: 0.5 seconds
-- R... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/demonic_sword.lua | 41 | 1080 | -----------------------------------------
-- ID: 16936
-- Item: Demonic Sword
-- Additional Effect: Darkness Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------... | gpl-3.0 |
SpRoXx/GTW-RPG | [resources]/GTWweather/weather_s.lua | 1 | 1156 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
DipColor/mehrabon3 | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
yagop/telegram-bot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Southern_San_dOria/npcs/Amutiyaal.lua | 17 | 4468 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Amutiyaal
-- Warp NPC (Aht Urhgan)
-- @pos 116 0.1 84 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm5.lua | 34 | 1385 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm5 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -259.927 -5.500 194.410 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/strip_of_meat_jerky.lua | 35 | 1393 | -----------------------------------------
-- ID: 4376
-- Item: strip_of_meat_jerky
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 22
-- Attack Cap 30
-----------------------------------------
require("scripts/globals/status");
-----... | gpl-3.0 |
DipColor/mehrabon3 | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Ombridride/minetest-minetestforfun-server | mods/pipeworks/common.lua | 11 | 3692 | ----------------------
-- Vector functions --
----------------------
function vector.cross(a, b)
return {
x = a.y * b.z - a.z * b.y,
y = a.z * b.x - a.x * b.z,
z = a.x * b.y - a.y * b.x
}
end
function vector.dot(a, b)
return a.x * b.x + a.y * b.y + a.z * b.z
end
-----------------------
-- Facedir functions ... | unlicense |
jshackley/darkstar | scripts/zones/Yuhtunga_Jungle/TextIDs.lua | 15 | 1884 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
jshackley/darkstar | scripts/zones/RuLude_Gardens/npcs/Archanne.lua | 38 | 1047 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Archanne
-- Type: Event Scene Replayer
-- @zone: 243
-- @pos -54.104 10.999 -34.144
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
--... | gpl-3.0 |
LiberatorUSA/GUCEF | dependencies/cegui/cegui/src/CommonDialogs/premake5.lua | 1 | 1201 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
Zyres/AscentHistory | extras/Hyjal_RWC.lua | 3 | 15980 | ------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
-- ... | agpl-3.0 |
DarkRainX/ufoai | base/ufos/ui/base.section.transfer.lua | 2 | 1308 | --!usr/bin/lua
--[[
-- @file
-- @brief Alien Containment base menu section
--]]
--[[
Copyright (C) 2002-2020 UFO: Alien Invasion.
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 2
of... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua | 29 | 1246 | -----------------------------------
-- Area: Abyssea - Konschatat
-- NPC: Cavernous Maw
-- @pos 159.943 -72.109 -839.986 15
-- Teleports Players to Konschatat Highlands
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
sugiartocokrowibowo/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
jshackley/darkstar | scripts/globals/items/bowl_of_goblin_stew.lua | 13 | 1500 | -----------------------------------------
-- ID: 4465
-- Item: bowl_of_goblin_stew
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Dexterity -4
-- Attack % 15.5
-- Ranged Attack % 15.5
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Castle_Oztroja/npcs/_47f.lua | 17 | 1240 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47f (Handle)
-- Notes: Opens door _471
-- @pos -182 -15 -19 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/Te... | gpl-3.0 |
CapsAdmin/unfinished | client/fractal_awesomium.lua | 1 | 13887 | --if not LocalPlayer():CheckUserGroupLevel("developers") then return end
local mat_screenspace = Material("models/screenspace")
local mdl_dome = Model("models/props_phx/construct/metal_dome360.mdl")
local white = Color(255, 255, 255, 255)
SafeRemoveEntity(fractal_renderer)
local renderer = ClientsideModel(mdl_dome)
... | gpl-3.0 |
men232/greencode-framework | lua/greencode/plugins/territory/classes/sh_territory_permission.lua | 1 | 1391 | --[[ Define the territory permission class metatable. --]]
TERRITORY_PERMISSION_CLASS = TERRITORY_PERMISSION_CLASS or {__index = TERRITORY_PERMISSION_CLASS};
function TERRITORY_PERMISSION_CLASS:__call( parameter, failSafe )
return self:Query( parameter, failSafe );
end;
function TERRITORY_PERMISSION_CLASS:__tostring... | mit |
jshackley/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mafwahb.lua | 34 | 1212 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mafwahb
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Bibiki_Bay/Zone.lua | 27 | 6364 | -----------------------------------
--
-- Zone: Bibiki_Bay (4)
--
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
10sa/Advanced-Nutscript | nutscript/gamemode/libs/sh_scrolltext.lua | 2 | 2345 | --[[
Purpose: Provides an interface for drawing and sending 'scrolling text.'
Scrolling text simply is just text that 'types' itself.
--]]
nut.scroll = nut.scroll or {}
nut.scroll.buffer = nut.scroll.buffer or {}
local CHAR_DELAY = 0.1
if (CLIENT) then
NUT_CVAR_SCROLLVOL = CreateClientConVar("nut_scrollvol", 40, ... | mit |
jshackley/darkstar | scripts/zones/Port_San_dOria/npcs/Bellue.lua | 36 | 1372 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Bellue
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextID... | gpl-3.0 |
LuaDist/lua-uri | uri/_login.lua | 2 | 2886 | local M = { _NAME = "uri._login" }
local Util = require "uri._util"
local URI = require "uri"
Util.subclass_of(M, URI)
-- Generic terminal logins. This is used as a base class for 'telnet' and
-- 'ftp' URL schemes.
local function _valid_userinfo (userinfo)
if userinfo then
local colon = userinfo:find(":"... | mit |
jshackley/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahraga.lua | 19 | 1178 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Wahraga
-- Guild Merchant: Alchemist Guild
-- @pos -76.836 -6.000 140.331 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
iofun/treehouse | luerl/f4cb17f2e6a99c54831367b120678d42.lua | 1 | 2212 | -- The Creep Colony are structures that extend the network,
-- on which the system can place its buildings.
-- Our unit function table
local this_unit = {}
-- Where we are and fast we move
local x, y, dx, dy
-- Our name
local name = "Zerg_Creep_Colony"
-- Our color
local color = "red"
-- Our BWAPI unit ... | agpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Woods/npcs/Spare_Two.lua | 17 | 1506 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Two
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/_misc/uncraft_woll.lua | 8 | 1706 | -- récupéré les "cotton" des "wool" faite (récupère 3 aulieu de 4 et perte du colorant)
minetest.register_craft({
output = "farming:cotton 4",
recipe = {
{"wool:black"},
},
})
minetest.register_craft({
output = "farming:cotton 4",
recipe = {
{"wool:white"},
},
})
minetest.register_craft({
output = "farming... | unlicense |
jshackley/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Fortitude.lua | 5 | 2633 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Fortitude
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob... | gpl-3.0 |
Th2Evil/SuperPlus | plugins/run.lua | 12 | 1122 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ ... | gpl-2.0 |
Shrike78/Shilke2D | Shilke2D/Core/Event.lua | 1 | 1996 | --[[---
Event objects are passed as parameters to event listeners when an event occurs.
This is Shilke2D's version of the Flash Event class.
EventDispatchers create instances of this class and send them to registered listeners.
An event object contains information that characterizes the event, most importantly the... | mit |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-wol/luasrc/model/cbi/wol.lua | 42 | 2521 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local sy... | gpl-2.0 |
shagu/pfQuest | db/ruRU/items.lua | 1 | 1037827 | pfDB["items"]["ruRU"] = {
[17] = "Ярость Мартина",
[25] = "Иссеченный короткий меч",
[35] = "Гнутый посох",
[36] = "Иссеченная палица",
[37] = "Старый топор",
[38] = "Рубашка рекрута",
[39] = "Штаны рекрута",
[40] = "Сапоги рекрута",
[41] = "Старый пояс рекрута",
[42] = "СТАРЫЙ пояс оруженосца",
[... | mit |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/SceneReader.lua | 6 | 1320 |
--------------------------------
-- @module SceneReader
--------------------------------
-- @function [parent=#SceneReader] setTarget
-- @param self
-- @param #function func
--------------------------------
-- @function [parent=#SceneReader] createNodeWithSceneFile
-- @param self
-- @param #string str
-- @... | mit |
jshackley/darkstar | scripts/globals/spells/diaga.lua | 18 | 2177 | -----------------------------------------
-- Spell: Diaga
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
------------------------------... | gpl-3.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/general/objects/mounts.lua | 3 | 1120 | -- 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/Widgets/chili/Controls/checkbox.lua | 3 | 2038 | --// =============================================================================
--- Checkbox module
--- Checkbox fields.
-- Inherits from Control.
-- @see control.Control
-- @table Checkbox
-- @bool[opt = true] checked checkbox checked state
-- @string[opt = "text"] caption caption to appear in the checkbox
-- @st... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/town-point-zero/npcs.lua | 2 | 7926 | -- 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/ShowText.lua | 2 | 1962 | -- 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 |
eXhausted/Ovale | Options.lua | 1 | 13851 | --[[--------------------------------------------------------------------
Copyright (C) 2012, 2013 Sidoine De Wispelaere.
Copyright (C) 2012, 2013, 2014 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
-- Ovale opt... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/quests/deep-bellow.lua | 3 | 1509 | -- 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/Widgets/dbg_dcicon.lua | 8 | 4356 | -- $Id: dbg_dcicon.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---------------... | gpl-2.0 |
RyMarq/Zero-K | LuaRules/Gadgets/unit_bomber_dive.lua | 1 | 13385 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
p00ria/Grandex | plugins/Gif.lua | 2 | 1812 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
loca... | gpl-2.0 |
fyrchik/xlua | exercises/rail-fence-cipher/rail-fence-cipher_spec.lua | 3 | 1541 | local rfc = require('rail-fence-cipher')
describe('rail-fence-cipher', function()
describe('encode', function()
it('should encode with 2 rails', function()
assert.equal('XXXXXXXXXOOOOOOOOO', rfc.encode('XOXOXOXOXOXOXOXOXO', 2))
end)
it('should encode with 3 rails', function()
assert.equal('W... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Windurst_Woods/npcs/Palyalya.lua | 5 | 1041 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Palyalya
-- Type: Adv. Assistant
-- @zone: 241
-- @pos: 62.298 -3.499 -128.093
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--------... | gpl-3.0 |
jsj2008/ValyriaTear | dat/debug/debug_menu.lua | 2 | 3957 | function BootMenuTest()
print("BootMenuTest");
GlobalManager:AddCharacter(BRONANN);
GlobalManager:AddCharacter(KALYA);
GlobalManager:AddCharacter(SYLVE);
GlobalManager:AddCharacter(THANIS);
-- Bronann
local bronann = GlobalManager:GetCharacter(BRONANN);
-- specials
--bronann:AddSk... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/metropolis_torso_pistol_shot_5.meta.lua | 2 | 2795 | 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 |
realhidden/wargus | scripts/menus/network.lua | 1 | 17349 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
adde88/Nerdpack-Zylla | rotations/paladin/retribution.lua | 1 | 16334 | 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..'... | mit |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Looks.lua | 1 | 1556 | --[[
Title: NplMicrobitDef_Looks
Author(s): leio
Date: 2019/11/29
Desc:
use the lib:
-------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Code/NplMicrobit/NplMicrobitDef/NplMicrobitDef_Looks.lua");
-------------------------------------------------------
]]
NPL.export({
... | gpl-2.0 |
pakoito/ToME---t-engine4 | game/modules/example/class/Actor.lua | 3 | 8477 | -- ToME - Tales of Middle-Earth
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any la... | gpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/yellow_dagger.meta.lua | 2 | 3131 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 80,
light_colors = {
"238 255 0 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = false
},
offsets = {... | agpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/globals/items/bowl_of_pomodoro_sauce.lua | 1 | 1137 | -----------------------------------------
-- ID: 5194
-- Item: Bowl of Pomodoro Sauce
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Intelligence 2
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
dvv/luvit-geoip | lib/country.lua | 1 | 7851 | return {
code = { "--","AP","EU","AD","AE","AF","AG","AI","AL","AM","CW","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM",... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/quests/west-portal.lua | 3 | 4530 | -- 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/talents/spells/necrosis.lua | 2 | 11673 | -- 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/texts/tutorial/talents.lua | 3 | 2765 | -- 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/locales/en.lua | 1 | 341740 | local lang = {
["abort"] = "Abort",
["acknowledge"] = "Acknowledge",
["acknowledge_alerts"] = "Acknowledge Alerts",
["acknowledged_all"] = "All",
["acknowledged_only"] = "Acknowledged Only",
["action"] = "Action",
["actions"] = "Actions",
["active_flows"] = "Active Flows",
["activities"] = "Activities... | gpl-3.0 |
RyMarq/Zero-K | LuaUI/Widgets/cmd_group_move.lua | 8 | 2476 | function widget:GetInfo()
return {
name = "GroupMove",
desc = "Expands destination of multiple unit movement (1.0)",
author = "TheFatController",
date = "16 August, 2010",
license = "MIT",
layer = 0,
enabled = false -- loaded by default?
}
end
---------------... | gpl-2.0 |
RyMarq/Zero-K | effects/gundam_burn.lua | 7 | 2419 | -- burn
return {
["burn"] = {
groundflash = {
circlealpha = 0.1,
circlegrowth = 3,
flashalpha = 1,
flashsize = 12,
ttl = 8,
color = { 0.8, 0.1, 0 },
},
searingflame = {
air = true,
class ... | gpl-2.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/resistance_torso_knife_walk_5.meta.lua | 2 | 2787 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
RyMarq/Zero-K | LuaUI/Widgets/gui_chili_spectator_panels.lua | 1 | 31828 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Spectator Panels",
desc = "Manages UI panels for displaying team information while spect... | gpl-2.0 |
Lleafll/sws-lleaf | libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua | 9 | 19868 | --[[-----------------------------------------------------------------------------
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 38
local AceGUI = LibStub and LibStub("A... | mit |
Laterus/Darkstar-Linux-Fork | scripts/zones/Lower_Jeuno/npcs/Harnek.lua | 3 | 2314 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Harnek
-- Starts and Finishes Quest: The Tenshodo Showdown (finish)
-- @zone 245
-- @pos 44 0 -19
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
knixeur/notion | contrib/statusd/statusd_fortune.lua | 3 | 6403 | -- Authors: Hendrik Iben <hiben@tzi.de>
-- License: GPL, version 2
-- Last Changed: 2006-03-23
--
-- statusd_fortune.lua v20060323
--
-- Displays a fortune (in a sane way for one line).
-- My first attempt at writing in lua and for ion.
--
-- Written by Hendrik Iben < hiben at tzi dot de >
--
-- How to use :
-- fortune... | lgpl-2.1 |
NPLPackages/paracraft | script/apps/Aries/Creator/Game/Entity/DataContainer.lua | 1 | 2382 | --[[
Title: Data Container
Author(s): LiXizhi
Date: 2013/12/25
Desc: a container of serializable container.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Entity/DataContainer.lua");
local DataContainer = commonlib.gettable("MyCompany.Aries.Game.E... | gpl-2.0 |
damonkohler/cartographer_ros | cartographer_ros/configuration_files/backpack_2d_localization_evaluation.lua | 4 | 1068 | -- Copyright 2016 The Cartographer Authors
--
-- 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 or... | apache-2.0 |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/tools/generic-cpp.lua | 13 | 3616 | module(..., package.seeall)
local nodegen = require "tundra.nodegen"
local boot = require "tundra.boot"
local util = require "tundra.util"
local path = require "tundra.path"
local scanner = require "tundra.scanner"
local depgraph = require "tundra.depgraph"
local scanner_cache = {}
function get_cpp_sca... | mit |
terinux/ahhhh | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
flyzjhz/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-polipo/luasrc/model/cbi/polipo.lua | 79 | 5961 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com>
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$... | gpl-2.0 |
NRauh/wordgrinder | tests/smartquotes-selection.lua | 3 | 1035 | require("tests/testsuite")
DocumentSet.addons.smartquotes.singlequotes = false
DocumentSet.addons.smartquotes.doublequotes = false
DocumentSet.addons.smartquotes.notinraw = true
Cmd.InsertStringIntoParagraph("'Hello, world!'")
Cmd.SplitCurrentParagraph()
Cmd.InsertStringIntoParagraph('"Hello, world!"')
Cmd.SplitCurre... | mit |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/abashed-expanse/objects.lua | 6 | 1628 | -- 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/apps/Aries/Creator/Game/Entity/EntityImage.lua | 1 | 27181 | --[[
Title: EntityImage
Author(s): LiPeng, LiXizhi
Date: 2013/12/17
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Aries/Creator/Game/Entity/EntityEntityImage.lua");
local EntityEntityImage = commonlib.gettable("MyCompany.Aries.Game.EntityManager.EntityEntityI... | gpl-2.0 |
TerminalShell/zombiesurvival | entities/entities/prop_detpack/init.lua | 1 | 2469 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local function RefreshDetpackOwners(pl)
for _, ent in pairs(ents.FindByClass("prop_detpack")) do
if ent:IsValid() and ent:GetOwner() == pl then
ent:SetOwner(NULL)
end
end
end
hook.Add("PlayerDisconnected", "Detpack.PlayerDisconnecte... | gpl-3.0 |
Laterus/Darkstar-Linux-Fork | scripts/zones/Qufim_Island/npcs/Jiwon.lua | 1 | 1863 | -----------------------------------
-- Area: Qufim Island
-- NPC: Jiwon
-- @zone 126
-- @pos -249 -19 300
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
... | gpl-3.0 |
TeamHypersomnia/Hypersomnia | hypersomnia/content/gfx/snackbar.meta.lua | 2 | 2691 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 120,
light_colors = {
"255 0 0 255",
"21 212 209 255",
"105 200 128 255",
"152 85 209 255",
"77 191 125 255"
},
radius = {
x = 120,
... | agpl-3.0 |
h4mu/bstone | com.github.h4mu.bstone/jni/SDL/premake/util/sdl_projects.lua | 5 | 16074 | -- 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 |
pakoito/ToME---t-engine4 | game/modules/tome/data/zones/scintillating-caves/objects.lua | 3 | 1258 | -- 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/texts/tutorial/ranged.lua | 3 | 1576 | -- 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 |
Reisz/OuterRim | src/util/geometry.lua | 1 | 1184 | local geometry = {}
local mt_box = {}
function mt_box:__call() return self.x, self.y, self.width, self.height end
function geometry.box(x, y, width, height)
if type(x) == "table" then
return setmetatable({x = x[1], y = x[2], width = x[3], height = x[4]}, mt_box)
end
return setmetatable({x = x, y = y, width ... | gpl-2.0 |
SlNPacifist/ProDBG | bin/win32/scripts/tundra/tools/msvc-vscommon.lua | 13 | 10620 | -- msvc-vscommon.lua - utility code for all versions of Visual Studio
module(..., package.seeall)
local native = require "tundra.native"
local os = require "os"
-- Visual Studio tooling layout
local vc_bin_map = {
["x86"] = {
["x86"] = "",
["x64"] = "x86_amd64",
["arm"] = "x86_arm",
},
["x64"] = {... | mit |
RyMarq/Zero-K | units/chicken_shield.lua | 1 | 5692 | return { chicken_shield = {
unitname = [[chicken_shield]],
name = [[Blooper]],
description = [[Shield/Anti-Air]],
acceleration = 1.08,
activateWhenBuilt = true,
brakeRate = 1.23,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
fyrchik/xlua | exercises/custom-set/example.lua | 3 | 1484 | local Set = {}
Set.__index = Set
local function create(...)
local o = { _contents = {} }
for _, v in ipairs(table.pack(...)) do
o._contents[v] = true
end
return setmetatable(o, Set)
end
function Set:equals(other)
return self:is_subset(other) and other:is_subset(self)
end
function Set:add(element)
sel... | mit |
soheil22222222/mm | plugins/anti_spam_2.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
madpilot78/ntopng | scripts/lua/modules/alert_definitions/flow/alert_known_proto_on_non_std_port.lua | 1 | 1732 | --
-- (C) 2019-21 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
l... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.