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 |
|---|---|---|---|---|---|
wingo/snabb | src/apps/packet_filter/conntrack.lua | 15 | 6887 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- conntrack.lua -- Connection tracking for IPv4/IPv6 TCP/UDP sessions
--
-- This module exposes the following API:
--
-- define(tablename)
-- define a named connection tracking table.
--
-- clear()
-- clears all tracking tables.
--... | apache-2.0 |
pakozm/april-ann | profile_build_scripts/build_debug_homebrew.lua | 3 | 3487 | dofile("luapkg/formiga.lua")
local postprocess = dofile("luapkg/postprocess.lua")
formiga.build_dir = "build_debug_homebrew"
local packages = dofile "profile_build_scripts/package_list.lua"
-- table.insert(packages, "rlcompleter") -- AUTOCOMPLETION => needs READLINE
local metadata = dofile "profile_build_scripts/METAD... | gpl-3.0 |
bmscoordinators/FFXI-Server | 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 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Pirvidiauce.lua | 17 | 2156 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pirvidiauce
-- Conquest depending medicine seller
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
requir... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_adamantoise_soup.lua | 12 | 1609 | -----------------------------------------
-- ID: 5210
-- Item: Bowl of Adamantoise Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength -7
-- Dexterity -7
-- Agility -7
-- Vitality -7
-- Intelligence -7
-- Mind -7
-- Charisma -7
-----------------------------------------
require(... | gpl-3.0 |
colesbury/nn | Sum.lua | 7 | 2002 | local Sum, parent = torch.class('nn.Sum', 'nn.Module')
function Sum:__init(dimension, nInputDims, sizeAverage)
parent.__init(self)
self.dimension = dimension or 1
-- do not assign default value to nInputDims or it will break backward compatibility
self.nInputDims = nInputDims
self.sizeAverage = sizeA... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Coderiant.lua | 14 | 1494 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Coderiant
-- General Info NPC
-- @zone 230
-- @pos -111 -2 33
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Phomiuna_Aqueducts/npcs/qm1.lua | 14 | 1030 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm1 (???)
-- Notes: Opens east door @ F-7
-- @pos -44.550 -24.601 106.495 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Sacrificial_Chamber/Zone.lua | 30 | 1663 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/miss... | gpl-3.0 |
emoon/wrui | bin/win32/scripts/tundra/tools/generic-asm.lua | 28 | 2495 | module(..., package.seeall)
local path = require "tundra.path"
local util = require "tundra.util"
local boot = require "tundra.boot"
local scanner = require "tundra.scanner"
local depgraph = require "tundra.depgraph"
local default_keywords = { "include" }
local default_bin_keywords = { "incbin" }
local ... | mit |
zdzhaoyong/Map2DFusion | PIL/Thirdparty/lua-5.1.5/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... | lgpl-3.0 |
lxbgit/luarocks | src/luarocks/fetch/cvs.lua | 14 | 1879 |
--- Fetch back-end for retrieving sources from CVS.
--module("luarocks.fetch.cvs", package.seeall)
local cvs = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
--- Download sources for building a rock, using CVS.
-- ... | mit |
ianmaclarty/vertex-meadow | export.lua | 1 | 3487 | local export = ...
local win = require "window"
local title = require "title"
local focus = require "focus"
local
function do_export(old_scene, old_bg, floor, ceiling, floor_detail, ceiling_detail, hands, terrain_state)
floor.fb:read_back()
ceiling.fb:read_back()
floor_detail.fb:read_back()
ceiling_de... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Uleguerand_Range/npcs/HomePoint#4.lua | 27 | 1258 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#4
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Horlais_Peak/bcnms/shattering_stars.lua | 27 | 2473 | -----------------------------------
-- Area: Horlais Peak
-- Name: Shattering stars - Maat Fight
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/ques... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Spire_of_Vahzl/npcs/_0n1.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Spire_of_Vahzl/npcs/_0n2.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
telenymous/botoftelenymous | bot/seedbot.lua | 1 | 10046 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
diamondo25/Vana | scripts/instances/hakToOrbis.lua | 2 | 1037 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
wingo/snabb | src/lib/virtio/virtq_device.lua | 14 | 3135 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- Implements virtio virtq
local lib = require("core.lib")
local memory = require("core.memory")
local ffi = require("ffi")
local C = ffi.C
local band = bit.band
local rshift = bit.rshift
require("lib.virtio... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahnid.lua | 14 | 1203 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Wahnid
-- Type: Guild Merchant: Fishing Guild
-- @pos -31.720 -6.000 -94.919 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/double-up.lua | 24 | 2654 | -----------------------------------
-- Ability: Double Up
-- Enhances an active Phantom Roll effect that is eligible for Double-Up.
-- Obtained: Corsair Level 5
-- Recast Time: 8 seconds
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
req... | gpl-3.0 |
5620g/38196040 | plugins/admin.lua | 13 | 6192 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
funpam/esp | software/LUA/thingspeak/thingspeak_temperature.lua | 1 | 1919 | -- Copyright [2015] [werar@go2.pl https://github.com/werar]
--Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0
-- remember to upload first ds18b20.lua and compile it lc(ds18b20.lua)
function getTemp()
local t=require("ds18b20")
t.setup(4) --GPIO2 for 1WIRE... | apache-2.0 |
Repugnus/halftest | init.lua | 1 | 1590 | dofile(minetest.get_modpath("halftest").."/bullets.lua")
dofile(minetest.get_modpath("halftest").."/guns.lua")
dofile(minetest.get_modpath("halftest").."/hud.lua")
dofile(minetest.get_modpath("halftest").."/crafts.lua")
minetest.register_tool("halftest:crowbar", {
description = "Crowbar",
inventory_image = "halftest_... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Jeuno/npcs/qm1.lua | 17 | 1236 | -----------------------------------
-- Area: Dynamis Jeuno
-- NPC: ??? (Spawn when mega is defeated)
-----------------------------------
package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Dynamis-Jeuno/TextIDs");... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Crawlers_Nest_[S]/npcs/Kalsu-Kalasu.lua | 29 | 1786 | -----------------------------------
-- Area: Crawlers Nest [S]
-- NPC: Kalsu-Kalasu
-- @pos 304.768 -33.519 -19.168 171
-- Notes: Gives Green Letter required to start "Snake on the plains"
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/death_scissors.lua | 33 | 1802 | -----------------------------------------
-- Spell: Death Scissors
-- Damage varies with TP
-- Spell cost: 51 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 5
-- Stat Bonus: MND+2, CHR+2, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 24.5 seconds
-- Skillchain Prope... | gpl-3.0 |
pakozm/april-ann | packages/basics/matrix/lua_src/generic_join.lua | 2 | 1695 | -- GENERIC JOIN FUNCTION
matrix.__generic__ = matrix.__generic__ or {}
matrix.__generic__.__make_generic_join__ = function()
return function(dim, ...)
local arg = table.pack(...)
if type(arg[1]) == "table" then
assert(#arg == 1, "Use one table argument or multiple matrix arguments")
arg = arg[1]... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Vattian.lua | 17 | 1456 | -----------------------------------
-- Area: Port Bastok
-- NPC: Vattian
-- Only sells when Bastok controlls Kuzotz Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] =... | gpl-3.0 |
renstrom/oUF | elements/pvp.lua | 1 | 1923 | --[[ Element: PvP Icon
Handles updating and toggles visibility based upon the units PvP status.
Widget
PvP - A Texture used to display the faction or FFA icon.
Notes
This element updates by changing the texture.
Examples
-- Position and size
local PvP = self:CreateTexture(nil, 'OVERLAY')
PvP:SetSi... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/m&p_dumpling.lua | 12 | 1257 | -----------------------------------------
-- ID: 5641
-- Item: M&P Dumpling
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Intelligence 5
-- Agility -5
-- MP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/strip_of_bison_jerky.lua | 12 | 1391 | -----------------------------------------
-- ID: 5207
-- Item: strip_of_bison_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 5
-- Mind -2
-- Attack % 18
-- Attack Cap 70
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
Trebek/ComputerCraft | Funhouse/Funhouse_v0.4.1.lua | 1 | 39543 | --[[ INFO ]]--
-- Name: Tales from the Funhouse
-- Version: 0.4.1
-- Date: 30/08/2013
-- Author: Alex Crawford
-- Notes: https://github.com/Trebek/ComputerCraft/wiki/Tales-from-the-Funhouse
-- [[ TABLES ]] --
--[[ Room Table ]]--
Room_Table = {
[1] = {
name = "Your Bedroom",
descripstate = 1,
description ... | mit |
bmscoordinators/FFXI-Server | scripts/zones/The_Eldieme_Necropolis/npcs/_5fo.lua | 14 | 2655 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: North Plate
-- @pos 174 -32 50 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Faursel.lua | 14 | 7472 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Faursel
-- Type: Aht Urhgan Quest NPC
-- Involved in Quests: The Road to Aht Urhgan
-- @pos 37.985 3.118 -45.208 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/apkallu_egg.lua | 12 | 1182 | -----------------------------------------
-- ID: 5568
-- Item: Apkallu Egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 6
-- Magic 6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Calovour.lua | 17 | 1452 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Calovour
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
sajadaltaiee/telebot | lang/english_lang.lua | 29 | 20510 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
jsenellart/OpenNMT | onmt/SeqTagger.lua | 4 | 9800 | --[[ Sequence tagger. ]]
local SeqTagger, parent = torch.class('SeqTagger', 'Model')
local options = {
{
'-word_vec_size', { 500 },
[[List of embedding sizes: `word[ feat1[ feat2[ ...] ] ]`.]],
{
structural = 0
}
},
{
'-pre_word_vecs_enc', '',
[[Path to pretrained word embeddings on... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Valley_of_Sorrows/Zone.lua | 11 | 1722 | -----------------------------------
--
-- Zone: Valley_of_Sorrows (128)
--
-----------------------------------
package.loaded["scripts/zones/Valley_of_Sorrows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Valley_of_Sorr... | gpl-3.0 |
firedtoad/skynet | test/testredis.lua | 30 | 1049 | local skynet = require "skynet"
local redis = require "skynet.db.redis"
local conf = {
host = "127.0.0.1" ,
port = 6379 ,
db = 0
}
local function watching()
local w = redis.watch(conf)
w:subscribe "foo"
w:psubscribe "hello.*"
while true do
print("Watch", w:message())
end
end
skynet.start(function()
skynet... | mit |
jsenellart/OpenNMT | onmt/translate/DecoderAdvancer.lua | 3 | 8363 | --[[ DecoderAdvancer is an implementation of the interface Advancer for
specifyinghow to advance one step in decoder.
--]]
local DecoderAdvancer = torch.class('DecoderAdvancer', 'Advancer')
--[[ Constructor.
Parameters:
* `decoder` - an `onmt.Decoder` object.
* `batch` - an `onmt.data.Batch` object.
* `conte... | mit |
rizaumami/tdcliBot | plugins/xkcd.lua | 1 | 1817 | do
local function getLastId(msg)
local res, code = https.request('https://xkcd.com/info.0.json')
if code ~= 200 then
return sendText(msg.chat_id_, msg.id_, _msg('HTTP ERROR'))
end
local data = json.decode(res)
return data.num
end
local function getXkcd(msg, id)
local res, code =... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/death_scythe_+1.lua | 41 | 1069 | -----------------------------------------
-- ID: 16791
-- Item: Death Scythe +1
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
sini370/sini370xy | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
zantze/tuomio-topdown | videogame/entities.lua | 1 | 2244 | entities = {}
entities.loaded = {}
entities.list = {}
vector = require 'vector'
entities.world = love.physics.newWorld(0, 0, true)
function entities:create(name, w, h, texture, health, type)
health = health or 10
type = type or 'static'
entities.loaded[name] = {
name = name,
w = w,
h = h,
textur... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/silence.lua | 6 | 1269 | -----------------------------------------
-- Spell: Silence
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Eldieme_Necropolis_[S]/Zone.lua | 25 | 1307 | -----------------------------------
--
-- Zone: The_Eldieme_Necropolis_[S] (175)
--
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Eldieme_Necropolis_[S]/Te... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/serving_of_emperor_roe.lua | 12 | 1347 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/blade_rin.lua | 26 | 1394 | -----------------------------------
-- Blade Rin
-- Katana weapon skill
-- Skill Level: 5
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%... | gpl-3.0 |
bigyihsuan/complicated-recipes | prototypes/recipes/modules.lua | 1 | 2837 | data:extend({
{
type = 'recipe',
name = 'speed-module-casing',
ingredients = {
{'plastic-bar', 10},
{'blue-dye', 1}
},
result = 'speed-module-casing',
result_count = 1,
energy_required = 15,
enabled = false --speed-module
},
{
type = 'recipe',
name = 'effectivity-module-casing',
ingredients = {
{'plast... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Nashmau/npcs/HomePoint#1.lua | 27 | 1255 | -----------------------------------
-- Area: Nashmau
-- NPC: HomePoint#1
-- @pos -19.860 0.001 -25.441 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/homepoint");
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_ratatouille.lua | 12 | 1501 | -----------------------------------------
-- ID: 5731
-- Item: plate_of_ratatouille
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Agility 5
-- Evasion 5
-- HP recovered while healing 2
-- MP recovered while healing 2
-- Undead Killer 5
-----------------------------------------
require("s... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/pepperoni_pizza_+1.lua | 12 | 1575 | -----------------------------------------
-- ID: 5698
-- Item: pepperoni_pizza_+1
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Health Points 35
-- Strength 2
-- Accuracy 9% (caps @ 11)
-- Attack 10% (caps @ 16)
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Mount_Zhayolm/npcs/Waudeen.lua | 6 | 2735 | -----------------------------------
-- Area: Mount_Zhayolm
-- NPC: Waudeen
-- Type: Assault
-- @pos 673.882 -23.995 367.604 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Temenos/mobs/Thrym.lua | 28 | 1188 | -----------------------------------
-- Area: Temenos N T
-- NPC: Thrym
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------------
-- ... | gpl-3.0 |
cypherkey/AvorionMission | startsector.lua | 1 | 2309 |
package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/?.lua"
SectorGenerator = require ("SectorGenerator")
Placer = require("placer")
local SectorTemplate = {}
-- player is the player who triggered the creation of the sector (only set in start sector, otherwise nil)
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Davoi/npcs/qm1.lua | 14 | 1416 | -----------------------------------
-- Area: Davoi
-- NPC: ??? (qm1)
-- Involved in Quest: To Cure a Cough
-- @pos -115.830 -0.427 -184.289 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
bluMyst/ComputerCraft-Sandbox | excavate.lua | 1 | 7631 | os.loadAPI 'ahto'
local args = {...}
if #args ~= 1 then
print "Usage: excavate <diameter>"
return
end
-- Mine in a quarry pattern until we hit something we can't dig
local size = tonumber( args[1] )
if size < 1 then
print "Excavate diameter must be positive"
return
end
local depth = 0
local unlo... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Arrapago_Reef/npcs/Meyaada.lua | 6 | 2736 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Meyaada
-- Type: Assault
-- @pos 22.446 -7.920 573.390 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
bedmonds/awesome-widgets | rc.lua | 1 | 10213 | -- {{{ Standard libraries
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
wibox = require("wibox")
-- Theme handling library
beautiful = require("beautiful")
-- Notification library
loc... | mit |
Etiene/sailor | test/dev-app/tests/unit/model.lua | 2 | 7302 | local model = require "sailor.model"
local helper = require "tests.helper"
local access = require "sailor.access"
local db = require "sailor.db"
local fixtures = require "tests.fixtures.user" or {}
local post_fixtures = require "tests.fixtures.post" or {}
describe("Testing #UserModel", function()
--helper.blah()
l... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Al_Zahbi/npcs/Zwaluh.lua | 53 | 2332 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zwaluh
-- Type: Leathercraft Normal/Adv. Image Support
-- @pos -71.556 -6.999 -103.015 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
nsimplex/wicker | profile_d/common.lua | 1 | 1788 | --------------------------------------------------------------------------------
-- |
-- Module : wicker.profile_d.common
-- Note :
--
-- Defines a wrapper function for profile definitions which performs a set of
-- common tasks.
--
-----------------------------------------------------------------------... | gpl-2.0 |
groupforspeed/TeleSpeed-Tg | plugins/inrealm.lua | 92 | 25223 | -- 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 |
diamondo25/Vana | scripts/utils/itemProductionHelper.lua | 2 | 2944 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
firedtoad/skynet | lualib/http/sockethelper.lua | 28 | 1991 | local socket = require "skynet.socket"
local skynet = require "skynet"
local readbytes = socket.read
local writebytes = socket.write
local sockethelper = {}
local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end })
sockethelper.socket_error = socket_error
local function preread... | mit |
firedtoad/skynet | lualib/skynet/remotedebug.lua | 17 | 5609 | local skynet = require "skynet"
local debugchannel = require "skynet.debugchannel"
local socketdriver = require "skynet.socketdriver"
local injectrun = require "skynet.injectcode"
local table = table
local debug = debug
local coroutine = coroutine
local sethook = debugchannel.sethook
local M = {}
local HOOK_FUNC = "... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/serving_of_beaugreen_sautee.lua | 12 | 1412 | -----------------------------------------
-- ID: 4572
-- Item: serving_of_beaugreen_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-- Ranged Acc % 7
-- Ranged Acc Cap 15
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/AlTaieu/mobs/Jailer_of_Justice.lua | 21 | 1419 | -----------------------------------
-- Area: Al'Taieu
-- NM: Jailer of Justice
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
----... | gpl-3.0 |
deepak78/luci | modules/niu/luasrc/model/cbi/niu/network/wandevice.lua | 51 | 1346 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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 may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Light.lua | 14 | 2406 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Light
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles"... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/La_Theine_Plateau/npcs/Galaihaurat.lua | 14 | 2661 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Galaihaurat
-- Involved in Mission: The Rescue Drill
-- @pos -482 -7 222 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/power_attack.lua | 33 | 1732 | -----------------------------------------
-- Spell: Power Attack
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 1
-- Stat Bonus: MND+1
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time: 7.25 seconds
... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/flower_out.lua | 2 | 1116 | --[[
Copyright (C) 2008-2016 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/North_Gustaberg/npcs/Cavernous_Maw_2.lua | 58 | 1887 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Cavernous Maw
-- @pos -78 -0.5 600 106
-- Teleports Players to Abyssea - Grauberg
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Konschtat/mobs/Balaur.lua | 9 | 1332 | -----------------------------------
-- Area: Abyssea - Konschtat (15)
-- Mob: Balaur
-- TODO: When its HP is under 50%, Balaur has a chance to gain
-- a spikes effect after using Breath attacks (matches element of breath)
-----------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
cheney247689848/Cloud-edge | Assets/Script_Lua/example/expLandlords/L_ExpLandlordsScene.lua | 1 | 2521 | local GameObject = UnityEngine.GameObject
local Input = UnityEngine.Input
local Text = UnityEngine.UI.Text
local KeyCode = UnityEngine.KeyCode
require "example/expLandlords/L_Landlords"
L_ExpLandlordsScene = {}
setmetatable(L_ExpLandlordsScene, {__index = _G})
local _this = L_ExpLandlordsScene
_this.cardIndex = 1
_t... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/utsusemi_ichi.lua | 28 | 1085 | -----------------------------------------
-- Spell: Utsusemi: Ichi
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
func... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Oztroja/MobIDs.lua | 4 | 1614 | -----------------------------------
-- Area: Castle Oztroja (151)
-- Comments: -- posX, posY, posZ
-- (Taken from 'mob_spawn_points' table)
-----------------------------------
-- Mee_Deggi_the_Punisher
Mee_Deggi_the_Punisher = 17395800;
Mee_Deggi_the_Punisher_PH =
{
[17395798] = '1', -- -207.840, -0.498, 109.939
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lufaise_Meadows/npcs/Luck_Rune.lua | 14 | 1059 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 276.507 1.917 -139.961 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Lufai... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bhaflau_Thickets/npcs/_1g2.lua | 27 | 3573 | -----------------------------------
-- Area: Bhaflau Thickets
-- Door: Runic Seal
-- @pos -180 -6.8 -833 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/saucepan.lua | 63 | 1046 | ---------------------------------------------
-- Saucepan
-- Force feeds an unsavory dish.
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCh... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajawaa.lua | 16 | 4330 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hajawaa
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/West_Ronfaure/npcs/Molting_Moth_IM.lua | 14 | 3327 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Molting Moth, I.M.
-- Border Conquest Guards
-- @pos -560.292 -0.961 -576.655 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
pakozm/april-ann | packages/metrics/rates/test/tasas_emulator.lua | 3 | 2902 | --[[
TODO: usar cmdOpt y tasas para emular el tasas original:
Uso: ./tasas fich [-f "c"] [-s #|-s "c"] [-p #] [TASA] [-c mat|-C mat] [-w dicc] [-v]
donde:
fich es el fichero de datos
-f "c" : hace que c separe frases en una linea
-s # : hace que cada # caracteres se consideren un simbolo
-s "cad" : carac... | gpl-3.0 |
cypherkey/AvorionMission | entity/merchants/turretfactory.lua | 1 | 31997 |
package.path = package.path .. ";data/scripts/lib/?.lua"
require ("utility")
require ("faction")
require ("defaultscripts")
require ("randomext")
require ("stationextensions")
require ("galaxy")
require ("randomext")
require ("goods")
require ("tooltipmaker")
require ("faction")
require ("player")
require("stringutili... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/spiral_hell.lua | 25 | 1738 | -----------------------------------
-- Spiral Hell
-- Scythe weapon skill
-- Skill level: 240 QUESTED
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:50% ; INT:50%
-- 100%TP 200%TP 300%TP
-- 1.375 2.75 4.75
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
nsimplex/wicker | .DEPRECATED/protocomponents/base.lua | 6 | 6344 | --[[
-- Defines the concept of a component prototype.
-- A component prototype is a class whose objects are component classes.
--
-- The constructor of the instantiated classes should be a field called "new".
--
-- All instantiated component classes inherit from BasicComponent below.
-- Actual inheritance should be don... | gpl-2.0 |
victorholt/Urho3D | Source/ThirdParty/LuaJIT/src/jit/p.lua | 40 | 9092 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | mit |
bmscoordinators/FFXI-Server | scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm3.lua | 14 | 1791 | -----------------------------------
-- Area: The Sanctuary of Zitah
-- NPC: ???
-- Involved In Quest: The Sacred Katana
-- @zone 121
-- @pos -416 0 46
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/linux/sockopt.lua | 24 | 1966 | -- socket options mapping
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
-- TODO add typemap for cmsghdr fro... | apache-2.0 |
Guilty3096/guiltyyy | plugins/anti_spam.lua | 90 | 4016 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
sohrabaz/newbot | libs/XMLElement.lua | 31 | 3946 |
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, type, getmetatable, tostring, error
local table, string = table, string
local XMLElement={}
local mt
XMLElement.new = function(lom)
return setmetatable({lom=lom or {}}, mt)
end
local function filter(filtery_thing... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lufaise_Meadows/npcs/Ghost_Talker_IM.lua | 14 | 3334 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Ghost Talker, I.M.
-- Border Conquest Guards
-- @pos 414.659 0.905 -52.417 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
tuxun/smw-funwiki | extensions/Scribunto/engines/LuaCommon/lualib/ustring/ustring.lua | 1 | 28455 | local ustring = {}
-- Copy these, just in case
local S = {
byte = string.byte,
char = string.char,
len = string.len,
sub = string.sub,
find = string.find,
match = string.match,
gmatch = string.gmatch,
gsub = string.gsub,
format = string.format,
}
---- Configuration ----
-- To limit the length of strings or p... | gpl-2.0 |
bedros/lsyncd | lsyncd.lua | 13 | 90563 | --============================================================================
-- lsyncd.lua Live (Mirror) Syncing Demon
--
-- License: GPLv2 (see COPYING) or any later version
--
-- Authors: Axel Kittenberger <axkibe@gmail.com>
--
-- This is the "runner" part of Lsyncd. It containts all its high-level logic.
-- It w... | gpl-2.0 |
suxinde2009/wesnoth | data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua | 7 | 2619 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
return function(cfg)
-- Calculate next waypoint and rating for all messengers
-- Return next messenger to move and waypoint toward which it shoul... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Serukoko.lua | 14 | 1053 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Serukoko
-- Type: Standard NPC
-- @zone 238
-- @pos -54.916 -7.499 114.855
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.