repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
wingo/snabb | lib/ljsyscall/include/luaunit/luaunit.lua | 24 | 19044 | --[[
luaunit.lua
Description: A unit testing framework
Homepage: http://phil.freehackers.org/luaunit/
Initial author: Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
Lot of improvements by Philippe Fremy <phil@freehackers.org>
More improvements by Ryan P. <rjpcomputing@gmail.com>
Version: 2.0
License: X11 Licen... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/love_chocolate.lua | 12 | 1133 | -----------------------------------------
-- ID: 5230
-- Item: love_chocolate
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic Regen While Healing 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/Zone.lua | 26 | 2352 | -----------------------------------
--
-- Zone: Windurst_Woods (241)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/zone");
require("scripts/globals/se... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Eastern_Adoulin/npcs/HomePoint#2.lua | 27 | 1255 | -----------------------------------
-- Area: Eastern_Adoulin
-- NPC: HomePoint#2
-- @pos
-----------------------------------
package.loaded["scripts/zones/Eastern_Adoulin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Eastern_Adoulin/TextIDs");
require("scripts/globals/homepoint");
---... | gpl-3.0 |
ashkanpj/firec | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
saeid0034/New | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Jufaue.lua | 14 | 1065 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Jufaue
-- Type: Past Event Watcher
-- @zone 231
-- @pos 13.221 -1.199 -19.231
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/nosteau_herring.lua | 12 | 1330 | -----------------------------------------
-- ID: 4482
-- Item: nosteau_herring
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Rouva.lua | 14 | 1754 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rouva
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -17 2 10 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Oztroja/npcs/_475.lua | 14 | 1143 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _475 (Brass Door)
-- Involved in Mission: Magicite
-- @pos -99 24 -105 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/npcs/Sariale.lua | 5 | 1975 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Sariale
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-... | gpl-3.0 |
jsenellart/OpenNMT | tools/release_model.lua | 3 | 2834 | require('onmt.init')
local path = require('pl.path')
local cmd = onmt.utils.ExtendedCmdLine.new('release_model.lua')
local options = {
{
'-model', '',
[[Path to the trained model to release.]],
{
valid = onmt.utils.ExtendedCmdLine.fileExists
}
},
{
'-output_model', '',
[[Path the ... | mit |
MRAHS/SBSS_Plus | plugins/Add_Bot.lua | 29 | 1484 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !join [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local functio... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Zvahl_Keep/npcs/Treasure_Chest.lua | 17 | 3763 | -----------------------------------
-- Area: Castle Zvahl Keep
-- NPC: Treasure Chest
-- @zone 162
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/death_scythe.lua | 42 | 1065 | -----------------------------------------
-- ID: 16777
-- Item: Death Scythe
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/knights_of_round.lua | 19 | 1904 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available without after... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Vunkerl/npcs/qm5.lua | 14 | 1357 | -----------------------------------
-- Zone: Abyssea-Vunkerl
-- NPC: qm5 (???)
-- Spawns Kadraeth the Hatespawn
-- @pos ? ? ? 217
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,np... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/blade_ku.lua | 26 | 1711 | -----------------------------------
-- Blade Ku
-- Katana weapon skill
-- Skill level: N/A
-- Description: Delivers a five-hit attack. params.accuracy varies with TP.
-- In order to obtain Blade: Ku, the quest Bugi Soden must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Soil Gorget ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Tavnazian_Safehold/npcs/Maturiri.lua | 14 | 1064 | ----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Maturiri
-- Type: Item Deliverer
-- @zone 26
-- @pos -77.366 -20 -71.128
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
------... | gpl-3.0 |
NoahNMorton/MinecraftLuaPrograms | Computercraft/Botaniaendoflameautomation (x6hJNtW2).lua | 2 | 1518 | --Botania Endoflame redstone dropper automation
--Copyright 2015 Gangsir
--Provide args on launch for fuel type. either coal,coalblock,coalcoke,coalcokeblock.
local fueltype = {...} --get args
local dir = fueltype[2] --direction to output redstone on
function isCoal()
while true do
rs.setOutput(dir,true)... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_yahata-style_carp_sushi.lua | 12 | 1423 | -----------------------------------------
-- ID: 5186
-- Item: plate_of_yahata-style_carp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Accuracy % 11 (cap 56)
-- HP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Gulmama.lua | 13 | 5620 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gulmama
-- Starts and Finishes Quest: Trial by Ice
-- Involved in Quest: Class Reunion
-- @pos -186 0 107 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
albanD/adaptive-neural-compilation | adaptation/layers/machine.lua | 1 | 11185 | require 'nn'
local ops = require 'nc.ops'
local layers = require 'nc.layers'
local distUtils = require 'nc.distUtils'
local RamMachine, parent = torch.class('nc.RamMachine', 'nn.Module', layers)
function RamMachine:__init(nb_registers, memory_size)
parent.__init(self)
-- Initialise parameters
self.memory_si... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Rabao/npcs/Scamplix.lua | 17 | 1532 | -----------------------------------
-- Area: Rabao
-- NPC: Scamplix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- onTrade Action
---------... | gpl-3.0 |
DavidKnight247/solarus | sample_quest/data/menus/solarus_logo.lua | 3 | 5042 | -- Animated Solarus logo by Maxs.
-- Usage:
-- local logo = require("menus/solarus_logo")
-- sol.menu.start(logo)
local solarus_logo_menu = {}
-- Main surface of the menu.
local surface = sol.surface.create(201, 48)
-- Solarus title sprite.
local title = sol.sprite.create("menus/solarus_logo")
title:set_animation("t... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Selbina/npcs/Chutarmire.lua | 17 | 1765 | -----------------------------------
-- Area: Selbina
-- NPC: Chutarmire
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
-------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Temple_of_Uggalepih/npcs/_mf8.lua | 14 | 1429 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: _mf8 (Granite Door)
-- Notes: Opens with Prelate Key
-- @pos -11 -8 -99 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Templ... | gpl-3.0 |
chanko08/Ludum-Dare-34 | lib/hump/vector.lua | 20 | 5319 | --[[
Copyright (c) 2010-2013 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 |
deepak78/luci | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
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$
]]--
lo... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Yhoator_Jungle/npcs/qm2.lua | 14 | 1953 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: ??? Used for Norg quest "Stop Your Whining"
-- @pos -94.073 -0.999 22.295 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
r... | gpl-3.0 |
trigrass2/gopher-lua | _lua5.1-tests/nextvar.lua | 20 | 8553 | print('testing tables, next, and for')
local a = {}
-- make sure table has lots of space in hash part
for i=1,100 do a[i.."+"] = true end
for i=1,100 do a[i.."+"] = nil end
-- fill hash part with numeric indices testing size operator
for i=1,100 do
a[i] = true
assert(#a == i)
end
if T then
-- testing table size... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Oldton_Movalpolos/npcs/Tarnotik.lua | 14 | 1772 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Tarnotik
-- Type: Standard NPC
-- @pos 160.896 10.999 -55.659 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Oldton_Movalpolos/T... | gpl-3.0 |
jochem-brouwer/VO2_Model | Plotter.lua | 1 | 1789 | local gp = require 'lgnuplot'
-- Plotter; for a new output file
-- You can add more data files to a Plotter instance by passing true as new_dbin to Plotter:SetData
local Plotter = {};
function Plotter:New()
return setmetatable({gp = gp{}, DBins = {}}, {__index=self});-- __newindex = self.Set});
end
local valid =... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Nashmau/npcs/Pyopyoroon.lua | 28 | 2129 | -----------------------------------
-- Area: Nashmau
-- NPC: Pyopyoroon
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
PraveerSINGH/nn | L1Penalty.lua | 16 | 1128 | local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module')
--This module acts as an L1 latent state regularizer, adding the
--[gradOutput] to the gradient of the L1 loss. The [input] is copied to
--the [output].
function L1Penalty:__init(l1weight, sizeAverage, provideOutput)
parent.__init(self)
self... | bsd-3-clause |
deepak78/luci | libs/web/luasrc/http.lua | 5 | 8064 | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a co... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Boneyard_Gully/npcs/_081.lua | 22 | 1453 | -----------------------------------
-- Area: Boneyard_Gully
-- NPC: _081 (Dark Miasma)
-----------------------------------
package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/miss... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/sandspray.lua | 26 | 1404 | -----------------------------------------
-- Spell: Sandspray
-- Blinds enemies within a fan-shaped area originating from the caster
-- Spell cost: 43 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: VIT+1
-- Level: 66
-- Casting Time: 3 seconds
-- Recast Time: 90 second... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Mhaura/npcs/Nereus.lua | 29 | 3092 | -----------------------------------
-- Area: Mhaura
-- NPC: Nereus
-- Starts and ends repeteable quest A_POTTER_S_PREFERENCE
-----------------------------------
-- player:startEvent(0x006e); standar dialog
-- player:startEvent(0x0073); -- i have enough for now, come later
-- player:startEvent(0x0072); -- ... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/friend00.lua | 2 | 3241 | --[[
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/Tavnazian_Safehold/npcs/Justinius.lua | 14 | 2018 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Justinius
-- Involved in mission : COP2-3
-- @pos 76 -34 68 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("sc... | gpl-3.0 |
kharkoni18/teleseed | plugins/all.lua | 264 | 4202 | 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/Castle_Zvahl_Baileys/npcs/Treasure_Chest.lua | 12 | 3770 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Chest
-- @zone 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
aliwvw/Smart_guy | plugin/sticker.lua | 3 | 1898 | --[[
_ _ _ _ ___ ___ _
__ _| |__ ___ ___| | ___ __ ___ _ __ (_) __ _ / |/ _ \ / _ \| | __
/ _` | '_ \ / _ \/ __| |/ / '__/ _ \| '_ \ | |/ _` | | | | | | | | | |/ /
| (_| | |_) | (_) \__ \ <| | | (_) | |_) | | | (_| | | | |_| | |_| | < ... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Shrine_of_RuAvitau/mobs/Kirin.lua | 19 | 3656 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- MOB: Kirin
-----------------------------------
package.loaded[ "scripts/zones/The_Shrine_of_RuAvitau/TextIDs" ] = nil;
-----------------------------------
require( "scripts/zones/The_Shrine_of_RuAvitau/TextIDs" );
require( "scripts/globals/titles"... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Kazham/npcs/Mumupp.lua | 15 | 4341 | -----------------------------------
-- Area: Kazham
-- NPC: Mumupp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
94.732452, -15.000000, -114.034622,
94.210846, ... | gpl-3.0 |
ncoop/vgr | lua/Battlemaster.lua | 1 | 22076 | print("Experimental Lua script for Battle Master (Genesis)")
print("Written by Dammit, last updated 1/13/2011")
print("http://www.gamefaqs.com/genesis/586050-battle-master/faqs/29225")
print()
print("Lua hotkey 1: toggle memviewer")
print("Lua hotkey 2: cycle memviewer profiles")
print("Lua hotkey 3: cycle parley... | apache-2.0 |
AmirMohammadLocker/BOT | bot/bot.lua | 1 | 11423 | -- #Beyond Reborn Robot
-- #@BeyondTeam
tdcli = dofile('./tg/tdcli.lua')
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
require('./bot/utils')
require('./libs/lua-redis')
URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "... | gpl-3.0 |
RockySeven3161/NewBot | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
jvehent/MozDef | examples/heka-lua-bro/bro_ftp.lua | 10 | 3588 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Copyright (c) 2014 Mozilla Corporation
--
-- Contributors:
-- Anthony Verez averez@mozilla.com
-- Jeff Bryner jbryn... | mpl-2.0 |
cypherkey/AvorionMission | lib/rewards.lua | 1 | 1409 | package.path = package.path .. ";data/scripts/lib/?.lua"
require ("randomext")
require ("stringutility")
TurretGenerator = require ("turretgenerator")
UpgradeGenerator = require ("upgradegenerator")
local Rewards = {}
local messages1 =
{
"Thank you."%_t,
"Thank you so much."%_t,
"We thank you."%_t,
"T... | gpl-3.0 |
diamondo25/Vana | scripts/instances/papulatus.lua | 2 | 1391 | --[[
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 |
shahabsaf1/Teleseed-sami | plugins/inpm.lua | 1114 | 3008 | 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 |
aliomega/aliomega | plugins/inpm.lua | 1114 | 3008 | 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 |
Whit3Tig3R/spammn1 | plugins/inpm.lua | 1114 | 3008 | 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 |
5620g/38196040 | plugins/inpm.lua | 1114 | 3008 | 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 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Jeuno/npcs/Veujaie.lua | 14 | 1041 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Veujaie
-- Type: Item Deliverer
-- @zone 246
-- @pos -20.349 7.999 -2.888
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/black_halo.lua | 25 | 1568 | -----------------------------------
-- Black Halo
-- Club weapon skill
-- Skill level: 230
-- In order to obtain Black Halo, the quest Orastery Woes must be completed.
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Thunder Gorget & Breeze Gorget.... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/valor_minuet_iv.lua | 27 | 1567 | -----------------------------------------
-- Spell: Valor Minuet IV
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/light_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Light Carol
-- Increases light resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Kazham-Jeuno_Airship/npcs/Joosef.lua | 30 | 2300 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Joosef
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Kazham-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade Action
-... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua | 14 | 1055 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Abby Jalunshi
-- Type: Moghouse Renter
-- @zone 241
-- @pos -101.895 -5 36.172
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
---------... | gpl-3.0 |
Guilty3096/guiltyyy | plugins/owners.lua | 94 | 12617 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
colesbury/nn | MixtureTable.lua | 15 | 5720 | local MixtureTable, parent = torch.class('nn.MixtureTable', 'nn.Module')
function MixtureTable:__init(dim)
parent.__init(self)
self.dim = dim
self.size = torch.LongStorage()
self.batchSize = 0
self.size2 = torch.LongStorage()
self.backwardSetup = false
self.gradInput = {}
end
function MixtureTabl... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Qufim_Island/npcs/Sasa_IM.lua | 14 | 3330 | -----------------------------------
-- Area: Qufim Island
-- NPC: Sasa, I.M.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-------------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest")... | gpl-3.0 |
mohammad25253/teamking | plugins/spamgroup.lua | 96 | 28863 | do
function run(msg, matches)
return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/East_Sarutabaruta/Zone.lua | 4 | 5409 | -----------------------------------
--
-- Zone: East_Sarutabaruta (116)
--
-----------------------------------
package.loaded[ "scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scr... | gpl-3.0 |
Guilty3096/guiltyyy | plugins/anti_chat.lua | 62 | 1069 |
antichat = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_chat'] then
if data[tostring(msg.to.id)]['... | gpl-2.0 |
TannerRogalsky/GGJ2017 | states/game/game_lighting_test.lua | 1 | 2259 | local LightingTest = Game:addState('LightingTest')
local physicsDebugDraw = require('physics_debug_draw')
local buildLightOverlay = require('light.build_light_overlay')
LIGHT_FALLOFF_DISTANCE = 250
function LightingTest:enteredState()
self.origin = {x = g.getWidth() / 2, y = g.getHeight() / 2}
self.world = love.p... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Metalworks/npcs/Vicious_Eye.lua | 27 | 1187 | -----------------------------------
-- Area: Metalworks
-- NPC: Vicious Eye
-- Type: Guild Merchant (Blacksmithing Guild)
-- @pos -106.132 0.999 -28.757 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Spire_of_Holla/npcs/_0h0.lua | 22 | 1508 | -----------------------------------
-- Area: Spire of Holla
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/mis... | gpl-3.0 |
XtBot/xt | tg/test.lua | 210 | 2571 | started = 0
our_id = 0
function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
if key ~= nil then
linePrefix = "["..key.."] = "
end
if depth == nil then
depth = 0
else
depth = depth + 1
for i=1, depth do spaces = spaces .. " " end
end
if type(value) == 'tab... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/burn.lua | 9 | 1852 | -----------------------------------------
-- Spell: Burn
-- Deals fire damage that lowers an enemy's intelligence and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
--------------------------... | gpl-3.0 |
mohammadrezatitan/maikel | plugins/kickme.lua | 1 | 1223 | --Start By @Tele_Sudo
local function run(msg, matches)
if matches[1] == 'kickme' or matches[1] == 'ترک گروه' then
local hash = 'kick:'..msg.chat_id_..':'..msg.sender_user_id_
redis:set(hash, "waite")
return 'کاربر عزیز شما در خواست اخراج از گروه را دارید اگر اطمینان دارید *yes* را ارسال کینید✅'
end
msg.... | gpl-3.0 |
diamondo25/Vana | scripts/instances/miniDungeonRabbit.lua | 2 | 1320 | --[[
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 |
diamondo25/Vana | scripts/npcs/taxi3.lua | 2 | 2312 | --[[
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/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 2 | 1175 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Dehlner.lua | 17 | 1208 | -----------------------------------
-- Area: Port Bastok
-- NPC: Dehlner
-- Standard Info NPC
-- Invlolved in Quest: A Foreman's Best Friend
-----------------------------------
require("scripts/globals/quests");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
--... | gpl-3.0 |
rajive/mongrel2 | examples/bbs/ui.lua | 96 | 2026 | local coroutine = coroutine
module 'ui'
local SCREENS = {
['welcome'] = [[
__ __ ____ ____ ____ ____
| \/ |___ \| __ )| __ ) ___|
| |\/| | __) | _ \| _ \___ \
| | | |/ __/| |_) | |_) |__) |
|_| |_|_____|____/|____/____/
Welcome to the Mongrel2 BBS.
]],
['name']... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Eastern_Altepa_Desert/TextIDs.lua | 7 | 1060 | -- 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/globals/weaponskills/dulling_arrow.lua | 15 | 1369 | -----------------------------------
-- Dulling Arrow
-- Archery weapon skill
-- Skill level: 80
-- Lowers enemy's INT. Chance of params.critical varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:25%
-- 100%TP 200... | gpl-3.0 |
colesbury/nn | MM.lua | 17 | 2812 | --[[ Module to perform matrix multiplication on two minibatch inputs,
producing a minibatch.
]]
local MM, parent = torch.class('nn.MM', 'nn.Module')
--[[ The constructor takes two optional arguments, specifying whether or not transpose
any of the input matrices before perfoming the multiplication.
]]
functi... | bsd-3-clause |
TannerRogalsky/GGJ2017 | lib/vector.lua | 3 | 5350 | --[[
Copyright (c) 2010-2013 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 |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_pebble_soup.lua | 12 | 1137 | -----------------------------------------
-- ID: 4455
-- Item: Bowl of Pebble Soup
-- Food Effect: 3 Hr, All Races
-----------------------------------------
-- HP Recovered while healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
cypherkey/AvorionMission | lib/defaultscripts.lua | 1 | 1130 |
function AddDefaultShipScripts(ship)
ship:addScriptOnce("data/scripts/entity/startbuilding.lua")
ship:addScriptOnce("data/scripts/entity/entercraft.lua")
ship:addScriptOnce("data/scripts/entity/exitcraft.lua")
ship:addScriptOnce("data/scripts/entity/craftorders.lua")
ship:addScriptOnce("data/scrip... | gpl-3.0 |
deepak78/luci | applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua | 7 | 2330 | require("luci.tools.webadmin")
m = Map("multiwan", translate("Multi-WAN"),
translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover."))
s = m:section(NamedSection, "config", "multiwan", "")
e = s:option(Flag, "enabled", translate("Enable"))
e.rmempty = false
function e.write(self,... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/dried_date_+1.lua | 12 | 1350 | -----------------------------------------
-- ID: 5574
-- Item: dried_date_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 12
-- Magic 22
-- Agility -1
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/crab_stewpot.lua | 12 | 1753 | -----------------------------------------
-- ID: 5544
-- Item: Crab Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Defense +20% Cap 50
-- Evasion +5
-------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Diorama_Abdhaljs-Ghelsba/Zone.lua | 17 | 1127 | -----------------------------------
--
-- Zone: Diorama_Abdhaljs-Ghelsba
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"] = nil;
require("scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs");
-----------------------------------
... | gpl-3.0 |
Percona-QA/toku-qa | tokudb/software/sysbench/backup-test/lua/tokudb_oltp_valid.lua | 4 | 2125 | pathtest = string.match(test, "(.*/)") or ""
dofile(pathtest .. "common.lua")
function thread_init(thread_id)
set_vars()
if (db_driver == "mysql" and mysql_table_engine == "myisam") then
begin_query = "LOCK TABLES sbtest WRITE"
commit_query = "UNLOCK TABLES"
else
begin_query = "BEGIN"
... | gpl-2.0 |
Percona-QA/toku-qa | tokudb/software/sysbench/sysbench-0.5/sysbench/tests/db/tokudb_oltp_valid.lua | 4 | 2125 | pathtest = string.match(test, "(.*/)") or ""
dofile(pathtest .. "common.lua")
function thread_init(thread_id)
set_vars()
if (db_driver == "mysql" and mysql_table_engine == "myisam") then
begin_query = "LOCK TABLES sbtest WRITE"
commit_query = "UNLOCK TABLES"
else
begin_query = "BEGIN"
... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lufaise_Meadows/npcs/Teldo-Moroldo_WW.lua | 14 | 3342 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Teldo-Moroldo, W.W.
-- Outpost Conquest Guards
-- @pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
wingo/snabb | src/apps/lwaftr/test_phm_lookup.lua | 2 | 1318 | local ffi = require('ffi')
local bit = require('bit')
local phm = require("apps.lwaftr.podhashmap")
local stream = require("apps.lwaftr.stream")
local function test(rhh, count, active)
print('lookup1 speed test (hits, uniform distribution)')
print(count..' lookups, '..(active or count)..' active keys')
local ... | apache-2.0 |
mohammadrezatitan/maikel | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
blackops97/KING_TELE | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
zyhkz/waifu2x | lib/reconstruct.lua | 2 | 10061 | require 'image'
local iproc = require 'iproc'
local srcnn = require 'srcnn'
local function reconstruct_nn(model, x, inner_scale, offset, block_size, batch_size)
batch_size = batch_size or 1
if x:dim() == 2 then
x = x:reshape(1, x:size(1), x:size(2))
end
local ch = x:size(1)
local new_x = torch.Ten... | mit |
scummvm/scummvm | devtools/create_ultima/files/ultima6/scripts/se/lang/en/game.lua | 19 | 3136 | return {
PASS="Pass!\n",
YOU_SEE="you see %s",
NOTHING="nothing!\n",
SEARCHING_HERE_YOU_FIND="Searching here, you find %s",
SEARCHING_HERE_YOU_FIND_NOTHING="Searching here, you find nothing.\n",
SEARCH_NEXT_OBJ=", %s",
SEARCH_LAST_OBJ=" and %s",
OUT_OF_RANGE="Out of Range!\n",
BLAH="Blah",
CARRY_TOO_MUCH="You are carry... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/cannonball.lua | 33 | 1721 | -----------------------------------------
-- Spell: Cannonball
-- Damage varies with TP
-- Spell cost: 66 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+1, DEX+1
-- Level: 70
-- Casting Time: 0.5 seconds
-- Recast Time: 28.5 seconds
-- Skillchain Element(s): Fusion... | gpl-3.0 |
nsimplex/wicker | utils/table/tree/dfs.lua | 6 | 3406 | --[[
Copyright (C) 2013 simplex
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; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... | gpl-2.0 |
cheney247689848/Cloud-edge | Assets/ToLua/Lua/UnityEngine/Touch.lua | 6 | 1991 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.