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 |
|---|---|---|---|---|---|
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/blunaz_shot_6.meta.lua | 14 | 2721 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 1,
amplification = 90,
light_colors = {
"0 255 255 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = false
},
offsets = {... | agpl-3.0 |
nasomi/darkstar | scripts/globals/items/tidal_talisman.lua | 18 | 2221 | -----------------------------------------
-- ID: 11290
-- Item: tidal talisman
--
-----------------------------------------
function onItemCheck(target)
local result = 56;
local zone = target:getZoneID();
if (zone == 238 or zone == 239 or zone == 240 or zone == 241 or zone == 242 or -- Windurst
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Qulun_Dome/npcs/_440.lua | 19 | 1502 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Door
-- Involved in Mission: Magicite
-- @pos 60 24 -2 148
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Qulun... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Norg/npcs/Shivivi.lua | 17 | 3212 | -----------------------------------
-- Area: Norg
-- NPC: Shivivi
-- Starts Quest: Secret of the Damp Scroll
-- @zone 252
-- @pos 68.729 -6.281 -6.432
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Kazham/npcs/Popopp.lua | 15 | 3438 | -----------------------------------
-- Area: Kazham
-- NPC: Popopp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
----------------------------------... | gpl-3.0 |
o-leary/Anjelica | modules/jukebox/jukebox.lua | 1 | 9097 | --
-- JukeBox
-- Heavily based on MumbleDJ by Matthieu Grieger
--
-- Load jukebox config
config.jukebox = require("modules/jukebox/config")
config.jukebox.music = persistence.load("modules/jukebox/data/musicList.dat")
-- do initialization
local deque = require("includes/dequeue")
local song_queue = deque.new()
local... | mit |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Rodin-Comidin.lua | 34 | 1038 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Rodin-Comidin
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/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... | gpl-2.0 |
Denzeriko/exsto | lua/exsto/plugins/sh_hideadmin.lua | 2 | 1559 | local PLUGIN = exsto.CreatePlugin()
PLUGIN:SetInfo({
ID = "hideadmin",
Name = "Hide/Show Admin",
Desc = "Hides and shows admin ranks",
Owner = "Prefanatic",
})
if SERVER then
function PLUGIN:HideAdmin( caller, ply, rank )
-- Grab the lowest rank we can get.
local lowImmunity = 0
local lowS... | gpl-3.0 |
nasomi/darkstar | scripts/zones/East_Ronfaure_[S]/npcs/qm4.lua | 27 | 1611 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: qm4 "???"
-- Involved in Quests: Steamed Rams
-- @pos 541.425 -49.83 178.563
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
renyaoxiang/QSanguosha-For-Hegemony | extension-doc/value_config.lua | 15 | 2938 | sgs.dynamic_value = {
damage_card =
{
Duel = true,
ArcheryAttack = true,
Slash = true,
FireAttack = true,
SavageAssault = true,
QiangxiCard = true,
FanjianCard = true,
LijianCard = true,
LuanwuCard = true,
ShenfenCard = true,
},
control_usecard =
{
Indulgence = true,
SupplyShortage = t... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/Glowing_Pebbles.lua | 19 | 1307 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Glowing Pebbles
-- Type: Involved in Quest
-- @pos
-- player:startEvent(0x006a); Left over Cutscene
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/PW_Calcifying_Deluge.lua | 25 | 1190 | ---------------------------------------------
-- Calcifying Deluge
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
--------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/Monolith.lua | 17 | 5017 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: Monolith
-- @pos <many>
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvitau/TextIDs");
-------... | gpl-3.0 |
silver-des/silverbot | 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 |
shangjiyu/luci-with-extra | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/dns.lua | 68 | 2109 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.dns", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
local traffic = {
title = "%H: DNS traffic", vlabel = "Bit/s",
data = {
sou... | apache-2.0 |
nasomi/darkstar | scripts/zones/Ship_bound_for_Selbina/npcs/Bhagirath.lua | 31 | 1930 | -----------------------------------
-- Area: Ship_bound_for_Selbina
-- NPC: Bhagirath
-- Notes: Tells ship ETA time
-- @pos 0.278 -14.707 -1.411 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
require("scripts/zones/Ship_bound_for_Selbina/TextIDs");
--... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/luasocket-2.0.2/samples/tinyirc.lua | 58 | 2789 | -----------------------------------------------------------------------------
-- Select sample: simple text line server
-- LuaSocket sample files.
-- Author: Diego Nehab
-- RCS ID: $Id: tinyirc.lua,v 1.14 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
local... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Kalsu-Kalasu.lua | 21 | 1845 | -----------------------------------
-- Area: Crawlers Nest [S]
-- NPC: Kalsu-Kalasu
-- @pos 304.768 -33.519 -19.168 171
-- Notes: Gives Green Letter required to start "Snake on the plains"
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
----------------------... | gpl-3.0 |
shakfu/start-vm | config/base/awesome/vicious/widgets/mpd.lua | 16 | 2221 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
... | mit |
nasomi/darkstar | scripts/zones/Wajaom_Woodlands/Zone.lua | 27 | 3622 | -----------------------------------
--
-- Zone: Wajaom_Woodlands (51)
--
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
requir... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Blingbrix.lua | 34 | 1234 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Blingbrix
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scr... | gpl-3.0 |
RhenaudTheLukark/CreateYourFrisk | Assets/Mods/Encounter Skeleton/Lua/Encounters/encounter.lua | 2 | 1468 | -- A basic encounter script skeleton you can copy and modify for your own creations.
-- music = "shine_on_you_crazy_diamond" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
encountertext = "Poseur strikes a pose!" --Modify as necessary. It will only be read out in the action select s... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 18 | 1268 | -----------------------------------------
-- Spell: Animating Wail
-- Increases attack speed
-- Spell cost: 53 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 5
-- Stat Bonus: HP+20
-- Level: 79
-- Casting Time: 2 Seconds
-- Recast Time: 45 Seconds
-- 5 minutes
--
-- Combos:... | gpl-3.0 |
haka-security/haka | modules/protocol/udp/udp_console.lua | 5 | 1295 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local list = require('list')
require('protocol/ipv4')
local UdpConnInfo = list.new('UdpCnxInfo')
UdpConnInfo.field... | mpl-2.0 |
Wouterz90/SuperSmashDota | Game/scripts/vscripts/maps2.lua | 1 | 32412 | -- Do not use platform[1] if the platform isn't the lowest one (Like FerrisWheel)
function MapSmall()
local i = 1
platform[i] = SpawnEntityFromTableSynchronous("prop_dynamic", {model = "models/base_platform.vmdl", DefaultAnim=animation, targetname=DoUniqueString("prop_dynamic")})
platform[i]:SetAbsOrigin(Vect... | mit |
nasomi/darkstar | scripts/zones/Ordelles_Caves/npcs/qm5.lua | 17 | 1422 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: ??? (qm5)
-- Involved In Quest: Dark Puppet
-- @pos -92 -28 -70 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Ingenious-Gaming/Starfall | lua/starfall/libs_sh/trace.lua | 4 | 9130 | -------------------------------------------------------------------------------
-- Trace library
-------------------------------------------------------------------------------
local dgetmeta = debug.getmetatable
local vwrap, vunwrap = SF.WrapObject, SF.UnwrapObject
--[[
-- Here's a neat little script to convert enu... | bsd-3-clause |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004085.lua | 1 | 1337 | --BT4-075_SPR Height of Mastery Son Goku
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_SON_GOKU,SPECIAL_TRAIT_SAIYAN,SPECIAL_TRAIT_UNIVERSE_7,SPECIAL_TRAIT_GOKUS_LINEAGE,CHARACTER_INCLUDES_SON_GOKU,SPECIAL_... | gpl-3.0 |
vavrusa/luajit-libuv | src/uv/ctypes/uv_stream_t.lua | 2 | 1248 | local ffi = require 'ffi'
local async = require 'uv/util/async'
local ctype = require 'uv/util/ctype'
local libuv = require 'uv/libuv'
local libuv2 = require 'uv/libuv2'
local libc = require 'uv/libc'
local uv_buf_t = require 'uv/ctypes/uv_buf_t'
local uv_write_t = require 'uv/ctypes/uv_write_t'
local uv_loop_t = requi... | mit |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Ohbiru-Dohbiru.lua | 12 | 12353 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohbiru-Dohbiru
-- Involved in quest: Food For Thought, Say It with Flowers
-- Starts and finishes quest: Toraimarai Turmoil
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("s... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/bluemagic/digest.lua | 18 | 1846 | -----------------------------------------
-- Spell: Digest
-- Steals an enemy's HP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 36
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Ma... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Rabao/Zone.lua | 28 | 1606 | -----------------------------------
--
-- Zone: Rabao (247)
--
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Baren-Moren.lua | 36 | 7540 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Baren-Moren
-- Starts and Finishes Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = -66 -3 -148
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Temenos/mobs/Telchines_Monk.lua | 16 | 1135 | -----------------------------------
-- Area: Temenos N T
-- NPC: Telchines_Monk
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
mbsg/openwrt-extra | luci/applications/luci-app-dnscrypt-proxy/luasrc/model/cbi/dnscrypt-proxy.lua | 4 | 1101 | --[[
luci configration for dns2sock.Made By shangjiyu
]]--
local fs = require "nixio.fs"
local running=(luci.sys.call("pidof dnscrypt-proxy > /dev/null") == 0)
if running then
m = Map("dnscrypt-proxy", translate("DNSCrypt-Proxy"), translate("DNSCrypt-Proxy is running"))
else
m = Map("dnscrypt-proxy", translate("DN... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Feretory/Zone.lua | 28 | 1217 | -----------------------------------
--
-- Zone: Feretory
--
-----------------------------------
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Marjami_Ravine/TextIDs");
---------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/bluemagic/queasyshroom.lua | 18 | 2027 | -----------------------------------------
-- Spell: Queasyshroom
-- Additional effect: Poison. Duration of effect varies with TP
-- Spell cost: 20 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 8
-- Casting Time: 2 seconds
-- Recast... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004199.lua | 1 | 1977 | --TB2-005 Supreme Showdown Vegeta
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_VEGETA,SPECIAL_TRAIT_SAIYAN,SPECIAL_TRAIT_WORLD_TOURNAMENT)
ds.AddPlayProcedure(c,COLOR_RED,2,3)
--triple strike
ds.EnableT... | gpl-3.0 |
nasomi/darkstar | scripts/globals/spells/valor_minuet_v.lua | 18 | 1536 | -----------------------------------------
-- Spell: Valor Minuet V
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,... | gpl-3.0 |
srush/OpenNMT | onmt/data/Batch.lua | 2 | 8212 | --[[ Return the maxLength, sizes, and non-zero count
of a batch of `seq`s ignoring `ignore` words.
--]]
local function getLength(seq, ignore)
local sizes = torch.IntTensor(#seq):zero()
local max = 0
local sum = 0
for i = 1, #seq do
local len = seq[i]:size(1)
if ignore ~= nil then
len = len - ig... | mit |
nasomi/darkstar | scripts/zones/Silver_Sea_route_to_Al_Zahbi/npcs/Yahliq.lua | 17 | 1241 | -----------------------------------
-- Area: Silver Sea route to Al Zahbi
-- NPC: Yahliq
-- Type: Guild Merchant: Fishing Guild
-- @pos 4.986 -2.101 -12.026 59
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/PsoXja/npcs/_098.lua | 17 | 1614 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _098 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
zhangxiangxiao/GalaxyZoo | model.lua | 1 | 4037 | --[[ Model file for Galaxy Zoo
By Xiang Zhang @ New York University
--]]
-- Prerequisite
require("nn")
-- Create the class
local Model = torch.class("Model")
-- Constructor
-- config: the configuration table
-- [1],[2],...: the layered specification of model
-- .p: dropout probability
function Model:__init(con... | bsd-2-clause |
coolflyreg/gs | 3rd/skynet-mingw/test/testredis.lua | 85 | 1039 | local skynet = require "skynet"
local redis = require "redis"
local conf = {
host = "127.0.0.1" ,
port = 6379 ,
db = 0
}
local function watching()
local w = redis.watch(conf)
w:subscribe "foo"
w:psubscribe "hello.*"
while true do
print("Watch", w:message())
end
end
skynet.start(function()
skynet.fork(watc... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Port_Jeuno/npcs/Jaipal.lua | 17 | 1271 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Jaipal
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--------------------... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/bataquiche.lua | 35 | 1468 | -----------------------------------------
-- ID: 5168
-- Item: Bataquiche
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 8
-- Agility 1
-- Vitality -2
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/mobskills/MP_Drainkiss.lua | 13 | 1241 | ---------------------------------------------------
-- MP Drainkiss
-- Deals dark damage to a single target. Additional effect: Aspir
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain MP.
-----------------------------------------... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua | 68 | 1140 | --[[
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... | gpl-2.0 |
fegimanam/zus | plugins/map.lua | 87 | 1499 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Jacodaut.lua | 53 | 1826 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jacodaut
-- Type: Cooking Image Support
-- @pos -125.890 -2.999 62.499 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
aqasaeed/zeus | plugins/Map.lua | 87 | 1499 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
Etehadmarg/margbot | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/modules/base/luasrc/tools/webadmin.lua | 88 | 3493 | --[[
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... | gpl-2.0 |
nasomi/darkstar | scripts/globals/items/elshimo_frog.lua | 18 | 1478 | -----------------------------------------
-- ID: 4290
-- Item: elshimo_frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/hard-boiled_egg.lua | 35 | 1195 | -----------------------------------------
-- ID: 4409
-- Item: hard-boiled_egg
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Magic 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
RhenaudTheLukark/CreateYourFrisk | Assets/Mods/@0.5.0_SEE_CRATE/Lua/Encounters/Story2.lua | 1 | 3703 | if not GetRealGlobal("ow") then error("You really should try to access these encounters the normal way...\n\nHere is a clue: You should try talking to the dog.\n\nNow good luck!", 0) end
encountertext = "Poseur strikes a pose!" --Modify as necessary. It will only be read out in the action select screen.
nextwaves = {"... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Horlais_Peak/npcs/Burning_Circle.lua | 17 | 1993 | -----------------------------------
-- Area: Horlais Peak
-- NPC: Burning Circle
-- Horlais Peak Burning Circle
-- @pos -509 158 -211 139
-------------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
r... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Chateau_dOraguille/npcs/Mistaravant.lua | 38 | 1049 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Mistaravant
-- Type: Standard NPC
-- @zone: 233
-- @pos 7.097 -3.999 67.988
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
... | gpl-3.0 |
nasomi/darkstar | scripts/globals/abilities/manifestation.lua | 28 | 1228 | -----------------------------------
-- Ability: Manifestation
-- Extends the effect of your next enfeebling1 black magic spell to targets within range. MP cost and casting time2 are doubled.
-- Obtained: Scholar Level 40
-- Recast Time: Stratagem Charge
-- Duration: 1 compatible black magic spell or 60 seconds, wh... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Cape_Teriggan/mobs/Tegmine.lua | 13 | 1940 | ----------------------------------
-- Area: Cape Teriggan
-- NM: Tegmine
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
... | gpl-3.0 |
actboy168/YDWE | Development/Component/plugin/w3x2lni/script/core/slk/frontend_obj.lua | 2 | 2493 | local select = select
local string_lower = string.lower
local string_unpack = string.unpack
local string_match = string.match
local w3xparser = require 'w3xparser'
local w2l
local wts
local default
local has_level
local unpack_buf
local unpack_pos
local function set_pos(...)
unpack_pos = select(-1, ...)
retur... | gpl-3.0 |
kerr-huang/SL4A | lua/src/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | apache-2.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Catalia.lua | 38 | 1037 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Catalia
-- Type: Standard NPC
-- @zone: 241
-- @pos -46.160 -0.501 -32.698
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------------... | gpl-3.0 |
shangjiyu/luci-with-extra | build/luadoc/luadoc/doclet/formatter.lua | 171 | 2556 | -------------------------------------------------------------------------------
-- Doclet to format source code according to LuaDoc standard tags. This doclet
-- (re)write .lua files adding missing standard tags. Texts are formatted to
-- 80 columns and function parameters are added based on code analysis.
--
-- @relea... | apache-2.0 |
nicholas-leonard/nn | PartialLinear.lua | 8 | 3886 | local PartialLinear, Module = torch.class('nn.PartialLinear', 'nn.Module')
--[[
PartialLinear is a Linear layer that allows the user to a set a collection of
column indices. When the column indices are set, the layer will behave like a
Linear layer that only has those columns. Meanwhile, all parameters are
preserved,... | bsd-3-clause |
renyaoxiang/QSanguosha-For-Hegemony | extension-doc/12-SmartAI.lua | 15 | 15596 | --[[
smart-ai.lua 是整个 AI 中最先载入的脚本,也是 AI 系统的核心。
下面就让我们来看一下 smart-ai.lua 文件的组成。
++ 第一部分:初始化、取值、排序(第 1 至 572 行)
! 全局变量 version:当前 AI 的版本;
! SmartAI:initialize() :对 AI 进行初始化。
这些元素一般在编写 AI 时都不建议直接使用。
在后续的文档中,以感叹号开头表示。
相应的,在编写 AI 时需要直接用到的元素则用星号开头的行表示。
可以直接使用但是较少用到的则以问号开头的行表示。
另外有一些元素尽管曾经经常直接使用,但是在新的 AI 中已经很少使用,这类元素用 *? 开头表示... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Upper_Delkfutts_Tower/mobs/Autarch.lua | 14 | 1582 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NM: Autarch
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 19 | 1446 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
aypierre42/FTP | EP5_ay_rain_cleaner.lua | 1 | 1047 | p = peripheral.wrap("back")
letters = {
"Plus de pluie dans 3",
".",
".",
"2",
".",
".",
"1",
".",
"."
}
button = {
"-----------",
"| |",
"| CLEAN |",
"| |",
"-----------"
}
function enlevePluie()
if rs.getInput("top") == false then
p.setCursorPos(12,13)
p.write("Il ne pleut pas ... | apache-2.0 |
Denzeriko/exsto | lua/entities/3dtext/cl_init.lua | 2 | 2551 | include( "shared.lua" )
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
for I = 18, 144 do
surface.CreateFont( "Arial", I, 100, true, false, "Ex3DText" .. I )
end
function ENT:Initialize()
self:SetModel( "" )
self.TextColor = Color( 255, 255, 255, 255 )
self.OutlineColor = Color( 0, 0, 0, 255 )
self.Fon... | gpl-3.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd6.lua | 38 | 16502 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Caedarva_Mire/Zone.lua | 30 | 1903 | -----------------------------------
--
-- Zone: Caedarva_Mire (79)
--
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Caedarva_Mire... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004026.lua | 1 | 1294 | --BT4-023 Iron Vow Trunks
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableLeaderAttribute(c)
ds.AddSetcode(c,SPECIAL_TRAIT_SAIYAN,CHARACTER_TRUNKS_YOUTH,SPECIAL_TRAIT_EARTHLING)
--draw
ds.AddSingleAutoAttack(c,0,nil,ds.hinttg,ds.DrawOperation(PLAYER_P... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 36 | 1859 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Wat... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27002038.lua | 1 | 1270 | --BT2-034 Absolute God Fused Zamasu
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableLeaderAttribute(c)
ds.AddSetcode(c,CHARACTER_ZAMASU,SPECIAL_TRAIT_GOD)
--change damage
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(DS_SK... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/cone_of_homemade_gelato.lua | 35 | 1137 | -----------------------------------------
-- ID: 5223
-- Item: cone_of_homemade_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
nasomi/darkstar | scripts/zones/La_Theine_Plateau/npcs/Coumaine.lua | 28 | 1756 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Coumaine
-- Type: Chocobo Vendor
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Latteaune.lua | 38 | 1057 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Latteaune
-- Type: Event Scene Replayer
-- @zone: 26
-- @pos -16.426 -28.889 109.626
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]... | gpl-3.0 |
minaevmike/rspamd | test/lua/unit/url.lua | 3 | 4124 | -- URL parser tests
context("URL check functions", function()
local mpool = require("rspamd_mempool")
local url = require("rspamd_url")
local logger = require("rspamd_logger")
local ffi = require("ffi")
ffi.cdef[[
void rspamd_url_init (const char *tld_file);
unsigned ottery_rand_range(unsigned top);
]]... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/silken_smile.lua | 36 | 1191 | -----------------------------------------
-- ID: 5628
-- Item: Silken Smile
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- Intelligence 2
-- MP Recovered while healing 7
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Upper_Delkfutts_Tower/npcs/_4e2.lua | 17 | 1331 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: Elevator
-- @pos -294 -143 27 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zone... | gpl-3.0 |
silver-des/silverbot | bot/punisherbot.lua | 1 | 9824 | 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 |
nasomi/darkstar | scripts/zones/Eastern_Adoulin/Zone.lua | 34 | 1248 | -----------------------------------
--
-- Zone: Eastern Adoulin
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Eastern_Adoulin/TextIDs"] = nil;
require("scripts/zones/Eastern_Adoulin/TextIDs");
-----------------------------------
-- onInitialize... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Caedarva_Mire/npcs/qm1.lua | 16 | 1168 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Verdelet(ZNM T2))
-- @pos 417 -19 -69 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
-----------------... | gpl-3.0 |
haka-security/haka | sample/sqli/sqli-fine-grained.lua | 2 | 1746 |
require('httpconfig')
require('httpdecode')
local httplib = require('protocol/http')
------------------------------------
-- Malicious Patterns
------------------------------------
local keywords = {
'select', 'insert', 'update', 'delete', 'union'
}
------------------------------------
-- A Better Naive Rule ...
-... | mpl-2.0 |
exitunlimited/Exit-Unlimited | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Bastok_Mines/npcs/Christina.lua | 38 | 1034 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Christina
-- Type: Special Event Coordinator
-- @zone: 234
-- @pos 23.703 -1 -86.034
--
-- Auto-Script: Requires Verification
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bas... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/asuran_fists.lua | 30 | 1676 | -----------------------------------
-- Asuran Fists
-- Hand-to-Hand weapon skill
-- Skill Level: 250
-- Delivers an eightfold attack. params.accuracy varies with TP.
-- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed.
-- Due to the 95% params.accuracy cap there is only a 66% ch... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Southern_San_dOria/npcs/Tek_Lengyon.lua | 53 | 1848 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Tek Lengyon
-- Type: Leathercraft Synthesis Image Support
-- @pos -190.120 -2.999 2.770 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
rosejn/torch-datasets | test/coil_examples.lua | 3 | 1303 | require 'fn/seq'
require 'dataset/pipeline'
require 'dataset/coil'
require 'util'
require 'pprint'
function coil_from_images()
pipe.movie_player(seq.take(200, Coil.data_source()), 30)
end
function coil_mini_batches()
local table
local image_data = Coil.data_source()
for i=1,2 do
table = pipe.to_d... | bsd-3-clause |
parsaghx/king | plugins/plugins.lua | 20 | 5894 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
Nathan22Miles/sile-0.9.1 | lua-libraries/repl/plugins/semicolon_suppress_output.lua | 7 | 1408 | -- Copyright (c) 2011-2014 Rob Hoelz <rob@hoelz.ro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in
-- the Software without restriction, including without limitation the rights to
-- use, copy, modify,... | mit |
Maxsteam/99998888 | plugins/channels.lua | 24 | 1735 | do
-- Checks if bot was disabled on specific chat
local function is_channel_disabled(receiver)
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable... | gpl-2.0 |
minaevmike/rspamd | test/lua/unit/trie.lua | 6 | 1633 | -- Trie search tests
context("Trie search functions", function()
local t = require "rspamd_trie"
local logger = require "rspamd_logger"
test("Trie search", function()
local patterns = {
'test',
'est',
'he',
'she',
'str\0ing'
}
local trie = t.create(patterns)
assert... | apache-2.0 |
amirhacker135/mmkingtm1 | plugins/help.lua | 3 | 6736 | do
function run(msg, matches)
local mods = [[
راهنما فارسی مدیران :
@telemanager_ch
!kick [Username | ID | Reply]
!ban [username | ID | Reply]
!unban [Username | ID | Reply]
!banlist
!id [Username | Id | Reply]
!res @username
!res [Reply]
!lock [ads | name | tag | leave | badw | member | chat | farsi | bots]... | gpl-2.0 |
minigeek/MMDAgent | Library_Bullet_Physics/src/Demos/OpenCLClothDemo/NVidia/premake4.lua | 4 | 1155 |
hasCL = findOpenCL_NVIDIA()
if (hasCL) then
project "AppOpenCLClothDemo_NVIDIA"
defines { "USE_NVIDIA_OPENCL","CL_PLATFORM_NVIDIA"}
initOpenCL_NVIDIA()
language "C++"
kind "ConsoleApp"
targetdir "../../.."
libdirs {"../../../Glut"}
links {
"LinearMath",
"Bulle... | bsd-3-clause |
ngeiswei/ardour | share/scripts/_fan_out_instrument.lua | 6 | 2139 | ardour { ["type"] = "EditorAction", name = "Fan Out Instrument",
license = "MIT",
author = "Ardour Team",
description = [[Create Busses for every Instrument Output on selected Tracks]]
}
function factory () return function ()
local outputs = 2
local mst = Session:master_out();
if not mst:isnil() then
... | gpl-2.0 |
luanorlandi/SwiftSpaceBattle | src/math/area.lua | 2 | 1053 | require "math/vector"
require "math/rectangle"
Area = {}
Area.__index = Area
function Area:new(size)
local A = {}
setmetatable(A, Area)
A.size = Rectangle:new(Vector:new(0, 0), Vector:new(size.x, size.y))
A.hitbox = {}
return A
end
function Area:newRectangularArea(c, v)
local rectangle = Rectangle:new(c, v)... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Al_Zahbi/npcs/Zwaluh.lua | 53 | 2332 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zwaluh
-- Type: Leathercraft Normal/Adv. Image Support
-- @pos -71.556 -6.999 -103.015 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.