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 |
|---|---|---|---|---|---|
onlymellb/redis-3.0-annotated | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Bastok_Markets/npcs/Degenhard.lua | 3 | 2110 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Degenhard
-- Starts & Ends Quest: The Bare Bones
-- Involved in Quests: Beat Around the Bushin
-- !pos -175 2 -135 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Jeuno/npcs/Imasuke.lua | 3 | 3287 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Imasuke
-- Starts and Finishes Quest: The Antique Collector
-- !pos -165 11 94 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requir... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Rabao/npcs/Shupah_Mujuuk.lua | 12 | 3349 | -----------------------------------
-- Area: Rabao
-- NPC: Shupah Mujuuk
-- Title Change NPC
-- !pos 12 8 20 247
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
local eventId = 1011
local titleInfo =
{
{
cost = 200,
title =
{
... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/distract_ii.lua | 12 | 1617 | -----------------------------------------
-- Spell: Distract II
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
require("scripts/globals/utils")
-----------------------------------------
function onMagicCastingCheck(caster, tar... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/base/tests/database/basics/Environment.lua | 3 | 9132 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
LoPhatKao/GardenBot2 | scripts/harvestpools.lua | 1 | 3725 | -- LoPhatKao - July 2015
-- harvestpools.lua - compatibility addon for Gardenbot 2
-- a workaround til world.spawnTreasure() is implemented
-- uses same calling conventions
harvestPools = {}
function harvestPools.spawnTreasure (pos, poolname, level, seed) -- i'm ignoring level and seed
if type(pos) ~= "table" then r... | apache-2.0 |
Jamanno/Zero-K-Infrastructure | Benchmarker/Benchmarks/Configs/ZKL_with_lights/LuaUI/Config/ZK_data.lua | 12 | 4681 | -- Widget Custom Data
return {
version = 9,
["Auto Group"] = {
version = "3.031",
groups = {},
},
["Chili Docking"] = {
Chat = {
[1] = 1055,
[2] = 0,
[3] = 1475,
[4] = 200,
},
Minimap = {
[1] = 0,
[2] = 0,
[3] = 565,
[4] = 316.95123291016,
},
["Player List"]... | gpl-3.0 |
CAAP/Lua | carlos/sites.lua | 1 | 2953 | -- module setup
local M = {}
-- Import Section
local fd = require'carlos.fold'
local concat = table.concat
local format = string.format
local remove = table.remove
local pairs = pairs
local type = type
local tonumber = tonumber
local tointeger = math.tointeger
local iolines = io.lines
-- No more external access af... | gpl-2.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | gpl-2.0 |
Amorph/premake-stable | tests/test_vs2002_sln.lua | 14 | 1629 | --
-- tests/test_vs2002_sln.lua
-- Automated test suite for Visual Studio 2002 solution generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.vs2002_sln = { }
local suite = T.vs2002_sln
local sln2002 = premake.vstudio.sln2002
--
-- Configure a solution for testing
--
local sln
function su... | bsd-3-clause |
mahdib9/54 | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
Base-Team/BaseBot | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | agpl-3.0 |
starlightknight/darkstar | scripts/globals/mobskills/optic_induration.lua | 11 | 1404 | ---------------------------------------------
-- Optic Induration
--
-- Description: Charges up a powerful, calcifying beam directed at targets in a fan-shaped area of effect. Additional effect: Petrification & enmity reset
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- No... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Dynamis-Qufim/mobs/Antaeus.lua | 23 | 2217 | -----------------------------------
-- Area: Dynamis Qufim
-- MOB: Antaeus
-----------------------------------
package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Qufim/TextIDs");
require("scripts/globals/... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/uskumru.lua | 12 | 1322 | -----------------------------------------
-- ID: 5452
-- Item: Uskumru
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Bastok-Jeuno_Airship/IDs.lua | 12 | 1290 | -----------------------------------
-- Area: Bastok-Jeuno_Airship
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.BASTOK_JEUNO_AIRSHIP] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item... | gpl-3.0 |
sebastianlis/OOP-Samples-for-Corona-SDK | classes/samples/Storage/SQLite.lua | 1 | 2913 | require "classes.constants.screen"
require "sqlite3"
SQLite={}
function SQLite:new()
local this = display.newGroup()
local public = this
local private = {}
local background = display.newImageRect("img/backgroundNotifications.png", 360, 570)
local labelTitle = display.newText("SQLite demo", 20, 30,... | mit |
O-P-E-N/CC-ROUTER | feeds/luci/build/luadoc/luadoc/util.lua | 46 | 5858 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | gpl-2.0 |
O-P-E-N/CC-ROUTER | feeds/luci/applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_radius.lua | 79 | 1554 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("coovachilli")
-- radius server
s1 = m:section(TypedSection, "radius")
s1.anonymous = true
s1:option( Value, "radiusserver1" )
s1:option( Value, "rad... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/spells/sinewy_etude.lua | 5 | 1810 | -----------------------------------------
-- Spell: Sinewy Etude
-- Static STR Boost, BRD 24
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/SparseMatrixAsVector.lua | 1 | 7603 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/11/25 01:28:16 $
$RCSfile: SparseMatrixAsVector.lua,v $
$Revision: 1.7 $
$Id: SparseMatrixAsVector.lua,v 1.7 2004/11/25 01:28:16 brpreiss Exp $
--]]
require "SparseMatrix"
require "Array"... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Bastok_Mines/npcs/Azette.lua | 5 | 1979 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Azette
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-- o... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/_l07.lua | 3 | 2850 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -51 0 -59 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/base/lua/Jump.lua | 3 | 2236 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/modules/base/luasrc/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | gpl-2.0 |
MasonLeeBack/PolyEngine | thirdparty/vulkan/shaderc/third_party/spirv-tools/external/spirv-headers/include/spirv/1.0/spirv.lua | 7 | 25777 | -- Copyright (c) 2014-2017 The Khronos Group Inc.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and/or associated documentation files (the "Materials"),
-- to deal in the Materials without restriction, including without limitation
-- the rights to use, copy, mod... | mit |
gedads/Neodynamis | scripts/globals/abilities/pets/daze.lua | 4 | 1423 | ---------------------------------------------------
-- Daze
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(target, a... | gpl-3.0 |
keplerproject/luarocks | spec/loader_spec.lua | 1 | 2866 | local test_env = require("spec.util.test_env")
local run = test_env.run
local testing_paths = test_env.testing_paths
local write_file = test_env.write_file
describe("luarocks.loader", function()
describe("#unit", function()
it("starts", function()
assert(run.lua_bool([[-e "require 'luarocks.loader'; ... | mit |
starlightknight/darkstar | scripts/zones/Garlaige_Citadel_[S]/npcs/Fondactiont.lua | 11 | 1730 | -----------------------------------
-- Area: Garlaige Citadel [S]
-- NPC: Fondactiont
-- Starts and Finishes Quest: The Fumbling Friar
-- !pos -95 0 196 164
-----------------------------------
require("scripts/globals/npc_util")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
--------------------... | gpl-3.0 |
teleowner/TELEOWNER | plugins/on-off.lua | 1 | 1985 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
ghoss/Lightroom2Tumblr | src/LrSHA1.lua | 1 | 7228 | --[[----------------------------------------------------------------------------
Lightroom2Tumblr
LrSHA1.lua - SHA1 algorithm implementation with Lightroom bit functions.
Copyright (c) 2012-2017 by Guido Hoss.
Lightroom2Tumblr is free software: you can redistribute it and/or
modify it under the terms of the GNU Ge... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Western_Altepa_Desert/npcs/Dreamrose.lua | 9 | 1199 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: Dreamrose
-- Involved in Mission: San D'Oria 6-1
-----------------------------------
local ID = require("scripts/zones/Western_Altepa_Desert/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
-------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/cup_of_healing_tea.lua | 12 | 1466 | -----------------------------------------
-- ID: 4286
-- Item: cup_of_healing_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 10
-- Vitality -1
-- Charisma 3
-- Magic Regen While Healing 2
-- Sleep resistance -40
-----------------------------------------
require("scripts/global... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/FeiYin/npcs/Dry_Fountain.lua | 3 | 1467 | -----------------------------------
-- Area: FeiYin
-- NPC: Dry Fountain
-- Involved In Quest: Peace for the Spirit
-- !pos -17 -16 71 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
stumped2/infrastructure-puppet | modules/gitpubsub/files/app/config.lua | 5 | 2326 | local config = {}
function split(txt, delim)
local tbl = {}
for k in txt:gmatch("([^"..delim.."]+)" .. delim) do
table.insert(tbl, k)
end
return tbl
end
function config.read(file)
local f = io.open(file)
local cfg = {}
if f then
local name, key, value, pobj
while tr... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Windurst_Walls/npcs/Tsuaora-Tsuora.lua | 3 | 1056 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Tsuaora-Tsuora
-- Type: Standard NPC
-- @zone 239
-- !pos 71.489 -3.418 -67.809
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
--------... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/base/tests/database/basics/Society.lua | 3 | 2798 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
pravsingh/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/hamming_weight.lua | 27 | 1422 | -- Hamming weight implementation
-- See: http://en.wikipedia.org/wiki/Hamming_weight
-- Assertion test for the bitwise implementation being used
local function checkBitImplementation(bit)
local msg = 'Failed testing bitwise implementation'
assert(bit.bnot ~= nil, msg)
assert(bit.lshift ~= n... | mit |
starlightknight/darkstar | scripts/globals/abilities/hunters_roll.lua | 12 | 2949 | -----------------------------------
-- Ability: Hunter's Roll
-- Enhances accuracy and ranged accuracy for party members within area of effect
-- Optimal Job: Ranger
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 11
-- Phantom Roll +1 Value: 5
--
-- Die Roll |Without RNG |With RNG
-- -------- ------------ ----... | gpl-3.0 |
CAAP/Lua | carlos/pubsub.lua | 1 | 1070 |
-- Pub-Sub addresses an old messaging problem:
-- multicast or group messaging.
-- PUB sends each message to "all of many",
-- whereas PUSH and DEALER rotate messages to
-- "one of many".
-- Pub-Sub is aimed at scalability, large volumes
-- of data, sent rapidly to many recipients.
-- To get scalability, pub sub gets ... | gpl-2.0 |
starlightknight/darkstar | scripts/commands/addmission.lua | 11 | 1673 | ---------------------------------------------------------------------------------------------------
-- func: addmission <logID> <missionID> <player>
-- desc: Adds a mission to the GM or target players log.
---------------------------------------------------------------------------------------------------
require("scri... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longbow.lua | 17 | 1494 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Longbow
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEng... | gpl-3.0 |
tommy3/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/code.lua | 42 | 2520 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | mit |
ABrandau/OpenRA | mods/cnc/maps/nod02a/nod02a.lua | 4 | 8127 | --[[
Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
alomina007/asli | plugins/filterworld.lua | 15 | 4162 | local function save_filter(msg, name, value)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':filters'
end
if msg.to.type == 'user' then
return 'فقط در گروه ممکن است'
end
if hash then
redis:hset(hash, name, value)
return "انجام شد"
end
end
local function get_fil... | gpl-2.0 |
starlightknight/darkstar | scripts/globals/spells/curaga_ii.lua | 12 | 1393 | -----------------------------------------
-- Spell: Curaga II
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------... | gpl-3.0 |
Craige/prosody-modules | mod_service_directories/mod_service_directories.lua | 32 | 5943 | -- Prosody IM
-- Copyright (C) 2011 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- An implementation of [XEP-0309: Service Directories]
-- Imports and defines
local st = require "util.stanza";
local jid_split = require "util.jid"... | mit |
starlightknight/darkstar | scripts/globals/besieged.lua | 8 | 9691 | -----------------------------------
--
-- Functions for Besieged system
--
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
require("scripts/globals/status")
require("scripts/globals/teleports")
-----------------------------------
dsp = dsp or {}
dsp.besie... | gpl-3.0 |
teleowner/TELEOWNER | plugins/webshot.lua | 2 | 1482 | --Shared by @BlackHatChannel
local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/The_Shrine_of_RuAvitau/IDs.lua | 9 | 2858 | -----------------------------------
-- Area: The_Shrine_of_RuAvitau
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.THE_SHRINE_OF_RUAVITAU] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/spells/hailstorm.lua | 32 | 1182 | --------------------------------------
-- Spell: Hailstorm
-- Changes the weather around target party member to "snowy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Xarcabard/npcs/qm5.lua | 3 | 1396 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm5 (???)
-- Involved in Quests: Breaking Barriers
-- !pos 179 -33 82 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Xarcabard/TextIDs");
require(... | gpl-3.0 |
pedro-andrade-inpe/terrame | ide/zerobrane/terrame-examples/gis/05-cellularspace.lua | 3 | 2438 | --[[ [previous](04-directory.lua) | [contents](00-contents.lua) | [next](06-fill.lua)
A cellular space is composed by a set of squared cells. It is internally
represented as polygons and can be opened in any GIS. Every cells within a
cellular space has the same resolution, such as of 1m x 1m, 500m x 500m, or
100km x 1... | lgpl-3.0 |
gedads/Neodynamis | scripts/zones/Al_Zahbi/npcs/Taten-Bilten.lua | 3 | 1178 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Taten-Bilten
-- Guild Merchant NPC: Clothcraft Guild
-- !pos 71.598 -6.000 -56.930 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
mmaxs/pull_requests--ettercap | src/lua/share/third-party/stdlib/src/object.lua | 12 | 1911 | --- Prototype-based objects
-- <ul>
-- <li>Create an object/class:</li>
-- <ul>
-- <li>Either, if the <code>_init</code> field is a list:
-- <ul>
-- <li><code>object/Class = prototype {value, ...; field = value, ...}</code></li>
-- <li>Named values are assigned to the corresponding fields, and u... | gpl-2.0 |
zzzaaiidd/TCHUKY | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Sealions_Den/bcnms/warriors_path.lua | 9 | 1622 | -----------------------------------
-- Area: Sealion's Den
-- Name: The Warrior's Path
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/missions")
require("scripts/globals/titles")
-----------------------------------
function onBattlefieldTick(battlefield, tick)
d... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/spells/bluemagic/blood_drain.lua | 7 | 1651 | -----------------------------------------
-- Spell: Blood Drain
-- Steals an enemy's HP. Ineffective against undead
-- Spell cost: 10 MP
-- Monster Type: Giant Bats
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 20
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Magic... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/East_Sarutabaruta/npcs/Pore-Ohre.lua | 9 | 1140 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Pore-Ohre
-- Involved In Mission: The Heart of the Matter
-- !pos 261 -17 -458 116
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
local ID = require("scripts/zones/East_Sarutabaruta/IDs... | gpl-3.0 |
soccermitchy/heroku-lapis | opt/src/openresty/bundle/LuaJIT-2.1-20150223/dynasm/dasm_ppc.lua | 3 | 55128 | ------------------------------------------------------------------------------
-- DynASM PPC/PPC64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
--
-- Support for various extensions contributed by Caio Souza Oliveira.
---------------------------------... | gpl-2.0 |
starlightknight/darkstar | scripts/zones/Valkurm_Dunes/IDs.lua | 8 | 4398 | -----------------------------------
-- Area: Valkurm_Dunes
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.VALKURM_DUNES] =
{
text =
{
NOTHING_HAPPENS = 141, -- Nothing happens...
ITEM_C... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 12 | 1159 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NM: Jailer of Faith
-----------------------------------
local ID = require("scripts/zones/The_Garden_of_RuHmet/IDs")
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
function onMobSpawn(mob)
-- Change animat... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua | 3 | 1434 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- !pos 418 25 27 90
-- Teleports Players to Pashhow_Marshlands
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Castle_Oztroja/npcs/_475.lua | 3 | 1131 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _475 (Brass Door)
-- Involved in Mission: Magicite
-- !pos -99 24 -105 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/GeneralTree.lua | 1 | 2406 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/11/25 02:05:25 $
$RCSfile: GeneralTree.lua,v $
$Revision: 1.3 $
$Id: GeneralTree.lua,v 1.3 2004/11/25 02:05:25 brpreiss Exp $
--]]
require "Tree"
require "LinkedList"
--{
-- A general tr... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Port_San_dOria/npcs/Portaure.lua | 17 | 1666 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Portaure
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/quests");
--... | gpl-3.0 |
noname007/vanilla | vanilla/v/application.lua | 2 | 1855 | -- vanilla
local Error = require 'vanilla.v.error'
-- perf
local pairs = pairs
local pcall = pcall
local require = require
local setmetatable = setmetatable
local function buildconf(config)
local ok, sys_conf_or_error = pcall(function() return require('vanilla.sys.config') end)
if ok then
if config ~= ... | mit |
mishin/Algorithm-Implementations | Josephus_Problem/Lua/Yonaba/josephus.lua | 26 | 1689 | -- Josephus problem implementation
-- See: http://en.wikipedia.org/wiki/Josephus_problem
-- Returns the survivor
-- n : the initial number of people
-- k : the count for each step
-- returns : the survivor's number
local function josephus_recursive(n, k)
if n == 1 then return 1
else
return ((joseph... | mit |
starlightknight/darkstar | scripts/globals/mobskills/nerve_gas.lua | 12 | 1061 | ---------------------------------------------
-- Nerve Gas
--
-- Description: Inflicts curse and powerful poison dsp.effect.
-- Type: Magical
-- Wipes Shadows
-- Range: 10' Radial
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/QuBia_Arena/mobs/Trion.lua | 10 | 1813 | -----------------------------------
-- Area: qubia arena
-- MOB: Trion
-- Ally during San d'Oria Mission 9-2
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/QuBia_Arena/TextIDs");
require("scripts/globals/status")... | gpl-3.0 |
bshee/lua-interpreter | test/parser_test.lua | 1 | 4224 | require("init")
local test = require("unittest")
local parser = require("parser")
local Token = require("token")
local inspect = require("inspect")
-- Because laziness
local p = parser
test.addTest(function()
-- Test result toString
local r = parser.Result("value", 2)
test.assertEqual(tostring(r), "Result(value... | mit |
starlightknight/darkstar | scripts/zones/Monastic_Cavern/npcs/Magicite.lua | 9 | 1319 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Magicite
-- Involved in Mission: Magicite
-- !pos -22 1 -66 150
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Monastic_Cavern/IDs")
-----------------------------------
function onTrade(play... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Southern_San_dOria/npcs/Adaunel.lua | 9 | 1135 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Adaunel
-- General Info NPC
-- !pos 80 -7 -22 230
------------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
---------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Aht_Urhgan_Whitegate/npcs/Asrahd.lua | 3 | 3066 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Asrahd
-- Type: Imperial Gate Guard
-- !pos 0.011 -1 10.587 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Secodiand.lua | 11 | 1623 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Secodiand
-- Starts and Finishes Quest: Fear of the dark
-- !pos -160 -0 137 231
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
local ID = require("scri... | gpl-3.0 |
XanDDemoX/ESOFasterTravel | FasterTravel/worldmapinfocontrol.lua | 1 | 2922 | local InfoControl = {}
function InfoControl:AddCategory(control,data,categoryId,typeId,parentId)
if control == nil or data == nil or categoryId == nil then return end
ZO_ScrollList_AddCategory(control,categoryId,parentId)
typeId = data.typeId or typeId or 0
self:AddEntries(control,{data},typeId,parentId)
en... | unlicense |
starlightknight/darkstar | scripts/zones/Cloister_of_Storms/bcnms/trial_by_lightning.lua | 8 | 1535 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Trial by Lightning
-----------------------------------
local ID = require("scripts/zones/Cloister_of_Storms/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
require("scripts/globals... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Northern_San_dOria/npcs/Gilipese.lua | 3 | 1039 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gilipese
-- Type: Standard Dialogue NPC
-- @zone 231
-- !pos -155.088 0.000 120.300
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Selbina/npcs/Elfriede.lua | 9 | 1300 | -----------------------------------
-- Area: Selbina
-- NPC: Elfriede
-- Involved In Quest: The Tenshodo Showdown
-- !pos 61 -15 10 248
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua | 3 | 2315 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kemha Flasehp
-- Type: Fishing Normal/Adv. Image Support
-- !pos -28.4 -6 -98 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
taschemann/kq-lives | scripts/global.lua | 2 | 10377 | -- Global functions available to all scripts
--! \name Progress indicators
-- PLEASE ADD TO THIS LIST IN ORDER!!!
P_START = 0
P_ODDWALL = 1
P_DARKIMPBOSS = 2
P_DYINGDUDE = 3
P_BUYCURE = 4
P_GETPARTNER = 5
P_PARTNER1 = 6
P_PARTNER2 = 7
P_SHOWBRIDGE = 8
P_TALK... | gpl-2.0 |
starlightknight/darkstar | scripts/globals/weaponskills/rampage.lua | 10 | 1509 | -----------------------------------
-- Rampage
-- Axe weapon skill
-- Skill level: 175
-- Delivers a five-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:50%
-- 100%TP 200%TP 3... | gpl-3.0 |
Craige/prosody-modules | mod_muc_limits/mod_muc_limits.lua | 10 | 3327 |
local mod_muc = module:depends"muc";
local rooms = rawget(mod_muc, "rooms"); -- Old MUC API
if not rooms then
rooms = module:shared"muc/rooms"; -- New MUC API
end
local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare;
local st = require "util.stanza";
local new_throttle = require "util.thrott... | mit |
gedads/Neodynamis | scripts/zones/West_Ronfaure/npcs/qm2.lua | 3 | 1487 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm2 (???)
-- Involved in Quest: The Dismayed Customer
-- !pos -550 -0 -542 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
soccermitchy/heroku-lapis | opt/src/openresty/bundle/LuaJIT-2.1-20150223/src/jit/p.lua | 65 | 9092 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Northern_San_dOria/npcs/Synergy_Engineer.lua | 3 | 1068 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Synergy Engineer
-- Type: Standard NPC
-- @zone 231
-- !pos -123.000 10.5 244.000
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = n... | gpl-3.0 |
hades2013/openwrt-mtk | package/ralink/ui/luci-mtk/src/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 59 | 3798 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | gpl-2.0 |
Lymia/MPPatch | src/patch/ui/hooks/frontend/mainmenu/mainmenu_status.lua | 3 | 1824 | -- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, co... | mit |
guiquanz/Dato-Core | src/unity/python/graphlab/lua/pl/input.lua | 28 | 5192 | --- Iterators for extracting words or numbers from an input source.
--
-- require 'pl'
-- local total,n = seq.sum(input.numbers())
-- print('average',total/n)
--
-- _source_ is defined as a string or a file-like object (i.e. has a read() method which returns the next line)
--
-- See @{06-data.md.Reading_Unstru... | agpl-3.0 |
ABrandau/OpenRA | mods/ra/maps/allies-07/allies07-AI.lua | 3 | 4597 | --[[
Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Mamool_Ja_Training_Grounds/Zone.lua | 17 | 1133 | -----------------------------------
--
-- Zone: Mamool_Ja_Training_Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mamool_Ja_Training_Grounds/TextIDs"] = nil;
require("scripts/zones/Mamool_Ja_Training_Grounds/TextIDs");
------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/boiled_tuna_head.lua | 12 | 1528 | -----------------------------------------
-- ID: 4540
-- Item: Boiled Tuna Head
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 20
-- Dexterity 3
-- Intelligence 4
-- Mind -3
-- Magic Regen While Healing 2
-- Evasion 5
-----------------------------------------
require("scripts/glob... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/DequeAsLinkedList.lua | 1 | 1808 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/12/05 14:47:20 $
$RCSfile: DequeAsLinkedList.lua,v $
$Revision: 1.7 $
$Id: DequeAsLinkedList.lua,v 1.7 2004/12/05 14:47:20 brpreiss Exp $
--]]
require "Deque"
require "QueueAsLinkedList"
... | apache-2.0 |
gedads/Neodynamis | scripts/zones/Lower_Jeuno/npcs/Zalsuhm.lua | 18 | 4645 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zalsuhm
-- Standard Info NPC
-----------------------------------
require("scripts/globals/equipment");
require("scripts/globals/quests");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
function g... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Upper_Jeuno/npcs/Souren.lua | 9 | 1437 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Souren
-- Involved in Quests: Save the Clock Tower
-- !pos -51 0 4 244
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/abilities/dark_maneuver.lua | 4 | 1589 | -----------------------------------
-- Ability: Dark Maneuver
-- Enhances the effect of dark attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
pedro-andrade-inpe/terrame | packages/gis/tests/functional/basic/Geometry.lua | 3 | 5483 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
gedads/Neodynamis | scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua | 17 | 2450 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/green_quiche.lua | 11 | 1162 | -----------------------------------------
-- ID: 5170
-- Item: green_quiche
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Agility 1
-- Vitality -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status")
require("scrip... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.