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 |
|---|---|---|---|---|---|
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Perih_Vashai.lua | 17 | 6983 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Parih Vashai
-- Starts and Finishes Quest: The Fanged One
-- @zone 241
-- @pos 117 -3 92
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
sjznxd/lc-20130127 | libs/lucid-http/luasrc/lucid/http/server.lua | 50 | 14678 | --[[
LuCId HTTP-Slave
(c) 2009 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$
]]--
local ipairs, pairs =... | apache-2.0 |
m2mselect/owrt | feeds/luci/modules/luci-base/luasrc/http/protocol/conditionals.lua | 68 | 3024 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-- This class provides basic ETag handling and implements most of the
-- conditional HTTP/1.1 headers specified in RFC2616 Sct. 14.24 - 14.28 .
module("luci.http.protocol.conditionals", packag... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Valkurm_Dunes/npcs/qm3.lua | 9 | 1899 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm3 (???)
-- Involved In Quest: Yomi Okuri
-- @pos -767 -4 192 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria_[S]/npcs/Loillie.lua | 16 | 1449 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Loillie
-- @zone 80
-- @pos 78 -8 -23
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/HomePoint#2.lua | 3 | 1727 | -----------------------------------
-- Area: Southern San dOria
-- NPC: HomePoint#2
-- @pos 45 2 -35 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southe... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/poseparameter.lua | 2 | 1745 | local PART = {}
PART.ClassName = "poseparameter"
PART.NonPhysical = true
PART.ThinkTime = 0
PART.Group = {'modifiers', 'entity'}
PART.Icon = 'icon16/disconnect.png'
pac.StartStorableVars()
pac.GetSet(PART, "PoseParameter", "", {enums = function(part) return part:GetPoseParameterList() end})
pac.GetSet(PART, "Range"... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/date.lua | 36 | 1140 | -----------------------------------------
-- ID: 5566
-- Item: Date
-- Food Effect: 5 Mins, All Races
-----------------------------------------
-- Intelligence 1
-- Agility -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Kazham/npcs/Dakha_Topsalwan.lua | 20 | 1147 | -----------------------------------
-- Area: Kazham
-- NPC: Dakha Topsalwan
-- @zone 250
-- @pos
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Kazham/TextIDs");
---... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Mines/npcs/Elki.lua | 36 | 2490 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Elki
-- Starts Quests: Hearts of Mythril, The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("script... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/West_Ronfaure/npcs/Esca.lua | 10 | 2807 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Esca
-- Involved in Quest "The Pickpocket"
-- @pos -624.231 -51.499 278.369 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titl... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/roll_of_sylvan_excursion.lua | 36 | 1523 | -----------------------------------------
-- ID: 5551
-- Item: Roll of Sylvan Excursion
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +3% Cap 15
-- Intelligence +3
-- HP Recovered while healing +2
-- MP Recovered while healing +5
-----------------------... | gpl-3.0 |
MAHDIYAZDI001/mahdi | bot/seedbot.lua | 1 | 10273 | 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 = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Arrapago_Reef/npcs/qm2.lua | 15 | 1169 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Velionis(ZNM T1))
-- @pos 311 -3 27 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-------------------... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/watershed/functions.lua | 7 | 8629 | --[[ MFF: Prevent trees from destroying existing blocks
This is the list of "safe" blocks in which a tree can grow
They were moved outside the local safety function for speed (I hope)
--]]
local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")
-- MFF: The local functi... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Lower_Jeuno/npcs/Yatniel.lua | 19 | 1792 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yatniel
-- Type: Standard NPC
-- @zone: 245
-- @pos -66.817 -7 -126.594
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
--------------------... | gpl-3.0 |
daofeng2015/luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_aiccu.lua | 20 | 4410 | -- Copyright 2015 Paul Oranje <por@xs4all.nl>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
-- config read by /lib/netifd/proto/aiccu.sh
local username, password, protocol, server, tunnelid, ip6prefix, requiretls, nat, heartbeat,
verbose, ntpsynctimeout, ip6addr, sourcerouting... | apache-2.0 |
POPHUP/maroonhost | plugins/all.lua | 11 | 6780 | 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 |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/particles.lua | 1 | 9338 | local cam_IgnoreZ = cam.IgnoreZ
local vector_origin = vector_origin
local FrameTime = FrameTime
local angle_origin = Angle(0,0,0)
local WorldToLocal = WorldToLocal
local PART = {}
PART.ClassName = "particles"
PART.Group = 'effects'
PART.Icon = 'icon16/water.png'
pac.StartStorableVars()
pac.SetPropertyGroup(PART, "g... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/crab_stewpot.lua | 36 | 1675 | -----------------------------------------
-- 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 +15% Cap 50
-- Evasion +5
-------------------... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Best_First_Search/Lua/Yonaba/handlers/linear_handler.lua | 182 | 1721 | -- A linear boundless 1D space map handler
-- This handler is devised for 1-directional continuous space, where
-- nodes are represented with consecutive integer values: 0, 1, 2, etc.
-- Similar to a range (interval) with no bounds.
-- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0.
local PATH = (...):gsub('han... | mit |
ColonelThirtyTwo/LuJGL | test.lua | 1 | 3347 |
local lujgl = require "lujgl"
local ffi = require "ffi"
local bit = require "bit"
local CubeVerticies = {}
CubeVerticies.v = ffi.new("const float[8][3]", {
{0,0,1}, {0,0,0}, {0,1,0}, {0,1,1},
{1,0,1}, {1,0,0}, {1,1,0}, {1,1,1}
})
CubeVerticies.n = ffi.new("const float[6][3]", {
{-1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, ... | bsd-3-clause |
suchipi/pac3 | lua/pac3/core/client/parts/script.lua | 1 | 7391 | local PART = {}
PART.ClassName = "script"
PART.NonPhysical = true
PART.ThinkTime = 0
pac.StartStorableVars()
pac.GetSet(PART, "Code", "")
pac.EndStorableVars()
local blacklist = {
"do",
"end",
"function",
"repeat",
"while",
}
local lib =
{
math = {
pi = math.pi,
random = math.random,
abs = math.abs,
... | gpl-3.0 |
realtime-framework/RealtimeMessaging-Lua | OrtcClient/src/ibt/ortc/uri/uri/data.lua | 2 | 3388 | local M = { _NAME = "uri.data" }
local Util = require "uri._util"
local URI = require "uri"
Util.subclass_of(M, URI)
-- This implements the 'data' scheme defined in RFC 2397.
local Filter = Util.attempt_require("datafilter")
local function _valid_base64 (data) return data:find("^[0-9a-zA-Z/+]*$") end
local function... | mit |
hacker44-h44/1104 | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
moteus/lua-bgcrypto-sha | src/lua/hmac.lua | 1 | 2382 | local bit = require "bgcrypto.private.bit"
local sbyte = string.byte
local schar = string.char
local sgsub = string.gsub
local ssub = string.sub
local srep = string.rep
local bxor = bit.bxor
local function hmac_xor(str, b)
return sgsub(str, '.', function(ch)
return schar(bxor(sbyte(ch), b))
end... | bsd-2-clause |
FFXIOrgins/FFXIOrgins | scripts/commands/giveitem.lua | 4 | 1296 | ---------------------------------------------------------------------------------------------------
-- func: giveitem
-- auth: Link :: Modded by atom0s.
-- desc: Gives an item to the target player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/blackened_toad.lua | 35 | 1373 | -----------------------------------------
-- ID: 4599
-- Item: Blackened Toad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -1
-- Poison Resist 5
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Average/Lua/Yonaba/average.lua | 26 | 2559 | -- Various average (means) algorithms implementation
-- See: http://en.wikipedia.org/wiki/Average
-- Returns the sum of a sequence of values
local function sum(x)
local s = 0
for _, v in ipairs(x) do s = s + v end
return s
end
-- Calculates the arithmetic mean of a set of values
-- x : an array of values
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Rabao/npcs/Leodarion.lua | 19 | 3411 | -----------------------------------
-- Area: Rabao
-- NPC: Leodarion
-- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box, True Will
-- @pos -50 8 40 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
facebook/fbnn | fbnn/SparseLookupTable.lua | 1 | 1939 | -- Copyright 2004-present Facebook. All Rights Reserved.
--[[
Sparse lookup table. Similar to the regular LookupTable.lua module,
except for the following differences:
1. The outputs are in sparse format.
2. The inputs are pairs (i,w), so the output corresponding to index i
is scaled by w.
3. The indices are fixed, i... | bsd-3-clause |
MOSAVI17/Gbot | plugins/service_entergroup.lua | 279 | 2147 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = chat_name or ''
chat_id = "chat#id" .. (... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Bricorsant.lua | 36 | 1376 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Bricorsant
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Te... | gpl-3.0 |
routek/qMp | packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/gateways.lua | 2 | 4833 | --[[
Copyright (C) 2013 Quick Mesh Project
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 progra... | gpl-2.0 |
xToken/NSL | lua/NSL/skinsblocker/server.lua | 1 | 1611 | -- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua/NSL/skinsblocker/server.lua
-- - Dragon
-- This seems stupid, but gender models are also considered 'variants'. Allow for marines BUT force 'default' variant
function MarineVariantMixin:GetVariantModel()
if kDefaultMarineB... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/West_Ronfaure/npcs/qm3.lua | 34 | 1499 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm3 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -399 -10 -438 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/retribution.lua | 6 | 1539 | -----------------------------------
-- Retribution
-- Staff weapon skill
-- Skill Level: 230
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Retribution, the quest Blood and Glory must be completed.
-- Despite the appearance of throwing the staff, this is not a long-range Weapo... | gpl-3.0 |
satreix/awesome | vicious/contrib/buildbot.lua | 16 | 5003 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2012, Andrzje Bieniek <andyhelp@gmail.com>
---------------------------------------------------
-- {{{ Grab environment
local setmetatable = setmetatable
local pcall = pcall
local json_status, json = pcall(... | mit |
elyasgalikeshi/renjer | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
suchipi/pac3 | lua/pac3/core/client/parts/trail.lua | 1 | 4322 | local PART = {}
PART.ClassName = "trail"
pac.StartStorableVars()
pac.GetSet(PART, "Length", 100)
pac.GetSet(PART, "Spacing", 1)
pac.GetSet(PART, "StartSize", 3)
pac.GetSet(PART, "EndSize", 0)
pac.GetSet(PART, "StartColor", Vector(255, 255, 255))
pac.GetSet(PART, "EndColor", Vector(255, 255, 255))
pa... | gpl-3.0 |
moj69/m | plugins/linkpv.lua | 2 | 31099 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | agpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Upper_Jeuno/npcs/Mejuone.lua | 37 | 1157 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mejuone
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
m2mselect/owrt | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua | 47 | 5384 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require "luci.sys"
local zones = require "luci.sys.zoneinfo"
local fs = require "nixio.fs"
local conf = require "luci.config"
local m, s, o
... | gpl-2.0 |
Tapo4ek/django-cacheops | cacheops/lua/cache_thing.lua | 8 | 1684 | local key = KEYS[1]
local data = ARGV[1]
local dnfs = cjson.decode(ARGV[2])
local timeout = tonumber(ARGV[3])
-- Write data to cache
redis.call('setex', key, timeout, data)
-- A pair of funcs
local conj_schema = function (conj)
local parts = {}
for _, eq in ipairs(conj) do
table.insert(parts, eq[1])... | bsd-3-clause |
Gael-de-Sailly/minetest-minetestforfun-server | mods/broomstick/init.lua | 9 | 3960 | local broomstick_time = 120 -- Seconds
local broomstick_mana = 190
local broomstick_actual_users = {}
local had_fly_privilege = {}
local privs = {}
-- broomstick file
users_file = minetest.get_worldpath() .. "/broomstick_users.txt"
--load broomstick file
local file = io.open(users_file, "r")
if file then
had_fly_pri... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/bluemagic/death_scissors.lua | 6 | 1031 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Inhumer.lua | 17 | 1155 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Inhumer
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
----------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/npcs/Radiant_Aureole.lua | 18 | 5790 | -----------------------------------
-- Area: Appolyon
-- NPC: Radiant_Aureole
-- @pos
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Lower_Jeuno/npcs/Teigero-Bangero.lua | 20 | 2924 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Teigero Bangero
-- Involved in Quests: Save the Clock Tower, The Lost Cardian
-- @zone 245
-- @pos -58 0 -143
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
alicybery/unknownbot | plugins/invite.lua | 84 | 2540 | --[[
Invite other user to the chat group.
Use !invite ********* (where ********* is id_number) to invite a user by id_number.
This is the most reliable method.
Use !invite @username to invite a user by @username.
Less reliable. Some users don't have @username.
Use !invite Type print_name Here to invite a user by ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Monastic_Cavern/npcs/Treasure_Coffer.lua | 3 | 3959 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Treasure Coffer
-- @zone 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
r... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/mercy_stroke.lua | 4 | 1833 | -----------------------------------
-- Mercy Stroke
-- Dagger weapon skill
-- Skill level: N/A
-- Batardeau/Mandau: Temporarily improves params.critical hit rate.
-- Aftermath gives +5% params.critical hit rate.
-- Must have Batardeau, Mandau, or Clement Skean equipped.
-- Aligned with the Shadow Gorget &... | gpl-3.0 |
nehz/busted | busted/languages/zh.lua | 14 | 1234 | local s = require('say')
s:set_namespace('zh')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', '开发中')
s:set('output.failure', '失败')
s:set('output.success', '成功')
s:set('output.pending_plural', '开发中')
s:set('output.failure_plural', '失败')
s:set('output.success_plural', '成功')
s:set('output.pending_ze... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/aisha_ichi.lua | 5 | 1660 | -----------------------------------------
-- Spell: Aisha: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,target,... | gpl-3.0 |
lakers/RobloxWiki | extensions/Scribunto/engines/LuaCommon/lualib/mw.text.lua | 1 | 6814 | local mwtext = {}
local php
local options
local util = require 'libraryUtil'
local checkType = util.checkType
local checkTypeForNamedArg = util.checkTypeForNamedArg
function mwtext.setupInterface( opts )
-- Boilerplate
mwtext.setupInterface = nil
php = mw_interface
mw_interface = nil
options = opts
-- Register... | gpl-2.0 |
joshimoo/Algorithm-Implementations | Derivative/Lua/Yonaba/derivative.lua | 26 | 1918 | -- Derivative evaluation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Derivative
-- Fuzzy equality test
local function fuzzyEqual(a, b, eps)
local eps = eps or 1e-4
return (math.abs(a - b) < eps)
end
-- Evaluates the derivative of function f at x0
-- Uses Newton's forward slope approximation
-- ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/TurbulentStorm.lua | 13 | 1751 | -----------------------------------
-- Area: The Eldieme Necropolis [S]
-- NPC: Turbulent Storm
-- Note: Starts Quest "The Fighting Fourth"
-- @pos 422 -48 -47 175
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
moj69/m | plugins/list.lua | 39 | 2391 | do
local function get_message_callback (extra , success, result)
if result.service then
local action = result.action.type
if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then
if result.action.user then
user_id = result.action.user.peer_... | agpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Muyadah.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Muyadah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
fartoverflow/naev | dat/events/neutral/baron_prowl.lua | 12 | 1104 | --[[
-- Prowl Event for the Crazy Baron mission string. Only used when NOT doing any Baron missions.
--]]
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
end
function create()
-- TODO: Change this to the Krieger once the Baron has it. Needs "King"... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Cape_Teriggan/npcs/Salimardi_RK.lua | 6 | 3015 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Bright Moon
-- Type: Outpost Conquest Guards
-- @pos -185 7 -63 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
tullamods/OmniCC | OmniCC_Config/localization/ruRU.lua | 1 | 7562 | -- OmniCC configuration interface localization - Russian
local L = LibStub("AceLocale-3.0"):NewLocale("OmniCC", "ruRU")
if not L then return end
L.Anchor = 'Якорь'
L.Anchor_BOTTOM = 'Внизу'
L.Anchor_BOTTOMLEFT = 'ВнизуСлева'
L.Anchor_BOTTOMRIGHT = 'ВнизуСправа'
L.Anchor_CENTER = 'По центру'
L.Anchor_LEFT = 'Слева'
L.A... | mit |
daofeng2015/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua | 11 | 54059 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NX ... | apache-2.0 |
fartoverflow/naev | dat/missions/shark/sh02_tapping.lua | 3 | 11996 | --[[
This is the third mission of the Shark's teeth campaign. The player has to take illegal holophone recordings in his ship.
Stages :
0) Way to Sirius world
1) Way to Darkshed
TODO: I didn't test the case when the player tries to do the mission with a freighter, and the case when the player's c... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/galkan_sausage.lua | 35 | 2059 | -----------------------------------------
-- ID: 4395
-- Item: galkan_sausage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Multi-Race Effects
-- Galka
-- Strength 3
-- Intelligence -3
-- Attack % 25
-- Attack Cap 30
-- Ranged ATT % 25
-- Ranged ATT Cap 30
--
-- Other
-- S... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/bluemagic/chaotic_eye.lua | 4 | 1257 | -----------------------------------------
-- Spell: Chaoctic Eye
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 76 | 2595 | --[[
Luci statistics - ups plugin diagram definition
Copyright © 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright © 2012 David Woodhouse <dwmw2@infradead.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/piece_of_cascade_candy.lua | 36 | 1148 | -----------------------------------------
-- ID: 5942
-- Item: Piece of Cascade Candy
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind +4
-- Charisma +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/pets/flaming_crush.lua | 6 | 1348 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/summon");
require("/scripts/globals/magic");
require("/scri... | gpl-3.0 |
sjznxd/luci-0.11-aa | modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | 8 | 3398 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 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://w... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_homemade_stew.lua | 35 | 1131 | -----------------------------------------
-- ID: 5222
-- Item: Bowl of Homemade Stew
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sea_Serpent_Grotto/npcs/_4wa.lua | 19 | 1767 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Sahagin Key Door
-- @zone 176
-- @pos 40 8.6 20.012
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Riverne-Site_A01/npcs/Spatial_Displacement.lua | 7 | 2971 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Spacial Displacement
-----------------------------------
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger
--------------... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Depth_First_Search/Lua/Yonaba/dfs.lua | 26 | 3177 | -- Generic Depth-First search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Depth-first_search
-- Notes : this is a generic implementation of Depth-First search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with a han... | mit |
mkacik/bcc | src/lua/bcc/sym.lua | 1 | 1693 | --[[
Copyright 2016 GitHub, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | minetestforfun_game/mods/beds/api.lua | 8 | 3528 | function beds.register_bed(name, def)
minetest.register_node(name .. "_bottom", {
description = def.description,
inventory_image = def.inventory_image,
wield_image = def.wield_image,
drawtype = "nodebox",
tiles = def.tiles.bottom,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cd.lua | 34 | 1077 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cd (Gate of Water)
-- @pos -228 0 140 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/RuAun_Gardens/npcs/HomePoint#2.lua | 3 | 1710 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#2
-- @pos -499 -42 167 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RuAun_Garden... | gpl-3.0 |
daofeng2015/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua | 62 | 2782 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local ipc = require "luci.ip"
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("... | apache-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/npcs/char_face.lua | 1 | 2091 |
local NPC = {};
NPC.Name = "Katie's Facials";
NPC.ID = 8;
NPC.Model = Model("models/players/perp2/f_1_01.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = Vector(-5017.1855, -6431.2847, 72.0313);
NPC.Angles = Angle(0, 86.8871, 0);
NPC.ShowChatBubble = "Normal";
NPC.Seque... | mit |
sbadia/dotfiles | awesome/markup.lua | 1 | 2866 | -- Markup Functions
-- Inspired (= written) by Majic
-- http://github.com/MajicOne/awesome-configs/blob/master/markup.lua
-- local tostring, beautiful = tostring, require('beautiful').get()
local tostring, beautiful = tostring, require('beautiful')
module('markup')
fg = {}
bg = {}
--[[
-| Little map of how I
-| or... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/plantlife_modpack/bushes_classic/cooking.lua | 9 | 3575 | local S = biome_lib.intllib
-- Basket
minetest.register_craft({
output = "bushes:basket_empty",
recipe = {
{ "default:stick", "default:stick", "default:stick" },
{ "", "default:stick", "" },
},
})
-- Sugar
-- Use the sugar from farming redo if available
if minetest.get_modpath("farming") and farming.m... | unlicense |
sjznxd/lc-20130127 | modules/admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua | 96 | 2209 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | apache-2.0 |
sjznxd/luci-0.11-aa | modules/admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua | 96 | 2209 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | apache-2.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 73 | 1639 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local ipv = uci:get_first("olsrd", "olsrd", "IpVersion", "4")
mh = Map("olsrd", translate("OLSR - HNA-A... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Lateral_Slash.lua | 6 | 1076 | ---------------------------------------------
-- Lateral Slash
--
-- Description: Laterally slashes a single target. Additional effect: Defense Down
-- Type: Physical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: Reduces defense by 75%. Can be removed with Monk Job Ability Counterstance.
-... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/pipeworks/legacy.lua | 9 | 2135 |
if not minetest.get_modpath("auto_tree_tap") and
minetest.get_modpath("technic") then
minetest.register_abm({
nodenames = { "auto_tree_tap:off", "auto_tree_tap:on" },
chance = 1,
interval = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local fdir = node.param2
local ... | unlicense |
Godfather021/seed | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
geektophe/blingbling | system.lua | 4 | 7290 | --@author cedlemo
local table = table
local awful = require("awful")
local superproperties = require('blingbling.superproperties')
---launchers for reboot, shutdown, shutdown, logout or lock menus for your system.
--@module blingbling.system
local system = {}
local shutdown_cmd= 'systemctl poweroff'
local reboot_cmd=... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 68 | 1787 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
iax = cbimap:section(TypedSection, "iax", "IAX Connection", "")
iax.addremove = true
alwaysinternational = iax:optio... | apache-2.0 |
ld-test/jumper | specs/grid_specs.lua | 2 | 9888 | context('Module Grid', function()
local Grid, Node
before(function()
Grid = require ('jumper.grid')
Node = require ('jumper.core.node')
end)
context('Grid:new() or Grid() returns a new Grid object', function()
test('Grid:new() or Grid() returns a new Grid object', function()
assert_equal(getmetata... | mit |
routek/qMp | packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/network.lua | 2 | 3413 | --[[
Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
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 ... | gpl-2.0 |
naturomics/hacketc | awesomewm/rc.lua | 1 | 18396 | -- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = r... | mit |
luzexi/slua-3rd-lib | build/android/jni/luajit/src/host/genminilua.lua | 55 | 11962 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2014 Mike P... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/sis_kebabi.lua | 35 | 1656 | -----------------------------------------
-- ID: 5598
-- Item: sis_kebabi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -2
-- Intelligence -2
-- Attack % 20
-- Attack Cap 70
-- Ranged ATT % 20
-- Ranged ATT Cap 70
---------------------------------------... | gpl-3.0 |
subzrk/BadRotations | System/readers/combatlog.lua | 1 | 25597 | br.class = select(3, UnitClass("player"))
br.guid = UnitGUID("player")
-- specific reader location
br.read = { }
br.read.combatLog = { }
br.read.enraged = { }
local cl = br.read
-- will update the br.read.enraged list
function br.read.enrageReader(...)
if getOptionCheck("Enrages Handler") then
local timeSta... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/bluemagic/refueling.lua | 2 | 1074 | -----------------------------------------
-- Spell: Refueling
-- Overwrites Intimidate (Pugil), Sticky Thread (Crawler), and Horror Cloud (Skeleton)
-- Cannot be overwriten by Intimidate or Horror Cloud
-- Overwriten by, and cannot overwrite, Slow, Slowga, Haste, Hastega, and Spider Web
---------------------------... | gpl-3.0 |
arman022/spamer- | plugins/inrealm.lua | 4 | 25084 |
-- 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_... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Cape_Teriggan/Zone.lua | 2 | 2286 | -----------------------------------
--
-- Zone: Cape_Teriggan (113)
--
-----------------------------------
package.loaded[ "scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Cape_Teriggan/TextIDs");
require("scripts/globals/icanheararainbow");
require("sc... | gpl-3.0 |
realtime-framework/RealtimeMessaging-Lua | OrtcClient/src/ibt/ortc/uri/uri/file.lua | 2 | 1729 | local M = { _NAME = "uri.file" }
local Util = require "uri._util"
local URI = require "uri"
Util.subclass_of(M, URI)
function M.init (self)
if self:userinfo() or self:port() then
return nil, "usernames and passwords are not allowed in HTTP URIs"
end
local host = self:host()
local path = self:p... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.