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 |
|---|---|---|---|---|---|
CZ-NIC/ucollect | src/plugins/majordomo/scripts/majordomo_cache.lua | 1 | 3747 | #!/usr/bin/env lua
--[[
Copyright 2014, CZ.NIC z.s.p.o. (http://www.nic.cz/)
This script is part of majordomo plugin for ucollect
NUCI 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 Lic... | gpl-2.0 |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/adminmenu/client.lua | 1 | 3894 | local Plugin = Plugin
local tgnsMenuDisplayer
local helpTexts = {}
local function getPageNameHelpText(pageName)
local result = helpTexts[pageName]
return result
end
function Plugin:Initialise()
self.Enabled = true
tgnsMenuDisplayer = TGNSMenuDisplayer.Create(function(menu)
menu:EditPage("Main", function(x)
... | mit |
AlexandreCA/update | scripts/zones/Waughroon_Shrine/bcnms/operation_desert_swarm.lua | 17 | 1780 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Operation desert swarm
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zo... | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/index.lua | 5 | 6903 | --
-- (C) 2013-15 - ntop.org
--
if(ntop.isPro()) then
print(ntop.httpRedirect(ntop.getHttpPrefix().."/lua/pro/dashboard.lua"))
return
end
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- io.write ("Session:".._SESSION["session"].."\n")
require "lua_utils"... | gpl-3.0 |
jstewart-amd/premake-core | src/base/global.lua | 21 | 2163 | ---
-- global.lua
-- The global container holds workspaces and rules.
-- Copyright (c) 2014-2015 Jason Perkins and the Premake project
---
local p = premake
p.global = p.api.container("global")
local global = p.global
---
-- Create a new global container instance.
---
function global.new(name)
return p.contai... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/Windurst_Walls/npcs/Koru-Moru.lua | 25 | 11771 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Koru-Moru
-- Starts & Ends Quest: Star Struck
-- Involved in Quest: Making the Grade, Riding on the Clouds
-- @pos -120 -6 124 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/mobskills/Gregale_Wing_Air.lua | 33 | 1081 | ---------------------------------------------
-- Gregale Wing
--
-- Description: An icy wind deals Ice damage to enemies within a very wide area of effect. Additional effect: Paralyze
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only Jormungand and Isgebind
-------... | gpl-3.0 |
mountainwalker/progams | startup_2.lua | 1 | 3880 | local mode = 0
rednet.open("top")
modem = peripheral.wrap("top")
local status = {[1]=1,[2]=1,[3]=1,[4]=2,[5]=2,[6]=2}
local RPM_1 = {[1]=0,[2]=0,[3]=0,[4]=0,[5]=0,[6]=0}
local RPM_vars = {[1]=0,[2]=0,[3]=0,[4]=0,[5]=0,[6]=0}
--mode 0 mode normal
--mode 2 mode economie
--mode 1 mode boost
local turbine_1,turbine_2,turbi... | gpl-2.0 |
AlexandreCA/update | scripts/globals/items/bowl_of_delicious_puls.lua | 35 | 1320 | -----------------------------------------
-- ID: 4533
-- Item: Bowl of Delicious Puls
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity -1
-- Vitality 3
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
-----... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria/npcs/Ashene.lua | 13 | 2238 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ashene
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 61
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/TextIDs.lua | 22 | 1261 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
xinran505982/videolan_vlc | share/lua/playlist/vimeo.lua | 65 | 3213 | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | gpl-2.0 |
virgo-agent-toolkit/rackspace-monitoring-agent | hostinfo/procs.lua | 3 | 2054 | --[[
Copyright 2015 Rackspace
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 agreed to in writing, software
dis... | apache-2.0 |
AlexandreCA/darkstar | scripts/zones/RuLude_Gardens/npcs/Ghye_Dachanthu.lua | 13 | 1065 | ----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Ghye Dachanthu
-- Type: Item Deliverer
-- @zone: 243
-- @pos -62.789 11.999 -25.959
--
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/zones/RuLude_Gardens/TextIDs");
-----... | gpl-3.0 |
amedlock/breakout | conf.lua | 1 | 1594 |
function love.conf(t)
t.title = "Breakout" -- The title of the window the game is in (string)
t.author = "David Medlock" -- The author of the game (string)
t.url = nil -- The website of the game (string)
t.identity = "breakout" -- The name of the save directory (string)... | mit |
AlexandreCA/darkstar | scripts/globals/weaponskills/blade_shun.lua | 11 | 1803 | -----------------------------------
-- Blade Shun
-- Katana weapon skill
-- Skill level: N/A
-- Description: Delivers a fivefold attack. Attack power varies with TP.
-- In order to obtain Blade: Shun the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additiona... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Al_Zahbi/npcs/Banjanu.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Banjanu
-- Type: Standard NPC
-- @zone: 48
-- @pos -75.954 0.999 105.367
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
jstewart-amd/premake-core | tests/actions/vstudio/vc2010/test_link.lua | 2 | 12670 | --
-- tests/actions/vstudio/vc2010/test_link.lua
-- Validate linking and project references in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_link")
local vc2010 = premake.vstudio.vc2010
local project = premake.projec... | bsd-3-clause |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/scoreboard/server.lua | 1 | 41484 | Plugin.HasConfig = true
Plugin.ConfigName = "scoreboard.json"
local changers = {}
local approvalCounts = {}
local vrConfirmed = {}
-- local vrConfirmedBy = {}
local teamScoresDatas = {}
local vouches = {}
local squadNumbers = {}
local NUMBER_OF_GAMEPLAY_SECONDS_TO_SHOW_LIFEFORM_ICONS = 270
local tunnelDescriptions = {... | mit |
AlexandreCA/darkstar | scripts/zones/Arrapago_Reef/Zone.lua | 11 | 2059 | -----------------------------------
--
-- Zone: Arrapago_Reef (54)
--
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/globals/missions");
require("scripts/globals/keyitem... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Upper_Jeuno/npcs/Deadly_Minnow.lua | 13 | 1826 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Deadly Minnow
-- Standard Merchant NPC
-- Involved in Quest: Borghertz's Hands (1st quest only)
-- @zone 244
-- @pos -5 1 48
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/field/f_pilgrimroad_31_1.lua | 1 | 2554 | addnpc(154049, "ETC_20150730_014064", "f_pilgrimroad_31_1", -303.4865, 1.635254, -330.2439, -44, "npc_dummy")
addnpc(154049, "ETC_20150730_014064", "f_pilgrimroad_31_1", 339.2367, 75.61414, 462.41, -90, "npc_dummy")
addnpc(57337, "ETC_20150730_014065", "f_pilgrimroad_31_1", -1260.809, 75.61414, 1255.095, 45, "npc_dummy... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Windurst_Woods/npcs/Ponono.lua | 44 | 2111 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- @pos -38.243 -2.25 -120.954 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
LSBOSS/bgfx | scripts/bgfx.lua | 5 | 3948 | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function bgfxProject(_name, _kind, _defines)
project ("bgfx" .. _name)
uuid (os.uuid("bgfx" .. _name))
kind (_kind)
if _kind == "SharedLib" then
defines {
"BGFX_SHARED_LIB_BU... | bsd-2-clause |
AlexandreCA/darkstar | scripts/globals/mobskills/Polar_Blast.lua | 33 | 1412 | ---------------------------------------------
-- Polar Blast
--
-- Description: Deals Ice damage to enemies within a fan-shaped area. Additional effect: Paralyze
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown Cone
---------------------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
crazyhamedboy/crazyspamm | plugins/plugins.lua | 72 | 6113 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Valkurm_Dunes/npcs/qm4.lua | 37 | 1033 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm4 (???)
-- Involved in quest: Pirate's Chart
-- @pos -160 4 -131 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Valkurm_Dunes/TextIDs");... | gpl-3.0 |
treytomes/mgreboot | mods/flowers/init.lua | 4 | 7757 | -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
-- Namespace for functions
flowers = {}
-- Map Generation
dofile(minetest.get_modpath("flowers") .. "/mapgen.lua")
--
-- Flowers
--
-- Aliases for original flowers mod
minetest.register_alias("flowers:flower_rose", "flowers:ro... | mit |
AlexandreCA/update | scripts/zones/Tavnazian_Safehold/npcs/Porter_Moogle.lua | 41 | 1547 | -----------------------------------
-- Area: Tavnazian_Safehold
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 26
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_S... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Norg/npcs/Mamaulabion.lua | 17 | 8832 | -----------------------------------
-- Area: Norg
-- NPC: Mamaulabion
-- Starts and finishes Quest: Mama Mia
-- @zone 252
-- @pos -57 -9 68 (88)
--CSIDs for Mamaulabion
--0x005D / 93 = Standard
--0x00BF / 191 = start quest
--0x00C0 / 192 = quest accepted
--0x00C1 / 193 = given an item
--0x00C2 / 194 = given an item yo... | gpl-3.0 |
tartina/ardour | share/scripts/jump_to_marker.lua | 2 | 1986 | ardour { ["type"] = "EditorAction", name = "Search and Jump to Marker",
license = "MIT",
author = "Ardour Team",
description = [[Jump to the first marker that matches a given name pattern]]
}
function factory () return function ()
local keep = false
::restart::
local dlg = LuaDialog.Dialog ("Search an... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Jugner_Forest/npcs/Pure_Heart_IM.lua | 30 | 3050 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Pure Heart, I.M.
-- Type: Border Conquest Guards
-- @pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest"... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Riverne-Site_A01/mobs/Carmine_Dobsonfly.lua | 7 | 1800 | -----------------------------------
-- Area: Riverne Site A01
-- MOB: Carmine Dobsonfly
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(MOBMOD_SUPERLINK, 16900230); -- mobID of the first one
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Quicksand_Caves/TextIDs.lua | 15 | 1486 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
tartina/ardour | share/scripts/_insert_region_gaps.lua | 4 | 1655 | ardour {
["type"] = "EditorAction",
name = "Insert Gaps",
license = "MIT",
author = "Ardour Team",
description = [[Insert gaps between all regions on selected tracks]]
}
function action_params ()
return
{
["gap"] = { title = "Gap size (in sec)", default = "2" },
}
end
function factory () ... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Meriphataud_Mountains_[S]/Zone.lua | 12 | 1788 | -----------------------------------
--
-- Zone: Meriphataud_Mountains_[S] (97)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountains_[S]/TextIDs");
require("scripts/globals/setting... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Sea_Serpent_Grotto/npcs/_4w3.lua | 17 | 2702 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Mythril Beastcoin Door
-- @zone 176
-- @pos 40 8.6 20.012
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
boundary/luvit | tests/test-buffer.lua | 3 | 1734 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
dannysmc95/EclipseOS | eclipse.lua | 1 | 25016 | --[[
Name: Eclipse Operating System
Author: DannySMc (dannysmc95)
Description: Eclipse is my newest OS, with multiple ways to customise and design your environment. Eclipse has support for multiple features, including multitasking, plugins, apps, Discover App Store, themes, an awesome option of 3 environments to wo... | epl-1.0 |
incinirate/Riko4 | scripts/home/demos/grav.lua | 1 | 3087 | local gpp = dofile("/lib/gpp.lua")
local rif = dofile("/lib/rif.lua")
local width, height = gpu.width, gpu.height
local curs = rif.createImage("curs.rif")
local underlay = image.newImage(width, height)
local running = true
local mouseX, mouseY = -5, -5
local particles = {}
particles[1] = {80, height / 2, -18}
par... | mit |
AlexandreCA/update | scripts/zones/Bastok_Markets/Zone.lua | 28 | 2870 | -----------------------------------
--
-- Zone: Bastok_Markets (235)
--
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/events/harvest_festivals");
require("scrip... | gpl-3.0 |
chourobin/kong | kong/dao/schemas_validation.lua | 12 | 7571 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local POSSIBLE_TYPES = {
id = true,
table = true,
array = true,
string = true,
number = true,
boolean = true,
url = true,
timestamp = true
}
local custom_types_validation = {
["id"] = function(v) return type(v) == "string" en... | mit |
AlexandreCA/update | scripts/globals/spells/armys_paeon_ii.lua | 31 | 1390 | -----------------------------------------
-- Spell: Army's Paeon II
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChec... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/abilities/eagle_eye_shot.lua | 26 | 2067 | -----------------------------------
-- Ability: Eagle Eye Shot
-- Delivers a powerful and accurate ranged attack.
-- Obtained: Ranger Level 1
-- Recast Time: 1:00:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
adamsumm/ZeldANN | Torch/model/GRU.lua | 6 | 2058 |
local GRU = {}
--[[
Creates one timestep of one GRU
Paper reference: http://arxiv.org/pdf/1412.3555v1.pdf
]]--
function GRU.gru(input_size, rnn_size, n, dropout)
dropout = dropout or 0
-- there are n+1 inputs (hiddens on each layer and x)
local inputs = {}
table.insert(inputs, nn.Identity()()) -- x
for L =... | mit |
AlexandreCA/update | scripts/globals/abilities/celerity.lua | 28 | 1156 | -----------------------------------
-- Ability: Celerity
-- Reduces the casting time and the recast time of your next white magic spell by 50%.
-- Obtained: Scholar Level 25
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first.
--
-- Level |Charges |Recharge T... | gpl-3.0 |
AlexandreCA/update | scripts/zones/East_Ronfaure_[S]/npcs/Logging_Point.lua | 29 | 1113 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/East_Ronfaure_[S]/TextIDs... | gpl-3.0 |
techtonik/wesnoth | data/ai/micro_ais/cas/ca_forest_animals_move.lua | 2 | 6904 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local function get_forest_animals(cfg)
-- We want the deer/rabbits to move first, tuskers afterward
local deer_type = cfg.deer_t... | gpl-2.0 |
AlexandreCA/update | scripts/zones/RuAun_Gardens/Zone.lua | 28 | 15340 | -----------------------------------
--
-- Zone: RuAun_Gardens (130)
--
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/conque... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/logging.lua | 14 | 6438 | -------------------------------------------------
-- Logging functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Logging
-------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------------------------------
-- npcid ... | gpl-3.0 |
exercism/xlua | exercises/practice/crypto-square/.meta/example.lua | 3 | 1231 | local function normalized_plaintext(plaintext)
return plaintext:lower():gsub('%p*%s*', '')
end
local function size(plaintext)
return math.ceil(math.sqrt(#normalized_plaintext(plaintext)))
end
local function segments(plaintext)
local normalized_plaintext = normalized_plaintext(plaintext)
local segment_size = s... | mit |
AlexandreCA/darkstar | scripts/globals/mobskills/Lethe_Arrows.lua | 29 | 1094 | ---------------------------------------------
-- Lethe Arrows
--
-- Description: Deals a ranged attack to target. Additional effect: Knockback, Bind, and Amnesia
-- Type: Ranged
-- Utsusemi/Blink absorb: Ignores Utsusemi
-- Range: Unknown
-- Notes:
---------------------------------------------
require("scripts/g... | gpl-3.0 |
mobinantispam/test-bot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
exercism/xlua | exercises/practice/anagram/anagram_spec.lua | 3 | 1975 | local Anagram = require('anagram')
describe('anagram', function()
it('no result', function()
local detector = Anagram:new('diaper')
local result = detector:match({ 'hello', 'world', 'zombies', 'pants' })
local expected = {}
assert.are.same(expected, result)
end)
it('detects simple anagram', func... | mit |
AlexandreCA/update | scripts/commands/cnation.lua | 26 | 1234 | ---------------------------------------------------------------------------------------------------
-- func: @cnation <target> <campaign allegiance>
-- desc: check or alter target characters campaign allegiance
---------------------------------------------------------------------------------------------------
cmd... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Goblin_Replica.lua | 6 | 1164 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
--------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/conquest.lua | 13 | 45210 | -----------------------------------
--
-- Functions for Conquest system
--
-----------------------------------
require("scripts/globals/common");
require("scripts/globals/missions");
-----------------------------------
-- convenience constants
-----------------------------------
SANDORIA = 0;
BASTOK = 1;
WINDU... | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/modules/top_talkers.lua | 2 | 13306 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "persistence"
other_stats_id = "Other"
-- #################################################
function getTop(stats, sort_field_key, max_num_entries, lastdump_dir, lastdump_ke... | gpl-3.0 |
AlexandreCA/update | scripts/globals/mobskills/Core_Meltdown.lua | 18 | 1084 | ---------------------------------------------------
-- Core Meltdown (Ghrah)
-- Reactor core fails and self-destructs, damaging any nearby targets.
-- Note: Very rare, estimated 5% chance
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Spire_of_Mea/npcs/_0l1.lua | 51 | 1321 | -----------------------------------
-- Area: Spire_of_Mea
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Mea/TextIDs");
---------------... | gpl-3.0 |
samboy/Oblige | games/hexen/levels.lua | 1 | 4783 | ------------------------------------------------------------------------
-- HEXEN LEVELS
------------------------------------------------------------------------
--
-- Copyright (C) 2006-2011 Andrew Apted
-- Copyright (C) 2011-2012 Jared Blackburn
--
-- This program is free software; you can redistribute it and/or
... | gpl-2.0 |
paly2/minetest-minetestforfun-server | mods/mesecons/mesecons/oldwires.lua | 8 | 1245 | minetest.register_node("mesecons:mesecon_off", {
drawtype = "raillike",
tiles = {"jeija_mesecon_off.png", "jeija_mesecon_curved_off.png", "jeija_mesecon_t_junction_off.png", "jeija_mesecon_crossing_off.png"},
inventory_image = "jeija_mesecon_off.png",
wield_image = "jeija_mesecon_off.png",
paramtype = "light",
is... | unlicense |
AlexandreCA/darkstar | scripts/globals/abilities/pets/judgment_bolt.lua | 34 | 1127 | ---------------------------------------------------
-- Judgment Bolt
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
--------------------------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Southern_San_dOria/npcs/Blendare.lua | 5 | 1909 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Blendare
-- Type: Standard NPC
-- @zone: 230
-- @pos 33.033 0.999 -30.119
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"]... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Lower_Jeuno/npcs/Vhana_Ehgaklywha.lua | 13 | 3545 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vhana Ehgaklywha
-- Standard Info NPC
-- @pos -122.853 0.000 -195.605
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
package.loaded["scripts/globals/pathfind"] ... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Selbina/npcs/Vobo.lua | 17 | 1507 | -----------------------------------
-- Area: Selbina
-- NPC: Vobo
-- Involved in Quest: Riding on the Clouds
-- @pos 37 -14 81 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
requir... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_ne4.lua | 13 | 2994 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Strange Apparatus
-- @pos: -574 0 739 194
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
require("scripts/zones/Outer_Horutoto_Ruins/TextIDs");
require("scripts/globals/strangeapparatus")... | gpl-3.0 |
asce1062/MAHDI-ROM_external_skia | tools/lua/bitmap_statistics.lua | 207 | 1862 | function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/Windurst_Waters/npcs/Fuepepe.lua | 12 | 3846 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fuepepe
-- Starts and Finishes Quest: Teacher's Pet
-- Involved in Quest: Making the grade, Class Reunion
-- @zone = 238
-- @pos = 161 -2 161
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-------... | gpl-3.0 |
gaodayihao/XBurner | Libs/DiesalGUI-1.0/Objects/DropDown.lua | 2 | 9823 | -- $Id: DropDown.lua 53 2016-07-12 21:56:30Z diesal2010 $
local DiesalGUI = LibStub('DiesalGUI-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTools-1.0')
-- ~~| Lua ... | mit |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/td/td.lua | 1 | 23851 | local TdMapName = "ns2_tgns_td"
local NetworkMessageNames = {WaveInProgress = "td_WaveInProgress", RecentlyWelded = "td_RecentlyWelded"}
local waveInProgress
local recentlyWeldedTime = {}
local recentWeldTimespanInSeconds = 3
local recentWeldEffectEnabled
-- kCatPackDuration = 60
TGNS.RegisterNetworkMessage(NetworkMes... | mit |
AlexandreCA/darkstar | scripts/zones/Metalworks/npcs/HomePoint#1.lua | 13 | 1255 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#1
-- @pos: 46 -14 -19 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
--... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/dish_of_spaghetti_ortolana.lua | 36 | 1406 | -----------------------------------------
-- ID: 5658
-- Item: Dish of Spafhetti Ortolana
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Agility 2
-- Vitality 2
-- HP +30% Cap 70
-- StoreTP +6
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/modules/sqlite_utils.lua | 10 | 8666 | --
-- (C) 2014-15 - ntop.org
--
-- This file contains the description of all functions
-- used to interact with sqlite
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "template"
local j = require ("dkjson")
local SqliteClass = {} -- t... | gpl-3.0 |
AlexandreCA/update | scripts/commands/addallspells.lua | 3 | 5066 | ---------------------------------------------------------------------------------------------------
-- func: addallspells
-- desc: Adds all valid spells to the given target. If no target; then to the current player.
---------------------------------------------------------------------------------------------------
... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 19 | 1185 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos: -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
----... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Temenos/mobs/Temenos_Cleaner.lua | 16 | 1289 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Temenos_Cleaner
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/bluemagic/actinic_burst.lua | 18 | 1492 | -----------------------------------------
-- Spell: Actinic Burst
-- Greatly lowers the accuracy of enemies within range for a brief period of time
-- Spell cost: 24 MP
-- Monster Type: Luminions
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CHR+2, HP+20
-- Level: 74
-- Casting Time: 0.... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Windurst_Waters/npcs/Amagusa-Chigurusa.lua | 38 | 1418 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Amagusa-Chigurusa
-- Type: Standard NPC
-- @pos -28.746 -4.5 61.954 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
req... | gpl-3.0 |
abbasgh12345/extremenewedit | plugins/plugins.lua | 88 | 6304 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Mount_Zhayolm/npcs/_1p3.lua | 31 | 3553 | -----------------------------------
-- Area: Mount Zhayolm
-- Door: Runic Seal
-- @pos 703 -18 382 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Kazham/npcs/Hari_Pakhroib.lua | 17 | 2838 | -----------------------------------
-- Area: Kazham
-- NPC: Hari Pakhroib
-- Starts and Finishes Quest: Greetings to the Guardian
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Lower_Jeuno/npcs/_l02.lua | 13 | 1556 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -89.022 -0 -123.317
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Dagger.lua | 16 | 1481 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Dagger
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functi... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Lower_Jeuno/npcs/Adelflete.lua | 13 | 1374 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Adelflete
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
KAISER1350/KAISER | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Norg/npcs/Mamaulabion.lua | 17 | 7918 | -----------------------------------
-- Area: Norg
-- NPC: Mamaulabion
-- Starts and finishes Quest: Mama Mia
-- @zone 252
-- @pos -57 -9 68 (88)
--CSIDs for Mamaulabion
--0x005D / 93 = Standard
--0x00BF / 191 = start quest
--0x00C0 / 192 = quest accepted
--0x00C1 / 193 = given an item
--0x00C2 / 194 = give... | gpl-3.0 |
zhoukk/skynet | service/launcher.lua | 51 | 3199 | local skynet = require "skynet"
local core = require "skynet.core"
require "skynet.manager" -- import manager apis
local string = string
local services = {}
local command = {}
local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK)
local function handle_to_address(handle)
retu... | mit |
CMLL/wesnoth | data/lua/location_set.lua | 28 | 3736 | local location_set = {}
local function index(x, y)
-- the 2000 bias ensure that the correct x is recovered for negative y
return x * 16384 + y + 2000
end
local invscale = 1 / 16384
local function revindex(p)
local x = math.floor(p * invscale)
return x, p - x * 16384 - 2000
end
local methods = {}
local locset_met... | gpl-2.0 |
JiessieDawn/skynet | lualib/skynet/datasheet/dump.lua | 20 | 6547 | --[[ file format
document :
int32 strtbloffset
int32 n
int32*n index table
table*n
strings
table:
int32 array
int32 dict
int8*(array+dict) type (align 4)
value*array
kvpair*dict
kvpair:
string k
value v
value: (union)
int32 integer
float real
int32 boolean
int32 table index
int32 st... | mit |
boundary/luvit | tests/test-fs-append-file-sync.lua | 6 | 3333 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | apache-2.0 |
AlexandreCA/darkstar | scripts/zones/Al_Zahbi/npcs/Chayaya.lua | 13 | 1644 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Chayaya
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Al_Zahbi/TextIDs");
-------------------... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/homedecor_modpack/itemframes/init.lua | 9 | 9746 | local tmp = {}
itemframes = {}
screwdriver = screwdriver or {}
minetest.register_entity("itemframes:item",{
hp_max = 1,
visual="wielditem",
visual_size={x=.33,y=.33},
collisionbox = {0,0,0,0,0,0},
physical=false,
textures={"air"},
on_activate = function(self, staticdata)
if tmp.nodename ~= nil and tmp.texture... | unlicense |
AlexandreCA/update | scripts/zones/Lower_Jeuno/npcs/Matoaka.lua | 37 | 1171 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Matoaka
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/rarab_meatball.lua | 35 | 1731 | -----------------------------------------
-- ID: 4507
-- Item: rarab_meatball
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 20
-- Ranged ATT % 30
-- Ranged ATT Cap 20
---------------------... | gpl-3.0 |
kooiot/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 80 | 4829 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Western_Altepa_Desert/npcs/relic.lua | 38 | 1869 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: <this space intentionally left blank>
-- @pos -152 -16 20 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_De... | gpl-3.0 |
paly2/minetest-minetestforfun-server | minetestforfun_game/mods/farming/cotton.lua | 1 | 5686 | -- Cotton Seed
--minetest.register_craftitem("farming:seed_cotton", {
-- description = "Cotton Seed",
-- inventory_image = "farming_cotton_seed.png",
-- on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:cotton_1")
-- end,
--})
minetest.regis... | unlicense |
AlexandreCA/update | scripts/zones/Selbina/npcs/Porter_Moogle.lua | 41 | 1520 | -----------------------------------
-- Area: Selbina
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 248
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scri... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/field/f_remains_40.lua | 1 | 12065 | addnpc(20118, "QUEST_LV_0100_20150317_000640", "f_remains_40", -502, 304, -2059, 45, "npc_dummy")
addnpc(147473, "QUEST_LV_0100_20150317_000674", "f_remains_40", -242, 311, -1931, -37, "npc_dummy")
addnpc(20156, "QUEST_LV_0100_20150317_000666", "f_remains_40", -645, 304, -1898, 51, "npc_dummy")
addnpc(401641, "ETC_2015... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.