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 |
|---|---|---|---|---|---|
mohammad25253/teamking | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
Snider-tech-club/Tank-game | game.love/tanks/tankGenerator.lua | 1 | 3503 | --[[tank:new
params{
Type 0,1,2,3
0: Normal
1: Sniper
2: Laser
3: Heavy
Keys: set keys for movement
keys is table
}
]]--
require('graphics/math')
tank = {}
tank.__index = tank
function tank:new (params, HC)
local keys = params.keys
normal = {damage = 5, health = 50, maxHealth = 50, speed = 50, bounce = 8, reload = 5... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/advancing_march.lua | 27 | 1451 | -----------------------------------------
-- Spell: Advancing March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
firedtoad/skynet | lualib/skynet/sharemap.lua | 30 | 1503 | local stm = require "skynet.stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Rolanberry_Fields/Zone.lua | 9 | 4607 | -----------------------------------
--
-- Zone: Rolanberry_Fields (110)
--
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Rolanberry_Fields/TextIDs");
require("scripts/globals/icanheararainbow");
require("s... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Mines/npcs/Eulaphe.lua | 5 | 1980 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Eulaphe
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-- ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Estiliphire.lua | 14 | 1290 | -----------------------------------
-- Area: Southern Sandoria
-- NPC: Estiliphire
-- Type: Event Sideshow NPC
-- @zone 230
-- @pos -41.550 1.999 -2.845
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zone... | gpl-3.0 |
deepak78/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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 License at
h... | apache-2.0 |
colesbury/nn | BatchNormalization.lua | 8 | 6422 | --[[
This file implements Batch Normalization as described in the paper:
"Batch Normalization: Accelerating Deep Network Training
by Reducing Internal Covariate Shift"
by Sergey Ioffe, Christian Szegedy
This implementation is useful for inputs NOT coming from convol... | bsd-3-clause |
diamondo25/Vana | scripts/npcs/viola_white.lua | 2 | 1487 | --[[
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 |
Shayan123456/botttttt10 | plugins/music.lua | 12 | 2843 | --Shared @ThisIsArman And Coping-Shared channel @BlackHatchannel
do
-- Base search URL
local BASE_URL = 'http://pleer.com/mobile/search?q='
-- Base download URL
local BASE_DL_URL = 'http://pleer.com/mobile/files_mobile/'
local htmlparser = require 'htmlparser'
-- Provide download link
local fun... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Reisenjima_Sanctorium/Zone.lua | 30 | 1465 | -----------------------------------
--
-- Zone: Reisenjima Sanctorium (293)
--
-----------------------------------
package.loaded["scripts/zones/Reisenjima_Sanctorium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Reisenjima_Sanctorium/TextIDs");
require("scripts/globals/settings");
requir... | gpl-3.0 |
diamondo25/Vana | scripts/portals/summondragon.lua | 2 | 1070 | --[[
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/weaponskills/mordant_rime.lua | 18 | 2236 | -----------------------------------
-- Mordant Rime
-- Dagger weapon skill
-- Skill level: N/A
-- Description: Delivers a twofold attack that decreases target's movement speed. Chance of decreasing movement speed varies with TP. Carnwenhan: Aftermath effect varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gor... | gpl-3.0 |
suxinde2009/wesnoth | data/ai/micro_ais/cas/ca_herding_herd_sheep.lua | 7 | 3249 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local herding_area = wesnoth.require "ai/micro_ais/cas/ca_herding_f_herding_area.lua"
local function get_dogs(cfg)
local dogs = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", H.get_child(c... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Oztroja/npcs/relic.lua | 14 | 1868 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: <this space intentionally left blank>
-- @pos -104 -73 85 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
-----... | gpl-3.0 |
diamondo25/Vana | scripts/instances/assassinate4th.lua | 2 | 1271 | --[[
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/Dragons_Aery/mobs/Nidhogg.lua | 2 | 2333 | -----------------------------------
-- Area: Dragons Aery
-- HNM: Nidhogg
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
f... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/pinning_shot.lua | 33 | 1044 | ---------------------------------------------
-- Pinning Shot
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
------------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Selbina/npcs/Abelard.lua | 14 | 7799 | -----------------------------------
-- Area: Selbina
-- NPC: Abelard
-- An Explorer's Footsteps
-- @pos -52 -11 -13 248
-- This quest was changed to require a minimum amount of fame to combat RMTs POS-Hacking around to
-- quickly earn gil. However, as this is not a legitimate concern on private servers players may
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ship_bound_for_Mhaura/npcs/Chhaya.lua | 14 | 1329 | -----------------------------------
-- Area: Ship Bound for Mhaura
-- NPC: Chhaya
-- Standard Merchant NPC
-- @pos -1.139 -2.101 -9.000 221
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Gusgen_Mines/npcs/Degga.lua | 14 | 1163 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Degga
-- Type: Standard Info NPC
-- @pos 40 -68 -259
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests"... | gpl-3.0 |
MRAHS/SBSS_Plus | plugins/Member_Moderator.lua | 20 | 10430 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
return 'Group '..string.gsub(group_name, '... | gpl-2.0 |
rizaumami/tdcliBot | bot/plugins/report.lua | 1 | 2540 | do
local function report(chat_id, msg_id, reporter, description)
local text = _msg('• <b>Message reported by</b>: %s'):format(reporter)
local link = db:get('link' .. chat_id)
local guname = db:get('username' .. chat_id)
local title = util.escapeHtml(db:get('title' .. chat_id))
local logchat = db:... | gpl-3.0 |
arman022/turbo-spammer | plugins/spam2.lua | 1 | 176081 | local function run(msg) if msg.text == "spam2" and is_sudo(msg) then
return [[
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Spam By Turbo TM
Sp... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/feral_howl.lua | 58 | 3525 | ---------------------------------------------------
-- Ability: Feral Howl
-- Terrorizes the target.
-- Obtained: Beastmaster Level 75
-- Recast Time: 0:05:00
-- Duration: Apprx. 0:00:01 - 0:00:10
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status")... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Berstrogus.lua | 14 | 1069 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Berstrogus
-- Type: Standard NPC
-- @zone 256
-- @pos -44 4 -10
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(p... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua | 27 | 1269 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: HomePoint#1
-- @pos -63 50 81 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Hall_of_Transference/npcs/_0e6.lua | 22 | 1709 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Dem
-- @pos -243.723 -41.482 -289.937 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfe... | gpl-3.0 |
tehran98/Team-Spammer | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/salmon_rice_ball.lua | 12 | 1508 | -----------------------------------------
-- ID: 4590
-- Item: Salmon Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +10
-- Dex +2
-- Vit +2
-- Mnd -1
-- hHP +1
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +40
-- Def +40
--------... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/bsd/ffi.lua | 18 | 10586 | -- define general BSD system calls for ffi
-- note that some functions may not be available in all, but so long as prototype is standard they can go here
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumbe... | apache-2.0 |
deepak78/luci | libs/web/luasrc/cbi.lua | 8 | 40178 | --[[
LuCI - Configuration Bind Interface
Description:
Offers an interface for binding configuration values to certain
data types. Supports value and range validation and basic dependencies.
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "Li... | apache-2.0 |
Wrongtown/EmptyEpsilon | scripts/scenario_05_surrounded.lua | 4 | 1567 | -- Name: Surrounded
-- Description: You are surrounded by astroids, enemies and mines.
-- Type: Basic
function setCirclePos(obj, angle, distance)
obj:setPosition(math.sin(angle / 180 * math.pi) * distance, -math.cos(angle / 180 * math.pi) * distance)
end
function init()
SpaceStation():setTemplate("Small Station"... | gpl-2.0 |
wingo/snabb | src/lib/timers/ingress_drop_monitor.lua | 2 | 1335 | module(...,package.seeall)
-- Ingress packet drop monitor timer.
local ffi = require("ffi")
-- Every 100 milliseconds.
local interval = 1e8
local with_restart = core.app.with_restart
local now = core.app.now
ingress_drop_monitor = {
threshold = 100000,
wait = 20,
last_flush = 0,
last_value = ffi.new('u... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ordelles_Caves/npcs/qm4.lua | 14 | 1431 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: ??? (qm4)
-- Involved In Quest: Dark Puppet
-- @pos -52 27 -85 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/doton_san.lua | 21 | 1275 | -----------------------------------------
-- Spell: Doton: San
-- Deals earth damage to an enemy and lowers its resistance against wind.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
ld-test/hprose | src/hprose/client.lua | 2 | 4502 | --[[
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | mit |
cheney247689848/Cloud-edge | Assets/Script_Lua/bundle/L_BundleObserver.lua | 1 | 1596 | -------------------------------------------------------------------
-- The Long night
-- The night gives me black eyes, but I use it to find the light.
-- In 2017
-------------------------------------------------------------------
require("observer/L_Observer")
L_BundleObserver = {}
setmetatable(L_BundleObserver, {_... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Harmodios.lua | 14 | 2447 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Harmodios
-- Standard Merchant NPC
-- @pos -79.928 -4.824 -135.114 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scri... | gpl-3.0 |
rezaar/sorenaFarsi | plugins/info.lua | 1 | 8659 | do
local creed = 62283960
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر ('..name..') به '..value..' تغی... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Colosseum/npcs/_1e9.lua | 27 | 1102 | -----------------------------------
-- Area: The Colosseum
-- NPC: _1e9 (Gate: The Pit)
-- @pos -604 -1.949 40 71
-----------------------------------
package.loaded["scripts/zones/The_Colosseum/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Colosseum/TextIDs");
-----------------------... | gpl-3.0 |
chanko08/Ludum-Dare-34 | lib/hump/camera.lua | 5 | 5345 | --[[
Copyright (c) 2010-2015 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
PraveerSINGH/nn | SpatialFractionalMaxPooling.lua | 11 | 5173 | local SpatialFractionalMaxPooling, parent =
torch.class('nn.SpatialFractionalMaxPooling', 'nn.Module')
-- Usage:
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, outW, outH)
-- the output should be the exact size (outH x outW)
-- nn.SpatialFractionalMaxPooling(poolSizeW, poolSizeH, ratioW, ratioH)
-- the... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Al_Zahbi/npcs/Suldiran.lua | 14 | 1923 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Suldiran
-- Type: NPC Quest
-- @zone 48
-- @pos 41.658 -6.999 -42.528
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/globals/qu... | gpl-3.0 |
pakozm/april-ann | packages/basics/mathcore/lua_src/mathcore.lua | 3 | 7754 | local MAX = 4
local DEFAULT_SIZE = 8
-- global NaN and inf definition
nan = mathcore.limits.double.quiet_NaN()
inf = mathcore.limits.double.infinity()
local function make_block_tostring(name, str)
return function(b)
local result = {}
local data = {}
for i=1,math.min(MAX, b:size()) do
data[i] = str... | gpl-3.0 |
NoahNMorton/MinecraftLuaPrograms | OpenComputers/ScreenWelcomeMat.lua | 2 | 1227 | --[[
Screen welcome mat program by Gangsir
This program displays the message: Welcome, <Playername>! when the screen is walked on.
Only works one way, the direction the screen was placed in.
Requires tier 2 graphics card and screen.
To use, place a screen into the floor, run the program, and walk on it. Thats it.
Progr... | mit |
deepak78/luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua | 30 | 5877 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
f... | apache-2.0 |
bedros/lsyncd | bin2carray.lua | 22 | 1259 | #!/usr/bin/lua
--============================================================================
-- bin2carray.lua
--
-- License: GPLv2 (see COPYING) or any later version
--
-- Authors: Axel Kittenberger <axkibe@gmail.com>
--
-- Transforms a binary file (the compiled lsyncd runner script) in a c array
-- so it can be inc... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Michea.lua | 29 | 4408 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Michea
-- Quest NPC
-- Starts: Father Figure (100%) | The Elvaan Goldsmith (100%)
-- Involed in: Fetichism | Where Two Paths Converge
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
--------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua | 12 | 1814 | -----------------------------------------
-- ID: 5202
-- Item: Dish of Spaghetti Nero Di Seppia +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------------... | gpl-3.0 |
jsenellart/OpenNMT | onmt/modules/JoinReplicateTable.lua | 8 | 4192 | local JoinReplicateTable, parent = torch.class('onmt.JoinReplicateTable', 'nn.Module')
function JoinReplicateTable:__init(dimensionReplicate, dimensionJoin, nInputDims)
parent.__init(self)
self.size = torch.LongStorage()
self.dimensionReplicate = dimensionReplicate
self.dimensionJoin = dimensionJoin
self.gra... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Feretory/Zone.lua | 32 | 1164 | -----------------------------------
--
-- Zone: Feretory
--
-----------------------------------
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Marjami_Ravine/TextIDs");
-----------------------------------
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/blind_bolt.lua | 41 | 1057 | -----------------------------------------
-- ID: 18150
-- Item: Blind Bolt
-- Additional Effect: Blindness
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
... | gpl-3.0 |
wingo/snabb | lib/luajit/src/jit/bc.lua | 78 | 5620 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
colesbury/nn | Sequential.lua | 20 | 4163 | local Sequential, _ = torch.class('nn.Sequential', 'nn.Container')
function Sequential:__len()
return #self.modules
end
function Sequential:add(module)
if #self.modules == 0 then
self.gradInput = module.gradInput
end
table.insert(self.modules, module)
self.output = module.output
return self
en... | bsd-3-clause |
ashkanpj/fire-creed | plugins/LinkPv.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/Windurst_Waters/npcs/Churano-Shurano.lua | 9 | 1471 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Churano-Shurano
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrad... | gpl-3.0 |
aliwvw/Smart_guy | 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-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua | 14 | 1315 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rw (Oil Lamp)
-- Notes: Opens south door at J-9 from inside.
-- @pos 103.703 -26.180 83.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
nsimplex/wicker | math/complex.lua | 6 | 4422 | --[[
-- Complex number implementation as a subclass of Vector3 (with zero y coordinate).
--]]
local Pred = wickerrequire "lib.predicates"
local MathCommon = wickerrequire "math.common"
local math = math
------------------------------------------------------------------------
local C = Class(Vector3, function(self,... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/maelstrom.lua | 25 | 1815 | -----------------------------------------
-- Spell: Maelstrom
-- Deals water damage to enemies within range. Additional effect: STR Down
-- Spell cost: 162 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 5
-- Stat Bonus: Mind +2
-- Level: 61
-- Casting Time: 6 seconds
-- Recast Time: 39 ... | gpl-3.0 |
pakozm/april-ann | packages/misc/tar/package.lua | 3 | 1169 | package{ name = "tar",
version = "1.0",
depends = { "util", "aprilio" },
keywords = { "tar" },
description = "read tar files",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "include" },
},
target{ name = "clean",
delete{ dir = "build" },
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ceizak_Battlegrounds/npcs/HomePoint#1.lua | 27 | 1286 | -----------------------------------
-- Area: Ceizak Battlegrounds
-- NPC: HomePoint#1
-- @pos -107 3.2 295 261
-----------------------------------
package.loaded["scripts/zones/Ceizak_Battlegrounds/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ceizak_Battlegrounds/TextIDs");
require("s... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Bagnobrok.lua | 17 | 1554 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bagnobrok
-- Only sells when Bastok controls Movalpolos
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/North_Gustaberg/npcs/Butsutsu_WW.lua | 14 | 3338 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Butsutsu, W.W.
-- Type: Border Conquest Guards
-- @pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/LaLoff_Amphitheater/npcs/qm0_4.lua | 17 | 1168 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-... | gpl-3.0 |
pakozm/april-ann | packages/imaging/interest_points/test/testAreaPixel.lua | 3 | 1224 | imgFile = "sample_iam.png"
pointsFile = "sample_iam.txt"
img = ImageIO.read(imgFile):to_grayscale()
points = {{},{},{},{},{}}
-- Open the interest points list
for line in io.open(pointsFile, "r"):lines() do
point = map(tonumber, ipairs(string.tokenize(line)))
if point[3] <= 5 then
table.insert(points[p... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/cup_of_healing_tea.lua | 12 | 1466 | -----------------------------------------
-- ID: 4286
-- Item: cup_of_healing_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 10
-- Vitality -1
-- Charisma 3
-- Magic Regen While Healing 2
-- Sleep resistance -40
-----------------------------------------
require("scripts/global... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua | 17 | 1493 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kucha Malkobhi
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs"... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/florina1.lua | 2 | 1743 | --[[
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 | lib/luajit/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
----------------------------------------------------------------------------... | apache-2.0 |
valdroz/luamacaroons | libluamacaroons/test.lua | 1 | 1436 |
function satisfy_general_func(pred)
print("Satisfy : " .. tostring(pred))
return 0;
end
print("Start")
local path = "./libluamacaroons.so"
-- local path = "./libluamacaroons.dylib"
local init_macaroons = assert(package.loadlib(path, "luaopen_macaroons"))
init_macaroons()
local mv = MacaroonVerifier.new()
local m ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/betta.lua | 12 | 1320 | -----------------------------------------
-- ID: 5139
-- Item: Betta
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Ominous_Cloud.lua | 14 | 6533 | -----------------------------------
-- Area: Southern Sandoria
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone 230
-- @pos -41.550 1.999 -2.845
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria_[S]/npcs/Sabiliont.lua | 14 | 1706 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Sabiliont
-- @zone 80
-- @pos 9 2 -87
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
---------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Altepa/npcs/qm14.lua | 4 | 1402 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm14 (???)
-- Spawns Bennu
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
func... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Grilau.lua | 14 | 6142 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Grilau
-- @pos -241.987 6.999 57.887 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyi... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Bilp.lua | 14 | 1948 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Bilp
-- Type: Standard NPC and Quest NPC
-- Starts and Involved with Quest: 'Scaredy-Cats'
-- @zone 256
-- @pos -91 3 0 256
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Ac... | gpl-3.0 |
Aptann/resourcebrowser | lua/resourcebrowser/modules/sounds.lua | 1 | 2354 | local MODULE = {}
MODULE.name = "Sound Player"
MODULE.author = "Aptann"
MODULE.fileTypes = { "wav", "mp3" }
function MODULE:SpawnUI(fileName, filePath)
if !self.open then
self.frame = vgui.Create("DFrame")
self.frame:SetSize(400, 130)
self.frame:MakePopup()
self.frame:Center()
self.frame.O... | mit |
TannerRogalsky/GGJ2017 | powerups/heal_powerup.lua | 1 | 1124 | local HealPowerup = class('HealPowerup', Powerup)
local getNextSpawnPoint = require('get_next_spawn_point')
local AttackCharacter = require('player.attack_character')
local TIME_TO_TRIGGER = 2
function HealPowerup:initialize(x, y)
Powerup.initialize(self, x, y, TIME_TO_TRIGGER)
self.colors = {{59 / 255, 233 / 255... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Trail_Markings.lua | 7 | 3100 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Trail Markings
-- Dynamis-San d'Oria Enter
-- @pos 139 -2 122 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requ... | gpl-3.0 |
nsimplex/wicker | math/probability/markovchain.lua | 6 | 5689 | ---
-- @description Implements a discrete Markov Chain over a finite set of states.
-- @author simplex
local Lambda = wickerrequire 'paradigms.functional'
local Pred = wickerrequire 'lib.predicates'
local table = wickerrequire 'utils.table'
---
-- The markov chain class.
--
-- @class table
-- @name MarkovChain
--
l... | gpl-2.0 |
rizaumami/tdcliBot | bot/plugins/banhammer.lua | 1 | 11604 | do
local function getName(chat_id, user_id)
local name
if _config.sudoers[user_id] then
name = _config.sudoers[user_id]
elseif _config.administrators[user_id] then
name = _config.administrators[user_id]
elseif db:hexists('owner' .. chat_id, user_id) then
name = db:hget('owner' .. ch... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Eldieme_Necropolis/npcs/_5fd.lua | 2 | 1248 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 110 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
requir... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Chamber_of_Oracles/mobs/Maat.lua | 14 | 1396 | -----------------------------------
-- Area: Chamber of Oracles
-- MOB: Maat
-- Genkai 5 Fight
-----------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Chamber_of_Oracles/TextIDs");
-------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua | 14 | 2333 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Rakano-Marukano
-- Type: Immigration NPC
-- @pos 6.174 -1 32.285 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
-----------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/hailstorm.lua | 32 | 1182 | --------------------------------------
-- Spell: Hailstorm
-- Changes the weather around target party member to "snowy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/paralyze.lua | 6 | 1877 | -----------------------------------------
-- Spell: Paralyze
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpell... | gpl-3.0 |
boundary/boundary-plugin-mssql | modules/framework.lua | 2 | 54575 | -- Copyright 2015 Boundary, 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 i... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Konschtat/npcs/qm3.lua | 4 | 1344 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm3 (???)
-- Spawns Bombadeel
-- @pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[... | gpl-3.0 |
leighpauls/k2cro4 | v8/tools/gcmole/gccause.lua | 157 | 2313 | -- Copyright 2011 the V8 project authors. All rights reserved.
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | bsd-3-clause |
diamondo25/Vana | scripts/npcs/ossyria3_1.lua | 2 | 1332 | --[[
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/Alzadaal_Undersea_Ruins/TextIDs.lua | 7 | 1261 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6385; -- Obtained: <item>
GIL_OBTAINED = 6386; -- Obtained <number> gil
KEYITEM_OBTAINED = 6388; -- Obtain... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Porter_Moogle.lua | 14 | 1533 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 256
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Adoulin/T... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/pot_of_royal_tea.lua | 12 | 1191 | -----------------------------------------
-- ID: 4524
-- Item: pot_of_royal_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Vitality -1
-- Charisma 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
KingofGamesYami/Advance-Turtle-Operating-Environment | .apis/sha256.lua | 1 | 4875 | --
-- Adaptation of the Secure Hashing Algorithm (SHA-244/256)
-- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm
--
-- Using an adapted version of the bit library
-- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit.lua
--
local MOD = 2^32
local MODM = MOD-1
local function mem... | mit |
nsimplex/wicker | init/init_modules/standard_requirers.lua | 1 | 6855 | --------------------------------------------------------------------------------
-- |
-- Module : wicker.init.init_modules.standard_requirers
-- Note :
--
-- Defines the standard require-like functions for user code. Also defines the
-- generators for their environments.
--
-----------------------------... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Navukgo_Execution_Chamber/mobs/Karababa.lua | 12 | 2698 | -----------------------------------
-- Area: Navukgo Execution Chamber
-- MOB: Karababa
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Navukgo_Execution_Chamber/T... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/RuLude_Gardens/npcs/_6r8.lua | 14 | 2431 | -----------------------------------
-- Area: Ru'Lud Gardens
-- Door: Windurstian Ambassador
-- Windurst Missions 3.3 "A New Journey" and 4.1 "Magicite"
-- @pos 31 9 -22 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.