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 |
|---|---|---|---|---|---|
rpetit3/darkstar | scripts/zones/Empyreal_Paradox/mobs/Promathia.lua | 23 | 2785 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Promathia
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
Endika/Algorithm-Implementations | Iterative_Deepening_Depth_First_Search/Lua/Yonaba/iddfs_test.lua | 26 | 2549 | -- Tests for iddfs.lua
local IDDFS = require 'iddfs'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true... | mit |
vlapsley/outback | mods/biomes/underground.lua | 1 | 4289 | --[[
Underground
--]]
-- underground
minetest.register_biome({
name = "underground",
node_stone = "default:stone",
y_max = -32,
y_min = -1071,
heat_point = 50,
humidity_point = 50,
})
--[[
Ores
--]]
-- Blob ore first to avoid other ores inside blobs
... | lgpl-2.1 |
TakingInitiative/wesnoth | data/ai/micro_ais/cas/ca_fast_attack_utils.lua | 3 | 23637 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local T = H.set_wml_tag_metatable{}
-- Functions to perform fast evaluation of attacks and attack combinations.
-- The emphasis with all of this is on speed, not elegance.
-- T... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/maptools/aliases.lua | 11 | 5597 | --[[
Map Tools: alias definitions
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
minetest.register_alias("adminpick", "maptools:pick_admin")
minetest.register_alias("adminpickaxe", "maptools:pick_admin")
minetest.register_alias("admin_pick"... | unlicense |
focusworld/telefocus | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
ahosein243243/teleseed | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
vseledkin/april-ann | packages/basics/stats/lua_src/statistics.lua | 1 | 53576 | local alternatives = { right=true, left=true, ["two-sided"] = true }
stats = stats or {} -- global environment
stats.running = stats.running or {}
april_set_doc(stats.running,{
class = "namespace",
summary = "Table with running statistics classes",
})
stats.dist = stats.dist or {}
--... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/cone_of_snoll_gelato.lua | 18 | 1316 | -----------------------------------------
-- ID: 5147
-- Item: cone_of_snoll_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP % 16 (cap 75)
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/nalc/technic/superquarry.lua | 1 | 9937 |
local S = technic.getter
local tube_entry = "^pipeworks_tube_connection_metallic.png"
local cable_entry = "^technic_cable_connection_overlay.png"
minetest.register_craft({
recipe = {
{"moreores:mithril_block", "pipeworks:filter", "moreores:mithril_block"},
{"technic:motor", "technic:qua... | unlicense |
rpetit3/darkstar | scripts/zones/The_Boyahda_Tree/TextIDs.lua | 15 | 1397 | -- 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 k... | gpl-3.0 |
epwalsh/dotfiles | neovim/after/plugin/nvim-treesitter.lua | 1 | 1340 | require("nvim-treesitter.configs").setup({
-- A list of parser names, or "all"
ensure_installed = { "python", "lua", "rust", "go", "markdown", "markdown_inline", "jsonnet" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
-- Automatically install missing parsers when ... | mit |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Enhanced_Slime.lua | 23 | 1034 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Slime
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------------... | gpl-3.0 |
BooM-amour/TM_VIRUS | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
Telewolf-cli/TeleCli | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | agpl-3.0 |
rpetit3/darkstar | scripts/zones/Lower_Jeuno/npcs/_l08.lua | 13 | 1554 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -32.897 0 -28.521
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
MHK-BOT/copy | plugins/Help.lua | 1 | 6312 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do
table.insert(a, n)
end
table.sort(a, f)
local i = 0
local iter = function ()
i = i + 1
if a[i] == nil then
return nil
else
return a[i], t[a[i]]
end
end
return iter
end
local function has_usage_data(dict)
if (dict.usage == nil or ... | gpl-2.0 |
imashkan/sedfire | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
andmatand/kitty-jump-around | class/spriteinputbuffer.lua | 1 | 2072 | SpriteInputBuffer = Object:extend()
function SpriteInputBuffer:new(sprite)
self.sprite = sprite
self.queue = {}
end
function SpriteInputBuffer:push(event)
table.insert(self.queue, event)
end
function SpriteInputBuffer:process()
self.sprite.isCrouching = false
-- Process all input events in the ... | mit |
rpetit3/darkstar | scripts/zones/Port_San_dOria/npcs/Prietta.lua | 13 | 1584 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Prietta
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
-------------------... | gpl-3.0 |
TakingInitiative/wesnoth | data/ai/lua/stdlib.lua | 36 | 2129 | --! #textdomain wesnoth
return {
init = function(ai, dbg)
-- Initialize the cache system for LuaAI context
local cache = wesnoth.require("ai/lua/cache.lua")
cache.init(ai)
-- Hiding of get_new_* and is_*_valid methods
local to_hide = {
[1] = "get_new_src_dst",
[2] = "get_new_dst_src",
[3] = ... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/items/dish_of_salsa.lua | 18 | 1585 | -----------------------------------------
-- ID: 5299
-- Item: dish_of_salsa
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Strength -1
-- Dexterity -1
-- Agility -1
-- Vitality -1
-- Intelligence -1
-- Mind -1
-- Sleep Resist 5
-----------------------------------------
require("scripts/g... | gpl-3.0 |
alireza98/y | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
vseledkin/april-ann | packages/ann/autoencoders/package.lua | 3 | 1322 | package{ name = "ann.autoencoders",
version = "1.0",
depends = { "ann", "dataset", "matrix", "util", "trainable" },
keywords = { "Stacked Denoising Auto-Encoders" },
description = "Implements a LUA function for training Stacked Denoising Auto-Encoers",
-- targets como en ant
target{
name = "init... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/two-leaf_mandragora_bud.lua | 18 | 1184 | -----------------------------------------
-- ID: 4368
-- Two-Leaf Mandragora Bud
-- 5 Minutes, food effect, All Races
-----------------------------------------
-- Agility +2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
emoon/docking_system | bin/win32/scripts/tundra/ide/xcode3.lua | 28 | 22220 | -- Xcode 3 (works in 4 as well) Workspace/Project file generation
module(..., package.seeall)
local path = require "tundra.path"
local nodegen = require "tundra.nodegen"
local util = require "tundra.util"
local native = require "tundra.native"
local xcode_generator = {}
local xcode_generator = {}
xcode_generator.__i... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Apollyon/bcnms/NE_Apollyon.lua | 35 | 1113 | -----------------------------------
-- Area: Appolyon
-- Name: NE_Apollyon
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[NE_Apollyon]... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/mobskills/Nocturnal_Combustion.lua | 35 | 1096 | ---------------------------------------------
-- Nocturnal Combustion
--
-- Description: Self-destructs, releasing dark energy at nearby targets.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 20' radial
-- Notes: Damage is based on remaining HP and time of day (more damaging near midnight)... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Hanaa_Punaa.lua | 11 | 6750 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Hanaa Punaa
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
nokizorque/ucd | UCDwanted/server.lua | 1 | 3434 | local wantedPoints = {}
addEventHandler("onResourceStart", resourceRoot,
function ()
for _, plr in ipairs(Element.getAllByType("player")) do
if (not plr.account.guest) then
setWantedPoints(plr, exports.UCDaccounts:GAD(plr, "wp"))
end
end
end
)
addEventHandler("onResourceStop", resourceRoot,
function ... | mit |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/kickban/sh_shared.lua | 9 | 4533 | function FAdmin.PlayerActions.ConvertBanTime(time)
local Add = ""
time = math.Round(time)
if time <= 0 then
return "permanent"
elseif time < 60 then
-- minutes
return math.ceil(time) .. " minute(s)"
elseif time >= 60 and time < 1440 then
-- hours
if math.floo... | mit |
bmteam/blowmorph | premake4.lua | 1 | 6298 | function copy(src, dst, always)
local action = "python"
local script = "\"" .. path.join(os.getcwd(), "copy-data.py") .. "\""
src = "\"" .. src .. "\""
dst = "\"" .. dst .. "\""
cwd = "\"" .. os.getcwd() .. "\""
postbuildcommands { action .. " " .. script .. " " .. cwd .. " " .. src .. " " .. dst .. " " .... | bsd-3-clause |
rpetit3/darkstar | scripts/globals/items/carbuncles_pole.lua | 42 | 1577 | -----------------------------------------
-- ID: 18581
-- Item: Carbuncle's Pole
-- Item Effect: Restores 160-220 HP
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------... | gpl-3.0 |
tenvick/hugula | Client/tools/netProtocal/parseErrorCode.lua | 8 | 2038 | require("helperFunction")
io.input("protocal/error_code.txt")
io.output("../../Assets/Lua/net/alertDataList.lua")
function parseAlertData(startLine)
local r = {}
for i in string.gmatch(startLine, string.format('[^%s]+', '-')) do
table.insert(r, i)
end
local alertCode = r[1]
local alertKey =... | mit |
rpetit3/darkstar | scripts/zones/Gusgen_Mines/npcs/Degga.lua | 12 | 1143 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Degga
-- Type: Standard Info NPC
-- @pos 40 -68 -259
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests"... | gpl-3.0 |
dkogan/notion | contrib/scripts/min_tabs.lua | 3 | 3222 | -- Authors: David Tweed, Cas Cremers, David Roundy, John Schreiner
-- License: Unknown
-- Last Changed: 2007-02-22
--
--[[
min_tabs.lua
lua code to auto show/hide tabs as the number of windows in an ion frame
changes from/to 1
this affects windows on WIonWS and WPaneWS workspaces but leave
windows on WFloatWS's a... | lgpl-2.1 |
rpetit3/darkstar | scripts/globals/spells/wind_carol.lua | 27 | 1532 | -----------------------------------------
-- Spell: Wind Carol
-- Increases wind resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Tavourine.lua | 13 | 1923 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Tavourine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
req... | gpl-3.0 |
tenvick/hugula | Client/Assets/Lua/begin.lua | 1 | 2643 | ------------------------------------------------
-- Copyright © 2013-2020 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
local require = require
require("common.requires")
local VMState = VMState
local VMGroup = VMGroup
require("core.hot_reload")
-- ----------------------... | mit |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Kaela.lua | 13 | 1446 | -----------------------------------
-- Area: Metalworks
-- NPC: Kaela
-- Type: Adventurer's Assistant
-- @pos 40.167 -14.999 16.073 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scri... | gpl-3.0 |
lukego/snabbswitch | src/apps/bridge/mac_table.lua | 7 | 21821 | --
-- This module implements a MAC address table as part of the learning
-- bridge app (apps.bridge.learning). It associates a MAC address
-- with the bridge port on which the last packet originating from the
-- address has been seen by the bridge. It also stores the
-- split-horizon group to which the port belongs (... | apache-2.0 |
masoudre11/caffebot | plugins/stats.lua | 1 | 3996 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/items/yagudo_cherry.lua | 18 | 1179 | -----------------------------------------
-- ID: 4445
-- Item: yagudo_cherry
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
open3dengineering/laydrop-firmware | src/rest/api/api_printer.lua | 1 | 6472 | --
-- This file is part of the Doodle3D project (http://doodle3d.com).
--
-- @copyright 2013, Doodle3D
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
local lfs = require('lfs')
local log ... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Oldton_Movalpolos/Zone.lua | 17 | 2534 | -----------------------------------
--
-- Zone: Oldton_Movalpolos (11)
--
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/conquest");
require("scripts/zones/Oldton_Mova... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Bastok/mobs/Gu_Dha_Effigy.lua | 22 | 1057 | -----------------------------------
-- 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 |
cerosrhino/hedgewars-scripts | Scripts/Multiplayer/MineRoper.lua | 1 | 16400 | -- MineRoper script
-- created by rhino [2012-06-02]
-- version 0.14/alpha [2014-01-21]
-- see full license at:
-- https://github.com/cerosrhino/hedgewars-scripts/blob/master/LICENSE
-- CHANGELOG
-- 0.08 -> 0.09
-- -- better key bindings (more suitable for shoppa)
-- 0.10 -> 0.11
-- -- added customization capabilities... | mit |
legoktm/wesnoth | data/ai/micro_ais/cas/ca_stationed_guardian.lua | 24 | 4530 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_guardian(cfg)
local filter = cfg.filter or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", filter }
}[1]
return guardian
end
... | gpl-2.0 |
terryburton/freeradius-server | scripts/ci/openresty/json-api.lua | 8 | 4097 | -- Based on https://github.com/bambattajb/openresty-api-example
-- Helper functions
function strSplit(delim,str)
local t = {}
for substr in string.gmatch(str, "[^".. delim.. "]*") do
if substr ~= nil and string.len(substr) > 0 then
table.insert(t,substr)
end
end
return t
e... | gpl-2.0 |
Endika/Algorithm-Implementations | Bogobogosort/Lua/Yonaba/bogobogosort.lua | 27 | 1330 | -- Bogobogosort description
-- See : http://www.dangermouse.net/esoteric/bogobogosort.html
-- A custom array shuffle implementation
-- This is not part of the Bogobogosort algorithm
local function shuffle(list, s, e)
local n = #list
for i = s + 1, e do
local j, k = math.random(s, e), math.random(s, e)
list[j], ... | mit |
rpetit3/darkstar | scripts/globals/abilities/pets/attachments/auto-repair_kit_ii.lua | 23 | 1205 | -----------------------------------
-- Attachment: Auto-repair Kit II
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onEquip(pet)
pet:addMod(MOD_HPP, 13)
end
function onUnequip(pet)
pet:d... | gpl-3.0 |
dkogan/notion | contrib/statusd/legacy/statusd_mcpu.lua | 3 | 4577 | -- Authors: Jakub Ružička <yac@email.cz>
-- License: Unknown
-- Last Changed: 2008-08-14
--
-- statusd_mcpu.lua - multi CPU monitor for ion3 statusbar
--
-- version 0.1 by Jakub Ružička <yac@email.cz>, 2008-08-14
--
--
-- Small and hopefully efficient monitor for multiple CPU using Linux
-- /proc/stat.
--
-- in cfg_sta... | lgpl-2.1 |
vlapsley/outback | mods/mesecons/mesecons_button/init.lua | 1 | 3042 | -- WALL BUTTON
-- A button that when pressed emits power for 1 second
-- and then turns off again
mesecon.button_turnoff = function (pos)
local node = minetest.get_node(pos)
if node.name ~= "mesecons_button:button_on" then -- has been dug
return
end
minetest.swap_node(pos, {name = "mesecons_button:button_off", p... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_1.lua | 29 | 2253 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_1)
-- @pos -245.000 -18.100 660.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/que... | gpl-3.0 |
dkogan/notion | contrib/statusd/statusd_flashing.lua | 3 | 8149 | -- Authors: Mario García H. <drosophila@nmental.com>
-- License: GPL, version 2
-- Last Changed: 2006-12-10
--
------------------------------------------------------------------------------------
--
-- DESCRIPTION:
-- [ Multi Purpose Monitor for Ion3]
-- It detects if security logs, mboxes, maildirs, some files, etcet... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Bastok_Mines/npcs/Deegis.lua | 13 | 1707 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Deegis
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
schidler/ionic-luci | applications/luci-app-splash/luasrc/controller/splash/splash.lua | 40 | 4649 | module("luci.controller.splash.splash", package.seeall)
local uci = luci.model.uci.cursor()
local util = require "luci.util"
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90)
entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas... | apache-2.0 |
tvandijck/premake-core | modules/vstudio/tests/_tests.lua | 8 | 2882 | require ("vstudio")
return {
-- Visual Studio .Net projects
"dotnet2005/projectelement.lua",
"dotnet2005/test_nuget_framework_folders.lua",
-- Visual Studio 2005+ C# projects
"cs2005/test_assembly_refs.lua",
"cs2005/test_build_events.lua",
"cs2005/test_common_props.lua",
"cs2005/test_compiler_props.lua",
"cs... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Upper_Jeuno/npcs/Shalott.lua | 13 | 1111 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Shalott
-- Optional Involvement in Quest: Save My Son
--------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
--------------------------... | gpl-3.0 |
tenvick/hugula | Client/build/luajit-2.1.0b2/src/jit/v.lua | 42 | 5755 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
rpetit3/darkstar | scripts/globals/abilities/choral_roll.lua | 19 | 2717 | -----------------------------------
-- Ability: Choral Roll
-- Decreases spell interruption rate for party members within area of effect
-- Optimal Job: Bard
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 26
--
-- Die Roll |No BRD |With BRD
-- -------- -------- -------
-- 1 |-13 |-38... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/pear_crepe.lua | 17 | 1370 | -----------------------------------------
-- ID: 5777
-- Item: Pear Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +2
-- Magic Accuracy +5
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst-Jeuno_Airship/npcs/Gabriele.lua | 30 | 2313 | -----------------------------------
-- Area: Windurst-Jeuno Airship
-- NPC: Gabriele
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Windurst-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Windurst-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade ... | gpl-3.0 |
nokizorque/ucd | UCDphone/apps/notes/notes_c.lua | 1 | 1155 | Notes = {}
Notes.open = false
function Notes.create()
phone.notes = {memo = {}}
phone.notes.memo["notes"] = GuiMemo(18, 95, 274, 434, "", false, phone.image["phone_window"])
Notes.all = {
phone.notes.memo["notes"]
}
for _, gui in pairs(Notes.all) do
gui.visible = false
end
-- Load the notes in when ... | mit |
rpetit3/darkstar | scripts/globals/spells/frost.lua | 17 | 1849 | -----------------------------------------
-- Spell: Frost
-- Deals ice damage that lowers an enemy's agility and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------------... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/model/policy.lua | 1 | 1229 | Policy = mondelefant.new_class()
Policy.table = 'policy'
Policy:add_reference{
mode = '1m',
to = "Issue",
this_key = 'id',
that_key = 'policy_id',
ref = 'issues',
back_ref = 'policy'
}
local new_selector = Policy.new_selector
function Policy:new_selector()
l... | mit |
msva/verse | util/httpstream.lua | 1 | 3960 |
local coroutine = coroutine;
local tonumber = tonumber;
local deadroutine = coroutine.create(function() end);
coroutine.resume(deadroutine);
module("httpstream")
local function parser(success_cb, parser_type, options_cb)
local data = coroutine.yield();
local function readline()
local pos = data:find("\r\n", nil... | mit |
lthall/Leonard_ardupilot | libraries/AP_Scripting/examples/SN-GCJA5-particle-sensor.lua | 9 | 6043 | --[[
This script reads a SN-GCJA5 panasonic particle sensor on i2c
reading will be saved to data flash logs, CSV file and streamed as named value floats
Development of this script was sponsored by Cubepilot
the code is heavily based on the SparkFun arduino library
https://github.com/sparkfun/Spark... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Hall_of_Transference/Zone.lua | 25 | 7029 | -----------------------------------
--
-- Zone: Hall_of_Transference
--
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transference/TextIDs");
require("scripts/globals/teleports");
require("script... | gpl-3.0 |
dwmw2/luci | build/luadoc/luadoc/doclet/debug.lua | 175 | 1048 | -----------------------------------------------------------------
-- LuaDoc debugging facilities.
-- @release $Id: debug.lua,v 1.3 2007/04/18 14:28:39 tomas Exp $
-----------------------------------------------------------------
module "luadoc.doclet.debug"
function printline()
print(string.rep('-', 79))
end
------... | apache-2.0 |
schidler/ionic-luci | applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 43 | 1898 | -- Copyright 2012 Christian Gagneraud <chris@techworks.ie>
-- Licensed to the public under the Apache License 2.0.
m = Map("system",
translate("Watchcat"),
translate("Watchcat allows configuring a periodic reboot when the " ..
"Internet connection has been lost for a certain period of time."
))
s = m:secti... | apache-2.0 |
tidatida/annotated_redis_source | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
schidler/ionic-luci | build/luadoc/luadoc/doclet/formatter.lua | 171 | 2556 | -------------------------------------------------------------------------------
-- Doclet to format source code according to LuaDoc standard tags. This doclet
-- (re)write .lua files adding missing standard tags. Texts are formatted to
-- 80 columns and function parameters are added based on code analysis.
--
-- @relea... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5e5.lua | 13 | 1730 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Cracked Wall
-- Involved In Mission: The Jester Who'd Be King
-- @pos -424.255 -1.909 619.995
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Throne_Room/npcs/_4l3.lua | 39 | 1187 | -----------------------------------
-- Area: Throne Room
-- NPC: Ore Door
-------------------------------------
require("scripts/globals/bcnm");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:getZoneID... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Throne_Room/npcs/_4l2.lua | 39 | 1187 | -----------------------------------
-- Area: Throne Room
-- NPC: Ore Door
-------------------------------------
require("scripts/globals/bcnm");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:getZoneID... | gpl-3.0 |
vseledkin/april-ann | packages/ann/fnnlm/package.lua | 3 | 1124 | package{ name = "fnnlm",
version = "1.0",
depends = { "ann_base", "trainable" },
keywords = { "trainable" },
description = "Factored Neural Network Language Models",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "include" },
},
target{ name = ... | gpl-3.0 |
TakingInitiative/wesnoth | data/ai/micro_ais/cas/ca_zone_guardian.lua | 3 | 5184 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local function get_guardian(cfg)
local filter = H.get_child(cfg, "filter") or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.... | gpl-2.0 |
spacebuild/spacebuild | lua/entities/generator_gas_steam/init.lua | 5 | 6801 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
util.PrecacheSound("apc_engine_start")
util.PrecacheSound("apc_engine_stop")
include('shared.lua')
local Energy_Increment = 100
local Water_Increment = 10
local Steam_Increment = 10
local HeatUpTime = 5;
function ENT:Initialize()
self.BaseClass.Initialize(sel... | apache-2.0 |
tommo/gii | packages/Mock/EffectPreview/EffectPreview.lua | 1 | 1439 | --------------------------------------------------------------------
scn = mock_edit.createEditorCanvasScene()
--------------------------------------------------------------------
CLASS: EffectPreview ( mock.Entity )
function EffectPreview:onLoad()
self:addSibling( mock_edit.CanvasGrid() )
self:addSibling( mock_edi... | mit |
rrthomas/luarocks | src/luarocks/config_cmd.lua | 14 | 1976 | --- Module implementing the LuaRocks "config" command.
-- Queries information about the LuaRocks configuration.
local config_cmd = {}
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
local dir = require("luarocks.dir")
config_cmd.help_summary = "Query information about the LuaRocks configurat... | mit |
rpetit3/darkstar | scripts/globals/spells/mages_ballad.lua | 27 | 1156 | -----------------------------------------
-- Spell: Mage's Ballad
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targ... | gpl-3.0 |
nokizorque/ucd | UCDhousing/rob/rob_s.lua | 1 | 3654 | -------------------------------------------------------------------
--// PROJECT: Union of Clarity and Diversity
--// RESOURCE: UCDhousing
--// DEVELOPER(S): Lewis Watson (Noki)
--// DATE: 07/03/2016
--// PURPOSE: Server-side house robbing.
--// FILE: \rob\rob_s.lua [server]
--------------------------------------------... | mit |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Morjean.lua | 13 | 1774 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Morjean
-- Involved in Quest: A Squire's Test II (Optional), The Holy Crest
-- @pos 99 0 116 231
-------------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
dkogan/notion | contrib/statusd/legacy/statusd_apm.lua | 3 | 2501 | -- Authors: Greg Steuck, Darrin Chandler <dwchandler@stilyagin.com>
-- License: Public domain
-- Last Changed: 2006-10-28
--
-- Adds capability for OpenBSD APM info in ion3 statusbar.
--
-- Originally written by Greg Steuck and released into the Public Domain
-- 2006-10-28 modified by Darrin Chandler <dwchandler@stilya... | lgpl-2.1 |
askore/LootSecretary | src/lua/Libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 12 | 3069 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI... | apache-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/diplazer/digrav.lua | 1 | 1054 | local function diplazer_ongravuse(itemstack, user, pointed_thing)
local grav=user:get_physics_override().gravity
if grav==diplazer_restore_gravity_to then
user:set_physics_override({gravity=diplazer_gravity_to_use,})
minetest.sound_play("diplazer_gravon" , {pos = user:getpos(), gain = 2.0, max_hear_distance = 5,... | unlicense |
rpetit3/darkstar | scripts/globals/effects/perfect_defense.lua | 37 | 3077 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
print(target:getMod(MOD_UDMGMAGIC));
print(target:getMod(MOD_UDMGPHYS));
effect:setSubPower(e... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Aystise.lua | 13 | 1060 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Aystise
-- Type: Standard NPC
-- @zone: 94
-- @pos -69.805 -4.5 68.078
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
actboy168/jass2lua | src/import/common.lua | 1 | 90631 | --============================================================================
-- Native types. All native functions take extended handle types when
-- possible to help prevent passing bad values to native functions
--
-- all reference counted objects
-- a reference to an event registration
-- a single player reference... | mit |
esguk811/DarkRP | gamemode/modules/language/sh_english.lua | 3 | 23640 | --[[-----------------------------------------------------------------------
English (example) language file
---------------------------------------------------------------------------
This is the english language file. The things on the left side of the equals sign are the things you should leave alone
The parts betwe... | mit |
legoktm/wesnoth | data/campaigns/The_Rise_Of_Wesnoth/ai/ca_aggressive_attack_no_suicide.lua | 26 | 2248 | local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_aggressive_attack_no_suicide = {}
function ca_aggressive_attack_no_suicide:evaluation(ai, cfg, self)
local units = wesnoth.get_units {
side = wesnoth.current.side,
formula = 'attacks_left > 0'
}
--print('#units', #units)
if (n... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Windurst_Walls/npcs/HomePoint#1.lua | 27 | 1278 | -----------------------------------
-- Area: Windurst Walls
-- NPC: HomePoint#1
-- @pos -72.069 -5.013 124.784 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
require("scripts/g... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Empyreal_Paradox/mobs/Prishe.lua | 23 | 2622 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Prishe
-- Chains of Promathia 8-4 BCNM Fight
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-----------------------------------
-- onMobIn... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Kerutoto.lua | 25 | 12740 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kerutoto
-- Starts Quest Food For Thought
-- Involved in Quest: Riding on the Clouds
-- @zone 238
-- @pos 13 -5 -157
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Ferdoulemiont.lua | 13 | 2290 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ferdoulemiont
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");... | gpl-3.0 |
lukego/snabbswitch | src/apps/bridge/flooding.lua | 14 | 1178 | -- This class derives from lib.bridge.base and implements the simplest
-- possible bridge, which floods a packet arriving on a port to all
-- destination ports within its scope according to the split-horizon
-- topology.
module(..., package.seeall)
local bridge_base = require("apps.bridge.base").bridge
local packet =... | apache-2.0 |
msva/verse | plugins/blocking.lua | 1 | 1523 | local verse = require "verse";
local xmlns_blocking = "urn:xmpp:blocking";
function verse.plugins.blocking(stream)
-- FIXME: Disco
stream.blocking = {};
function stream.blocking:block_jid(jid, callback)
stream:send_iq(verse.iq{type="set"}
:tag("block", { xmlns = xmlns_blocking })
:tag("item", { jid = jid ... | mit |
slaubenberger/learn2love | demo004/libraries/LoveFrames/objects/collapsiblecategory.lua | 5 | 8408 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- collapsiblecategory class
local newobject = loveframes.NewObject("collapsiblecategory", "loveframes_object_collapsiblecategory... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Castle_Oztroja/npcs/_47z.lua | 13 | 1409 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47z (Torch Stand)
-- Notes: Opens door _474
-- @pos -62.464 24.218 -67.313 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztr... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.