repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
lakers/RobloxWiki | extensions/Scribunto/engines/LuaCommon/lualib/mw.title.lua | 1 | 7482 | local title = {}
local php
local NS_MEDIA = -2
local util = require 'libraryUtil'
local checkType = util.checkType
local checkTypeForIndex = util.checkTypeForIndex
local function checkNamespace( name, argIdx, arg )
if type( arg ) == 'string' and tostring( tonumber( arg ) ) == arg then
arg = tonumber( arg )
end
i... | gpl-2.0 |
moteus/ZipWriter | lua/ZipWriter/bit.lua | 5 | 2021 | local string = require "string"
local table = require "table"
local math = require "math"
local function prequire(...)
local ok, mod = pcall(require, ...)
if not ok then return nil, mod end
return mod
end
local lua_version do
local lua_version_t
lua_version = function()
if not lua_version_t then
loca... | mit |
Tapo4ek/django-cacheops | cacheops/lua/invalidate.lua | 8 | 1275 | local db_table = ARGV[1]
local obj = cjson.decode(ARGV[2])
-- Utility functions
local conj_cache_key = function (db_table, scheme, obj)
local parts = {}
for field in string.gmatch(scheme, "[^,]+") do
table.insert(parts, field .. '=' .. tostring(obj[field]))
end
return 'conj:' .. db_table .. '... | bsd-3-clause |
Distroformo/SSO-English-patch | script/i18n/pet.lua | 1 | 18152 | --[[ @i18n pet ]]
local _t = require("i18n").context("pet")
local Format = string.format
module("STRING_TABLE")
PET_CATEGORY_0 = _t"Close Range"
PET_CATEGORY_1 = _t"Long Range"
PET_SUMMON = _t"Summon"
PET_UNSUMMON = _t"Unsummon"
PET_PACK_SIZE = _t"Pet Bar:%d/%d"
PET_CLASS_GRADE = _t"%dRank"
PET_NO... | gpl-3.0 |
subzrk/BadRotations | System/Functions/Power.lua | 1 | 5350 | function getChi(Unit)
return UnitPower(Unit,12)
end
function getChiMax(Unit)
return UnitPowerMax(Unit,12)
end
-- if getCombo() >= 1 then
function getCombo()
return UnitPower("player",4) --GetComboPoints("player") - Legion Change
end
function getEmber(Unit)
return UnitPower(Unit,14)
end
function getEmberMax(Unit)
r... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/item_metal_polish.lua | 1 | 1117 |
local ITEM = {};
ITEM.ID = 23;
ITEM.Reference = "item_metal_polish";
ITEM.Name = "Metal Polish";
ITEM.Description = "Polishes metal to a nice shine.";
ITEM.Weight = 5;
ITEM.Cost = 300;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_junk/garbage_plasticbottle003a.mdl"... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Sacrarium/npcs/_0s8.lua | 17 | 1694 | -----------------------------------
-- NPC: _0s8 (Wooden Gate)
-- Area: Sacrarium
-- Involved in Mission: Secrets of Worship
-- @pos 45.500 -1.500 10.000 28
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/red_curry_bun.lua | 21 | 1844 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 24.7
-- Attack Cap 150
-- Ranged ATT % 24.7
-- Ranged ATT Cap 150
-- Demon Killer ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/resolution.lua | 6 | 1513 | -----------------------------------
-- Resolution
-- Great Sword weapon skill
-- Skill Level: 357
-- Delivers a fivefold attack. Damage varies with TP.
-- In order to obtain Resolution, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hits... | gpl-3.0 |
fartoverflow/naev | dat/events/tutorial/tutorial-aoutfits.lua | 11 | 4971 | -- This is the tutorial: activated outfits.
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Activated Outfits"
message1 = [[Welcome to the activated outfits tutorial.
This... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Altar_Room/npcs/Hooknox.lua | 38 | 1033 | -----------------------------------
-- Area: Altar Room
-- NPC: Hooknox
-- Type: Standard NPC
-- @zone: 152
-- @pos -265.248 11.693 -102.547
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
----------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Konschtat_Highlands/npcs/Stone_Monument.lua | 32 | 1302 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -102.355 7.981 253.706 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
dmcooke/tradecd | base.lua | 1 | 7725 | -- My base functions library of non-WoW specific functions.
-- This is designed to be used inside of or outside of WoW
-- The module is exported as the table DMC_base.
-- Under WoW, use LibStub:GetLibrary('DMC-Base-1.0')
-- Outside of WoW, load this module with 'require'.
local M = {}
local is_wow = not (package and ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Benaige.lua | 36 | 1982 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Benaige
-- Standard Merchant NPC
-- @zone 230
-- @pos-142,-6 47
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/shattersoul.lua | 6 | 1930 | -----------------------------------
-- Skill Level: 357
-- Description: Delivers a threefold attack. Decreases target's magic defense. Duration of effect varies with TP.
-- To obtain Shattersoul, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu.
-- Target's magic defe... | gpl-3.0 |
facebook/fbnn | fbnn/test.lua | 1 | 13263 | local ok = pcall(function() require 'fb.luaunit' end)
if not ok then
print('For running tests, please manually install fb.luaunit from fblualib.')
print('fblualib does not have rockspecs yet')
return
end
require 'nn'
local precision = 1e-5
local pl = require'pl.import_into'()
local mytester = torch.Tester()... | bsd-3-clause |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/valor_minuet_v.lua | 6 | 1535 | -----------------------------------------
-- Spell: Valor Minuet V
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 68 | 2351 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
--
-- SIP trunk info
--
if arg[2] == "info" then
form = SimpleForm("asterisk", "SIP Trunk Information")
form.reset = false
form.submit = "Back to overview"
local info,... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Labyrinth_of_Onzozo/npcs/Grounds_Tome.lua | 34 | 1146 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onT... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/blast_shot.lua | 6 | 1248 | -----------------------------------
-- Blast Shot
-- Marksmanship weapon skill
-- Skill Level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:30... | gpl-3.0 |
lakers/RobloxWiki | extensions/Scribunto/tests/engines/LuaCommon/SiteLibraryTests.lua | 7 | 2045 | local testframework = require 'Module:TestFramework'
local function identity( ... )
return ...
end
return testframework.getTestProvider( {
{ name = 'parameter: siteName',
func = type, args = { mw.site.siteName },
expect = { 'string' }
},
{ name = 'parameter: server',
func = type, args = { mw.site.server ... | gpl-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/freebsd/types.lua | 24 | 10466 | -- FreeBSD types
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
local abi = requ... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/HomePoint#1.lua | 3 | 1722 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#1
-- @pos -67.963 -4.000 -105.023 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones... | gpl-3.0 |
sjznxd/luci-0.11-aa | modules/admin-mini/luasrc/controller/mini/system.lua | 5 | 6712 | --[[
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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Rabao/npcs/Waylea.lua | 38 | 1048 | -----------------------------------
-- Area: Rabao
-- NPC: Waylea
-- Type: Reputation
-- @zone: 247
-- @pos 12.384 4.658 -32.392
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
maximilianofaccone/puppy-siberian | root/.Conky/bionic/scripts/rings.lua | 1 | 16803 |
--[[ RINGS with SECTORS widget
v1.0 by wlourf (08.08.2010)
this widget draws a ring with differents effects
http://u-scripts.blogspot.com/2010/08/rings-sectors-widgets.html
To call the script in a conky, use, before TEXT
lua_load /path/to/the/script/rings.lua
lua_draw_hook_pre main_rings
and add one line (blan... | gpl-3.0 |
unknownssassss/sudo_meti | files/mimetype.lua | 8 | 2924 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Zazarg.lua | 38 | 1028 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zazarg
-- Type: Stoneserpent General
-- @zone: 48
-- @pos -41.675 -8 104.452
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
Lukc/OOP-Calculator | main.lua | 1 | 7460 |
local sdl = require "SDL"
local parser = require "parser.parser"
local ui = require "ui.init"
local _M = {}
local scaleX, scaleY = 25, 25
local drawData = {}
local fnames = {
"f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t"
}
local colors = {
0x660000, 0x006600, 0x000066, 0x666600, 0x66... | bsd-3-clause |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/sonic_thrust.lua | 6 | 1160 | -----------------------------------
-- Sonic Thrust
-- Polearm weapon skill
-- Skill Level: 300
-- Delivers an area attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Element: None
-- Modifiers: STR:30% ; DEX:30%
-- 100%TP 200%TP 300%TP
-- 3.00 3.25 3.50
--------------... | gpl-3.0 |
moteus/ZipWriter | test/utils.lua | 3 | 2779 | local lunit = require "lunit"
local skip = function (msg) return function() lunit.fail("#SKIP: " .. msg) end end
local IS_LUA52 = _VERSION >= 'Lua 5.2'
local IS_WINDOWS = package.config:sub(1,1) == '\\'
local TEST_CASE = function (name)
if not IS_LUA52 then
module(name, package.seeall, lunit.testcase)
... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/purple_polypore.lua | 36 | 1156 | -----------------------------------------
-- ID: 5682
-- Item: Purple Polypore
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Strength -6
-- Mind +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
caidongyun/nginx-openresty-windows | lua-cjson-1.0.3/tests/common.lua | 3 | 5978 | require "cjson"
-- Misc routines to assist with CJSON testing
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index in the array
function is... | bsd-2-clause |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua | 6 | 2219 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Upih Khachla
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/harvest_festivals")
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loade... | gpl-3.0 |
PioneerMakeTeam/Cretaceous | wicker/gadgets/functionqueue.lua | 6 | 2483 | --[[
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 ... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/cl_modules/send_binds.lua | 1 | 2700 |
function GM.PlayerBindPressPERP2 ( Player, Bind, Press )
if (string.find(string.lower(Bind), "voicerecord") && !Player:Alive()) then return true; end
if (string.find(string.lower(Bind), "zoom")) then return true; end
if (PERP_SpectatingEntity && Press) then
if (string.find(string.lower(Bind), "+jump")) then
... | mit |
joshimoo/Algorithm-Implementations | Bogosort/Lua/Yonaba/bogosort.lua | 27 | 1070 | -- A custom array shuffle implementation
-- This is not part of the Bogosort algorithm
local function shuffle(list)
local n = #list
for i = 1, n do
local j, k = math.random(1,n), math.random(1,n)
list[j], list[k] = list[k], list[j]
end
return list
end
-- Checks if an array is sorted
local function is_sorted... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/dish_of_spaghetti_peperoncino_+1.lua | 35 | 1403 | -----------------------------------------
-- ID: 5197
-- Item: dish_of_spaghetti_peperoncino_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 30
-- Health Cap 75
-- Vitality 2
-- Store TP 6
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/RuLude_Gardens/npcs/Marshal.lua | 38 | 1032 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Marshal
-- Type: Marshal
-- @zone: 243
-- @pos 41.143 -0.998 -26.566
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Carpenters_Landing/npcs/Guilloud.lua | 11 | 1376 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: Guilloud
-- Type: Standard NPC
-- @pos -123.770 -6.654 -469.062 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/darkage/stairs.lua | 4 | 10375 | if stairsplus then
stairsplus:register_all("darkage", "basalt", "darkage:basalt", {
description = "Basalt",
tiles = {"darkage_basalt.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true,
})
stairsplus:register_all("darkage", "marble", "darkage:marble", {
... | unlicense |
msburgess3200/PERP | gamemodes/perp/entities/weapons/roleplay_keys/shared.lua | 1 | 2375 | if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.PrintName = "Keys"
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
SWEP.Author = "RedMist"
SWEP.Instructions = "Left Click: Lock Door, Right Click: Unlock Door"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.ViewMod... | mit |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 86 | 1449 | --[[
Luci statistics - df plugin diagram definition
(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 License at
http://www.apache.... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Walls/npcs/Shantotto.lua | 4 | 7221 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shantotto
-- @pos 122 -2 112 239
-- CSID's missing in autoEventID please check the old forums under resources for all of shantotto's csid's. I found them all manually.
-----------------------------------
package.loaded["scripts/zones/Windurst_W... | gpl-3.0 |
MOSAVI17/Gbot | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Giddeus/npcs/Ghoo_Pakya.lua | 19 | 1983 | -----------------------------------
-- Area: Giddeus
-- NPC: Ghoo Pakya
-- Involved in Mission 1-3
-- @pos -139 0 147 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Gustav_Tunnel/npcs/Grounds_Tome.lua | 34 | 1136 | -----------------------------------
-- Area: Gustav Tunnel
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(p... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Dominion_Slash.lua | 10 | 1573 | ---------------------------------------------
-- Domionion Slash
--
-- Description: Performs an area of effect slashing weaponskill. Additional effect: Silence
-- Type: Physical
-- 2-3 Shadows
-- Range: Unknown radial
-- One source also mentions that it "can dispel important buffs."
------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Gusgen_Mines/npcs/_5ga.lua | 34 | 1361 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5ga (Lever C)
-- @pos 44 -40.561 -54.199 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
----------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Leuveret.lua | 17 | 1533 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Leuveret
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Souther... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | other_things/irc-old-save/irc/handlers.lua | 3 | 5129 | local irc = require("irc.main")
irc.handlers = {}
local handlers = irc.handlers
handlers["PING"] = function(conn, msg)
conn:send(irc.Message({command="PONG", args=msg.args}))
end
handlers["001"] = function(conn, msg)
conn.authed = true
conn.nick = msg.args[1]
end
handlers["PRIVMSG"] = function(conn, msg)
conn:i... | unlicense |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/linux/ppc64le/nr.lua | 18 | 10847 | -- ppc64le syscall numbers
local nr = {
zeropad = true,
SYS = {
restart_syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
waitpid = 7,
c... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Yughott_Grotto/Zone.lua | 2 | 1607 | -----------------------------------
--
-- Zone: Yughott_Grotto (142)
--
-----------------------------------
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Yughott_Grotto/TextIDs");
-----------------------------------
-- onInitialize... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Enhanced_Mandragora.lua | 5 | 1052 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Mandragora
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Rime_Spray.lua | 6 | 1444 | ---------------------------------------------
-- Rime Spray
--
-- Description: Deals Ice damage to enemies within a fan-shaped area, inflicting them with Frost and All statuses down.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes:
--------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/goldsmiths_belt.lua | 5 | 1216 | -----------------------------------------
-- ID: 15446
-- Item: Goldsmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Goldsmithing Skill +1
-----------------------------------------
r... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Bastok/npcs/Flying_Axe_IM.lua | 6 | 4802 | -----------------------------------
-- Area: Port Bastok
-- NPC: Flying Axe, I.M.
-- 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 Missio... | gpl-3.0 |
groupforspeed/TeleSniper | plugins/all.lua | 1 | 4789 | 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 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Windurst/npcs/Sattsuh_Ahkanpari.lua | 36 | 1598 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sattsuh Ahkanpari
-- Regional Marchant NPC
-- Only sells when Windurst controlls Elshimo Uplands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
p... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Metalworks/npcs/Udine_AMAN.lua | 32 | 1364 | -----------------------------------
-- Area: Metalworks
-- NPC: Udine A.M.A.N
-- Type: Mentor Recruiter
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
----------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cr.lua | 17 | 2435 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cr (Magical Gizmo) #3
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
mahdikord/mahdikord9 | plugins/admin.lua | 53 | 2402 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Sacrarium/npcs/Large_Keyhole.lua | 27 | 1422 | -----------------------------------
-- Area: Sacrarium
-- NPC: Large Keyhole
-- Notes: Used to open R. Gate
-- @pos 100.231 -1.414 51.700 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/TextIDs"); ... | gpl-3.0 |
Nax/citizenhack | dat/juiblex.lua | 1 | 3989 | -- NetHack 3.7 gehennom.des $NHDT-Date: 1432512783 2015/05/25 00:13:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.13 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1992 by M. Stephenson and Izchak Miller
-- NetHack may be freely redistributed. See license for details.
--
des.level_flags("mazeleve... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Cape_Teriggan/npcs/Dultwa_IM.lua | 13 | 3303 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Dulwa, I.M.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("script... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/spells/knights_minne_v.lua | 27 | 1498 | -----------------------------------------
-- Spell: Knight's Minne V
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cast... | gpl-3.0 |
mikroskeem/advanced-sandbox | gamemode/spawnmenu/creationmenu/content/contenttypes/weapons.lua | 3 | 1943 |
hook.Add( "PopulateWeapons", "AddWeaponContent", function( pnlContent, tree, node )
-- Loop through the weapons and add them to the menu
local Weapons = list.Get( "Weapon" )
local Categorised = {}
-- Build into categories
for k, weapon in pairs( Weapons ) do
if ( !weapon.Spawnable ) then continue end
... | mit |
firebaugh/Digitowls | Player/Motion/keyframes/km_Webots_KickForwardRight.lua | 19 | 5537 | local mot = {};
mot.servos = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22};
mot.keyframes = {
{
angles = {-0.052, 0.051, 0.911, 0.661, -0.512, -0.827, -0.232, -0.011, -0.387, 1.355, -0.779, 0.048, -0.232, -0.023, -0.357, 1.338, -0.792, 0.003, 1.226, -0.457, 1.300, 0.391, },
stiffness = {0.900, 0.... | gpl-3.0 |
jorik041/mpv | player/lua/ytdl_hook.lua | 2 | 33519 | local utils = require 'mp.utils'
local msg = require 'mp.msg'
local options = require 'mp.options'
local o = {
exclude = "",
try_ytdl_first = false,
use_manifests = false,
all_formats = false,
force_all_formats = true,
ytdl_path = "",
}
local ytdl = {
path = "",
paths_to_search = {"yt-... | gpl-3.0 |
Tech-IT-Easy/Teach-IT-Easy | Project/src/games/Progg/DrawBuildArea.lua | 1 | 16856 | --[[TEACH IT EASY, an educational games platform
Copyright (C) 2015 Linköping University
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 3 of the License, or
(at y... | gpl-3.0 |
wingo/snabbswitch | lib/luajit/src/jit/dis_arm.lua | 78 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
Igalia/snabb | lib/luajit/testsuite/test/lang/concat.lua | 6 | 2152 | do --- Constant folding
local y
for i=1,100 do y = "a".."b" end
assert(y == "ab")
for i=1,100 do y = "ab"..(1).."cd"..(1.5) end
assert(y == "ab1cd1.5")
end
do --- Fuse conversions to strings
local y
local x = "a"
for i=1,100 do y = x..i end
assert(y == "a100")
x = "a"
for i=1.5,100.5 do y = x..i ... | apache-2.0 |
xboybigcampishere/V2MIRROR | plugins/banhammer.lua | 34 | 11497 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
thing-nacho/slua | build/luajit-2.1.0/src/jit/dis_x86.lua | 61 | 29376 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
sumory/orange | orange/utils/utils.lua | 1 | 6568 | -- general utility functions.
-- some functions is from [kong](getkong.org)
local require = require
local uuid = require("orange.lib.jit-uuid")
local date = require("orange.lib.date")
local type = type
local pcall = pcall
local pairs = pairs
local tostring = tostring
local string_gsub = string.gsub
local string_find = ... | mit |
april-org/april-ann | packages/basics/util/test/test.lua | 3 | 1980 | local check = utest.check
local T = utest.test
T("GenericOptionsTest", function()
check(function() return util.options.test() end)
local tbl,str2 = util.options.test()
check.TRUE(tbl.clock1)
check.TRUE(tbl.clock2)
check.TRUE(class.is_a(tbl.clock1, util.stopwatch))
check.TRUE(class.is_a(tbl.cloc... | gpl-3.0 |
vinzenz/premake | scripts/release.lua | 1 | 4932 | --
-- Prepare a new Premake release. This is still incomplete and some manual
-- work is needed to get everything packaged up.
--
function dorelease()
local z
local svnroot = "https://premake.svn.sourceforge.net/svnroot/premake"
--
-- Helper function: runs a command (formatted, with optional arguments) and
-- sup... | gpl-2.0 |
Basylle/wow-battle-res | BResAssist/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua | 4 | 10610 | --[[ $Id: AceGUIWidget-DropDown-Items.lua 1153 2016-11-20 09:57:15Z nevcairiel $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local select, assert = select, assert
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame = CreateFrame
local function fixlevels(parent,...)
local i = 1
local child = select... | mit |
april-org/april-ann | packages/ann/optimizer/test/test-digits-qprop.lua | 3 | 5488 | mathcore.set_use_cuda_default(util.is_cuda_available())
--
local check = utest.check
local T = utest.test
--
T("QuickPropTest", function()
-- un generador de valores aleatorios... y otros parametros
bunch_size = tonumber(arg[1]) or 512
semilla = 1234
weights_random = random(semilla)
descr... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/weaponskills/judgment.lua | 9 | 1389 | -----------------------------------
-- Judgment
-- Club weapon skill
-- Were you looking for Judgment Key?
-- Skill level: 200
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Asrahd.lua | 27 | 3066 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Asrahd
-- Type: Imperial Gate Guard
-- @pos 0.011 -1 10.587 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/weaponskills/evisceration.lua | 9 | 1547 | -----------------------------------
-- Evisceration
-- Dagger weapon skill
-- Skill level: 230
-- In order to obtain Evisceration, the quest Cloak and Dagger must be completed.
-- Delivers a fivefold attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget... | gpl-3.0 |
tinymins/MY | MY_Toolbox/src/MY_ItemInfoSearch.lua | 1 | 8719 | -------------------------------------------------------------------------------------------------------
-- these global functions are accessed all the time by the event handler
-- so caching them is worth the effort
-------------------------------------------------------------------------------------------------------
... | bsd-3-clause |
Kosmos82/kosmosdarkstar | scripts/globals/weaponskills/nightmare_scythe.lua | 10 | 1603 | -----------------------------------
-- Nightmare Scythe
-- Scythe weapon skill
-- Skill Level: 100
-- Blinds enemy. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers: STR:60% ; M... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Temenos/mobs/Moblin_Dustman.lua | 7 | 1102 | -----------------------------------
-- Area: Temenos N T
-- NPC: Moblin_Dustman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
ld-test/lua-websockets | src/websocket/frame.lua | 1 | 4575 | -- Following Websocket RFC: http://tools.ietf.org/html/rfc6455
local struct = require'struct'
local bit = require'websocket.bit'
local band = bit.band
local bxor = bit.bxor
local bor = bit.bor
local tremove = table.remove
local srep = string.rep
local ssub = string.sub
local sbyte = string.byte
local schar = string.cha... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#5.lua | 27 | 1258 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#5
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
squeek502/luvit | package.lua | 1 | 1376 | return {
name = "luvit/luvit",
version = "2.11.3",
luvi = {
version = "2.7.3",
flavor = "regular",
},
license = "Apache 2",
homepage = "https://github.com/luvit/luvit",
description = "node.js style APIs for luvi as either a luvi app or library.",
tags = { "luvit", "meta" },
author = { name = "... | apache-2.0 |
Kosmos82/kosmosdarkstar | 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 |
Nax/citizenhack | test/test_cnf.lua | 1 | 2234 |
local configtests = {
{ test = "OPTIONS=color", -- config string to parse
result = { }, -- errors, result of parsing the config string
extra = function() return nh.get_config("color") == "true" end -- optional, function that returns boolean, and false means the test failed.
},
{ test = "OPTIONS=!color",
... | mit |
Kosmos82/kosmosdarkstar | scripts/zones/Nashmau/npcs/Abihaal.lua | 15 | 1045 | -----------------------------------
-- Area: Nashmau
-- NPC: Abihaal
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action
-----... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Bastok_Markets_[S]/npcs/Silke.lua | 13 | 1217 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Silke
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scripts/globals/... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/items/bowl_of_eyeball_soup.lua | 18 | 1388 | -----------------------------------------
-- ID: 4453
-- Item: Bowl of Eyeball Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Charisma -10
-- Health Regen While Healing 4
-- Accuracy 12
-- Ranged ACC 12
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
justincormack/snabbswitch | lib/ljsyscall/test/rump.lua | 18 | 2492 | -- rump specific tests
-- in particular testing the threading, as that is rather different; you can map them to host threads how you like
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local util = S.util
local bit = require "syscall.bit"
local ... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/globals/items/serving_of_crimson_jelly.lua | 18 | 1411 | -----------------------------------------
-- ID: 5144
-- Item: serving_of_crimson_jelly
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 12
-- Magic Cap 85
-- Intelligence 6
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
Igalia/snabb | lib/luajit/testsuite/bench/pidigits-nogmp.lua | 6 | 3336 |
-- Start of dynamically compiled chunk.
local chunk = [=[
-- Factory function for multi-precision number (mpn) operations.
local function fmm(fa, fb)
return loadstring([[
return function(y, a, ka, b, kb)
local carry, n = 0, #a ]]..(fb == 0 and "" or [[
local na, nb = n, #b -- Need to adjust lengths.... | apache-2.0 |
ganeshjawahar/dl4nlp-made-easy | char_rnn/rnn.lua | 1 | 5698 | --[[
-----------------------------------------------------------
Recurrent Neural Network for Character-level language model
-----------------------------------------------------------
References:
1. http://arxiv.org/pdf/1506.02078.pdf
2. http://karpathy.github.io/2015/05/21/rnn-effectiveness/
3. http://cs224d.stanfo... | mit |
Igalia/snabb | src/apps/intel_mp/testrecv.lua | 6 | 2675 | -- Helper module for testing intel_mp driver receive
module(..., package.seeall)
local intel = require("apps.intel_mp.intel_mp")
local basic = require("apps.basic.basic_apps")
local ffi = require("ffi")
local C = ffi.C
function test(pciaddr, qno, vmdq, poolno, macaddr, vlan)
local c = config.new()
if vmdq then... | apache-2.0 |
Kosmos82/kosmosdarkstar | scripts/zones/Promyvion-Dem/Zone.lua | 13 | 7696 | -----------------------------------
--
-- Zone: Promyvion-Dem (18)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/missions");
require... | gpl-3.0 |
Kosmos82/kosmosdarkstar | scripts/globals/weaponskills/sunburst.lua | 11 | 1292 | -----------------------------------
-- Sunburst
-- Staff weapon skill
-- Skill Level: 150
-- 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
-- Modifiers: : STR:40% MND:40%
-- 100%TP ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.