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 |
|---|---|---|---|---|---|
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_fin_sushi.lua | 12 | 1586 | -----------------------------------------
-- ID: 5665
-- Item: plate_of_fin_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 5
-- Accuracy % 16 (cap 76)
-- Ranged Accuracy % 16 (cap 76)
-- Resist Sleep +1
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_s_Tiger.lua | 23 | 1147 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel's Tiger
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
... | gpl-3.0 |
Chouser/mal | lua/step2_eval.lua | 3 | 2022 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local List, Vector, HashMap = types.List, types.Vector, types.HashMap
-- read
function READ(str)
... | mpl-2.0 |
darithorn/finn-engine | lib/class.lua | 1 | 4065 | -------------------------------------------------------------------------------
-- Lua with Classes
-- lclass
-- Author: Andrew McWatters
-------------------------------------------------------------------------------
local setmetatable = setmetatable
local type = type
local error = error
local pcall = pcall
local unpa... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/West_Ronfaure/mobs/Forest_Hare.lua | 2 | 1058 | -----------------------------------
-- Area: West Ronfaure
-- MOB: Forest Hare
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/West_Ronfaure/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, p... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Hakeem.lua | 53 | 1824 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hakeem
-- Type: Cooking Image Support
-- @pos -123.120 -2.999 65.472 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/openbsd/errors.lua | 24 | 3536 | -- OpenBSD error messages
local require = require
local abi = require "syscall.abi"
local errors = {
PERM = "Operation not permitted",
NOENT = "No such file or directory",
SRCH = "No such process",
INTR = "Interrupted system call",
IO = "Input/output error",
NXIO = "Device not configured",
["2BIG"] = "... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Xarcabard/TextIDs.lua | 7 | 2195 | -- 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 |
colesbury/nn | SparseLinear.lua | 12 | 7194 | local THNN = require 'nn.THNN'
local SparseLinear, parent = torch.class('nn.SparseLinear', 'nn.Module')
local NO_LAST_INPUT = 0
local ONE_LAST_INPUT = 1
local ACC_MULTIPLE_TIMES = 2
function SparseLinear:__init(inputSize, outputSize, doGradInput)
parent.__init(self)
self.weightDecay = 0
self.doGradInput = d... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Achantere_TK.lua | 13 | 5601 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Achatere, T.K.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Missions... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/serving_of_mushroom_sautee.lua | 12 | 1299 | -----------------------------------------
-- ID: 5676
-- Item: serving_of_mushroom_sautee
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- MP 60
-- Mind 6
-- MP Recovered While Healing 6
-----------------------------------------
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/RuLude_Gardens/npcs/HomePoint#1.lua | 27 | 1266 | -----------------------------------
-- Area: RuLude Gardens
-- NPC: HomePoint#1
-- @pos -6 3 0.001 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
Kasperki/LogisticsUtility | LogisticsSigns/prototypes/recipes.lua | 1 | 1245 | sign_recipes = {}
sign_recipe = {
type = "recipe",
name = "util-sign",
enabled = false,
ingredients =
{
{"raw-wood", 2},
{"wood", 2},
{"coal", 1},
},
result = "util-sign"
}
table.insert(sign_recipes, sign_recipe);
sign_large_recipe = {
type = "recipe",
name = "u... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Altepa/npcs/qm6.lua | 14 | 1342 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm6 (???)
-- Spawns Sharabha
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Phomiuna_Aqueducts/npcs/qm3.lua | 14 | 1032 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm3 (???)
-- Notes: Opens north door @ J-9
-- @pos 116.743 -24.636 27.518 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end; ... | gpl-3.0 |
sajadaltaie/arabicbot | bot/bot.lua | 1 | 6971 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 17 | 3072 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
ashkanpj/fire-creed | bot/creed.lua | 1 | 9175 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
pakozm/april-ann | profile_build_scripts/build_release_pi.lua | 3 | 2922 | dofile("luapkg/formiga.lua")
local postprocess = dofile("luapkg/postprocess.lua")
formiga.build_dir = "build_release_pi"
local packages = dofile "profile_build_scripts/package_list.pi.lua"
-- table.insert(packages, "rlcompleter") -- AUTOCOMPLETION => needs READLINE
local metadata = dofile "profile_build_scripts/METADA... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua | 27 | 2328 | -----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- @pos 334 19 -60 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/La_Thei... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Palborough_Mines/npcs/_3za.lua | 14 | 1525 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lid
-- Involved In Mission: Journey Abroad
-- @zone 143
-- @pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Garden_of_RuHmet/mobs/Ix_aern_drg.lua | 10 | 1943 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- MOB: Ix'aern (drg)
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
if (math.random(0,99) < 78) then
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Walls/npcs/Luuh_Koplehn.lua | 14 | 1155 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Luuh Koplehn
-- Standard Info NPC
-- Involved in Quest: Star Struck
-- @zone = 239
-- @pos = -93 -5 130
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
-----------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_ikra_gunkan.lua | 12 | 1735 | -----------------------------------------
-- ID: 5219
-- Item: plate_of_ikra_gunkan
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Magic 10
-- Dexterity 3
-- Mind -2
-- Accuracy % 18
-- Accuracy Cap 28
-- Ranged ACC % 18
-- Ranged ACC Cap 28
----------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/fieldsofvalor.lua | 1 | 19214 | -------------------------------------------------
require("scripts/globals/utils")
require("scripts/globals/common");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/conquest");
require("scripts/globals/regimereward");
require("scripts/globals/regimeinfo");
------------... | gpl-3.0 |
pakozm/april-ann | packages/imaging/median_filter/package.lua | 3 | 1198 | package{ name = "median_filter",
version = "1.0",
depends = { "Image" },
keywords = { "image", "median filter" },
description = "Filter of images represented as matrix using datasets",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdir{ dir = "include" },
},... | gpl-3.0 |
nikil/packages | utils/yunbridge/files/usr/lib/lua/luci/controller/arduino/index.lua | 103 | 12089 | --[[
This file is part of YunWebUI.
YunWebUI 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 i... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Giddeus/npcs/qm1.lua | 14 | 1757 | -----------------------------------
-- Area: Giddeus
-- NPC: ???
-- Involved In Quest: Dark Legacy
-- @zone 145
-- @pos -58 0 -449
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
user-none/lua-hashings | hashings/hmac.lua | 1 | 2746 | -- Copyright (c) 2016 John Schember <john@nachtimwald.com>
--
-- 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, ... | mit |
diamondo25/Vana | scripts/instances/thief3rd.lua | 2 | 1243 | --[[
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 |
MRAHS/SBSS_Plus | plugins/invite.lua | 28 | 1200 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Henkoglobin/lazylualinq | test/intermediate/selectMany.lua | 1 | 6493 | describe("intermediate operator '#selectMany'", function()
local linq = require("lazylualinq")
it("flattens a sequence of sequences", function()
local iterator = linq {
linq { 1, 2, 3, 4 },
linq { 5, 6, 7, 8 }
}
:selectMany(function(inner) return inner end)
:getIterator()
assert.is_same({iter... | unlicense |
bmscoordinators/FFXI-Server | scripts/zones/FeiYin/npcs/HomePoint#1.lua | 27 | 1244 | -----------------------------------
-- Area: FeiYin
-- NPC: HomePoint#1
-- @pos 243 -24.5 62 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/homepoint");
-------------... | gpl-3.0 |
mailru/tarantool-auth | authman/model/password_token.lua | 1 | 1378 | local password_token = {}
local digest = require('digest')
local validator = require('authman.validator')
-----
-- token (user_id, code)
-----
function password_token.model(config)
local model = {}
model.SPACE_NAME = config.spaces.password_token.name
model.PRIMARY_INDEX = 'primary'
model.USER_ID = ... | mit |
bmscoordinators/FFXI-Server | scripts/globals/spells/dokumori_san.lua | 26 | 1207 | -----------------------------------------
-- Spell: Dokumori: San
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Tavnazian_Safehold/npcs/Nilerouche.lua | 17 | 1318 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Nilerouche
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
----------------------... | gpl-3.0 |
leecrest/luacrypto | tests/test.lua | 6 | 1473 | --[[
-- $Id: test.lua,v 1.3 2006/08/25 03:24:17 nezroy Exp $
-- See Copyright Notice in license.html
--]]
crypto = require("crypto")
local digest = crypto.digest
local hmac = crypto.hmac
md5_KNOWN = "09920f6f666f8e7b09a8d00bd4d06873"
sha1_KNOWN = "d6ed6e26ebeb37ba0792ec75a3d0b4dcec279d25"
hmac_KNOWN = "70a7ea81a287d... | mit |
bmscoordinators/FFXI-Server | scripts/globals/items/rice_dumpling.lua | 12 | 2106 | -----------------------------------------
-- ID: 4271
-- Item: rice_dumpling
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- HP 17
-- Strength 3
-- Vitality 2
-- Agility 1
-- Attack 20% (caps @ 45)
-- Ranged Attack 30% (caps @ 45)
-- HP Regeneration While Healing 2
-- MP Regeneration W... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_oceanfin_soup.lua | 12 | 1899 | -----------------------------------------
-- ID: 6070
-- Item: Bowl of Oceanfin Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Accuracy % 15 Cap 95
-- Ranged Accuracy % 15 Cap 95
-- Attack % 19 Cap 85
-- Ranged Attack % 19 Cap 85
-- Amorph Killer 6
-----------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Batallia_Downs_[S]/mobs/Chaneque.lua | 20 | 1276 | -----------------------------------
-- Area: Batallia Downs (S)
-- NM: Chaneque
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFFECT,... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Phomiuna_Aqueducts/npcs/_ir7.lua | 14 | 1933 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir7 (Iron Gate)
-- @pos -70.800 -1.500 60.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/global... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/bluemagic/filamented_hold.lua | 26 | 1420 | -----------------------------------------
-- Spell: Filamented Hold
-- Reduces the attack speed of enemies within a fan-shaped area originating from the caster
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 52
-- Casting Time: 2 seconds... | gpl-3.0 |
Reza02100/iranmoltafet | bot/utils.lua | 309 | 23029 | 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")()
JSON = (loadfile "./libs/... | gpl-2.0 |
deepak78/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua | 79 | 3679 | --[[
Luci configuration model for statistics - collectd iptables plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Upper_Jeuno/npcs/Renik.lua | 17 | 1376 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Renik
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
--------------... | gpl-3.0 |
tehran98/Team-Spammer | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/poison.lua | 26 | 1377 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/commands/giveitem.lua | 23 | 1587 | ---------------------------------------------------------------------------------------------------
-- func: giveitem <player> <itemId> <amount> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4>
-- desc: Gives an item to the target player.
----------------------------------------------------------------------------------... | gpl-3.0 |
TannerRogalsky/GGJ2017 | lib/skiplist.lua | 3 | 5559 | --[[------------------------------------------------------------------
The MIT License
Original Python version Copyright (c) 2009 Raymond Hettinger
see http://code.activestate.com/recipes/576930/
Lua conversion + extensions Copyright (c) 2010 Pierre-Yves Gérardy
Permission is hereby granted, free of charge, to any ... | mit |
bmscoordinators/FFXI-Server | scripts/zones/RuLude_Gardens/npcs/HomePoint#3.lua | 27 | 1265 | -----------------------------------
-- Area: RuLude_Gardens
-- NPC: HomePoint#3
-- @pos -67 6 -25 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/blade_jin.lua | 26 | 1454 | -----------------------------------
-- Blade Jin
-- Katana weapon skill
-- Skill Level: 200
-- Delivers a three-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: Wind
-- M... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Bastok/npcs/qm1.lua | 17 | 1322 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: qm1 (???)
-- Notes: Spawns when Megaboss is defeated
-----------------------------------
package.loaded["scripts/zones/Dynamis-Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/D... | gpl-3.0 |
victorholt/Urho3D | Source/ThirdParty/LuaJIT/src/jit/dis_x86.lua | 41 | 32726 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
Ryan1729/zerobrane-packages | localizefunction.lua | 1 | 2628 | local G = ...
local id = G.ID("localizefunction.localizefunction")
local menuid
local function getEOLCharacter()
-- it would be nice if I could reference the
-- mode constants directly but AFAICT I can't
local EOLMode = GetEditor():GetEOLMode()
if EOLMode == 0 then
return "\r\n"
elseif EOLMode == 1 th... | unlicense |
Percona-QA/toku-qa | tokudb/software/fast-updates/sysbench-0.5/sysbench/tests/db/common.lua | 2 | 3225 | -- Input parameters
-- oltp-tables-count - number of tables to create
-- oltp-secondary - use secondary key instead PRIMARY key for id column
--
--
function create_insert(table_id)
local index_name
local i
local j
local query
if (oltp_secondary) then
index_name = "KEY xid"
else
index_name... | gpl-2.0 |
nsimplex/wicker | game/ambientlighting.lua | 6 | 2797 | local _M = _M
local getPhaseChangeAmbientSetter = memoize_0ary(function()
assert(IsDST())
local wrld = assert(TheWorld)
local getinfo = debug.getinfo
--local string_find = string.find
local getfenv = getfenv
local _G = _G
local AmbientLighting = require "components/ambientlighting"
local wanted_source = get... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Eldieme_Necropolis/npcs/_5ff.lua | 2 | 1251 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 88 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
req... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Apollyon/bcnms/sw_apollyon.lua | 34 | 1162 | -----------------------------------
-- Area: Appolyon
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[SW_Apollyon]UniqueID",Gener... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters_[S]/npcs/Ampiro-Mapiro.lua | 14 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ampiro-Mapiro
-- Type: Standard NPC
-- @zone 94
-- @pos 131.380 -6.75 174.169
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua | 17 | 1158 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/harvesting"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
... | gpl-3.0 |
aclindsa/moneygo | internal/handlers/reports/quarterly_net_worth.lua | 1 | 2004 | function account_series_map(accounts, tabulation)
map = {}
for i=1,100 do -- we're not messing with accounts more than 100 levels deep
all_handled = true
for id, acct in pairs(accounts) do
if not map[id] then
all_handled = false
if not acct.parent the... | mit |
bmscoordinators/FFXI-Server | scripts/globals/effects/agi_boost.lua | 34 | 1026 | -----------------------------------
--
-- EFFECT_AGI_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_AGI,effect:getPower());
end;
... | gpl-3.0 |
scummvm/scummvm | dists/engine-data/patches/monkey4/residualvm-prefs.lua | 7 | 2090 | -- ScummVM - Graphic Adventure Engine
--
-- ScummVM is the legal property of its developers, whose names
-- are too numerous to list here. Please refer to the COPYRIGHT
-- file distributed with this source distribution.
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/curing_waltz_iv.lua | 6 | 2551 | -----------------------------------
-- Ability: Curing Waltz IV
-- Heals HP to target player.
-- Obtained: Dancer Level 70
-- TP Required: 65%
-- Recast Time: 00:17
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbil... | gpl-3.0 |
bigboyq/proxmark3 | client/scripts/mfkeys.lua | 20 | 6220 | --[[
This is an example of Lua-scripting within proxmark3. This is a lua-side
implementation of hf mf chk
This code is licensed to you under the terms of the GNU GPL, version 2 or,
at your option, any later version. See the LICENSE.txt file for the text of
the license.
Copyright (C) 2013 m h swende <martin a... | gpl-2.0 |
victorholt/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/operator.lua | 42 | 6043 | -- tolua: operator class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancement... | mit |
bmscoordinators/FFXI-Server | scripts/globals/chocobo.lua | 23 | 4925 | -------------------------------------------------
-- Chocobo functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Chocobo_Renter
-- http://ffxi.allakhazam.com/wiki/Traveling_in_Vana'diel
-------------------------------------------------
require("scripts/globals/settings");
--[[--------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Windurst/npcs/HomePoint#2.lua | 27 | 1268 | -----------------------------------
-- Area: Port Windurst
-- NPC: HomePoint#2
-- @pos -207 -8.159 210 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/TextIDs");
require("scripts/globals/hom... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Kagetora.lua | 14 | 1797 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kagetora
-- Involved in Quest: Ayame and Kaede, 20 in Pirate Years
-- @zone 236
-- @pos -96 -2 29
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/starburst.lua | 23 | 1325 | -----------------------------------
-- Starburst
-- Staff weapon skill
-- Skill Level: 100
-- Deals light or darkness elemental damage. Damage varies with TP.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Belt & Aqua Belt.
-- Element: Light/Dark (Random)
-- Modifiers: : STR:40% MND:40%
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Treasure_Coffer.lua | 14 | 73003 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Treasure Coffer
-- Type: Add-on NPC
-- @pos 41.169 3.899 -51.005 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
victorholt/Urho3D | Source/ThirdParty/LuaJIT/dynasm/dynasm.lua | 33 | 30989 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | mit |
wingo/snabb | lib/ljsyscall/test/ctest-osx.lua | 23 | 4546 | -- generate C test file to check type sizes etc
-- OSX version, similar to BSD
local S = require "syscall"
local abi = S.abi
local types = S.types
local t, ctypes, s = types.t, types.ctypes, types.s
local c = S.c
local ffi = require "ffi"
local reflect = require "include.ffi-reflect.reflect"
-- internal
c.errornam... | apache-2.0 |
jsenellart/OpenNMT | onmt/utils/Tensor.lua | 8 | 4118 | --[[ Recursively call `func()` on all tensors within `out`. ]]
local function recursiveApply(out, func, ...)
local res
if torch.type(out) == 'table' then
res = {}
for k, v in pairs(out) do
res[k] = recursiveApply(v, func, ...)
end
return res
end
if torch.isTensor(out) then
res = func(o... | mit |
diamondo25/Vana | scripts/utils/boatHelper.lua | 2 | 1345 | --[[
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/Foret_de_Hennetiel/Zone.lua | 17 | 1231 | -----------------------------------
--
-- Zone: Foret de Hennetiel
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Foret_de_Hennetiel/TextIDs"] = nil;
require("scripts/zones/Foret_de_Hennetiel/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
diamondo25/Vana | scripts/npcs/NLC_HairVip.lua | 2 | 3528 | --[[
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/Abyssea-Tahrongi/npcs/qm14.lua | 14 | 1904 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns Glavoid
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
function... | gpl-3.0 |
openwrt-es/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua | 25 | 3315 | local ubus = require "ubus"
local bit = require "bit"
local function get_wifi_interfaces() -- based on hostapd_stations.lua
local u = ubus.connect()
local status = u:call("network.wireless", "status", {})
local interfaces = {}
for _, dev_table in pairs(status) do
for _, intf in ipairs(dev_table['interface... | gpl-2.0 |
deepak78/luci | modules/niu/luasrc/model/cbi/niu/network/assign1.lua | 48 | 2518 | --[[
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$
]]--
loc... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Monarch_Linn/Zone.lua | 17 | 1569 | -----------------------------------
--
-- Zone: Monarch_Linn
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Monarch_Linn/TextIDs"] = nil;
require("scripts/zones/Monarch_Linn/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 13 | 5074 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Treasure Coffer
-- @zone 205
-- @pos 188 0 -28
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyi... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/burning_cesti.lua | 41 | 1071 | -----------------------------------------
-- ID: 16398
-- Item: Burning Cesti
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
jxlczjp77/pskynet | service/service_mgr.lua | 12 | 3682 | local skynet = require "skynet"
local snax = require "snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle
else
service[name] = tostring(handle)
end
for _,v i... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/LaLoff_Amphitheater/npcs/qm0_5.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 |
deepak78/luci | modules/rpc/luasrc/jsonrpc.lua | 81 | 2192 | --[[
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 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Woods/npcs/Spare_Three.lua | 17 | 1507 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Three
-- 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/... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Celestial_Nexus/bcnms/celestial_nexus.lua | 30 | 2099 | -----------------------------------
-- Area: The Celestial Nexus
-- Name: The Celestial Nexus (ZM16)
-----------------------------------
package.loaded["scripts/zones/The_Celestial_Nexus/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/missions");
requi... | gpl-3.0 |
pakozm/april-ann | packages/imaging/Image/lua_src/ImageSVG.lua | 2 | 7747 | local imageSVG,imageSVG_methods = class("imageSVG")
_G.imageSVG = imageSVG -- global environment
local colors = { "red", "blue", "green", "orange", "purple","yellow"}
function toImage64(filename)
local f = io.open(filename)
base64 = require("ee5_base64")
local s64 = base64.encode(f:read("*all"))
f:close()
retu... | gpl-3.0 |
ianmaclarty/vertex-meadow | sprites.lua | 1 | 8250 | local font_data = {
minfilter = "linear",
magfilter = "linear",
is_premult = true,
{
filename = "brushes/arrow.png",
x1 = 0, y1 = 0, x2 = 64, y2 = 64,
s1 = 0.88232421875, t1 = 0.9365234375, s2 = 0.91357421875, t2 = 0.9990234375,
width = 64, height = 64,
},
{
... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua | 29 | 1474 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Cavernous Maw
-- @pos 597 -32 279 119
-- Teleports Players to Meriphataud Mountains [S]
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
summera/yadr-alt | hammerspoon/init.lua | 1 | 4031 | -- Extensions
local application = require "hs.application"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local keycodes = require "hs.keycodes"
local fnutils = require "hs.fnutils"
local alert = require "hs.alert"
local screen = require "hs.screen"
local hints =... | bsd-2-clause |
bmscoordinators/FFXI-Server | scripts/zones/Maze_of_Shakhrami/TextIDs.lua | 7 | 1507 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6385; -- Obtained: <item>.
GIL_OBTAINED = 6386; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6388; -- Obtained... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Palborough_Mines/npcs/HomePoint#1.lua | 27 | 1276 | -----------------------------------
-- Area: Palborough_Mines
-- NPC: HomePoint#1
-- @pos 109 -38.5 -147 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
require("scripts/glo... | gpl-3.0 |
pastukhov/fishy-wifi | joinme/j.lua | 2 | 1904 | -- j.lua: wifi config utility
j={}
local skip = "skipj.txt" -- marker file
local wifiform = [=[<html><body>
<h2>Choose a wifi access point to join</h2><p><form method="POST" action="chz">
_ITEMS_<br/>Pass key: <input type="textarea" name="key"><br/><br/>
<input type="submit" value="Submit"></form></p></body></ht... | agpl-3.0 |
PraveerSINGH/nn | SpatialReflectionPadding.lua | 20 | 2001 | local SpatialReflectionPadding, parent =
torch.class('nn.SpatialReflectionPadding', 'nn.Module')
function SpatialReflectionPadding:__init(pad_l, pad_r, pad_t, pad_b)
parent.__init(self)
self.pad_l = pad_l
self.pad_r = pad_r or self.pad_l
self.pad_t = pad_t or self.pad_l
self.pad_b = pad_b or self.pad... | bsd-3-clause |
tehran98/Team-Spammer | hello.lua | 1 | 247563 | function run(msg, matches)
return '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/torcleaver.lua | 26 | 1602 | -----------------------------------
-- Torcleaver
-- Skill Level: N/A
-- Description: Deals triple damage. Damage varies with TP. Caladbolg: Aftermath.
-- Available only when equipped with Caladbolg (85)/(90)/(95) or Espafut +1/+2/+3.
-- Aligned with the Light Gorget, Aqua Gorget & Snow Gorget.
-- Aligned with the Ligh... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Boyahda_Tree/mobs/Voluptuous_Vivian.lua | 2 | 1125 | -----------------------------------
-- Area: The Boyahda Tree
-- NM: Voluptuous Vivian (NM)
-----------------------------------
require("scripts/zones/The_Boyahda_Tree/MobIDs");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize
-----------------------------------
function on... | gpl-3.0 |
deepak78/luci | libs/nixio/docsrc/README.lua | 95 | 4751 | --- General Information.
module "README"
--- General error handling information.
-- <ul>
-- <li> Most of the functions available in this library may fail. If any error
-- occurs the function returns <strong>nil or false</strong>, an error code
-- (usually errno) and an additional error message text (if avaialable).</l... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.