repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
deepak78/luci | modules/admin-full/luasrc/model/cbi/admin_network/routes.lua | 86 | 2540 | --[[
LuCI - Lua Configuration Interface
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 may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | apache-2.0 |
amrit110/deepLearThesis | torch/dataset-mnist.lua | 7 | 2378 | require 'torch'
require 'paths'
mnist = {}
mnist.path_remote = 'https://s3.amazonaws.com/torch7/data/mnist.t7.tgz'
mnist.path_dataset = 'mnist.t7'
mnist.path_trainset = paths.concat(mnist.path_dataset, 'train_32x32.t7')
mnist.path_testset = paths.concat(mnist.path_dataset, 'test_32x32.t7')
function mnist.download()
... | mit |
bmscoordinators/FFXI-Server | scripts/zones/North_Gustaberg_[S]/npcs/Gebhardt.lua | 16 | 1267 | -----------------------------------
-- Area: North Gustaberg (S) (I-6)
-- NPC: Gebhardt
-- Involved in Quests: The Fighting Fourth
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
r... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Jeuno/npcs/Sagheera.lua | 2 | 10726 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Sagheera
-- @pos -3 0.1 -9 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_adoulinian_soup_+1.lua | 12 | 1566 | -----------------------------------------
-- ID: 5999
-- Item: Bowl of Adoulin Soup +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- HP % 4 Cap 45
-- Vitality 4
-- Defense % 16 Cap 75
-- HP Healing 7
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
diamondo25/Vana | scripts/instances/orbisToLudiBoarding.lua | 2 | 1439 | --[[
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/globals/items/garlic_cracker.lua | 12 | 1335 | -----------------------------------------
-- ID: 4467
-- Item: garlic_cracker
-- Food Effect: 3Min, All Races
-----------------------------------------
-- HP Regen While Healing 6
-- Undead Killer 10
-- Blind Resist 10
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/wizards_roll.lua | 19 | 2754 | -----------------------------------
-- Ability: Wizard's Roll
-- Enhances magic attack for party members within area of effect
-- Optimal Job: Black Mage
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level 58
--
-- Die Roll |No BLM |With BLM
-- -------- -------- -----------
-- 1 |+4 |+14
-- 2 ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Jabbar.lua | 14 | 1822 | -----------------------------------
-- Area: Port Bastok
-- NPC: Jabbar
-- Type: Tenshodo Merchant
-- Involved in Quests: Tenshodo Menbership
-- @pos -99.718 -2.299 26.027 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
andrenho/tinyvm | tools/libs/numberlua.lua | 3 | 12892 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 'bit32' compatib... | gpl-3.0 |
jsenellart/OpenNMT | onmt/train/Trainer.lua | 3 | 14771 | local Trainer = torch.class('Trainer')
local options = {
{
'-save_every', 5000,
[[Save intermediate models every this many iterations within an epoch.
If = 0, will not save intermediate models.]],
{
valid = onmt.utils.ExtendedCmdLine.isInt(0)
}
},
{
'-save_every_epochs', 1,
[[... | mit |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/wire_cutter.lua | 35 | 1160 | ---------------------------------------------------
-- Wire_Cutter
-- Single-target damage (~500-1500), absorbed by 2 Utsusemi shadows.
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------------... | gpl-3.0 |
LuaDist2/cassandra | spec/type_fixtures.lua | 8 | 3178 | local cassandra = require "cassandra"
return {
{name='ascii', value='string'},
{name='ascii', insert_value=cassandra.null, read_value=nil},
{name='bigint', insert_value=cassandra.bigint(42000000000), read_value=42000000000},
{name='bigint', insert_value=cassandra.bigint(-42000000000), read_value=-42000000000},... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Chululu.lua | 25 | 5445 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chululu
-- Starts and Finishes Quests: Collect Tarut Cards, Rubbish Day
-- Optional Cutscene at end of Quest: Searching for the Right Words
-- @pos -13 -6 -42 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = n... | gpl-3.0 |
bigyihsuan/complicated-recipes | prototypes/recipes/inserters.lua | 1 | 4370 | data:extend({
--Arms
{
type = 'recipe',
name = 'burner-inserter-arm',
ingredients = {
{'iron-plate', 1},
{'iron-gear-wheel', 1}
},
result = 'burner-inserter-arm'
},
{
type = 'recipe',
name = 'inserter-arm',
ingredients = {
{'iron-plate', 1},
{'iron-gear-wh... | mit |
Samanj5/creed-SPAM | plugins/link.pv.lua | 107 | 31031 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
MRAHS/SBSS_Plus | plugins/Link Pv.lua | 107 | 31031 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Newton_Movalpolos/Zone.lua | 13 | 1778 | -----------------------------------
--
-- Zone: Newton_Movalpolos (12)
--
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Newton_Movalpolos/TextIDs");
------------------... | gpl-3.0 |
AmirMohammadLocker/BOT | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
mohammadrezatitan/maikel | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ej.lua | 17 | 3739 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #6 (J out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
pakozm/april-ann | packages/basics/matrix/test/test_gemm.lua | 3 | 4821 | local check=utest.check
local T=utest.test
function do_test()
T("GEMMTest1", function()
local a = matrix(2,1):linspace() -- matrix with strides = {1,1}
local b = matrix(2,2):linspace()
check.eq(a:t()*b,
matrix(1,2,{ 1*1 + 2*3, 1*2 + 2*4 }))
check.eq(matrix(1,2):gemm{ A=a, B=b, ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Abeaule.lua | 25 | 4316 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Abeaule
-- Starts and Finishes Quest: The Trader in the Forest, The Medicine Woman
-- @pos -136 -2 56 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Macuillie.lua | 3 | 2705 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Macuillie
-- Type: Guildworker's Union Representative
-- @zone 231
-- @pos -191.738 11.001 138.656
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/linux/mips/constants.lua | 24 | 9285 | -- mips specific constants
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 h = require "syscall.helpers... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/scholars_roll.lua | 19 | 2280 | -----------------------------------
-- Ability: Scholar's Roll
-- Enhances Conserve MP effect for party members within area of effect
-- Optimal Job: Scholar
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 64
--
-- Data unknown
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
pakozm/april-ann | packages/ann/graph/lua_src/ann_graph.lua | 3 | 52678 | local mop = matrix.op
local null_token = tokens.null()
-- The ann.graph package allows to implement ANNs as if they were a graph of
-- components. The nodes of the graph are operations (ANN components), and the
-- edges are connections between output and input of the components. The graph
-- is described as a d... | gpl-3.0 |
openwrt-es/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/pestle.lua | 41 | 1123 | -----------------------------------------
-- ID: 18599
-- Item: Pestle
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
fun... | gpl-3.0 |
fps-vogel/maccer | luapower/csrc/luajit/src/src/jit/dis_ppc.lua | 78 | 20318 | ----------------------------------------------------------------------------
-- LuaJIT PPC 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 |
bmscoordinators/FFXI-Server | scripts/zones/Arrapago_Reef/npcs/qm3.lua | 30 | 1351 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Zareehkl the Jubilant(ZNM T2))
-- @pos 176 -4 182 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/four-leaf_mandragora_bud.lua | 12 | 1208 | -----------------------------------------
-- ID: 4369
-- Item: four-leaf_mandragora_bud
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Agility 3
-- Vitality -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
pakozm/april-ann | packages/metrics/roc/lua_src/roc.lua | 2 | 9046 | metrics = metrics or {}
--
local function check_matrix(m)
assert(class.is_a(m,matrix), "Needs a matrix as argument")
local dim = m:dim()
assert( #dim == 1 or
(#dim == 2 and
(dim[1] == 1 or dim[2] == 1)),
"Needs a row or column vector" )
return #dim == 1 and m:contiguous():r... | gpl-3.0 |
ianmaclarty/vertex-meadow | download.lua | 1 | 2507 | local download = ...
am.eval_js[[
var script = document.createElement('script');
script.setAttribute("src", "FileSaver.js");
script.setAttribute("type","text/javascript");
document.getElementsByTagName("head")[0].appendChild(script);
]]
function download.download_image(img)
local base64 = am.base6... | mit |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/quietus.lua | 26 | 1684 | -----------------------------------
-- Quietus
-- Scythe weapon skill
-- Skill Level: N/A
-- Delivers a triple damage attack that ignores target's defense. Amount ignored varies with TP. Redemption: Aftermath.
-- Available only when equipped with Redemption (85)/(90)/(95)/(99) or Penitence +1/+2/+3/Umiliati.
-- Aligned... | gpl-3.0 |
nikil/packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
bigyihsuan/complicated-recipes | migrations/complicated-recipes_1.0.0.lua | 1 | 6619 | game.reload_script()
for _, force in pairs(game.forces) do
for _, technology in pairs(force.technologies) do
if technology.researched then
for _, modifier in pairs(technology.effects) do
if modifier.type == "unlock-recipe" then
force.recipes[modifier.recipe].... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/poisonga_iii.lua | 27 | 1133 | -----------------------------------------
-- Spell: Poisonga III
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
cloudflare/lua-capnproto | lua/handwritten_capnp.lua | 4 | 30702 | local ffi = require "ffi"
local capnp = require "capnp"
local bit = require "bit"
local ceil = math.ceil
local write_struct_field= capnp.write_struct_field
local read_struct_field = capnp.read_struct_field
local read_text = capnp.read_text
local write_text = capnp.write_text
local get_enum_... | bsd-2-clause |
amrit110/deepLearThesis | torch/cleanup/plotfunc.lua | 1 | 5209 | require 'image'
require 'nn'
require 'torch'
require 'qt'
require 'qtwidget'
--[[
TODO:
* make sure these functions also works givena network.
* test plot_inference() function
* add possibility to plot bb from multiple classes in plot_inference()
--]]
function plot_classifier(indx,net_class)
--net_class = net_cla... | mit |
suxinde2009/wesnoth | data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua | 4 | 5862 | 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"
local LS = wesnoth.require "lua/location_set.lua"
local WMPF = wesnoth.require "ai/micro_ais/cas/ca_wolves_multipacks_functions.lua"
local ca_wolves_mult... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Nbu_Latteh.lua | 26 | 3365 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Nbu Latteh
-- Starts & Finishes Quest: Mom, The Adventurer?
-- Starts Quest: The Signpost Marks the Spot
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Element-Research/rnn | recursiveUtils.lua | 7 | 4323 |
function rnn.recursiveResizeAs(t1,t2)
if torch.type(t2) == 'table' then
t1 = (torch.type(t1) == 'table') and t1 or {t1}
for key,_ in pairs(t2) do
t1[key], t2[key] = rnn.recursiveResizeAs(t1[key], t2[key])
end
elseif torch.isTensor(t2) then
t1 = torch.isTensor(t1) and t1 or t2.new... | bsd-3-clause |
PraveerSINGH/nn | VolumetricMaxUnpooling.lua | 17 | 1804 | local VolumetricMaxUnpooling, parent = torch.class('nn.VolumetricMaxUnpooling', 'nn.Module')
function VolumetricMaxUnpooling:__init(poolingModule)
parent.__init(self)
assert(torch.type(poolingModule)=='nn.VolumetricMaxPooling', 'Argument must be a nn.VolumetricMaxPooling module')
assert(poolingModule.kT==pooling... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Norg/npcs/Paito-Maito.lua | 15 | 2550 | -----------------------------------
-- Area: Norg
-- NPC: Paito-Maito
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-71.189713, -9.413510, 74.024879,
-71.674171, -9.317029, 73.054794,
-72.516525, -9.298064, 72.363213,
-73.432983, -9.220915, 71.773857,
-74... | gpl-3.0 |
defendersrust/Defenders-Rust | server/my_server_identity/oxide/plugins/DayVote.lua | 1 | 52640 | PLUGIN.Title = "Day Vote"
PLUGIN.Description = "Allows automatic or player voting to skip night cycles."
PLUGIN.Author = "InSaNe8472"
PLUGIN.Version = V(1,1,1)
PLUGIN.ResourceID = 1275
local CanVote = true
local ActiveVote = false
local AllowRevote = false
local VoteList = {}
local VoteT... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/savage_blade.lua | 25 | 1590 | -----------------------------------
-- Savage Blade
-- Sword weapon skill
-- Skill Level: 240
-- Delivers an aerial attack comprised of two hits. Damage varies with TP.
-- In order to obtain Savage Blade, the quest Old Wounds must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget, Thunder... | gpl-3.0 |
tuxology/bcc | src/lua/bcc/vendor/posix.lua | 8 | 2147 | --[[
Copyright 2016 GitHub, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Al_Zahbi/npcs/Mihli_Aliapoh.lua | 14 | 1047 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Mihli Aliapoh
-- Type: Waterserpent General
-- @zone 48
-- @pos -22.615 -7 78.907
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------... | gpl-3.0 |
ashkanpj/firec | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
mmiillaadddd/Gold_Bot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
Whit3Tig3R/spammn1 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Palborough_Mines/npcs/_3z7.lua | 34 | 1087 | -----------------------------------
-- Elevator in Palborough
-- Notes: Used to operate Elevator @3z0
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Palborough_Mines/TextIDs");
require("scripts/globals/status... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/hysteric_barrage.lua | 36 | 1734 | -----------------------------------------
-- Spell: Hysteric Barrage
-- Delivers a fivefold attack. Damage varies with TP
-- Spell cost: 61 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Hand-to-Hand)
-- Blue Magic Points: 5
-- Stat Bonus: DEX+2, AGI+1
-- Level: 69
-- Casting Time: 0.5 seconds
-- Recast Time: 28... | gpl-3.0 |
wingo/snabb | src/apps/intel/intel10g.lua | 5 | 46443 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
--- Device driver for the Intel 82599 10-Gigabit Ethernet controller.
--- This is one of the most popular production 10G Ethernet
--- controllers on the market and it is readily available in
--- affordable (~$400) network cards made by Inte... | apache-2.0 |
wingo/snabb | src/apps/lwaftr/fragmentv6.lua | 2 | 10341 | module(..., package.seeall)
local constants = require("apps.lwaftr.constants")
local lwutil = require("apps.lwaftr.lwutil")
local packet = require("core.packet")
local bit = require("bit")
local ffi = require("ffi")
local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift
local C = ffi.C
local rd1... | apache-2.0 |
firedtoad/skynet | examples/login/logind.lua | 29 | 1663 | local login = require "snax.loginserver"
local crypt = require "skynet.crypt"
local skynet = require "skynet"
local server = {
host = "127.0.0.1",
port = 8001,
multilogin = false, -- disallow multilogin
name = "login_master",
}
local server_list = {}
local user_online = {}
local user_login = {}
function server.a... | mit |
renstrom/oUF | elements/assistant.lua | 7 | 2427 | --[[ Element: Assistant Icon
Toggles visibility of `self.Assistant` based on the units raid officer status.
Widget
Assistant - Any UI widget.
Notes
The default assistant icon will be applied if the UI widget is a texture and
doesn't have a texture or color defined.
Examples
-- Position and size
local... | mit |
ld-test/hprose | src/hprose/input_stream.lua | 3 | 2674 | --[[
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/npcs/Spare_Five.lua | 17 | 1506 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Five
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["scripts/z... | gpl-3.0 |
deepak78/luci | contrib/luadoc/lua/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/quests.lua | 20 | 45133 | require("scripts/globals/log_ids");
-----------------------------------
-- Nation IDs
-----------------------------------
NATION_SANDORIA = 0;
NATION_BASTOK = 1;
NATION_WINDURST = 2;
-----------------------------------
--
-- QUESTS ID
--
-----------------------------------
QUEST_AVAILABLE = 0;
QUEST_ACCEPTED =... | gpl-3.0 |
tehran98/Team-Spammer | plugins/spam.lua | 1 | 247555 | function run(msg, matches)
return '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234... | gpl-2.0 |
olapaola/olapaola-android-scripting | lua/json4lua/json/rpc.lua | 21 | 4386 | -----------------------------------------------------------------------------
-- JSONRPC4Lua: JSON RPC client calls over http for the Lua language.
-- json.rpc Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.10
-- This module is released under the The GNU General Publi... | apache-2.0 |
ashkanpj/firec | plugins/admin.lua | 230 | 6382 | 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(rec... | gpl-2.0 |
scummvm/scummvm | devtools/create_ultima/files/ultima6/scripts/u6/actor.lua | 18 | 108701 | --io.stderr:write("actor.lua get here\n")
--Worktypes
WT_NOTHING = 0x0 --do nothing
WT_FOLLOW = 0x1 --follow avatar (in party)
WT_PLAYER = 0x2 --player mode
WT_FRONT = 0x3 --combat front
WT_REAR = 0x4 --combat rear
WT_FLANK ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/cup_of_chamomile_tea.lua | 12 | 1477 | -----------------------------------------
-- ID: 4603
-- Item: cup_of_chamomile_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 8
-- Vitality -2
-- Charisma 2
-- Magic Regen While Healing 1
-- Sleep resistance -30
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
firedtoad/skynet | test/testpipeline.lua | 30 | 1265 | local skynet = require "skynet"
local redis = require "skynet.db.redis"
local conf = {
host = "127.0.0.1",
port = 6379,
db = 0
}
local function read_table(t)
local result = { }
for i = 1, #t, 2 do result[t[i]] = t[i + 1] end
return result
end
skynet.start(function()
local db = redis.connect(conf)
d... | mit |
bmscoordinators/FFXI-Server | scripts/globals/abilities/blade_bash.lua | 16 | 1611 | -----------------------------------
-- Ability: Blade Bash
-- Deliver an attack that can stun the target and occasionally cause Plague.
-- Obtained: Samurai Level 75
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
--... | gpl-3.0 |
firedtoad/skynet | lualib/skynet/inject.lua | 21 | 1445 | local function getupvaluetable(u, func, unique)
local i = 1
while true do
local name, value = debug.getupvalue(func, i)
if name == nil then
return
end
local t = type(value)
if t == "table" then
u[name] = value
elseif t == "function" then
if not unique[value] then
unique[value] = true
getu... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/absorb-vit.lua | 9 | 1369 | --------------------------------------
-- Spell: Absorb-VIT
-- Steals an enemy's vitality.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
----------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Sea_Serpent_Grotto/npcs/qm2.lua | 14 | 1491 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: ??? Used for Norg quest "The Sahagin's Stash"
-- @zone 176
-- @pos 295.276 27.129 213.043
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/marron_glace.lua | 12 | 1327 | -----------------------------------------
-- ID: 4502
-- Item: Marron Glace
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 85
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
cypherkey/AvorionMission | entity/claim.lua | 1 | 1300 | package.path = package.path .. ";data/scripts/lib/?.lua"
require ("stringutility")
-- if this function returns false, the script will not be listed in the interaction window,
-- even though its UI may be registered
function interactionPossible(playerIndex, option)
local player = Player(playerIndex)
local sel... | gpl-3.0 |
raedwulf/awesome | luadoc/root.lua | 2 | 1504 | --- awesome root window API
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
module("root")
--- Get or set global mouse bindings.
-- This binding will be available when you'll click on root window.
-- @param button_table An array of mouse button bindings objects, or nothing.
--... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Altepa_Desert/mobs/Cactuar.lua | 2 | 1109 | -----------------------------------
-- Area: Western Altepa Desert
-- MOB: Cactuar
-- Note: Place holder for Cactuar_Cantautor
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Western_Altepa_Desert/MobIDs");
-----------------------------------
-- onMobDeath
-------... | gpl-3.0 |
denizyuret/lstm | main.lua | 8 | 9102 | --
---- Copyright (c) 2014, Facebook, Inc.
---- All rights reserved.
----
---- This source code is licensed under the Apache 2 license found in the
---- LICENSE file in the root directory of this source tree.
----
local ok,cunn = pcall(require, 'fbcunn')
if not ok then
ok,cunn = pcall(require,'cunn')
if ok... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 7 | 1508 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/settings");
-----------------------------... | gpl-3.0 |
lxbgit/luarocks | src/luarocks/build/make.lua | 17 | 3465 |
--- Build back-end for using Makefile-based packages.
--module("luarocks.build.make", package.seeall)
local make = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
--- Call "make" with given target and variables
-- @... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Attohwa/npcs/Cavernous_Maw.lua | 29 | 1199 | -----------------------------------
-- Area: Abyssea - Attohwa
-- NPC: Cavernous Maw
-- @pos -133.197 20.242 -181.658 215
-- Notes: Teleports Players to Buburimu Peninsula
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/West_Sarutabaruta/mobs/Carrion_Crow.lua | 2 | 1039 | -----------------------------------
-- Area: West Sarutabaruta
-- MOB: Carrion Crow
-- Note: PH for Nunyenunc
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/West_Sarutabaruta/MobIDs");
-----------------------------------
-- onMobDeath
----------------------------... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/change_rogue.lua | 2 | 3958 | --[[
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/Temenos/bcnms/temenos_northern_tower.lua | 35 | 1173 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[Temenos_N_Tower]UniqueID",G... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/commands/addtreasure.lua | 10 | 1119 | ---------------------------------------------------------------------------------------------------
-- func: addtreasure <itemId> <target player/party/alliance>
-- desc: Adds an item directly to the treasure pool.
---------------------------------------------------------------------------------------------------
cmdpr... | gpl-3.0 |
pakozm/april-ann | packages/ocr/off_line_text_preprocessing/package.lua | 3 | 1171 | package{ name = "ocr.off_line_text_preprocessing",
version = "1.0",
depends = { "util", "Image", "matrix", "interest_points" },
keywords = { "off_line_text_preprocessing" },
description = "Handwritten text preprocessing utilities",
-- targets como en ant
target{
name = "init",
mkdir{ dir = ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/agaricus_mushroom.lua | 12 | 1160 | -----------------------------------------
-- ID: 5680
-- Item: agaricus mushroom
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- STR -4
-- MND +2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Gusgen_Mines/npcs/_5ga.lua | 14 | 1377 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5ga (Lever C)
-- @pos 44 -40.561 -54.199 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
--------------------------... | gpl-3.0 |
jsenellart/OpenNMT | onmt/modules/CNNEncoder.lua | 7 | 3930 | --[[ Convolutional Encoder similar to the one described in https://arxiv.org/abs/1611.02344.
--]]
local CNNEncoder, parent = torch.class('onmt.CNNEncoder', 'nn.Container')
local options = {
{
'-cnn_layers', 2,
[[Number of convolutional layers in the encoder.]],
{
valid = onmt.utils.ExtendedCmdL... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/cup_of_choco-delight.lua | 12 | 1151 | -----------------------------------------
-- ID: 4283
-- Item: cup_of_choco-delight
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
KamilKZ/TDS | game/turret.lua | 1 | 9314 |
function newGun( slot, name, image, sound, x, y, sx, sy, r, fireType, fireDelay, bulletsPerShot, ammo, reloadDelay, accuracy, projectile, projectileSize, muzzleVel, damage )
local gun = {
slot = slot or 1,
name = name or "sample",
x = x or 0,
y = y or 0,
image = love.graphics.newImage(image or "sprites/... | mit |
pakozm/april-ann | EXAMPLES/digits.lua | 3 | 3050 | -- forces CUDA when available
mathcore.set_use_cuda_default(util.is_cuda_available())
--
digits_image = ImageIO.read(string.get_path(arg[0]).."digits.png")
m1 = digits_image:to_grayscale():invert_colors():matrix()
-- TRAINING --
-- a simple matrix for the desired output
train_input = dataset.matrix(m1,
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Silver_Sea_Remnants/Zone.lua | 17 | 1112 | -----------------------------------
--
-- Zone: Silver_Sea_Remnants
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Silver_Sea_Remnants/TextIDs"] = nil;
require("scripts/zones/Silver_Sea_Remnants/TextIDs");
-----------------------------------
-- onInitializ... | gpl-3.0 |
lxbgit/luarocks | src/luarocks/fs.lua | 15 | 2134 |
--- Proxy module for filesystem and platform abstractions.
-- All code using "fs" code should require "luarocks.fs",
-- and not the various platform-specific implementations.
-- However, see the documentation of the implementation
-- for the API reference.
local pairs = pairs
--module("luarocks.fs", package.seeall)
... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/choco-ligar.lua | 12 | 1197 | -----------------------------------------
-- ID: 5919
-- Item: Choco-ligar
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Vitality 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Ardea.lua | 14 | 2045 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Ardea
-- @zone 235
-- @pos -198 -6 -69
-- Involved in quests: Chasing Quotas, Rock Racketeer
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/Te... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Konschtat/npcs/Atma_Fabricant.lua | 33 | 1061 | -----------------------------------
-- Zone: Abyssea - Konschtat
-- NPC: Atma Fabricant
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts/... | gpl-3.0 |
sajadaltaie/arabicbot | plugins/plugins.lua | 6 | 5671 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Nashmau/npcs/Kyokyoroon.lua | 14 | 1755 | -----------------------------------
-- Area: Nashmau
-- NPC: Kyokyoroon
-- Standard Info NPC
-- @pos 18.020 -6.000 10.467 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/setting... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua | 23 | 2360 | -----------------------------------
-- Area: The Celestial Nexus
-- NPC: Orbital
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
--... | gpl-3.0 |
cypherkey/AvorionMission | systems/velocitybypass.lua | 1 | 1659 | package.path = package.path .. ";data/scripts/systems/?.lua"
package.path = package.path .. ";data/scripts/lib/?.lua"
require ("basesystem")
require ("utility")
require ("randomext")
function getBonuses(seed, rarity)
math.randomseed(seed)
local energy = (6.0 - (rarity.value + 1)) * 8 -- base value 60 for wor... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.