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 |
|---|---|---|---|---|---|
cypherkey/AvorionMission | sectors/loneconsumer.lua | 1 | 2730 | package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/?.lua"
SectorGenerator = require ("SectorGenerator")
Placer = require("placer")
local SectorTemplate = {}
-- must be defined, will be used to get the probability of this sector
function SectorTemplate.getProbabilit... | gpl-3.0 |
pakozm/april-ann | packages/ann/autoencoders/lua_src/stacked_denoising_autoencoder.lua | 3 | 54423 | get_table_from_dotted_string("ann.autoencoders", true)
----------------------------------------------------------------------
local md = matrix.dict
-- The auto-encoder class (AE) will be a denoising auto-encoder (DAE) when
-- trained with corrupted input, and clean output
local ann_autoencoders_ae,ann_autoencoders... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/nexus_cape.lua | 26 | 1515 | -----------------------------------------
-- ID: 11538
-- Item: Nexus Cape
-- Enchantment: "Teleport" (Party Leader)
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/teleports");
-----------------------------------------
-- OnItemCheck
-----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/prime_angler_stewpot.lua | 12 | 2107 | -----------------------------------------
-- ID: 5612
-- Item: Prime Angler Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +15
-- Dexterity 2
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while healing 2
-- Acc... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Apollyon/mobs/Proto-Omega.lua | 16 | 3336 | -----------------------------------
-- Area: Apollyon (Central)
-- MOB: Proto-Omega
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/titl... | gpl-3.0 |
bluMyst/ComputerCraft-Sandbox | tunnel.lua | 1 | 2242 | if not os.loadAPI 'ahto' then
print 'FATAL: unable to load ahto api'
exit()
end
------------------------------------------------
-------------------- CONFIG --------------------
------------------------------------------------
-- Maximum distance to mine.
MAX_DIST = 32
-- Slot to get fuel from.
FUEL_SLOT = ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Attohwa/npcs/qm20.lua | 5 | 1547 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm20 (???)
-- Spawns Ulhuadshi
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
... | gpl-3.0 |
pakozm/april-ann | tools/HMM_ANN/nbest/nbest-lattice-sri.lua | 3 | 1317 | scale=arg[1]
nbestfilename=arg[2]
local outdir=os.tmpname()
os.execute("rm -f " .. outdir)
os.execute("mkdir " .. outdir)
nbestf = io.open(nbestfilename, "r")
fprintf(io.stderr, "GSF: %f\n", scale)
local i = 1
local prevn = nil
local outf = nil
for line in nbestf:lines() do
local n,sentence,score = string.... | gpl-3.0 |
olapaola/olapaola-android-scripting | lua/luasocket/src/smtp.lua | 142 | 7961 | -----------------------------------------------------------------------------
-- SMTP client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: smtp.lua,v 1.46 2007/03/12 04:08:40 diego Exp $
-----------------------------------------------------------------------------
---------... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/PsoXja/npcs/qm1.lua | 14 | 1642 | -----------------------------------
-- Area: Pso'xja
-- NPC: ??? (qm1)
-- Notes: Used to spawn Golden-Tongued Culberry
-- @pos -270.063 31.395 256.812 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs... | gpl-3.0 |
trigrass2/gopher-lua | _lua5.1-tests/errors.lua | 18 | 6229 | print("testing errors")
function doit (s)
local f, msg = loadstring(s)
if f == nil then return msg end
local cond, msg = pcall(f)
return (not cond) and msg
end
function checkmessage (prog, msg)
assert(string.find(doit(prog), msg, 1, true))
end
function checksyntax (prog, extra, token, line)
local msg = ... | mit |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/damnation_dive.lua | 15 | 1387 | ---------------------------------------------
-- Damnation Dive
--
-- Description: Dives into a single target. Additional effect: Knockback + Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadow
-- Range: Melee
-- Notes: Used instead of Gliding Spike by certain notorious monsters.
---------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/bunch_of_royal_grapes.lua | 12 | 1195 | -----------------------------------------
-- ID: 5541
-- Item: Bunch of Royal Grapes
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
jsenellart/OpenNMT | test/onmt/BatchTest.lua | 8 | 12061 | require('onmt.init')
local tester = ...
local batchTest = torch.TestSuite()
function batchTest.inconsistentSourceAndTarget()
local src = {
torch.IntTensor({5, 6, 7, 8}),
torch.IntTensor({5, 6}),
torch.IntTensor({5, 6, 7}),
torch.IntTensor({5, 6, 7, 8}),
}
local tgt = {
torch.IntTensor({onmt... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Tahrongi_Canyon/TextIDs.lua | 7 | 2263 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6560; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6566; -- Obtained: <item>.
GIL_OBTAINED = 6567; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6569; -- Obt... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Aivedoir.lua | 14 | 1039 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aivedoir
-- Type: Standard Dialogue NPC
-- @zone 231
-- @pos -123.119 7.999 134.490
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
firedtoad/skynet | lualib/skynet/manager.lua | 19 | 1986 | local skynet = require "skynet"
local c = require "skynet.core"
function skynet.launch(...)
local addr = c.command("LAUNCH", table.concat({...}," "))
if addr then
return tonumber("0x" .. string.sub(addr , 2))
end
end
function skynet.kill(name)
if type(name) == "number" then
skynet.send(".launcher","lua","REMO... | mit |
cheney247689848/Cloud-edge | Assets/ToLua/Lua/UnityEngine/Vector4.lua | 6 | 4592 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
------------------------------------------------------------------------... | mit |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/fell_cleave.lua | 26 | 1424 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR: 60%
-- 100%T... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/iron_tempest.lua | 25 | 1382 | -----------------------------------
-- Iron Tempest
-- Great Axe weapon skill
-- Skill Level: 40
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
DipColor/bluestrom | plugins/anti_spam.lua | 923 | 3750 |
--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 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Grauberg/npcs/qm1.lua | 14 | 1388 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm1 (???)
-- Spawns Ironclad Sunderer
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
deepak78/luci | modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua | 13 | 10043 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 Steven Barth <steven@midlink.org>
Copyright 2009 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://w... | apache-2.0 |
Rainrider/AdiButtonAuras | config/Debug.lua | 1 | 4717 | --[[
AdiButtonAuras - Display auras on action buttons.
Copyright 2013-2016 Adirelle (adirelle@gmail.com)
All rights reserved.
This file is part of AdiButtonAuras.
AdiButtonAuras 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 Softwa... | gpl-3.0 |
ultijlam/grid-layout-by-role | GridLayoutByRole.lua | 1 | 10195 | --[[--------------------------------------------------------------------
Copyright (C) 2014, 2018 Johnny C. Lam.
See the file LICENSE.txt for copying permission.
--]]--------------------------------------------------------------------
--[[
GridLayoutByRole is a Grid layout plugin that groups members as tanks,... | mit |
FHedin/mc_LJ | plugins/lj_n_m_ffi.lua | 1 | 4600 | -- Copyright (c) 2011-2015, Florent Hedin, Markus Meuwly, and the University of Basel
-- All rights reserved.
-- The 3-clause BSD license is applied to this software.
-- see LICENSE.txt
--
-- lj_n_m_ffi.lua
--
-- Provides energy and gradient functions
-- for a modified n-m Lennard Jones potential
--
-- Formula is :
--... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/globals/items/serving_of_herb_crawler_eggs.lua | 12 | 1534 | -----------------------------------------
-- ID: 4552
-- Item: serving_of_herb_crawler_eggs
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 80
-- Magic 10
-- Agility 3
-- Vitality -1
-- Evasion 8
-----------------------------------------
require("scripts/globals/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Qufim/bcnms/dynamis_qufim.lua | 14 | 1248 | -----------------------------------
-- Area: dynamis_Qufim
-- Name: dynamis_Qufim
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaQufim]UniqueID",os.time());
SetServerVariable("[DynaQufim]Boss_Tri... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Zvahl_Baileys/Zone.lua | 12 | 3391 | -----------------------------------
--
-- Zone: Castle_Zvahl_Baileys (161)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Castle_Z... | gpl-3.0 |
cypherkey/AvorionMission | sectors/xsotanasteroids.lua | 1 | 2205 |
package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/?.lua"
SectorGenerator = require ("SectorGenerator")
Xsotan = require("story/xsotan")
Placer = require("placer")
Balancing = require("galaxy")
local SectorTemplate = {}
-- must be defined, will be used to get the ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Grauberg_[S]/Zone.lua | 12 | 1749 | -----------------------------------
--
-- Zone: Grauberg_[S] (89)
--
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grauberg_[S]/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/weather")... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Kazham/npcs/Khifo_Ryuhkowa.lua | 17 | 1578 | -----------------------------------
-- Area: Kazham
-- NPC: Khifo Ryuhkowa
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua | 14 | 2072 | -----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
f... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Mog_Garden/npcs/GreenThumbMo.lua | 17 | 2329 |
package.loaded["scripts/zones/Mog_Garden/TextIDs"] = nil;
require("scripts/zones/Mog_Garden/TextIDs");
require("scripts/globals/moghouse")
require("scripts/globals/shop");
local BRONZE_PIECE_ITEMID = 2184;
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player, n... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Promyvion-Vahzl/npcs/_0md.lua | 17 | 1396 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (2)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("sc... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Wind.lua | 14 | 2401 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Wind
-- 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 |
PraveerSINGH/nn | test.lua | 1 | 247759 | -- you can easily test specific units like this:
-- th -lnn -e "nn.test{'LookupTable'}"
-- th -lnn -e "nn.test{'LookupTable', 'Add'}"
local mytester = torch.Tester()
local jac
local sjac
local precision = 1e-5
local expprecision = 1e-4
local nntest = torch.TestSuite()
local function equal(t1, t2, msg)
if (torch.... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/globals/abilities/pets/lunar_cry.lua | 27 | 1072 | ---------------------------------------------------
-- Aerial Armor
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCheck(player... | gpl-3.0 |
Element-Research/rnn | test/bigtest.lua | 6 | 3737 | local _ = require 'moses'
local rnnbigtest = {}
local precision = 1e-5
local mytester
function rnnbigtest.NCE_nan()
local success, dl = pcall(function() return require 'dataload' end)
if not success then
return
end
if not pcall(function() require 'cunn' end) then
return
end
local data... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Nikkhail.lua | 14 | 1971 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Nikkhail
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'A Thirst for the Ages'
-- @zone 256
-- @pos -101 3 9
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
------------------------... | gpl-3.0 |
JakobOvrum/ircbot | init.lua | 2 | 4935 | local irc, lfs = require "irc", require "lfs"
local rawget = rawget
local assert = assert
local ipairs = ipairs
local setfenv = setfenv
local type = type
local setmetatable = setmetatable
local require = require
local print = print
local date = os.date
local time = os.time
local remove = table.remove
local insert = ta... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/_6k9.lua | 14 | 1050 | -----------------------------------
-- Area: Port Bastok
-- NPC: Door: Arrivals Entrance
-- @pos -80 1 -26 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/Text... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/commands/tp.lua | 14 | 1164 | ---------------------------------------------------------------------------------------------------
-- func: tp <amount> <player>
-- desc: Sets a players tp.
-- current known issue: pet tp fails to be set
---------------------------------------------------------------------------------------------------
cmdprops =
{
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/_l01.lua | 7 | 2721 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @pos -108 0 -158 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Yuhtunga_Jungle/TextIDs.lua | 7 | 1884 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6385; -- Obtained: <item>.
GIL_OBTAINED = 6386; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6388; -- Obtained... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier_[S]/npcs/Luhk_Leotih_MC.lua | 14 | 1082 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Luhk Leotih, M.C.
-- Type: Campaign Arbiter
-- @zone 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]... | gpl-3.0 |
LinusU/nngraph | test/speed.lua | 7 | 4098 |
require 'nngraph'
function time_benchmark(model, input, n)
local forward_timer = torch.Timer():stop():reset()
local backward_timer = torch.Timer():stop():reset()
local total_timer = torch.Timer():stop():reset()
local gradOut
total_timer:resume()
for i = 1, n do
forward_timer:resume()
loc... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Outer_Horutoto_Ruins/TextIDs.lua | 7 | 2183 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6584; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6590; -- Obtained: <item>.
GIL_OBTAINED = 6591; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6593; -- Obtained... | gpl-3.0 |
deepak78/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/processes.lua | 78 | 1093 | --[[
Luci configuration model for statistics - collectd processes plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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 Lic... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Quicksand_Caves/npcs/_5sb.lua | 14 | 1273 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -420 0 735 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Fatimah.lua | 53 | 2085 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Fatimah
-- Type: Goldsmithing Adv. Synthesis Image Support
-- @pos -193.849 -7.824 -56.372 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Khonzon.lua | 14 | 1052 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Khonzon
-- Type: Item Deliverer
-- @zone 235
-- @pos -323.744 -16.001 -88.698
--
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
------------------... | gpl-3.0 |
KingofGamesYami/Advance-Turtle-Operating-Environment | .apis/chest.lua | 1 | 1140 | local chest = {
addItem = function( self, nAmount, nSlot, sName )
self.slot[nSlot].amount = self.slot[nSlot].amount + nAmount
if not self.slot[nSlot].isKnown and sName then
self.slot[nSlot].name = sName
self.slot[nSlot].isKnown = true
end
end,
removeItem = function( self, nAmoun, nSlot... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/massacre_elegy.lua | 24 | 1592 | -----------------------------------------
-- Spell: Massacre Elegy
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
emoon/wrui | bin/macosx/tundra/scripts/tundra/depgraph.lua | 28 | 4095 | module(..., package.seeall)
local boot = require "tundra.boot"
local util = require "tundra.util"
local path = require "tundra.path"
local native = require "tundra.native"
local environment = require "tundra.environment"
local default_pass = { Name = "Default", BuildOrder = 100000 }
local a... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Oztroja/npcs/_m74.lua | 14 | 2244 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m74 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- @pos -59.525 -72.320 -62.379 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/East_Sarutabaruta/npcs/Field_Manual.lua | 29 | 1059 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
--------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/water_shot.lua | 9 | 3033 | -----------------------------------
-- Ability: Water Shot
-- Consumes a Water Card to enhance water-based debuffs. Deals water-based magic damage
-- Drown Effect: Enhanced DoT and STR-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/effects/mark_of_seed.lua | 34 | 1773 | -----------------------------------
--
-- EFFECT_MARK_OF_SEED
--
-- DO NOT try to use this anywhere else but Fei'Yin!
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
r... | gpl-3.0 |
cheney247689848/Cloud-edge | Assets/ToLua/Lua/protobuf/encoder.lua | 6 | 15770 | --
--------------------------------------------------------------------------------
-- FILE: encoder.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-- ... | mit |
cheney247689848/Cloud-edge | Luajit64/jit/dis_x86.lua | 49 | 32818 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Porter_Moogle.lua | 14 | 1548 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 231
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_S... | gpl-3.0 |
PraveerSINGH/nn | Euclidean.lua | 19 | 5750 | local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module')
function Euclidean:__init(inputSize,outputSize)
parent.__init(self)
self.weight = torch.Tensor(inputSize,outputSize)
self.gradWeight = torch.Tensor(inputSize,outputSize)
-- state
self.gradInput:resize(inputSize)
self.output:resize(o... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Arrapago_Reef/Zone.lua | 8 | 3708 | -----------------------------------
--
-- 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/quests"... | gpl-3.0 |
mmiillaadddd/Gold_Bot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
gregdel/overthebox-feeds | otb-luci/files/usr/lib/lua/luci/model/cbi/otb_firewall.lua | 2 | 3347 | -- vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 :
local sys = require "luci.sys"
local fw = require "luci.model.firewall"
local io = require "io"
require("uci")
-- Add an input type=hidden to the form
function hiddenValue(name, value)
local ret = s:option(Value, name, "")
ret.default = value
ret.temp... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Grauberg/npcs/qm12.lua | 14 | 1396 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm12 (???)
-- Spawns Alfard
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
f... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/freebsd/constants.lua | 18 | 31643 | -- tables of constants for NetBSD
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string, select =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string, select
local abi =... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/commands/additem.lua | 13 | 1308 | ---------------------------------------------------------------------------------------------------
-- func: additem <itemId> <quantity> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4> <trial>
-- desc: Adds an item to the GMs inventory.
-----------------------------------------------------------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/aspir_knife.lua | 41 | 1128 | -----------------------------------------
-- ID: 16509
-- Item: Aspir Knife
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------... | gpl-3.0 |
colesbury/nn | SpatialDropout.lua | 10 | 1684 | local SpatialDropout, Parent = torch.class('nn.SpatialDropout', 'nn.Module')
function SpatialDropout:__init(p,stochasticInference)
Parent.__init(self)
self.p = p or 0.5
self.train = true
self.stochastic_inference = stochasticInference or false
self.noise = torch.Tensor()
end
function SpatialDropout:upd... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_shark_fin_soup.lua | 12 | 1846 | -----------------------------------------
-- ID: 4452
-- Item: bowl_of_shark_fin_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 5 (cap 150)
-- MP 5
-- Dexterity 4
-- HP Recovered While Healing 9
-- Attack % 14 (cap 85)
-- Ranged Attack % 14 (cap 85)
------------------------------... | gpl-3.0 |
shahabsaf1/Teleseed-sami | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
Guilty3096/guiltyyy | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/chunk_of_smelling_salts.lua | 11 | 1262 | -----------------------------------------
-- ID: 5320
-- Item: Chunk of Smelling Salts
-- Item Effect: Recover Pets from Sleep
-- Duration: 180 Secs Medicated
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Map.lua | 14 | 1042 | -----------------------------------
-- Area: Silver_Sea_route_to_Al_Zahbi
-- NPC: Map
-- @pos 0.340 -12.232 -4.120 58
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Silver_Sea_route_to_Al_Zahbi/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Exoroche.lua | 14 | 3110 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Exoroche
-- Involved in Quests: Father and Son, A Boy's Dream
-- @zone 230
-- @pos 72 -1 60
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Temenos/mobs/Enhanced_Vulture.lua | 28 | 1448 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Vulture
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Metalworks/npcs/Riault.lua | 14 | 1051 | -----------------------------------
-- Area: Metalworks
-- NPC: Riault
-- Type: Standard NPC
-- @zone 237
-- @pos 26.988 -17.39 -41.931
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier/npcs/Field_Manual.lua | 29 | 1062 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
---------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 14 | 1828 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Gate of the Gods
-- @pos -20 0.1 -283 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");... | gpl-3.0 |
jsenellart/OpenNMT | test/onmt/BleuTest.lua | 7 | 2478 | require('onmt.init')
local tester = ...
local bleuTest = torch.TestSuite()
local ref1 = {
[[After 60 days of hard work , the scientists from Xi ' an Satellite Testing and Monitoring Center overcame various technical difficulties and successfully solved the malfunction of the Beidou Navigation Experimental Satellites... | mit |
fps-vogel/maccer | luapower/csrc/luajit/src/src/jit/dis_mips.lua | 78 | 13221 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | gpl-3.0 |
darithorn/finn-engine | lib/entity.lua | 1 | 3152 | require "lib/class"
require "lib/entitymanager"
require "lib/vector2"
require "lib/rect"
class "entity"
-- entityManager : entitymanager | file : string | name : string | tag : string
function entity:entity(entityManager, file, name, tag)
--[[
self.name -> name of entity
self.tag -> tag of entity
self.sprite -> th... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Port_Jeuno/npcs/Raging_Lion.lua | 30 | 1307 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Raging Lion
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
---------------------------... | gpl-3.0 |
pakozm/april-ann | packages/basics/util/lua_src/util_serialization.lua | 2 | 14855 | local MAGIC = "-- LS0001"
local FIND_MASK = "^" .. MAGIC:gsub("%-","%%-")
local DEFAULT_BLOCK_SIZE = 2^20
local ENV_TAG = function() return "ENV dummy function" end -- dummy function
local NIL_TAG = function() return "NIL dummy function" end -- dummy function
----------------------------------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/commands/delitem.lua | 14 | 1694 | ---------------------------------------------------------------------------------------------------
-- func: delitem
-- desc: Deletes a single item held by a player, if they have it.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/altruism.lua | 26 | 1150 | -----------------------------------
-- Ability: Altruism
-- Increases the accuracy of your next White Magic spell.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
--... | gpl-3.0 |
amrit110/deepLearThesis | torch/boundingboxes/Proper/finalScript.lua | 1 | 5859 | require 'nn'
require 'optim'
--require 'dataset-mnist'
-- Parameters
n_training = 50000
--n_testing = 1000
batch_size = 100
--classes = {'1','2','3','4','5','6','7','8','9','10'}
geometry = {26,26}
--mask_geo = {12,12}
nClasses = 11
epochs = 2
weight_class = torch.ones(nClasses)
weight_class[11] = 0.05
train_classife... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Open_sea_route_to_Al_Zahbi/npcs/Cehn_Teyohngo.lua | 17 | 1230 | -----------------------------------
-- Area: Open sea route to Al Zahbi
-- NPC: Cehn Teyohngo
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 46
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
suxinde2009/wesnoth | data/ai/micro_ais/cas/ca_protect_unit_attack.lua | 4 | 4943 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local ca_protect_unit_attack, best_attack = {}
function ca_protect_unit_attack:evaluation(cfg)
-- Find possible attacks for the units
-- This is set up very conserv... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/ojo_rice_ball.lua | 51 | 1472 | -----------------------------------------
-- ID: 5929
-- Item: Ojo Rice Ball
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP +50
-- Dexterity +5
-- Vitality +5
-- Character +5
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Attack +60
-- Defense... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/freebsd/ffi.lua | 18 | 7517 | -- This are the types for FreeBSD
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
local abi = require "syscal... | apache-2.0 |
hh123okbb/nixio | axTLS/www/lua/test_main.lua | 176 | 1139 | cgilua.htmlheader()
cgilua.put[[
<html>
<head><title>Script Lua Test</title></head>
<body>
cgi = {
]]
for i,v in pairs (cgi) do
if type(v) == "table" then
local vv = "{"
for a,b in pairs(v) do
vv = string.format ("%s%s = %s<br>\n", vv, a, tostring(b))
end
v = vv.."}"
end
cgilua.put (string.format ("%s =... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/mixins/families/aern.lua | 36 | 1749 | -- Aern family mixin
-- Customization:
-- Setting AERN_RERAISE_MAX will determine the number of times it will reraise.
-- By default, this will be 1 40% of the time and 0 the rest (ie. default aern behaviour).
-- For multiple reraises, this can be set on spawn for more reraises.
-- To run a function when a rera... | gpl-3.0 |
cypherkey/AvorionMission | entity/dialogs/questions.lua | 1 | 1171 | package.path = package.path .. ";data/scripts/lib/?.lua"
require("stringutility")
function interactionPossible(player, option)
return true
end
function initUI()
ScriptUI():registerInteraction("Interact"%_t, "onInteract")
end
function onInteract()
ScriptUI():showDialog(makeDialog())
end
function makeDial... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Metalworks/npcs/Taulluque.lua | 14 | 1061 | -----------------------------------
-- Area: Metalworks
-- NPC: Taulluque
-- Type: Past Event Watcher
-- @zone 237
-- @pos 39.907 -14.999 -21.083
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scr... | gpl-3.0 |
rizaumami/tdcliBot | plugins/time.lua | 1 | 2472 | do
-- If you have a google api key for the geocoding/timezone api
local need_api_key
-- Use timezone api to get the time in the lat,
-- Note: this needs an API key
local function getTime(lat, lng)
local api = 'https://maps.googleapis.com/maps/api/timezone/json?'
-- Get a timestamp (server time is r... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Davoi/npcs/_45i.lua | 9 | 2278 | -----------------------------------
-- Area: Davoi
-- NPC: Wailing Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 380 0.1 -181 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Gusgen_Mines/npcs/qm4.lua | 14 | 1449 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm4 (???)
-- Involved In Quest: Ghosts of the Past
-- @pos -174 0 369 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.